@swapkit/core 1.0.0-rc.17 → 1.0.0-rc.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/index.js +3 -0
  2. package/dist/index.js.map +37 -0
  3. package/package.json +26 -49
  4. package/src/__tests__/helpers.test.ts +65 -0
  5. package/src/aggregator/contracts/avaxGeneric.ts +50 -50
  6. package/src/aggregator/contracts/avaxWoofi.ts +80 -80
  7. package/src/aggregator/contracts/bscGeneric.ts +59 -59
  8. package/src/aggregator/contracts/ethGeneric.ts +50 -50
  9. package/src/aggregator/contracts/index.ts +30 -28
  10. package/src/aggregator/contracts/pancakeV2.ts +80 -80
  11. package/src/aggregator/contracts/pangolin.ts +65 -65
  12. package/src/aggregator/contracts/routers/index.ts +58 -0
  13. package/src/aggregator/contracts/routers/kyber.ts +402 -0
  14. package/src/aggregator/contracts/routers/oneinch.ts +2188 -0
  15. package/src/aggregator/contracts/routers/pancakeswap.ts +340 -0
  16. package/src/aggregator/contracts/routers/pangolin.ts +340 -0
  17. package/src/aggregator/contracts/routers/sushiswap.ts +340 -0
  18. package/src/aggregator/contracts/routers/traderJoe.ts +340 -0
  19. package/src/aggregator/contracts/routers/uniswapv2.ts +340 -0
  20. package/src/aggregator/contracts/routers/uniswapv3.ts +254 -0
  21. package/src/aggregator/contracts/routers/woofi.ts +171 -0
  22. package/src/aggregator/contracts/sushiswap.ts +65 -65
  23. package/src/aggregator/contracts/traderJoe.ts +65 -65
  24. package/src/aggregator/contracts/uniswapV2.ts +65 -65
  25. package/src/aggregator/contracts/uniswapV2Leg.ts +70 -70
  26. package/src/aggregator/contracts/uniswapV3_100.ts +70 -70
  27. package/src/aggregator/contracts/uniswapV3_10000.ts +70 -70
  28. package/src/aggregator/contracts/uniswapV3_3000.ts +70 -70
  29. package/src/aggregator/contracts/uniswapV3_500.ts +70 -70
  30. package/src/aggregator/getSwapParams.ts +12 -12
  31. package/src/client.ts +438 -0
  32. package/src/helpers/explorerUrls.ts +45 -0
  33. package/src/index.ts +6 -4
  34. package/src/types.ts +44 -0
  35. package/LICENSE +0 -201
  36. package/dist/index-9e36735e.cjs +0 -1
  37. package/dist/index-cf1865cd.js +0 -649
  38. package/dist/index.cjs +0 -2
  39. package/dist/index.d.ts +0 -216
  40. package/dist/index.es.js +0 -4181
  41. package/src/client/__tests__/helpers.test.ts +0 -69
  42. package/src/client/explorerUrls.ts +0 -62
  43. package/src/client/index.ts +0 -699
  44. package/src/client/thornode.ts +0 -31
  45. package/src/client/types.ts +0 -103
