-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
42 lines (34 loc) · 1.24 KB
/
notes.txt
File metadata and controls
42 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
deployed contract in Avalanche:
0x74BE2e0b78C5257B54E0AA5D7D1323DFbc08E9CE
gas estimation based on wallet settings, else default to a value:
async function calculateBridgeFee(source, destination, options = {}) {
const api = new AxelarQueryAPI({ environment: Environment.TESTNET });
const { gasLimit } = options;
const sourceChain = CHAINS.TESTNET[source.name.toUpperCase()] || CHAINS.TESTNET.AVALANCHE;
const destChain = CHAINS.TESTNET[destination.name.toUpperCase()] || CHAINS.TESTNET.FANTOM;
return api.estimateGasFee(sourceChain, destChain, gasLimit || 700000, 'auto');
}
getAllMessages() keys:
content: "Hello from Avalanche!"
destinationChain: "moonbeam"
isRead: false
recipient: "0xE2a7027C0DCcF4F322e0e792765038902ce4500e"
sender: "0xE2a7027C0DCcF4F322e0e792765038902ce4500e"
sourceChain: "avalanche"
timestamp: 1745164968n
<svg
style={{ transform: 'rotate(-90deg)' }}
fill="none"
height="7"
width="14"
xmlns="http://www.w3.org/2000/svg"
>
<title>Dropdown</title>
<path
d="M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2.5"
/>
</svg>