@tokenlon/v6-sdk 0.0.1-canary.ac16b7b → 0.0.1-canary.bc0ceb7
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.
- package/dist/cjs/constants.js +228 -231
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/serviceHost.js +3 -3
- package/dist/cjs/serviceHost.js.map +1 -1
- package/dist/cjs/swap/index.js +101 -30
- package/dist/cjs/swap/index.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/constants.js +227 -230
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/serviceHost.js +3 -3
- package/dist/esm/serviceHost.js.map +1 -1
- package/dist/esm/swap/index.js +100 -29
- package/dist/esm/swap/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/constants.d.ts +244 -265
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/swap/index.d.ts +15 -3
- package/dist/types/swap/index.d.ts.map +1 -1
- package/dist/types/swap/type.d.ts +9 -5
- package/dist/types/swap/type.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/constants.js
CHANGED
|
@@ -1,235 +1,237 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EIP712_TYPES = exports.GENERIC_SWAP_ABI = exports.ALL_SUPPORTED_CHAINS = exports.SupportedChains = exports.genericSwapAddress = exports.allowanceTargetAddress = exports.wethAddress = exports.nullAddress = void 0;
|
|
4
4
|
const chains_1 = require("viem/chains");
|
|
5
5
|
exports.nullAddress = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
inputs: [
|
|
13
|
-
{ internalType: 'address', name: '_uniswapPermit2', type: 'address' },
|
|
14
|
-
{ internalType: 'address', name: '_allowanceTarget', type: 'address' },
|
|
15
|
-
],
|
|
16
|
-
stateMutability: 'nonpayable',
|
|
17
|
-
type: 'constructor',
|
|
18
|
-
},
|
|
19
|
-
{ inputs: [], name: 'AlreadyFilled', type: 'error' },
|
|
20
|
-
{ inputs: [], name: 'InsufficientOutput', type: 'error' },
|
|
21
|
-
{ inputs: [], name: 'InvalidMsgValue', type: 'error' },
|
|
22
|
-
{ inputs: [], name: 'InvalidSignature', type: 'error' },
|
|
23
|
-
{
|
|
24
|
-
anonymous: false,
|
|
25
|
-
inputs: [
|
|
26
|
-
{
|
|
27
|
-
indexed: true,
|
|
28
|
-
internalType: 'bytes32',
|
|
29
|
-
name: 'swapHash',
|
|
30
|
-
type: 'bytes32',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
indexed: true,
|
|
34
|
-
internalType: 'address',
|
|
35
|
-
name: 'maker',
|
|
36
|
-
type: 'address',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
indexed: true,
|
|
40
|
-
internalType: 'address',
|
|
41
|
-
name: 'taker',
|
|
42
|
-
type: 'address',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
indexed: false,
|
|
46
|
-
internalType: 'address',
|
|
47
|
-
name: 'recipient',
|
|
48
|
-
type: 'address',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
indexed: false,
|
|
52
|
-
internalType: 'address',
|
|
53
|
-
name: 'inputToken',
|
|
54
|
-
type: 'address',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
indexed: false,
|
|
58
|
-
internalType: 'uint256',
|
|
59
|
-
name: 'inputAmount',
|
|
60
|
-
type: 'uint256',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
indexed: false,
|
|
64
|
-
internalType: 'address',
|
|
65
|
-
name: 'outputToken',
|
|
66
|
-
type: 'address',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
indexed: false,
|
|
70
|
-
internalType: 'uint256',
|
|
71
|
-
name: 'outputAmount',
|
|
72
|
-
type: 'uint256',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
name: 'Swap',
|
|
76
|
-
type: 'event',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
inputs: [],
|
|
80
|
-
name: 'EIP191_HEADER',
|
|
81
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
82
|
-
stateMutability: 'view',
|
|
83
|
-
type: 'function',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
inputs: [],
|
|
87
|
-
name: 'EIP712_DOMAIN_NAME',
|
|
88
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
89
|
-
stateMutability: 'view',
|
|
90
|
-
type: 'function',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
inputs: [],
|
|
94
|
-
name: 'EIP712_DOMAIN_SEPARATOR',
|
|
95
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
96
|
-
stateMutability: 'view',
|
|
97
|
-
type: 'function',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
inputs: [],
|
|
101
|
-
name: 'EIP712_DOMAIN_VERSION',
|
|
102
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
103
|
-
stateMutability: 'view',
|
|
104
|
-
type: 'function',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
inputs: [],
|
|
108
|
-
name: 'allowanceTarget',
|
|
109
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
110
|
-
stateMutability: 'view',
|
|
111
|
-
type: 'function',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
inputs: [],
|
|
115
|
-
name: 'originalChainId',
|
|
116
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
117
|
-
stateMutability: 'view',
|
|
118
|
-
type: 'function',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
inputs: [
|
|
122
|
-
{
|
|
123
|
-
components: [
|
|
124
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
125
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
126
|
-
{
|
|
127
|
-
internalType: 'uint256',
|
|
128
|
-
name: 'takerTokenAmount',
|
|
129
|
-
type: 'uint256',
|
|
130
|
-
},
|
|
131
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
132
|
-
{
|
|
133
|
-
internalType: 'uint256',
|
|
134
|
-
name: 'makerTokenAmount',
|
|
135
|
-
type: 'uint256',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
internalType: 'uint256',
|
|
139
|
-
name: 'minMakerTokenAmount',
|
|
140
|
-
type: 'uint256',
|
|
141
|
-
},
|
|
142
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
143
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
144
|
-
{
|
|
145
|
-
internalType: 'address payable',
|
|
146
|
-
name: 'recipient',
|
|
147
|
-
type: 'address',
|
|
148
|
-
},
|
|
149
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
150
|
-
],
|
|
151
|
-
internalType: 'struct GenericSwapData',
|
|
152
|
-
name: 'swapData',
|
|
153
|
-
type: 'tuple',
|
|
154
|
-
},
|
|
155
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
156
|
-
],
|
|
157
|
-
name: 'executeSwap',
|
|
158
|
-
outputs: [
|
|
159
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
160
|
-
],
|
|
161
|
-
stateMutability: 'payable',
|
|
162
|
-
type: 'function',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
inputs: [
|
|
166
|
-
{
|
|
167
|
-
components: [
|
|
168
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
169
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
170
|
-
{
|
|
171
|
-
internalType: 'uint256',
|
|
172
|
-
name: 'takerTokenAmount',
|
|
173
|
-
type: 'uint256',
|
|
174
|
-
},
|
|
175
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
176
|
-
{
|
|
177
|
-
internalType: 'uint256',
|
|
178
|
-
name: 'makerTokenAmount',
|
|
179
|
-
type: 'uint256',
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
internalType: 'uint256',
|
|
183
|
-
name: 'minMakerTokenAmount',
|
|
184
|
-
type: 'uint256',
|
|
185
|
-
},
|
|
186
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
187
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
188
|
-
{
|
|
189
|
-
internalType: 'address payable',
|
|
190
|
-
name: 'recipient',
|
|
191
|
-
type: 'address',
|
|
192
|
-
},
|
|
193
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
194
|
-
],
|
|
195
|
-
internalType: 'struct GenericSwapData',
|
|
196
|
-
name: 'swapData',
|
|
197
|
-
type: 'tuple',
|
|
198
|
-
},
|
|
199
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
200
|
-
{ internalType: 'address', name: 'taker', type: 'address' },
|
|
201
|
-
{ internalType: 'bytes', name: 'takerSig', type: 'bytes' },
|
|
202
|
-
],
|
|
203
|
-
name: 'executeSwap',
|
|
204
|
-
outputs: [
|
|
205
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
206
|
-
],
|
|
207
|
-
stateMutability: 'payable',
|
|
208
|
-
type: 'function',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
inputs: [],
|
|
212
|
-
name: 'originalEIP712DomainSeparator',
|
|
213
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
214
|
-
stateMutability: 'view',
|
|
215
|
-
type: 'function',
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
inputs: [],
|
|
219
|
-
name: 'permit2',
|
|
220
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
221
|
-
stateMutability: 'view',
|
|
222
|
-
type: 'function',
|
|
223
|
-
},
|
|
224
|
-
{ stateMutability: 'payable', type: 'receive' },
|
|
225
|
-
],
|
|
6
|
+
exports.wethAddress = {
|
|
7
|
+
1: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
8
|
+
5: '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6',
|
|
9
|
+
};
|
|
10
|
+
exports.allowanceTargetAddress = {
|
|
11
|
+
5: '0x7C0016dD693494325EB6CAfE5Abef0352EA5841e',
|
|
226
12
|
};
|
|
227
|
-
exports.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
chainId: 1,
|
|
231
|
-
verifyingContract: exports.genericSwapContractConfig.address,
|
|
13
|
+
exports.genericSwapAddress = {
|
|
14
|
+
1: '0x1C8E96B59b8611fFe635c94F58cc22760cb34e28',
|
|
15
|
+
5: '0xf604B9934098C3B8475B63d9E368FF1ACdC5f7B7',
|
|
232
16
|
};
|
|
17
|
+
exports.SupportedChains = [chains_1.mainnet.id, chains_1.goerli.id];
|
|
18
|
+
exports.ALL_SUPPORTED_CHAINS = [chains_1.mainnet, chains_1.goerli];
|
|
19
|
+
exports.GENERIC_SWAP_ABI = [
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{ internalType: 'address', name: '_uniswapPermit2', type: 'address' },
|
|
23
|
+
{ internalType: 'address', name: '_allowanceTarget', type: 'address' },
|
|
24
|
+
],
|
|
25
|
+
stateMutability: 'nonpayable',
|
|
26
|
+
type: 'constructor',
|
|
27
|
+
},
|
|
28
|
+
{ inputs: [], name: 'AlreadyFilled', type: 'error' },
|
|
29
|
+
{ inputs: [], name: 'InsufficientOutput', type: 'error' },
|
|
30
|
+
{ inputs: [], name: 'InvalidMsgValue', type: 'error' },
|
|
31
|
+
{ inputs: [], name: 'InvalidSignature', type: 'error' },
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: 'bytes32',
|
|
38
|
+
name: 'swapHash',
|
|
39
|
+
type: 'bytes32',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
indexed: true,
|
|
43
|
+
internalType: 'address',
|
|
44
|
+
name: 'maker',
|
|
45
|
+
type: 'address',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
indexed: true,
|
|
49
|
+
internalType: 'address',
|
|
50
|
+
name: 'taker',
|
|
51
|
+
type: 'address',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
indexed: false,
|
|
55
|
+
internalType: 'address',
|
|
56
|
+
name: 'recipient',
|
|
57
|
+
type: 'address',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: false,
|
|
61
|
+
internalType: 'address',
|
|
62
|
+
name: 'inputToken',
|
|
63
|
+
type: 'address',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
indexed: false,
|
|
67
|
+
internalType: 'uint256',
|
|
68
|
+
name: 'inputAmount',
|
|
69
|
+
type: 'uint256',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
indexed: false,
|
|
73
|
+
internalType: 'address',
|
|
74
|
+
name: 'outputToken',
|
|
75
|
+
type: 'address',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
indexed: false,
|
|
79
|
+
internalType: 'uint256',
|
|
80
|
+
name: 'outputAmount',
|
|
81
|
+
type: 'uint256',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: 'Swap',
|
|
85
|
+
type: 'event',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: 'EIP191_HEADER',
|
|
90
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
91
|
+
stateMutability: 'view',
|
|
92
|
+
type: 'function',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [],
|
|
96
|
+
name: 'EIP712_DOMAIN_NAME',
|
|
97
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
98
|
+
stateMutability: 'view',
|
|
99
|
+
type: 'function',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
inputs: [],
|
|
103
|
+
name: 'EIP712_DOMAIN_SEPARATOR',
|
|
104
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
105
|
+
stateMutability: 'view',
|
|
106
|
+
type: 'function',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [],
|
|
110
|
+
name: 'EIP712_DOMAIN_VERSION',
|
|
111
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
112
|
+
stateMutability: 'view',
|
|
113
|
+
type: 'function',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
inputs: [],
|
|
117
|
+
name: 'allowanceTarget',
|
|
118
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
119
|
+
stateMutability: 'view',
|
|
120
|
+
type: 'function',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [],
|
|
124
|
+
name: 'originalChainId',
|
|
125
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
126
|
+
stateMutability: 'view',
|
|
127
|
+
type: 'function',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
components: [
|
|
133
|
+
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
134
|
+
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
135
|
+
{
|
|
136
|
+
internalType: 'uint256',
|
|
137
|
+
name: 'takerTokenAmount',
|
|
138
|
+
type: 'uint256',
|
|
139
|
+
},
|
|
140
|
+
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
141
|
+
{
|
|
142
|
+
internalType: 'uint256',
|
|
143
|
+
name: 'makerTokenAmount',
|
|
144
|
+
type: 'uint256',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
internalType: 'uint256',
|
|
148
|
+
name: 'minMakerTokenAmount',
|
|
149
|
+
type: 'uint256',
|
|
150
|
+
},
|
|
151
|
+
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
152
|
+
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
153
|
+
{
|
|
154
|
+
internalType: 'address payable',
|
|
155
|
+
name: 'recipient',
|
|
156
|
+
type: 'address',
|
|
157
|
+
},
|
|
158
|
+
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
159
|
+
],
|
|
160
|
+
internalType: 'struct GenericSwapData',
|
|
161
|
+
name: 'swapData',
|
|
162
|
+
type: 'tuple',
|
|
163
|
+
},
|
|
164
|
+
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
165
|
+
],
|
|
166
|
+
name: 'executeSwap',
|
|
167
|
+
outputs: [
|
|
168
|
+
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
169
|
+
],
|
|
170
|
+
stateMutability: 'payable',
|
|
171
|
+
type: 'function',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
components: [
|
|
177
|
+
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
178
|
+
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
179
|
+
{
|
|
180
|
+
internalType: 'uint256',
|
|
181
|
+
name: 'takerTokenAmount',
|
|
182
|
+
type: 'uint256',
|
|
183
|
+
},
|
|
184
|
+
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
185
|
+
{
|
|
186
|
+
internalType: 'uint256',
|
|
187
|
+
name: 'makerTokenAmount',
|
|
188
|
+
type: 'uint256',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: 'uint256',
|
|
192
|
+
name: 'minMakerTokenAmount',
|
|
193
|
+
type: 'uint256',
|
|
194
|
+
},
|
|
195
|
+
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
196
|
+
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
197
|
+
{
|
|
198
|
+
internalType: 'address payable',
|
|
199
|
+
name: 'recipient',
|
|
200
|
+
type: 'address',
|
|
201
|
+
},
|
|
202
|
+
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
203
|
+
],
|
|
204
|
+
internalType: 'struct GenericSwapData',
|
|
205
|
+
name: 'swapData',
|
|
206
|
+
type: 'tuple',
|
|
207
|
+
},
|
|
208
|
+
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
209
|
+
{ internalType: 'address', name: 'taker', type: 'address' },
|
|
210
|
+
{ internalType: 'bytes', name: 'takerSig', type: 'bytes' },
|
|
211
|
+
],
|
|
212
|
+
name: 'executeSwap',
|
|
213
|
+
outputs: [
|
|
214
|
+
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
215
|
+
],
|
|
216
|
+
stateMutability: 'payable',
|
|
217
|
+
type: 'function',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [],
|
|
221
|
+
name: 'originalEIP712DomainSeparator',
|
|
222
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
223
|
+
stateMutability: 'view',
|
|
224
|
+
type: 'function',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
inputs: [],
|
|
228
|
+
name: 'permit2',
|
|
229
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
230
|
+
stateMutability: 'view',
|
|
231
|
+
type: 'function',
|
|
232
|
+
},
|
|
233
|
+
{ stateMutability: 'payable', type: 'receive' },
|
|
234
|
+
];
|
|
233
235
|
exports.EIP712_TYPES = {
|
|
234
236
|
GenericSwapData: [
|
|
235
237
|
{
|
|
@@ -274,9 +276,4 @@ exports.EIP712_TYPES = {
|
|
|
274
276
|
},
|
|
275
277
|
],
|
|
276
278
|
};
|
|
277
|
-
exports.EIP712_TYPED = {
|
|
278
|
-
domain: exports.EIP712_DOMAIN,
|
|
279
|
-
types: exports.EIP712_TYPES,
|
|
280
|
-
primaryType: 'GenericSwapData',
|
|
281
|
-
};
|
|
282
279
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAEhC,QAAA,WAAW,GAAG,4CAAqD,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAEhC,QAAA,WAAW,GAAG,4CAAqD,CAAA;AACnE,QAAA,WAAW,GAAkC;IACxD,CAAC,EAAE,4CAA4C;IAC/C,CAAC,EAAE,4CAA4C;CAChD,CAAA;AAGY,QAAA,sBAAsB,GAAkC;IACnE,CAAC,EAAE,4CAA4C;CAChD,CAAA;AAEY,QAAA,kBAAkB,GAAkC;IAC/D,CAAC,EAAE,4CAA4C;IAC/C,CAAC,EAAE,4CAA4C;CAChD,CAAA;AAEY,QAAA,eAAe,GAAG,CAAC,gBAAO,CAAC,EAAE,EAAE,eAAM,CAAC,EAAE,CAAU,CAAA;AAElD,QAAA,oBAAoB,GAAG,CAAC,gBAAO,EAAE,eAAM,CAAC,CAAA;AAExC,QAAA,gBAAgB,GAAG;IAC9B;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE;YACrE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,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ACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,OAAO;SACd;KACF;CACF,CAAA"}
|
package/dist/cjs/serviceHost.js
CHANGED
|
@@ -13,11 +13,11 @@ exports.httpServiceHost = {
|
|
|
13
13
|
};
|
|
14
14
|
exports.jsonRpcServiceHost = {
|
|
15
15
|
[chains_1.goerli.id]: {
|
|
16
|
-
default: 'https://tokenlon-market.imdev.works',
|
|
16
|
+
default: 'https://tokenlon-market.imdev.works/rpc',
|
|
17
17
|
},
|
|
18
18
|
[chains_1.mainnet.id]: {
|
|
19
|
-
default: 'https://tokenlon-market.tokenlon.im',
|
|
20
|
-
staging: 'https://tokenlon-market.imstaging.works',
|
|
19
|
+
default: 'https://tokenlon-market.tokenlon.im/rpc',
|
|
20
|
+
staging: 'https://tokenlon-market.imstaging.works/rpc',
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=serviceHost.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceHost.js","sourceRoot":"","sources":["../../src/serviceHost.ts"],"names":[],"mappings":";;;AACA,wCAA6C;AAOhC,QAAA,eAAe,GAAwC;IAClE,CAAC,eAAM,CAAC,EAAE,CAAC,EAAE;QACX,OAAO,EAAE,yBAAyB;KACnC;IACD,CAAC,gBAAO,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE,6BAA6B;KACvC;CACF,CAAA;AAEY,QAAA,kBAAkB,GAAwC;IACrE,CAAC,eAAM,CAAC,EAAE,CAAC,EAAE;QACX,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"serviceHost.js","sourceRoot":"","sources":["../../src/serviceHost.ts"],"names":[],"mappings":";;;AACA,wCAA6C;AAOhC,QAAA,eAAe,GAAwC;IAClE,CAAC,eAAM,CAAC,EAAE,CAAC,EAAE;QACX,OAAO,EAAE,yBAAyB;KACnC;IACD,CAAC,gBAAO,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE,6BAA6B;KACvC;CACF,CAAA;AAEY,QAAA,kBAAkB,GAAwC;IACrE,CAAC,eAAM,CAAC,EAAE,CAAC,EAAE;QACX,OAAO,EAAE,yCAAyC;KACnD;IACD,CAAC,gBAAO,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,yCAAyC;QAClD,OAAO,EAAE,6CAA6C;KACvD;CACF,CAAA"}
|