@@ -1,120 +1,120 @@
1
1
  export const uniswapV2 = [
2
2
  {
3
3
  inputs: [
4
- { internalType: 'address', name: '_ttp', type: 'address' },
5
- { internalType: 'address', name: '_weth', type: 'address' },
6
- { internalType: 'address', name: '_swapRouter', type: 'address' },
4
+ { internalType: "address", name: "_ttp", type: "address" },
5
+ { internalType: "address", name: "_weth", type: "address" },
6
+ { internalType: "address", name: "_swapRouter", type: "address" },
7
7
  ],
8
- stateMutability: 'nonpayable',
9
- type: 'constructor',
8
+ stateMutability: "nonpayable",
9
+ type: "constructor",
10
10
  },
11
11
  {
12
12
  anonymous: false,
13
13
  inputs: [
14
- { indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256' },
15
- { indexed: false, internalType: 'address', name: 'feeRecipient', type: 'address' },
14
+ { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
15
+ { indexed: false, internalType: "address", name: "feeRecipient", type: "address" },
16
16
  ],
17
- name: 'FeeSet',
18
- type: 'event',
17
+ name: "FeeSet",
18
+ type: "event",
19
19
  },
20
20
  {
21
21
  anonymous: false,
22
22
  inputs: [
23
- { indexed: true, internalType: 'address', name: 'owner', type: 'address' },
24
- { indexed: false, internalType: 'bool', name: 'active', type: 'bool' },
23
+ { indexed: true, internalType: "address", name: "owner", type: "address" },
24
+ { indexed: false, internalType: "bool", name: "active", type: "bool" },
25
25
  ],
26
- name: 'OwnerSet',
27
- type: 'event',
26
+ name: "OwnerSet",
27
+ type: "event",
28
28
  },
29
29
  {
30
30
  inputs: [],
31
- name: 'fee',
32
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
33
- stateMutability: 'view',
34
- type: 'function',
31
+ name: "fee",
32
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
33
+ stateMutability: "view",
34
+ type: "function",
35
35
  },
36
36
  {
37
37
  inputs: [],
38
- name: 'feeRecipient',
39
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
40
- stateMutability: 'view',
41
- type: 'function',
38
+ name: "feeRecipient",
39
+ outputs: [{ internalType: "address", name: "", type: "address" }],
40
+ stateMutability: "view",
41
+ type: "function",
42
42
  },
43
43
  {
44
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
45
- name: 'owners',
46
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
47
- stateMutability: 'view',
48
- type: 'function',
44
+ inputs: [{ internalType: "address", name: "", type: "address" }],
45
+ name: "owners",
46
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
47
+ stateMutability: "view",
48
+ type: "function",
49
49
  },
50
50
  {
51
51
  inputs: [
52
- { internalType: 'uint256', name: '_fee', type: 'uint256' },
53
- { internalType: 'address', name: '_feeRecipient', type: 'address' },
52
+ { internalType: "uint256", name: "_fee", type: "uint256" },
53
+ { internalType: "address", name: "_feeRecipient", type: "address" },
54
54
  ],
55
- name: 'setFee',
55
+ name: "setFee",
56
56
  outputs: [],
57
- stateMutability: 'nonpayable',
58
- type: 'function',
57
+ stateMutability: "nonpayable",
58
+ type: "function",
59
59
  },
60
60
  {
61
61
  inputs: [
62
- { internalType: 'address', name: 'owner', type: 'address' },
63
- { internalType: 'bool', name: 'active', type: 'bool' },
62
+ { internalType: "address", name: "owner", type: "address" },
63
+ { internalType: "bool", name: "active", type: "bool" },
64
64
  ],
65
- name: 'setOwner',
65
+ name: "setOwner",
66
66
  outputs: [],
67
- stateMutability: 'nonpayable',
68
- type: 'function',
67
+ stateMutability: "nonpayable",
68
+ type: "function",
69
69
  },
70
70
  {
71
71
  inputs: [
72
- { internalType: 'address', name: 'tcRouter', type: 'address' },
73
- { internalType: 'address', name: 'tcVault', type: 'address' },
74
- { internalType: 'string', name: 'tcMemo', type: 'string' },
75
- { internalType: 'address', name: 'token', type: 'address' },
76
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
77
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
78
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
72
+ { internalType: "address", name: "tcRouter", type: "address" },
73
+ { internalType: "address", name: "tcVault", type: "address" },
74
+ { internalType: "string", name: "tcMemo", type: "string" },
75
+ { internalType: "address", name: "token", type: "address" },
76
+ { internalType: "uint256", name: "amount", type: "uint256" },
77
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
78
+ { internalType: "uint256", name: "deadline", type: "uint256" },
79
79
  ],
80
- name: 'swapIn',
80
+ name: "swapIn",
81
81
  outputs: [],
82
- stateMutability: 'nonpayable',
83
- type: 'function',
82
+ stateMutability: "nonpayable",
83
+ type: "function",
84
84
  },
85
85
  {
86
86
  inputs: [
87
- { internalType: 'address', name: 'token', type: 'address' },
88
- { internalType: 'address', name: 'to', type: 'address' },
89
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
87
+ { internalType: "address", name: "token", type: "address" },
88
+ { internalType: "address", name: "to", type: "address" },
89
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
90
90
  ],
91
- name: 'swapOut',
91
+ name: "swapOut",
92
92
  outputs: [],
93
- stateMutability: 'payable',
94
- type: 'function',
93
+ stateMutability: "payable",
94
+ type: "function",
95
95
  },
96
96
  {
97
97
  inputs: [],
98
- name: 'swapRouter',
99
- outputs: [{ internalType: 'contract IUniswapRouterV2', name: '', type: 'address' }],
100
- stateMutability: 'view',
101
- type: 'function',
98
+ name: "swapRouter",
99
+ outputs: [{ internalType: "contract IUniswapRouterV2", name: "", type: "address" }],
100
+ stateMutability: "view",
101
+ type: "function",
102
102
  },
103
103
  {
104
104
  inputs: [],
105
- name: 'tokenTransferProxy',
105
+ name: "tokenTransferProxy",
106
106
  outputs: [
107
- { internalType: 'contract TSAggregatorTokenTransferProxy', name: '', type: 'address' },
107
+ { internalType: "contract TSAggregatorTokenTransferProxy", name: "", type: "address" },
108
108
  ],
109
- stateMutability: 'view',
110
- type: 'function',
109
+ stateMutability: "view",
110
+ type: "function",
111
111
  },
112
112
  {
113
113
  inputs: [],
114
- name: 'weth',
115
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
116
- stateMutability: 'view',
117
- type: 'function',
114
+ name: "weth",
115
+ outputs: [{ internalType: "address", name: "", type: "address" }],
116
+ stateMutability: "view",
117
+ type: "function",
118
118
  },
119
- { stateMutability: 'payable', type: 'receive' },
119
+ { stateMutability: "payable", type: "receive" },
120
120
  ];
@@ -1,128 +1,128 @@
1
1
  export const uniswapV2Leg = [
2
2
  {
3
3
  inputs: [
4
- { internalType: 'address', name: '_ttp', type: 'address' },
5
- { internalType: 'address', name: '_weth', type: 'address' },
6
- { internalType: 'address', name: '_swapRouter', type: 'address' },
7
- { internalType: 'address', name: '_legToken', type: 'address' },
4
+ { internalType: "address", name: "_ttp", type: "address" },
5
+ { internalType: "address", name: "_weth", type: "address" },
6
+ { internalType: "address", name: "_swapRouter", type: "address" },
7
+ { internalType: "address", name: "_legToken", type: "address" },
8
8
  ],
9
- stateMutability: 'nonpayable',
10
- type: 'constructor',
9
+ stateMutability: "nonpayable",
10
+ type: "constructor",
11
11
  },
12
12
  {
13
13
  anonymous: false,
14
14
  inputs: [
15
- { indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256' },
16
- { indexed: false, internalType: 'address', name: 'feeRecipient', type: 'address' },
15
+ { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
16
+ { indexed: false, internalType: "address", name: "feeRecipient", type: "address" },
17
17
  ],
18
- name: 'FeeSet',
19
- type: 'event',
18
+ name: "FeeSet",
19
+ type: "event",
20
20
  },
21
21
  {
22
22
  anonymous: false,
23
23
  inputs: [
24
- { indexed: true, internalType: 'address', name: 'owner', type: 'address' },
25
- { indexed: false, internalType: 'bool', name: 'active', type: 'bool' },
24
+ { indexed: true, internalType: "address", name: "owner", type: "address" },
25
+ { indexed: false, internalType: "bool", name: "active", type: "bool" },
26
26
  ],
27
- name: 'OwnerSet',
28
- type: 'event',
27
+ name: "OwnerSet",
28
+ type: "event",
29
29
  },
30
30
  {
31
31
  inputs: [],
32
- name: 'fee',
33
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
34
- stateMutability: 'view',
35
- type: 'function',
32
+ name: "fee",
33
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
34
+ stateMutability: "view",
35
+ type: "function",
36
36
  },
37
37
  {
38
38
  inputs: [],
39
- name: 'feeRecipient',
40
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
41
- stateMutability: 'view',
42
- type: 'function',
39
+ name: "feeRecipient",
40
+ outputs: [{ internalType: "address", name: "", type: "address" }],
41
+ stateMutability: "view",
42
+ type: "function",
43
43
  },
44
44
  {
45
45
  inputs: [],
46
- name: 'legToken',
47
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
48
- stateMutability: 'view',
49
- type: 'function',
46
+ name: "legToken",
47
+ outputs: [{ internalType: "address", name: "", type: "address" }],
48
+ stateMutability: "view",
49
+ type: "function",
50
50
  },
51
51
  {
52
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
53
- name: 'owners',
54
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
55
- stateMutability: 'view',
56
- type: 'function',
52
+ inputs: [{ internalType: "address", name: "", type: "address" }],
53
+ name: "owners",
54
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
55
+ stateMutability: "view",
56
+ type: "function",
57
57
  },
58
58
  {
59
59
  inputs: [
60
- { internalType: 'uint256', name: '_fee', type: 'uint256' },
61
- { internalType: 'address', name: '_feeRecipient', type: 'address' },
60
+ { internalType: "uint256", name: "_fee", type: "uint256" },
61
+ { internalType: "address", name: "_feeRecipient", type: "address" },
62
62
  ],
63
- name: 'setFee',
63
+ name: "setFee",
64
64
  outputs: [],
65
- stateMutability: 'nonpayable',
66
- type: 'function',
65
+ stateMutability: "nonpayable",
66
+ type: "function",
67
67
  },
68
68
  {
69
69
  inputs: [
70
- { internalType: 'address', name: 'owner', type: 'address' },
71
- { internalType: 'bool', name: 'active', type: 'bool' },
70
+ { internalType: "address", name: "owner", type: "address" },
71
+ { internalType: "bool", name: "active", type: "bool" },
72
72
  ],
73
- name: 'setOwner',
73
+ name: "setOwner",
74
74
  outputs: [],
75
- stateMutability: 'nonpayable',
76
- type: 'function',
75
+ stateMutability: "nonpayable",
76
+ type: "function",
77
77
  },
78
78
  {
79
79
  inputs: [
80
- { internalType: 'address', name: 'tcRouter', type: 'address' },
81
- { internalType: 'address', name: 'tcVault', type: 'address' },
82
- { internalType: 'string', name: 'tcMemo', type: 'string' },
83
- { internalType: 'address', name: 'token', type: 'address' },
84
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
85
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
86
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
80
+ { internalType: "address", name: "tcRouter", type: "address" },
81
+ { internalType: "address", name: "tcVault", type: "address" },
82
+ { internalType: "string", name: "tcMemo", type: "string" },
83
+ { internalType: "address", name: "token", type: "address" },
84
+ { internalType: "uint256", name: "amount", type: "uint256" },
85
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
86
+ { internalType: "uint256", name: "deadline", type: "uint256" },
87
87
  ],
88
- name: 'swapIn',
88
+ name: "swapIn",
89
89
  outputs: [],
90
- stateMutability: 'nonpayable',
91
- type: 'function',
90
+ stateMutability: "nonpayable",
91
+ type: "function",
92
92
  },
93
93
  {
94
94
  inputs: [
95
- { internalType: 'address', name: 'token', type: 'address' },
96
- { internalType: 'address', name: 'to', type: 'address' },
97
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
95
+ { internalType: "address", name: "token", type: "address" },
96
+ { internalType: "address", name: "to", type: "address" },
97
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
98
98
  ],
99
- name: 'swapOut',
99
+ name: "swapOut",
100
100
  outputs: [],
101
- stateMutability: 'payable',
102
- type: 'function',
101
+ stateMutability: "payable",
102
+ type: "function",
103
103
  },
104
104
  {
105
105
  inputs: [],
106
- name: 'swapRouter',
107
- outputs: [{ internalType: 'contract IUniswapRouterV2', name: '', type: 'address' }],
108
- stateMutability: 'view',
109
- type: 'function',
106
+ name: "swapRouter",
107
+ outputs: [{ internalType: "contract IUniswapRouterV2", name: "", type: "address" }],
108
+ stateMutability: "view",
109
+ type: "function",
110
110
  },
111
111
  {
112
112
  inputs: [],
113
- name: 'tokenTransferProxy',
113
+ name: "tokenTransferProxy",
114
114
  outputs: [
115
- { internalType: 'contract TSAggregatorTokenTransferProxy', name: '', type: 'address' },
115
+ { internalType: "contract TSAggregatorTokenTransferProxy", name: "", type: "address" },
116
116
  ],
117
- stateMutability: 'view',
118
- type: 'function',
117
+ stateMutability: "view",
118
+ type: "function",
119
119
  },
120
120
  {
121
121
  inputs: [],
122
- name: 'weth',
123
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
124
- stateMutability: 'view',
125
- type: 'function',
122
+ name: "weth",
123
+ outputs: [{ internalType: "address", name: "", type: "address" }],
124
+ stateMutability: "view",
125
+ type: "function",
126
126
  },
127
- { stateMutability: 'payable', type: 'receive' },
127
+ { stateMutability: "payable", type: "receive" },
128
128
  ];
@@ -1,128 +1,128 @@
1
1
  export const uniswapV3_100 = [
2
2
  {
3
3
  inputs: [
4
- { internalType: 'address', name: '_ttp', type: 'address' },
5
- { internalType: 'address', name: '_weth', type: 'address' },
6
- { internalType: 'address', name: '_swapRouter', type: 'address' },
7
- { internalType: 'uint24', name: '_poolFee', type: 'uint24' },
4
+ { internalType: "address", name: "_ttp", type: "address" },
5
+ { internalType: "address", name: "_weth", type: "address" },
6
+ { internalType: "address", name: "_swapRouter", type: "address" },
7
+ { internalType: "uint24", name: "_poolFee", type: "uint24" },
8
8
  ],
9
- stateMutability: 'nonpayable',
10
- type: 'constructor',
9
+ stateMutability: "nonpayable",
10
+ type: "constructor",
11
11
  },
12
12
  {
13
13
  anonymous: false,
14
14
  inputs: [
15
- { indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256' },
16
- { indexed: false, internalType: 'address', name: 'feeRecipient', type: 'address' },
15
+ { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
16
+ { indexed: false, internalType: "address", name: "feeRecipient", type: "address" },
17
17
  ],
18
- name: 'FeeSet',
19
- type: 'event',
18
+ name: "FeeSet",
19
+ type: "event",
20
20
  },
21
21
  {
22
22
  anonymous: false,
23
23
  inputs: [
24
- { indexed: true, internalType: 'address', name: 'owner', type: 'address' },
25
- { indexed: false, internalType: 'bool', name: 'active', type: 'bool' },
24
+ { indexed: true, internalType: "address", name: "owner", type: "address" },
25
+ { indexed: false, internalType: "bool", name: "active", type: "bool" },
26
26
  ],
27
- name: 'OwnerSet',
28
- type: 'event',
27
+ name: "OwnerSet",
28
+ type: "event",
29
29
  },
30
30
  {
31
31
  inputs: [],
32
- name: 'fee',
33
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
34
- stateMutability: 'view',
35
- type: 'function',
32
+ name: "fee",
33
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
34
+ stateMutability: "view",
35
+ type: "function",
36
36
  },
37
37
  {
38
38
  inputs: [],
39
- name: 'feeRecipient',
40
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
41
- stateMutability: 'view',
42
- type: 'function',
39
+ name: "feeRecipient",
40
+ outputs: [{ internalType: "address", name: "", type: "address" }],
41
+ stateMutability: "view",
42
+ type: "function",
43
43
  },
44
44
  {
45
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
46
- name: 'owners',
47
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
48
- stateMutability: 'view',
49
- type: 'function',
45
+ inputs: [{ internalType: "address", name: "", type: "address" }],
46
+ name: "owners",
47
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
48
+ stateMutability: "view",
49
+ type: "function",
50
50
  },
51
51
  {
52
52
  inputs: [],
53
- name: 'poolFee',
54
- outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }],
55
- stateMutability: 'view',
56
- type: 'function',
53
+ name: "poolFee",
54
+ outputs: [{ internalType: "uint24", name: "", type: "uint24" }],
55
+ stateMutability: "view",
56
+ type: "function",
57
57
  },
58
58
  {
59
59
  inputs: [
60
- { internalType: 'uint256', name: '_fee', type: 'uint256' },
61
- { internalType: 'address', name: '_feeRecipient', type: 'address' },
60
+ { internalType: "uint256", name: "_fee", type: "uint256" },
61
+ { internalType: "address", name: "_feeRecipient", type: "address" },
62
62
  ],
63
- name: 'setFee',
63
+ name: "setFee",
64
64
  outputs: [],
65
- stateMutability: 'nonpayable',
66
- type: 'function',
65
+ stateMutability: "nonpayable",
66
+ type: "function",
67
67
  },
68
68
  {
69
69
  inputs: [
70
- { internalType: 'address', name: 'owner', type: 'address' },
71
- { internalType: 'bool', name: 'active', type: 'bool' },
70
+ { internalType: "address", name: "owner", type: "address" },
71
+ { internalType: "bool", name: "active", type: "bool" },
72
72
  ],
73
- name: 'setOwner',
73
+ name: "setOwner",
74
74
  outputs: [],
75
- stateMutability: 'nonpayable',
76
- type: 'function',
75
+ stateMutability: "nonpayable",
76
+ type: "function",
77
77
  },
78
78
  {
79
79
  inputs: [
80
- { internalType: 'address', name: 'tcRouter', type: 'address' },
81
- { internalType: 'address', name: 'tcVault', type: 'address' },
82
- { internalType: 'string', name: 'tcMemo', type: 'string' },
83
- { internalType: 'address', name: 'token', type: 'address' },
84
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
85
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
86
- { internalType: 'uint256', name: 'deadline', type: 'uint256' },
80
+ { internalType: "address", name: "tcRouter", type: "address" },
81
+ { internalType: "address", name: "tcVault", type: "address" },
82
+ { internalType: "string", name: "tcMemo", type: "string" },
83
+ { internalType: "address", name: "token", type: "address" },
84
+ { internalType: "uint256", name: "amount", type: "uint256" },
85
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
86
+ { internalType: "uint256", name: "deadline", type: "uint256" },
87
87
  ],
88
- name: 'swapIn',
88
+ name: "swapIn",
89
89
  outputs: [],
90
- stateMutability: 'nonpayable',
91
- type: 'function',
90
+ stateMutability: "nonpayable",
91
+ type: "function",
92
92
  },
93
93
  {
94
94
  inputs: [
95
- { internalType: 'address', name: 'token', type: 'address' },
96
- { internalType: 'address', name: 'to', type: 'address' },
97
- { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
95
+ { internalType: "address", name: "token", type: "address" },
96
+ { internalType: "address", name: "to", type: "address" },
97
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
98
98
  ],
99
- name: 'swapOut',
99
+ name: "swapOut",
100
100
  outputs: [],
101
- stateMutability: 'payable',
102
- type: 'function',
101
+ stateMutability: "payable",
102
+ type: "function",
103
103
  },
104
104
  {
105
105
  inputs: [],
106
- name: 'swapRouter',
107
- outputs: [{ internalType: 'contract IUniswapRouterV3', name: '', type: 'address' }],
108
- stateMutability: 'view',
109
- type: 'function',
106
+ name: "swapRouter",
107
+ outputs: [{ internalType: "contract IUniswapRouterV3", name: "", type: "address" }],
108
+ stateMutability: "view",
109
+ type: "function",
110
110
  },
111
111
  {
112
112
  inputs: [],
113
- name: 'tokenTransferProxy',
113
+ name: "tokenTransferProxy",
114
114
  outputs: [
115
- { internalType: 'contract TSAggregatorTokenTransferProxy', name: '', type: 'address' },
115
+ { internalType: "contract TSAggregatorTokenTransferProxy", name: "", type: "address" },
116
116
  ],
117
- stateMutability: 'view',
118
- type: 'function',
117
+ stateMutability: "view",
118
+ type: "function",
119
119
  },
120
120
  {
121
121
  inputs: [],
122
- name: 'weth',
123
- outputs: [{ internalType: 'contract IWETH9', name: '', type: 'address' }],
124
- stateMutability: 'view',
125
- type: 'function',
122
+ name: "weth",
123
+ outputs: [{ internalType: "contract IWETH9", name: "", type: "address" }],
124
+ stateMutability: "view",
125
+ type: "function",
126
126
  },
127
- { stateMutability: 'payable', type: 'receive' },
127
+ { stateMutability: "payable", type: "receive" },
128
128
  ];