@gearbox-protocol/sdk 14.11.2 → 14.11.3
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/dev/abi.js +162 -6
- package/dist/esm/dev/abi.js +162 -6
- package/dist/types/dev/abi.d.ts +98 -16
- package/package.json +1 -1
package/dist/cjs/dev/abi.js
CHANGED
|
@@ -36,12 +36,168 @@ const iDegenNftv2Abi = (0, import_viem.parseAbi)([
|
|
|
36
36
|
"function minter() external view returns (address)",
|
|
37
37
|
"function mint(address to, uint256 amount) external"
|
|
38
38
|
]);
|
|
39
|
-
const faucetAbi =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const faucetAbi = [
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
name: "assets",
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
name: "",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
internalType: "uint256"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
name: "",
|
|
53
|
+
type: "address",
|
|
54
|
+
internalType: "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
stateMutability: "view"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "function",
|
|
61
|
+
name: "claim",
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
name: "amountUSD",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
internalType: "uint256"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
outputs: [],
|
|
70
|
+
stateMutability: "nonpayable"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "function",
|
|
74
|
+
name: "claim",
|
|
75
|
+
inputs: [],
|
|
76
|
+
outputs: [],
|
|
77
|
+
stateMutability: "nonpayable"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "function",
|
|
81
|
+
name: "claim",
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
name: "claims",
|
|
85
|
+
type: "tuple[]",
|
|
86
|
+
internalType: "struct TokenClaim[]",
|
|
87
|
+
components: [
|
|
88
|
+
{
|
|
89
|
+
name: "token",
|
|
90
|
+
type: "address",
|
|
91
|
+
internalType: "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "amount",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
internalType: "uint256"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
outputs: [],
|
|
102
|
+
stateMutability: "nonpayable"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "getAssets",
|
|
107
|
+
inputs: [],
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
name: "",
|
|
111
|
+
type: "address[]",
|
|
112
|
+
internalType: "address[]"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "function",
|
|
119
|
+
name: "hasClaimed",
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
name: "user",
|
|
123
|
+
type: "address",
|
|
124
|
+
internalType: "address"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
outputs: [
|
|
128
|
+
{
|
|
129
|
+
name: "",
|
|
130
|
+
type: "bool",
|
|
131
|
+
internalType: "bool"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
stateMutability: "view"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: "function",
|
|
138
|
+
name: "minAmountUSD",
|
|
139
|
+
inputs: [],
|
|
140
|
+
outputs: [
|
|
141
|
+
{
|
|
142
|
+
name: "",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
internalType: "uint256"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
stateMutability: "view"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: "function",
|
|
151
|
+
name: "owner",
|
|
152
|
+
inputs: [],
|
|
153
|
+
outputs: [
|
|
154
|
+
{
|
|
155
|
+
name: "",
|
|
156
|
+
type: "address",
|
|
157
|
+
internalType: "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
stateMutability: "view"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "function",
|
|
164
|
+
name: "prices",
|
|
165
|
+
inputs: [
|
|
166
|
+
{
|
|
167
|
+
name: "",
|
|
168
|
+
type: "address",
|
|
169
|
+
internalType: "address"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
outputs: [
|
|
173
|
+
{
|
|
174
|
+
name: "",
|
|
175
|
+
type: "uint256",
|
|
176
|
+
internalType: "uint256"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
stateMutability: "view"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
type: "function",
|
|
183
|
+
name: "scales",
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
name: "",
|
|
187
|
+
type: "address",
|
|
188
|
+
internalType: "address"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
name: "",
|
|
194
|
+
type: "uint256",
|
|
195
|
+
internalType: "uint256"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view"
|
|
199
|
+
}
|
|
200
|
+
];
|
|
45
201
|
const iOnchainExecutionIdAbi = [
|
|
46
202
|
{
|
|
47
203
|
type: "function",
|
package/dist/esm/dev/abi.js
CHANGED
|
@@ -9,12 +9,168 @@ const iDegenNftv2Abi = parseAbi([
|
|
|
9
9
|
"function minter() external view returns (address)",
|
|
10
10
|
"function mint(address to, uint256 amount) external"
|
|
11
11
|
]);
|
|
12
|
-
const faucetAbi =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const faucetAbi = [
|
|
13
|
+
{
|
|
14
|
+
type: "function",
|
|
15
|
+
name: "assets",
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
name: "",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
internalType: "uint256"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
outputs: [
|
|
24
|
+
{
|
|
25
|
+
name: "",
|
|
26
|
+
type: "address",
|
|
27
|
+
internalType: "address"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "claim",
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
name: "amountUSD",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
internalType: "uint256"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
outputs: [],
|
|
43
|
+
stateMutability: "nonpayable"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: "function",
|
|
47
|
+
name: "claim",
|
|
48
|
+
inputs: [],
|
|
49
|
+
outputs: [],
|
|
50
|
+
stateMutability: "nonpayable"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "claim",
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
name: "claims",
|
|
58
|
+
type: "tuple[]",
|
|
59
|
+
internalType: "struct TokenClaim[]",
|
|
60
|
+
components: [
|
|
61
|
+
{
|
|
62
|
+
name: "token",
|
|
63
|
+
type: "address",
|
|
64
|
+
internalType: "address"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "amount",
|
|
68
|
+
type: "uint256",
|
|
69
|
+
internalType: "uint256"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
outputs: [],
|
|
75
|
+
stateMutability: "nonpayable"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "getAssets",
|
|
80
|
+
inputs: [],
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
name: "",
|
|
84
|
+
type: "address[]",
|
|
85
|
+
internalType: "address[]"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
stateMutability: "view"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "function",
|
|
92
|
+
name: "hasClaimed",
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
name: "user",
|
|
96
|
+
type: "address",
|
|
97
|
+
internalType: "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
name: "",
|
|
103
|
+
type: "bool",
|
|
104
|
+
internalType: "bool"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
stateMutability: "view"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: "function",
|
|
111
|
+
name: "minAmountUSD",
|
|
112
|
+
inputs: [],
|
|
113
|
+
outputs: [
|
|
114
|
+
{
|
|
115
|
+
name: "",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
internalType: "uint256"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
stateMutability: "view"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: "function",
|
|
124
|
+
name: "owner",
|
|
125
|
+
inputs: [],
|
|
126
|
+
outputs: [
|
|
127
|
+
{
|
|
128
|
+
name: "",
|
|
129
|
+
type: "address",
|
|
130
|
+
internalType: "address"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
stateMutability: "view"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: "function",
|
|
137
|
+
name: "prices",
|
|
138
|
+
inputs: [
|
|
139
|
+
{
|
|
140
|
+
name: "",
|
|
141
|
+
type: "address",
|
|
142
|
+
internalType: "address"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
outputs: [
|
|
146
|
+
{
|
|
147
|
+
name: "",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
internalType: "uint256"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
stateMutability: "view"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: "function",
|
|
156
|
+
name: "scales",
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
name: "",
|
|
160
|
+
type: "address",
|
|
161
|
+
internalType: "address"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
outputs: [
|
|
165
|
+
{
|
|
166
|
+
name: "",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
internalType: "uint256"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
stateMutability: "view"
|
|
172
|
+
}
|
|
173
|
+
];
|
|
18
174
|
const iOnchainExecutionIdAbi = [
|
|
19
175
|
{
|
|
20
176
|
type: "function",
|
package/dist/types/dev/abi.d.ts
CHANGED
|
@@ -38,44 +38,126 @@ export declare const iDegenNftv2Abi: readonly [{
|
|
|
38
38
|
readonly outputs: readonly [];
|
|
39
39
|
}];
|
|
40
40
|
export declare const faucetAbi: readonly [{
|
|
41
|
-
readonly name: "minAmountUSD";
|
|
42
41
|
readonly type: "function";
|
|
43
|
-
readonly
|
|
44
|
-
readonly inputs: readonly [
|
|
45
|
-
|
|
42
|
+
readonly name: "assets";
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly name: "";
|
|
46
45
|
readonly type: "uint256";
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
47
|
}];
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
48
54
|
}, {
|
|
49
|
-
readonly name: "claim";
|
|
50
55
|
readonly type: "function";
|
|
51
|
-
readonly stateMutability: "nonpayable";
|
|
52
|
-
readonly inputs: readonly [];
|
|
53
|
-
readonly outputs: readonly [];
|
|
54
|
-
}, {
|
|
55
56
|
readonly name: "claim";
|
|
56
|
-
readonly type: "function";
|
|
57
|
-
readonly stateMutability: "nonpayable";
|
|
58
57
|
readonly inputs: readonly [{
|
|
59
|
-
readonly type: "uint256";
|
|
60
58
|
readonly name: "amountUSD";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
61
|
}];
|
|
62
62
|
readonly outputs: readonly [];
|
|
63
|
+
readonly stateMutability: "nonpayable";
|
|
63
64
|
}, {
|
|
64
|
-
readonly name: "claim";
|
|
65
65
|
readonly type: "function";
|
|
66
|
+
readonly name: "claim";
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly outputs: readonly [];
|
|
66
69
|
readonly stateMutability: "nonpayable";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly name: "claim";
|
|
67
73
|
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "claims";
|
|
68
75
|
readonly type: "tuple[]";
|
|
76
|
+
readonly internalType: "struct TokenClaim[]";
|
|
69
77
|
readonly components: readonly [{
|
|
70
|
-
readonly type: "address";
|
|
71
78
|
readonly name: "token";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "address";
|
|
72
81
|
}, {
|
|
73
|
-
readonly type: "uint256";
|
|
74
82
|
readonly name: "amount";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
75
85
|
}];
|
|
76
|
-
readonly name: "claims";
|
|
77
86
|
}];
|
|
78
87
|
readonly outputs: readonly [];
|
|
88
|
+
readonly stateMutability: "nonpayable";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly name: "getAssets";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly name: "";
|
|
95
|
+
readonly type: "address[]";
|
|
96
|
+
readonly internalType: "address[]";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "hasClaimed";
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly name: "user";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
}];
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly name: "";
|
|
109
|
+
readonly type: "bool";
|
|
110
|
+
readonly internalType: "bool";
|
|
111
|
+
}];
|
|
112
|
+
readonly stateMutability: "view";
|
|
113
|
+
}, {
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
readonly name: "minAmountUSD";
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
readonly internalType: "uint256";
|
|
121
|
+
}];
|
|
122
|
+
readonly stateMutability: "view";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "function";
|
|
125
|
+
readonly name: "owner";
|
|
126
|
+
readonly inputs: readonly [];
|
|
127
|
+
readonly outputs: readonly [{
|
|
128
|
+
readonly name: "";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
}];
|
|
132
|
+
readonly stateMutability: "view";
|
|
133
|
+
}, {
|
|
134
|
+
readonly type: "function";
|
|
135
|
+
readonly name: "prices";
|
|
136
|
+
readonly inputs: readonly [{
|
|
137
|
+
readonly name: "";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
readonly internalType: "address";
|
|
140
|
+
}];
|
|
141
|
+
readonly outputs: readonly [{
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
readonly stateMutability: "view";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "function";
|
|
149
|
+
readonly name: "scales";
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly name: "";
|
|
152
|
+
readonly type: "address";
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
}];
|
|
155
|
+
readonly outputs: readonly [{
|
|
156
|
+
readonly name: "";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
}];
|
|
160
|
+
readonly stateMutability: "view";
|
|
79
161
|
}];
|
|
80
162
|
/**
|
|
81
163
|
* This contract is deployed on testnets and contains testnet executionId and forkAlias
|