@tokenlon/v6-sdk 1.5.0 → 1.5.1-canary.c4f919f
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/addressBook.js +8 -8
- package/dist/cjs/addressBook.js.map +1 -1
- package/dist/cjs/constants/abis/index.js +4 -6
- package/dist/cjs/constants/abis/index.js.map +1 -1
- package/dist/cjs/constants/abis/{gsEIP712Types.js → types.js} +1 -5
- package/dist/cjs/constants/abis/types.js.map +1 -0
- package/dist/cjs/constants/addresses.js +2 -2
- package/dist/cjs/constants/common.js +1 -1
- package/dist/cjs/constants/index.js +1 -1
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/errors/base.js.map +1 -1
- package/dist/cjs/errors/request.js +1 -1
- package/dist/cjs/errors/request.js.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/limitOrder/index.js +2 -2
- package/dist/cjs/limitOrder/index.js.map +1 -1
- package/dist/cjs/permit/index.js +1 -1
- package/dist/cjs/permit/index.js.map +1 -1
- package/dist/cjs/price/index.js +2 -2
- package/dist/cjs/price/index.js.map +1 -1
- package/dist/cjs/profile/index.js +1 -1
- package/dist/cjs/profile/index.js.map +1 -1
- package/dist/cjs/sdk.js +1 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/cjs/service/contextHost.js +3 -3
- package/dist/cjs/service/contextHost.js.map +1 -1
- package/dist/cjs/signer/index.js +1 -1
- package/dist/cjs/signer/index.js.map +1 -1
- package/dist/cjs/staking/index.js +2 -2
- package/dist/cjs/staking/index.js.map +1 -1
- package/dist/cjs/swap/index.js +14 -163
- package/dist/cjs/swap/index.js.map +1 -1
- package/dist/cjs/swap/type.js.map +1 -1
- package/dist/cjs/utils/request/http.js +1 -1
- package/dist/cjs/utils/request/http.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/actions/public/getDecimals.js.map +1 -1
- package/dist/esm/addressBook.js +8 -9
- package/dist/esm/addressBook.js.map +1 -1
- package/dist/esm/constants/abis/index.js +4 -6
- package/dist/esm/constants/abis/index.js.map +1 -1
- package/dist/esm/constants/abis/{gsEIP712Types.js → types.js} +1 -5
- package/dist/esm/constants/abis/types.js.map +1 -0
- package/dist/esm/constants/addresses.js +2 -2
- package/dist/esm/constants/chains.js.map +1 -1
- package/dist/esm/constants/common.js +1 -1
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/index.js.map +1 -1
- package/dist/esm/errors/base.js.map +1 -1
- package/dist/esm/errors/request.js +1 -1
- package/dist/esm/errors/request.js.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/limitOrder/index.js +2 -4
- package/dist/esm/limitOrder/index.js.map +1 -1
- package/dist/esm/limitOrder/type.js +1 -2
- package/dist/esm/limitOrder/type.js.map +1 -1
- package/dist/esm/permit/index.js +1 -2
- package/dist/esm/permit/index.js.map +1 -1
- package/dist/esm/price/index.js +2 -2
- package/dist/esm/price/index.js.map +1 -1
- package/dist/esm/profile/index.js +1 -2
- package/dist/esm/profile/index.js.map +1 -1
- package/dist/esm/profile/type.js +1 -1
- package/dist/esm/profile/type.js.map +1 -1
- package/dist/esm/sdk.js +1 -2
- package/dist/esm/sdk.js.map +1 -1
- package/dist/esm/service/contextHost.js +3 -3
- package/dist/esm/service/contextHost.js.map +1 -1
- package/dist/esm/signer/index.js +1 -2
- package/dist/esm/signer/index.js.map +1 -1
- package/dist/esm/signer/type.js +1 -2
- package/dist/esm/signer/type.js.map +1 -1
- package/dist/esm/staking/index.js +2 -3
- package/dist/esm/staking/index.js.map +1 -1
- package/dist/esm/staking/type.js +1 -1
- package/dist/esm/staking/type.js.map +1 -1
- package/dist/esm/swap/index.js +14 -165
- package/dist/esm/swap/index.js.map +1 -1
- package/dist/esm/swap/type.js +0 -2
- package/dist/esm/swap/type.js.map +1 -1
- package/dist/esm/utils/request/http.js +1 -1
- package/dist/esm/utils/request/http.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/actions/public/getDecimals.d.ts.map +1 -1
- package/dist/types/addressBook.d.ts +1 -1
- package/dist/types/addressBook.d.ts.map +1 -1
- package/dist/types/constants/abis/index.d.ts +4 -6
- package/dist/types/constants/abis/index.d.ts.map +1 -1
- package/dist/types/constants/abis/{gsEIP712Types.d.ts → types.d.ts} +1 -1
- package/dist/types/constants/abis/types.d.ts.map +1 -0
- package/dist/types/constants/chains.d.ts.map +1 -1
- package/dist/types/constants/common.d.ts +1 -1
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/constants/index.d.ts.map +1 -1
- package/dist/types/errors/base.d.ts +1 -1
- package/dist/types/errors/base.d.ts.map +1 -1
- package/dist/types/errors/request.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/limitOrder/index.d.ts +3 -3
- package/dist/types/limitOrder/index.d.ts.map +1 -1
- package/dist/types/limitOrder/type.d.ts +2 -2
- package/dist/types/limitOrder/type.d.ts.map +1 -1
- package/dist/types/permit/index.d.ts +2 -2
- package/dist/types/permit/index.d.ts.map +1 -1
- package/dist/types/price/index.d.ts +1 -1
- package/dist/types/price/index.d.ts.map +1 -1
- package/dist/types/profile/index.d.ts +2 -2
- package/dist/types/profile/index.d.ts.map +1 -1
- package/dist/types/profile/type.d.ts +1 -1
- package/dist/types/profile/type.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +2 -2
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/service/contextHost.d.ts +2 -2
- package/dist/types/service/contextHost.d.ts.map +1 -1
- package/dist/types/signer/index.d.ts +2 -2
- package/dist/types/signer/index.d.ts.map +1 -1
- package/dist/types/signer/type.d.ts +2 -2
- package/dist/types/signer/type.d.ts.map +1 -1
- package/dist/types/staking/index.d.ts +1 -1
- package/dist/types/staking/index.d.ts.map +1 -1
- package/dist/types/staking/type.d.ts +3 -3
- package/dist/types/staking/type.d.ts.map +1 -1
- package/dist/types/swap/index.d.ts +4 -50
- package/dist/types/swap/index.d.ts.map +1 -1
- package/dist/types/swap/type.d.ts +2 -5
- package/dist/types/swap/type.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +29 -23
- package/dist/cjs/constants/abis/allowance.js +0 -22
- package/dist/cjs/constants/abis/allowance.js.map +0 -1
- package/dist/cjs/constants/abis/genericSwap.js +0 -220
- package/dist/cjs/constants/abis/genericSwap.js.map +0 -1
- package/dist/cjs/constants/abis/gsEIP712Types.js.map +0 -1
- package/dist/esm/constants/abis/allowance.js +0 -19
- package/dist/esm/constants/abis/allowance.js.map +0 -1
- package/dist/esm/constants/abis/genericSwap.js +0 -217
- package/dist/esm/constants/abis/genericSwap.js.map +0 -1
- package/dist/esm/constants/abis/gsEIP712Types.js.map +0 -1
- package/dist/types/constants/abis/allowance.d.ts +0 -16
- package/dist/types/constants/abis/allowance.d.ts.map +0 -1
- package/dist/types/constants/abis/genericSwap.d.ts +0 -284
- package/dist/types/constants/abis/genericSwap.d.ts.map +0 -1
- package/dist/types/constants/abis/gsEIP712Types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenlon/v6-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1-canary.c4f919f",
|
|
4
4
|
"packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81",
|
|
5
5
|
"repository": "consenlabs/tokenlon-v6-sdk",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"changeset": "changeset",
|
|
8
|
+
"changeset:release": "pnpm build && changeset publish",
|
|
9
|
+
"changeset:version": "changeset status && changeset version",
|
|
10
|
+
"preinstall": "npx only-allow pnpm",
|
|
11
|
+
"prepare": "npx simple-git-hooks",
|
|
12
|
+
"clean": "rimraf dist",
|
|
13
|
+
"build": "pnpm run clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
|
|
14
|
+
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --moduleResolution node --outDir dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
|
|
15
|
+
"build:esm": "tsc --project tsconfig.build.json --module nodenext --outDir dist/esm --removeComments && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'",
|
|
16
|
+
"build:types": "tsc --project tsconfig.build.json --module nodenext --emitDeclarationOnly --declarationDir dist/types --declaration --declarationMap ",
|
|
17
|
+
"test": "vitest dev",
|
|
18
|
+
"test:core": "ENV=staging CHAIN_ID=1 vitest run src/_test/core.spec.ts",
|
|
19
|
+
"test:swap": "ENV=staging CHAIN_ID=1 vitest run src/_test/trade/*.spec.ts",
|
|
20
|
+
"test:permit": "ENV=staging CHAIN_ID=1 vitest run src/_test/approve/permit2.spec.ts",
|
|
21
|
+
"test:typecheck": "SKIP_GLOBAL_SETUP=true vitest typecheck",
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"format": "biome format . --write",
|
|
24
|
+
"lint": "biome check .",
|
|
25
|
+
"lint:fix": "pnpm lint --unsafe"
|
|
26
|
+
},
|
|
6
27
|
"type": "module",
|
|
7
28
|
"main": "./dist/cjs/index.js",
|
|
8
29
|
"module": "./dist/esm/index.js",
|
|
@@ -27,6 +48,7 @@
|
|
|
27
48
|
"pre-commit": "pnpm format && pnpm lint:fix"
|
|
28
49
|
},
|
|
29
50
|
"devDependencies": {
|
|
51
|
+
"@biomejs/biome": "2.1.2",
|
|
30
52
|
"@changesets/changelog-github": "0.4.8",
|
|
31
53
|
"@changesets/cli": "2.26.1",
|
|
32
54
|
"@types/node": "20.2.5",
|
|
@@ -34,7 +56,6 @@
|
|
|
34
56
|
"dotenv": "16.3.1",
|
|
35
57
|
"fs-extra": "11.1.1",
|
|
36
58
|
"rimraf": "5.0.1",
|
|
37
|
-
"rome": "12.0.0",
|
|
38
59
|
"simple-git-hooks": "2.8.1",
|
|
39
60
|
"typescript": "5.4.5",
|
|
40
61
|
"vitest": "0.32.4"
|
|
@@ -44,26 +65,11 @@
|
|
|
44
65
|
"dayjs": "1.11.13",
|
|
45
66
|
"graphql": "16.10.0",
|
|
46
67
|
"graphql-request": "6.1.0",
|
|
47
|
-
"viem": "2.
|
|
68
|
+
"viem": "2.26.5"
|
|
48
69
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"preinstall": "npx only-allow pnpm",
|
|
54
|
-
"clean": "rimraf dist",
|
|
55
|
-
"build": "pnpm run clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
|
|
56
|
-
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --moduleResolution node --outDir dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
|
|
57
|
-
"build:esm": "tsc --project tsconfig.build.json --module nodenext --outDir dist/esm --removeComments && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'",
|
|
58
|
-
"build:types": "tsc --project tsconfig.build.json --module nodenext --emitDeclarationOnly --declarationDir dist/types --declaration --declarationMap ",
|
|
59
|
-
"test": "vitest dev",
|
|
60
|
-
"test:core": "ENV=staging CHAIN_ID=1 vitest run src/_test/core.spec.ts",
|
|
61
|
-
"test:swap": "ENV=staging CHAIN_ID=1 vitest run src/_test/trade/*.spec.ts",
|
|
62
|
-
"test:permit": "ENV=staging CHAIN_ID=1 vitest run src/_test/approve/permit2.spec.ts",
|
|
63
|
-
"test:typecheck": "SKIP_GLOBAL_SETUP=true vitest typecheck",
|
|
64
|
-
"typecheck": "tsc --noEmit",
|
|
65
|
-
"format": "rome format . --write",
|
|
66
|
-
"lint": "rome check .",
|
|
67
|
-
"lint:fix": "pnpm lint --apply-unsafe"
|
|
70
|
+
"pnpm": {
|
|
71
|
+
"overrides": {
|
|
72
|
+
"@tokenlon/v6-sdk": "workspace:*"
|
|
73
|
+
}
|
|
68
74
|
}
|
|
69
|
-
}
|
|
75
|
+
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ALLOWANCE_ABI = void 0;
|
|
4
|
-
exports.ALLOWANCE_ABI = [
|
|
5
|
-
{
|
|
6
|
-
type: 'function',
|
|
7
|
-
name: 'allowance',
|
|
8
|
-
stateMutability: 'view',
|
|
9
|
-
inputs: [
|
|
10
|
-
{
|
|
11
|
-
name: 'owner',
|
|
12
|
-
type: 'address',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: 'spender',
|
|
16
|
-
type: 'address',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
outputs: [{ type: 'uint256' }],
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
//# sourceMappingURL=allowance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowance.js","sourceRoot":"","sources":["../../../../src/constants/abis/allowance.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;CACO,CAAA"}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GENERIC_SWAP_ABI = void 0;
|
|
4
|
-
exports.GENERIC_SWAP_ABI = [
|
|
5
|
-
{
|
|
6
|
-
inputs: [
|
|
7
|
-
{ internalType: 'address', name: '_uniswapPermit2', type: 'address' },
|
|
8
|
-
{ internalType: 'address', name: '_allowanceTarget', type: 'address' },
|
|
9
|
-
],
|
|
10
|
-
stateMutability: 'nonpayable',
|
|
11
|
-
type: 'constructor',
|
|
12
|
-
},
|
|
13
|
-
{ inputs: [], name: 'AlreadyFilled', type: 'error' },
|
|
14
|
-
{ inputs: [], name: 'InsufficientOutput', type: 'error' },
|
|
15
|
-
{ inputs: [], name: 'InvalidMsgValue', type: 'error' },
|
|
16
|
-
{ inputs: [], name: 'InvalidSignature', type: 'error' },
|
|
17
|
-
{
|
|
18
|
-
anonymous: false,
|
|
19
|
-
inputs: [
|
|
20
|
-
{
|
|
21
|
-
indexed: true,
|
|
22
|
-
internalType: 'bytes32',
|
|
23
|
-
name: 'swapHash',
|
|
24
|
-
type: 'bytes32',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
indexed: true,
|
|
28
|
-
internalType: 'address',
|
|
29
|
-
name: 'maker',
|
|
30
|
-
type: 'address',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
indexed: true,
|
|
34
|
-
internalType: 'address',
|
|
35
|
-
name: 'taker',
|
|
36
|
-
type: 'address',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
indexed: false,
|
|
40
|
-
internalType: 'address',
|
|
41
|
-
name: 'recipient',
|
|
42
|
-
type: 'address',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
indexed: false,
|
|
46
|
-
internalType: 'address',
|
|
47
|
-
name: 'inputToken',
|
|
48
|
-
type: 'address',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
indexed: false,
|
|
52
|
-
internalType: 'uint256',
|
|
53
|
-
name: 'inputAmount',
|
|
54
|
-
type: 'uint256',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
indexed: false,
|
|
58
|
-
internalType: 'address',
|
|
59
|
-
name: 'outputToken',
|
|
60
|
-
type: 'address',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
indexed: false,
|
|
64
|
-
internalType: 'uint256',
|
|
65
|
-
name: 'outputAmount',
|
|
66
|
-
type: 'uint256',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
name: 'Swap',
|
|
70
|
-
type: 'event',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
inputs: [],
|
|
74
|
-
name: 'EIP191_HEADER',
|
|
75
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
76
|
-
stateMutability: 'view',
|
|
77
|
-
type: 'function',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
inputs: [],
|
|
81
|
-
name: 'EIP712_DOMAIN_NAME',
|
|
82
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
83
|
-
stateMutability: 'view',
|
|
84
|
-
type: 'function',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
inputs: [],
|
|
88
|
-
name: 'EIP712_DOMAIN_SEPARATOR',
|
|
89
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
90
|
-
stateMutability: 'view',
|
|
91
|
-
type: 'function',
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
inputs: [],
|
|
95
|
-
name: 'EIP712_DOMAIN_VERSION',
|
|
96
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
97
|
-
stateMutability: 'view',
|
|
98
|
-
type: 'function',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
inputs: [],
|
|
102
|
-
name: 'allowanceTarget',
|
|
103
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
104
|
-
stateMutability: 'view',
|
|
105
|
-
type: 'function',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
inputs: [],
|
|
109
|
-
name: 'originalChainId',
|
|
110
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
111
|
-
stateMutability: 'view',
|
|
112
|
-
type: 'function',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
inputs: [
|
|
116
|
-
{
|
|
117
|
-
components: [
|
|
118
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
119
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
120
|
-
{
|
|
121
|
-
internalType: 'uint256',
|
|
122
|
-
name: 'takerTokenAmount',
|
|
123
|
-
type: 'uint256',
|
|
124
|
-
},
|
|
125
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
126
|
-
{
|
|
127
|
-
internalType: 'uint256',
|
|
128
|
-
name: 'makerTokenAmount',
|
|
129
|
-
type: 'uint256',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
internalType: 'uint256',
|
|
133
|
-
name: 'minMakerTokenAmount',
|
|
134
|
-
type: 'uint256',
|
|
135
|
-
},
|
|
136
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
137
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
138
|
-
{
|
|
139
|
-
internalType: 'address payable',
|
|
140
|
-
name: 'recipient',
|
|
141
|
-
type: 'address',
|
|
142
|
-
},
|
|
143
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
144
|
-
],
|
|
145
|
-
internalType: 'struct GenericSwapData',
|
|
146
|
-
name: 'swapData',
|
|
147
|
-
type: 'tuple',
|
|
148
|
-
},
|
|
149
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
150
|
-
],
|
|
151
|
-
name: 'executeSwap',
|
|
152
|
-
outputs: [
|
|
153
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
154
|
-
],
|
|
155
|
-
stateMutability: 'payable',
|
|
156
|
-
type: 'function',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
inputs: [
|
|
160
|
-
{
|
|
161
|
-
components: [
|
|
162
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
163
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
164
|
-
{
|
|
165
|
-
internalType: 'uint256',
|
|
166
|
-
name: 'takerTokenAmount',
|
|
167
|
-
type: 'uint256',
|
|
168
|
-
},
|
|
169
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
170
|
-
{
|
|
171
|
-
internalType: 'uint256',
|
|
172
|
-
name: 'makerTokenAmount',
|
|
173
|
-
type: 'uint256',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
internalType: 'uint256',
|
|
177
|
-
name: 'minMakerTokenAmount',
|
|
178
|
-
type: 'uint256',
|
|
179
|
-
},
|
|
180
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
181
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
182
|
-
{
|
|
183
|
-
internalType: 'address payable',
|
|
184
|
-
name: 'recipient',
|
|
185
|
-
type: 'address',
|
|
186
|
-
},
|
|
187
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
188
|
-
],
|
|
189
|
-
internalType: 'struct GenericSwapData',
|
|
190
|
-
name: 'swapData',
|
|
191
|
-
type: 'tuple',
|
|
192
|
-
},
|
|
193
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
194
|
-
{ internalType: 'address', name: 'taker', type: 'address' },
|
|
195
|
-
{ internalType: 'bytes', name: 'takerSig', type: 'bytes' },
|
|
196
|
-
],
|
|
197
|
-
name: 'executeSwap',
|
|
198
|
-
outputs: [
|
|
199
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
200
|
-
],
|
|
201
|
-
stateMutability: 'payable',
|
|
202
|
-
type: 'function',
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
inputs: [],
|
|
206
|
-
name: 'originalEIP712DomainSeparator',
|
|
207
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
208
|
-
stateMutability: 'view',
|
|
209
|
-
type: 'function',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
inputs: [],
|
|
213
|
-
name: 'permit2',
|
|
214
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
215
|
-
stateMutability: 'view',
|
|
216
|
-
type: 'function',
|
|
217
|
-
},
|
|
218
|
-
{ stateMutability: 'payable', type: 'receive' },
|
|
219
|
-
];
|
|
220
|
-
//# sourceMappingURL=genericSwap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genericSwap.js","sourceRoot":"","sources":["../../../../src/constants/abis/genericSwap.ts"],"names":[],"mappings":";;;AAAa,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,EAAE;SACvE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE;IACpD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE;IACzD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE;IACtD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE;IACvD;QACE,SAAS,EAAE,KAAK;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AAE,SAAS,EAAE;SACnE;QACD,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,+BAA+B;QACrC,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACvC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gsEIP712Types.js","sourceRoot":"","sources":["../../../../src/constants/abis/gsEIP712Types.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,eAAe,EAAE;QACf;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,SAAS;SAChB;QACD;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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export const ALLOWANCE_ABI = [
|
|
2
|
-
{
|
|
3
|
-
type: 'function',
|
|
4
|
-
name: 'allowance',
|
|
5
|
-
stateMutability: 'view',
|
|
6
|
-
inputs: [
|
|
7
|
-
{
|
|
8
|
-
name: 'owner',
|
|
9
|
-
type: 'address',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
name: 'spender',
|
|
13
|
-
type: 'address',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
outputs: [{ type: 'uint256' }],
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
//# sourceMappingURL=allowance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowance.js","sourceRoot":"","sources":["../../../../src/constants/abis/allowance.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;CACO,CAAA"}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
export const GENERIC_SWAP_ABI = [
|
|
2
|
-
{
|
|
3
|
-
inputs: [
|
|
4
|
-
{ internalType: 'address', name: '_uniswapPermit2', type: 'address' },
|
|
5
|
-
{ internalType: 'address', name: '_allowanceTarget', type: 'address' },
|
|
6
|
-
],
|
|
7
|
-
stateMutability: 'nonpayable',
|
|
8
|
-
type: 'constructor',
|
|
9
|
-
},
|
|
10
|
-
{ inputs: [], name: 'AlreadyFilled', type: 'error' },
|
|
11
|
-
{ inputs: [], name: 'InsufficientOutput', type: 'error' },
|
|
12
|
-
{ inputs: [], name: 'InvalidMsgValue', type: 'error' },
|
|
13
|
-
{ inputs: [], name: 'InvalidSignature', type: 'error' },
|
|
14
|
-
{
|
|
15
|
-
anonymous: false,
|
|
16
|
-
inputs: [
|
|
17
|
-
{
|
|
18
|
-
indexed: true,
|
|
19
|
-
internalType: 'bytes32',
|
|
20
|
-
name: 'swapHash',
|
|
21
|
-
type: 'bytes32',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
indexed: true,
|
|
25
|
-
internalType: 'address',
|
|
26
|
-
name: 'maker',
|
|
27
|
-
type: 'address',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
indexed: true,
|
|
31
|
-
internalType: 'address',
|
|
32
|
-
name: 'taker',
|
|
33
|
-
type: 'address',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
indexed: false,
|
|
37
|
-
internalType: 'address',
|
|
38
|
-
name: 'recipient',
|
|
39
|
-
type: 'address',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
indexed: false,
|
|
43
|
-
internalType: 'address',
|
|
44
|
-
name: 'inputToken',
|
|
45
|
-
type: 'address',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
indexed: false,
|
|
49
|
-
internalType: 'uint256',
|
|
50
|
-
name: 'inputAmount',
|
|
51
|
-
type: 'uint256',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
indexed: false,
|
|
55
|
-
internalType: 'address',
|
|
56
|
-
name: 'outputToken',
|
|
57
|
-
type: 'address',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
indexed: false,
|
|
61
|
-
internalType: 'uint256',
|
|
62
|
-
name: 'outputAmount',
|
|
63
|
-
type: 'uint256',
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
name: 'Swap',
|
|
67
|
-
type: 'event',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
inputs: [],
|
|
71
|
-
name: 'EIP191_HEADER',
|
|
72
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
73
|
-
stateMutability: 'view',
|
|
74
|
-
type: 'function',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
inputs: [],
|
|
78
|
-
name: 'EIP712_DOMAIN_NAME',
|
|
79
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
80
|
-
stateMutability: 'view',
|
|
81
|
-
type: 'function',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
inputs: [],
|
|
85
|
-
name: 'EIP712_DOMAIN_SEPARATOR',
|
|
86
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
87
|
-
stateMutability: 'view',
|
|
88
|
-
type: 'function',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
inputs: [],
|
|
92
|
-
name: 'EIP712_DOMAIN_VERSION',
|
|
93
|
-
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
94
|
-
stateMutability: 'view',
|
|
95
|
-
type: 'function',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
inputs: [],
|
|
99
|
-
name: 'allowanceTarget',
|
|
100
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
101
|
-
stateMutability: 'view',
|
|
102
|
-
type: 'function',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
inputs: [],
|
|
106
|
-
name: 'originalChainId',
|
|
107
|
-
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
108
|
-
stateMutability: 'view',
|
|
109
|
-
type: 'function',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
inputs: [
|
|
113
|
-
{
|
|
114
|
-
components: [
|
|
115
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
116
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
117
|
-
{
|
|
118
|
-
internalType: 'uint256',
|
|
119
|
-
name: 'takerTokenAmount',
|
|
120
|
-
type: 'uint256',
|
|
121
|
-
},
|
|
122
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
123
|
-
{
|
|
124
|
-
internalType: 'uint256',
|
|
125
|
-
name: 'makerTokenAmount',
|
|
126
|
-
type: 'uint256',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
internalType: 'uint256',
|
|
130
|
-
name: 'minMakerTokenAmount',
|
|
131
|
-
type: 'uint256',
|
|
132
|
-
},
|
|
133
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
134
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
135
|
-
{
|
|
136
|
-
internalType: 'address payable',
|
|
137
|
-
name: 'recipient',
|
|
138
|
-
type: 'address',
|
|
139
|
-
},
|
|
140
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
141
|
-
],
|
|
142
|
-
internalType: 'struct GenericSwapData',
|
|
143
|
-
name: 'swapData',
|
|
144
|
-
type: 'tuple',
|
|
145
|
-
},
|
|
146
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
147
|
-
],
|
|
148
|
-
name: 'executeSwap',
|
|
149
|
-
outputs: [
|
|
150
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
151
|
-
],
|
|
152
|
-
stateMutability: 'payable',
|
|
153
|
-
type: 'function',
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
inputs: [
|
|
157
|
-
{
|
|
158
|
-
components: [
|
|
159
|
-
{ internalType: 'address payable', name: 'maker', type: 'address' },
|
|
160
|
-
{ internalType: 'address', name: 'takerToken', type: 'address' },
|
|
161
|
-
{
|
|
162
|
-
internalType: 'uint256',
|
|
163
|
-
name: 'takerTokenAmount',
|
|
164
|
-
type: 'uint256',
|
|
165
|
-
},
|
|
166
|
-
{ internalType: 'address', name: 'makerToken', type: 'address' },
|
|
167
|
-
{
|
|
168
|
-
internalType: 'uint256',
|
|
169
|
-
name: 'makerTokenAmount',
|
|
170
|
-
type: 'uint256',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
internalType: 'uint256',
|
|
174
|
-
name: 'minMakerTokenAmount',
|
|
175
|
-
type: 'uint256',
|
|
176
|
-
},
|
|
177
|
-
{ internalType: 'uint256', name: 'expiry', type: 'uint256' },
|
|
178
|
-
{ internalType: 'uint256', name: 'salt', type: 'uint256' },
|
|
179
|
-
{
|
|
180
|
-
internalType: 'address payable',
|
|
181
|
-
name: 'recipient',
|
|
182
|
-
type: 'address',
|
|
183
|
-
},
|
|
184
|
-
{ internalType: 'bytes', name: 'strategyData', type: 'bytes' },
|
|
185
|
-
],
|
|
186
|
-
internalType: 'struct GenericSwapData',
|
|
187
|
-
name: 'swapData',
|
|
188
|
-
type: 'tuple',
|
|
189
|
-
},
|
|
190
|
-
{ internalType: 'bytes', name: 'takerTokenPermit', type: 'bytes' },
|
|
191
|
-
{ internalType: 'address', name: 'taker', type: 'address' },
|
|
192
|
-
{ internalType: 'bytes', name: 'takerSig', type: 'bytes' },
|
|
193
|
-
],
|
|
194
|
-
name: 'executeSwap',
|
|
195
|
-
outputs: [
|
|
196
|
-
{ internalType: 'uint256', name: 'returnAmount', type: 'uint256' },
|
|
197
|
-
],
|
|
198
|
-
stateMutability: 'payable',
|
|
199
|
-
type: 'function',
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
inputs: [],
|
|
203
|
-
name: 'originalEIP712DomainSeparator',
|
|
204
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
205
|
-
stateMutability: 'view',
|
|
206
|
-
type: 'function',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
inputs: [],
|
|
210
|
-
name: 'permit2',
|
|
211
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
212
|
-
stateMutability: 'view',
|
|
213
|
-
type: 'function',
|
|
214
|
-
},
|
|
215
|
-
{ stateMutability: 'payable', type: 'receive' },
|
|
216
|
-
];
|
|
217
|
-
//# sourceMappingURL=genericSwap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genericSwap.js","sourceRoot":"","sources":["../../../../src/constants/abis/genericSwap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,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,EAAE;SACvE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE;IACpD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE;IACzD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE;IACtD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE;IACvD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAA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M,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACvC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gsEIP712Types.js","sourceRoot":"","sources":["../../../../src/constants/abis/gsEIP712Types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,eAAe,EAAE;QACf;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,SAAS;SAChB;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,SAAS;SAChB;QACD;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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const ALLOWANCE_ABI: readonly [{
|
|
2
|
-
readonly type: "function";
|
|
3
|
-
readonly name: "allowance";
|
|
4
|
-
readonly stateMutability: "view";
|
|
5
|
-
readonly inputs: readonly [{
|
|
6
|
-
readonly name: "owner";
|
|
7
|
-
readonly type: "address";
|
|
8
|
-
}, {
|
|
9
|
-
readonly name: "spender";
|
|
10
|
-
readonly type: "address";
|
|
11
|
-
}];
|
|
12
|
-
readonly outputs: readonly [{
|
|
13
|
-
readonly type: "uint256";
|
|
14
|
-
}];
|
|
15
|
-
}];
|
|
16
|
-
//# sourceMappingURL=allowance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowance.d.ts","sourceRoot":"","sources":["../../../../src/constants/abis/allowance.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;EAiBhB,CAAA"}
|