-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathtransfer-arguments.ts
75 lines (72 loc) · 2.04 KB
/
transfer-arguments.ts
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
type EVMTransferInput = {
type: "evm"
baseToken: string
baseAmount: string
quoteToken: string
quoteAmount: string
sourceChannelId: number
wethToken: string
receiver: string
ucs03address: string
}
type CosmosTransferInput = {
type: "cosmos"
baseToken: string
baseAmount: string
quoteToken: string
quoteAmount: string
sourceChannelId: number
wethToken: null
receiver: string
ucs03address: string
}
type AptosTransferInput = {
type: "aptos"
baseToken: string
baseAmount: string
quoteToken: string
quoteAmount: string
sourceChannelId: number
wethToken: null
receiver: string
ucs03address: string
}
export const examples: {
evm: EVMTransferInput
cosmos: CosmosTransferInput
aptos: AptosTransferInput
} = {
evm: {
type: "evm",
baseToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
baseAmount: "1000000000000000000",
quoteToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
quoteAmount: "1000000",
receiver: "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
sourceChannelId: 1,
ucs03address: "0x742d35cc6634c0532925a3b844bc454e4438f44e",
wethToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
},
cosmos: {
type: "cosmos",
baseToken: "0x1234567890abcdef1234567890abcdef12345678",
baseAmount: "10000000",
quoteToken: "0xabcdef1234567890abcdef1234567890abcdef12",
quoteAmount: "10000000",
receiver: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
sourceChannelId: 2,
ucs03address: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890", // Hex, 32 bytes
wethToken: null
},
aptos: {
type: "aptos",
baseToken: "0x1abcdef1234567890abcdef1234567890abcdef12",
baseAmount: "1000000000000000000",
quoteToken: "0x2abcdef1234567890abcdef1234567890abcdef12",
quoteAmount: "10000000",
receiver: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
sourceChannelId: 3,
ucs03address: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
wethToken: null
}
}