@1stdex/first-sdk 1.0.21 → 1.0.23
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/calls/batch/prepare-market-order-with-setup.js +2 -9
- package/dist/cjs/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/cjs/calls/batch/prepare-order-with-setup.js +2 -9
- package/dist/cjs/calls/batch/prepare-order-with-setup.js.map +1 -1
- package/dist/cjs/calls/market/cancel.js +0 -1
- package/dist/cjs/calls/market/cancel.js.map +1 -1
- package/dist/cjs/calls/market/claim.js +0 -1
- package/dist/cjs/calls/market/claim.js.map +1 -1
- package/dist/cjs/calls/market/limit.js +0 -2
- package/dist/cjs/calls/market/limit.js.map +1 -1
- package/dist/cjs/calls/market/make.js +0 -6
- package/dist/cjs/calls/market/make.js.map +1 -1
- package/dist/cjs/calls/market/market.js +5 -10
- package/dist/cjs/calls/market/market.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-manager-abi.js +12 -7
- package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-viewer-abi.js +141 -199
- package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js +46 -0
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js.map +1 -1
- package/dist/cjs/constants/abis/core/controller-abi.js +94 -101
- package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/dex-vault-abi.js +1 -1
- package/dist/cjs/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/mirror-token-abi.js +901 -6
- package/dist/cjs/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/params-abi.js +11 -38
- package/dist/cjs/constants/abis/core/params-abi.js.map +1 -1
- package/dist/cjs/constants/chain-configs/addresses.js +3 -3
- package/dist/cjs/constants/chain-configs/currency.js +1 -1
- package/dist/cjs/views/setup.js +8 -0
- package/dist/cjs/views/setup.js.map +1 -1
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js +4 -10
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/esm/calls/batch/prepare-order-with-setup.js +4 -10
- package/dist/esm/calls/batch/prepare-order-with-setup.js.map +1 -1
- package/dist/esm/calls/market/cancel.js +0 -1
- package/dist/esm/calls/market/cancel.js.map +1 -1
- package/dist/esm/calls/market/claim.js +0 -1
- package/dist/esm/calls/market/claim.js.map +1 -1
- package/dist/esm/calls/market/limit.js +0 -3
- package/dist/esm/calls/market/limit.js.map +1 -1
- package/dist/esm/calls/market/make.js +0 -6
- package/dist/esm/calls/market/make.js.map +1 -1
- package/dist/esm/calls/market/market.js +6 -12
- package/dist/esm/calls/market/market.js.map +1 -1
- package/dist/esm/constants/abis/core/book-manager-abi.js +12 -7
- package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/book-viewer-abi.js +141 -199
- package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/claimable-dex-vault.js +46 -0
- package/dist/esm/constants/abis/core/claimable-dex-vault.js.map +1 -1
- package/dist/esm/constants/abis/core/controller-abi.js +94 -101
- package/dist/esm/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/dex-vault-abi.js +1 -1
- package/dist/esm/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/mirror-token-abi.js +901 -6
- package/dist/esm/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/params-abi.js +11 -38
- package/dist/esm/constants/abis/core/params-abi.js.map +1 -1
- package/dist/esm/constants/chain-configs/addresses.js +3 -3
- package/dist/esm/constants/chain-configs/currency.js +1 -1
- package/dist/esm/views/setup.js +8 -0
- package/dist/esm/views/setup.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts.map +1 -1
- package/dist/types/calls/batch/prepare-order-with-setup.d.ts.map +1 -1
- package/dist/types/calls/market/cancel.d.ts.map +1 -1
- package/dist/types/calls/market/claim.d.ts.map +1 -1
- package/dist/types/calls/market/limit.d.ts +1 -3
- package/dist/types/calls/market/limit.d.ts.map +1 -1
- package/dist/types/calls/market/make.d.ts.map +1 -1
- package/dist/types/calls/market/market.d.ts +2 -4
- package/dist/types/calls/market/market.d.ts.map +1 -1
- package/dist/types/constants/abis/core/book-manager-abi.d.ts +32 -15
- package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts +170 -68
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/claimable-dex-vault.d.ts +83 -0
- package/dist/types/constants/abis/core/claimable-dex-vault.d.ts.map +1 -1
- package/dist/types/constants/abis/core/controller-abi.d.ts +130 -164
- package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/dex-vault-abi.d.ts +1 -1
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts +1252 -16
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -1
- package/dist/types/views/setup.d.ts +1 -0
- package/dist/types/views/setup.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,68 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BOOK_VIEWER_ABI = void 0;
|
|
4
4
|
exports.BOOK_VIEWER_ABI = [
|
|
5
|
+
{
|
|
6
|
+
inputs: [
|
|
7
|
+
{
|
|
8
|
+
internalType: 'contract IBookManager',
|
|
9
|
+
name: 'bookManager_',
|
|
10
|
+
type: 'address',
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
stateMutability: 'nonpayable',
|
|
14
|
+
type: 'constructor',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [{ internalType: 'address', name: 'target', type: 'address' }],
|
|
18
|
+
name: 'AddressEmptyCode',
|
|
19
|
+
type: 'error',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
inputs: [
|
|
23
|
+
{ internalType: 'address', name: 'implementation', type: 'address' },
|
|
24
|
+
],
|
|
25
|
+
name: 'ERC1967InvalidImplementation',
|
|
26
|
+
type: 'error',
|
|
27
|
+
},
|
|
28
|
+
{ inputs: [], name: 'ERC1967NonPayable', type: 'error' },
|
|
29
|
+
{ inputs: [], name: 'FailedCall', type: 'error' },
|
|
30
|
+
{ inputs: [], name: 'InvalidInitialization', type: 'error' },
|
|
31
|
+
{ inputs: [], name: 'InvalidTick', type: 'error' },
|
|
32
|
+
{ inputs: [], name: 'NotInitializing', type: 'error' },
|
|
33
|
+
{
|
|
34
|
+
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
|
|
35
|
+
name: 'OwnableInvalidOwner',
|
|
36
|
+
type: 'error',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
40
|
+
name: 'OwnableUnauthorizedAccount',
|
|
41
|
+
type: 'error',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }],
|
|
45
|
+
name: 'SafeCastOverflowedUintToInt',
|
|
46
|
+
type: 'error',
|
|
47
|
+
},
|
|
48
|
+
{ inputs: [], name: 'UUPSUnauthorizedCallContext', type: 'error' },
|
|
49
|
+
{
|
|
50
|
+
inputs: [{ internalType: 'bytes32', name: 'slot', type: 'bytes32' }],
|
|
51
|
+
name: 'UUPSUnsupportedProxiableUUID',
|
|
52
|
+
type: 'error',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
anonymous: false,
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
indexed: false,
|
|
59
|
+
internalType: 'uint64',
|
|
60
|
+
name: 'version',
|
|
61
|
+
type: 'uint64',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: 'Initialized',
|
|
65
|
+
type: 'event',
|
|
66
|
+
},
|
|
5
67
|
{
|
|
6
68
|
anonymous: false,
|
|
7
69
|
inputs: [
|
|
@@ -18,7 +80,7 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
18
80
|
type: 'address',
|
|
19
81
|
},
|
|
20
82
|
],
|
|
21
|
-
name: '
|
|
83
|
+
name: 'OwnershipTransferStarted',
|
|
22
84
|
type: 'event',
|
|
23
85
|
},
|
|
24
86
|
{
|
|
@@ -27,128 +89,58 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
27
89
|
{
|
|
28
90
|
indexed: true,
|
|
29
91
|
internalType: 'address',
|
|
30
|
-
name: '
|
|
92
|
+
name: 'previousOwner',
|
|
31
93
|
type: 'address',
|
|
32
94
|
},
|
|
33
95
|
{
|
|
34
96
|
indexed: true,
|
|
35
97
|
internalType: 'address',
|
|
36
|
-
name: '
|
|
98
|
+
name: 'newOwner',
|
|
37
99
|
type: 'address',
|
|
38
100
|
},
|
|
39
101
|
],
|
|
40
|
-
name: '
|
|
102
|
+
name: 'OwnershipTransferred',
|
|
41
103
|
type: 'event',
|
|
42
104
|
},
|
|
43
105
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
inputs: [],
|
|
49
|
-
name: 'owner',
|
|
50
|
-
outputs: [
|
|
106
|
+
anonymous: false,
|
|
107
|
+
inputs: [
|
|
51
108
|
{
|
|
109
|
+
indexed: true,
|
|
52
110
|
internalType: 'address',
|
|
53
|
-
name: '',
|
|
111
|
+
name: 'implementation',
|
|
54
112
|
type: 'address',
|
|
55
113
|
},
|
|
56
114
|
],
|
|
57
|
-
|
|
58
|
-
type: '
|
|
115
|
+
name: 'Upgraded',
|
|
116
|
+
type: 'event',
|
|
59
117
|
},
|
|
60
118
|
{
|
|
61
|
-
inputs: [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
name: 'id',
|
|
65
|
-
type: 'bytes4',
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
name: 'supportsInterface',
|
|
69
|
-
outputs: [
|
|
70
|
-
{
|
|
71
|
-
internalType: 'bool',
|
|
72
|
-
name: '',
|
|
73
|
-
type: 'bool',
|
|
74
|
-
},
|
|
75
|
-
],
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: 'UPGRADE_INTERFACE_VERSION',
|
|
121
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
76
122
|
stateMutability: 'view',
|
|
77
123
|
type: 'function',
|
|
78
124
|
},
|
|
79
125
|
{
|
|
80
|
-
inputs: [
|
|
81
|
-
|
|
82
|
-
internalType: 'address',
|
|
83
|
-
name: 'newOwner',
|
|
84
|
-
type: 'address',
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
name: 'transferOwnership',
|
|
126
|
+
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
|
|
127
|
+
name: '__BookViewer_init',
|
|
88
128
|
outputs: [],
|
|
89
129
|
stateMutability: 'nonpayable',
|
|
90
130
|
type: 'function',
|
|
91
131
|
},
|
|
92
132
|
{
|
|
93
|
-
inputs: [
|
|
94
|
-
|
|
95
|
-
internalType: 'address',
|
|
96
|
-
name: 'newImplementation',
|
|
97
|
-
type: 'address',
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
name: 'upgradeTo',
|
|
133
|
+
inputs: [],
|
|
134
|
+
name: 'acceptOwnership',
|
|
101
135
|
outputs: [],
|
|
102
136
|
stateMutability: 'nonpayable',
|
|
103
137
|
type: 'function',
|
|
104
138
|
},
|
|
105
|
-
{
|
|
106
|
-
inputs: [
|
|
107
|
-
{
|
|
108
|
-
internalType: 'address',
|
|
109
|
-
name: 'newImplementation',
|
|
110
|
-
type: 'address',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
internalType: 'bytes',
|
|
114
|
-
name: 'data',
|
|
115
|
-
type: 'bytes',
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
name: 'upgradeToAndCall',
|
|
119
|
-
outputs: [],
|
|
120
|
-
stateMutability: 'payable',
|
|
121
|
-
type: 'function',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
stateMutability: 'payable',
|
|
125
|
-
type: 'receive',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
inputs: [],
|
|
129
|
-
name: 'InvalidTick',
|
|
130
|
-
type: 'error',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
inputs: [
|
|
134
|
-
{
|
|
135
|
-
internalType: 'uint256',
|
|
136
|
-
name: 'value',
|
|
137
|
-
type: 'uint256',
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
name: 'SafeCastOverflowedUintToInt',
|
|
141
|
-
type: 'error',
|
|
142
|
-
},
|
|
143
139
|
{
|
|
144
140
|
inputs: [],
|
|
145
141
|
name: 'bookManager',
|
|
146
142
|
outputs: [
|
|
147
|
-
{
|
|
148
|
-
internalType: 'contract IBookManager',
|
|
149
|
-
name: '',
|
|
150
|
-
type: 'address',
|
|
151
|
-
},
|
|
143
|
+
{ internalType: 'contract IBookManager', name: '', type: 'address' },
|
|
152
144
|
],
|
|
153
145
|
stateMutability: 'view',
|
|
154
146
|
type: 'function',
|
|
@@ -157,31 +149,12 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
157
149
|
inputs: [
|
|
158
150
|
{
|
|
159
151
|
components: [
|
|
160
|
-
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
internalType: 'uint256',
|
|
167
|
-
name: 'limitPrice',
|
|
168
|
-
type: 'uint256',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
internalType: 'uint256',
|
|
172
|
-
name: 'quoteAmount',
|
|
173
|
-
type: 'uint256',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
internalType: 'uint256',
|
|
177
|
-
name: 'maxBaseAmount',
|
|
178
|
-
type: 'uint256',
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
internalType: 'bytes',
|
|
182
|
-
name: 'hookData',
|
|
183
|
-
type: 'bytes',
|
|
184
|
-
},
|
|
152
|
+
{ internalType: 'BookId', name: 'id', type: 'uint192' },
|
|
153
|
+
{ internalType: 'uint256', name: 'limitPrice', type: 'uint256' },
|
|
154
|
+
{ internalType: 'uint256', name: 'quoteAmount', type: 'uint256' },
|
|
155
|
+
{ internalType: 'uint256', name: 'maxBaseAmount', type: 'uint256' },
|
|
156
|
+
{ internalType: 'address', name: 'provider', type: 'address' },
|
|
157
|
+
{ internalType: 'address', name: 'referrer', type: 'address' },
|
|
185
158
|
],
|
|
186
159
|
internalType: 'struct IController.TakeOrderParams',
|
|
187
160
|
name: 'params',
|
|
@@ -190,16 +163,8 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
190
163
|
],
|
|
191
164
|
name: 'getExpectedInput',
|
|
192
165
|
outputs: [
|
|
193
|
-
{
|
|
194
|
-
|
|
195
|
-
name: 'takenQuoteAmount',
|
|
196
|
-
type: 'uint256',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
internalType: 'uint256',
|
|
200
|
-
name: 'spentBaseAmount',
|
|
201
|
-
type: 'uint256',
|
|
202
|
-
},
|
|
166
|
+
{ internalType: 'uint256', name: 'takenQuoteAmount', type: 'uint256' },
|
|
167
|
+
{ internalType: 'uint256', name: 'spentBaseAmount', type: 'uint256' },
|
|
203
168
|
],
|
|
204
169
|
stateMutability: 'view',
|
|
205
170
|
type: 'function',
|
|
@@ -208,31 +173,12 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
208
173
|
inputs: [
|
|
209
174
|
{
|
|
210
175
|
components: [
|
|
211
|
-
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
internalType: 'uint256',
|
|
218
|
-
name: 'limitPrice',
|
|
219
|
-
type: 'uint256',
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
internalType: 'uint256',
|
|
223
|
-
name: 'baseAmount',
|
|
224
|
-
type: 'uint256',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
internalType: 'uint256',
|
|
228
|
-
name: 'minQuoteAmount',
|
|
229
|
-
type: 'uint256',
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
internalType: 'bytes',
|
|
233
|
-
name: 'hookData',
|
|
234
|
-
type: 'bytes',
|
|
235
|
-
},
|
|
176
|
+
{ internalType: 'BookId', name: 'id', type: 'uint192' },
|
|
177
|
+
{ internalType: 'uint256', name: 'limitPrice', type: 'uint256' },
|
|
178
|
+
{ internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
|
|
179
|
+
{ internalType: 'uint256', name: 'minQuoteAmount', type: 'uint256' },
|
|
180
|
+
{ internalType: 'address', name: 'provider', type: 'address' },
|
|
181
|
+
{ internalType: 'address', name: 'referrer', type: 'address' },
|
|
236
182
|
],
|
|
237
183
|
internalType: 'struct IController.SpendOrderParams',
|
|
238
184
|
name: 'params',
|
|
@@ -241,52 +187,24 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
241
187
|
],
|
|
242
188
|
name: 'getExpectedOutput',
|
|
243
189
|
outputs: [
|
|
244
|
-
{
|
|
245
|
-
|
|
246
|
-
name: 'takenQuoteAmount',
|
|
247
|
-
type: 'uint256',
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
internalType: 'uint256',
|
|
251
|
-
name: 'spentBaseAmount',
|
|
252
|
-
type: 'uint256',
|
|
253
|
-
},
|
|
190
|
+
{ internalType: 'uint256', name: 'takenQuoteAmount', type: 'uint256' },
|
|
191
|
+
{ internalType: 'uint256', name: 'spentBaseAmount', type: 'uint256' },
|
|
254
192
|
],
|
|
255
193
|
stateMutability: 'view',
|
|
256
194
|
type: 'function',
|
|
257
195
|
},
|
|
258
196
|
{
|
|
259
197
|
inputs: [
|
|
260
|
-
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
type: 'uint192',
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
internalType: 'Tick',
|
|
267
|
-
name: 'tick',
|
|
268
|
-
type: 'int24',
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
internalType: 'uint256',
|
|
272
|
-
name: 'n',
|
|
273
|
-
type: 'uint256',
|
|
274
|
-
},
|
|
198
|
+
{ internalType: 'BookId', name: 'id', type: 'uint192' },
|
|
199
|
+
{ internalType: 'Tick', name: 'tick', type: 'int24' },
|
|
200
|
+
{ internalType: 'uint256', name: 'n', type: 'uint256' },
|
|
275
201
|
],
|
|
276
202
|
name: 'getLiquidity',
|
|
277
203
|
outputs: [
|
|
278
204
|
{
|
|
279
205
|
components: [
|
|
280
|
-
{
|
|
281
|
-
|
|
282
|
-
name: 'tick',
|
|
283
|
-
type: 'int24',
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
internalType: 'uint64',
|
|
287
|
-
name: 'depth',
|
|
288
|
-
type: 'uint64',
|
|
289
|
-
},
|
|
206
|
+
{ internalType: 'Tick', name: 'tick', type: 'int24' },
|
|
207
|
+
{ internalType: 'uint64', name: 'depth', type: 'uint64' },
|
|
290
208
|
],
|
|
291
209
|
internalType: 'struct IBookViewer.Liquidity[]',
|
|
292
210
|
name: 'liquidity',
|
|
@@ -296,26 +214,50 @@ exports.BOOK_VIEWER_ABI = [
|
|
|
296
214
|
stateMutability: 'view',
|
|
297
215
|
type: 'function',
|
|
298
216
|
},
|
|
217
|
+
{
|
|
218
|
+
inputs: [],
|
|
219
|
+
name: 'owner',
|
|
220
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
221
|
+
stateMutability: 'view',
|
|
222
|
+
type: 'function',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
inputs: [],
|
|
226
|
+
name: 'pendingOwner',
|
|
227
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
228
|
+
stateMutability: 'view',
|
|
229
|
+
type: 'function',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [],
|
|
233
|
+
name: 'proxiableUUID',
|
|
234
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
235
|
+
stateMutability: 'view',
|
|
236
|
+
type: 'function',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
inputs: [],
|
|
240
|
+
name: 'renounceOwnership',
|
|
241
|
+
outputs: [],
|
|
242
|
+
stateMutability: 'nonpayable',
|
|
243
|
+
type: 'function',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
|
|
247
|
+
name: 'transferOwnership',
|
|
248
|
+
outputs: [],
|
|
249
|
+
stateMutability: 'nonpayable',
|
|
250
|
+
type: 'function',
|
|
251
|
+
},
|
|
299
252
|
{
|
|
300
253
|
inputs: [
|
|
301
|
-
{
|
|
302
|
-
|
|
303
|
-
name: 'implementationAddress',
|
|
304
|
-
type: 'address',
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
internalType: 'address',
|
|
308
|
-
name: 'ownerAddress',
|
|
309
|
-
type: 'address',
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
internalType: 'bytes',
|
|
313
|
-
name: 'data',
|
|
314
|
-
type: 'bytes',
|
|
315
|
-
},
|
|
254
|
+
{ internalType: 'address', name: 'newImplementation', type: 'address' },
|
|
255
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
316
256
|
],
|
|
257
|
+
name: 'upgradeToAndCall',
|
|
258
|
+
outputs: [],
|
|
317
259
|
stateMutability: 'payable',
|
|
318
|
-
type: '
|
|
260
|
+
type: 'function',
|
|
319
261
|
},
|
|
320
262
|
];
|
|
321
263
|
//# sourceMappingURL=book-viewer-abi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"book-viewer-abi.js","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-viewer-abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B;QACE,
|
|
1
|
+
{"version":3,"file":"book-viewer-abi.js","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-viewer-abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,uBAAuB;gBACrC,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACtE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;SACrE;QACD,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,OAAO;KACd;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;IACjD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,OAAO,EAAE;IAC5D,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;IAClD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAA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AE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE;YACvE,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;SACvD;QACD,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC"}
|
|
@@ -114,6 +114,10 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
114
114
|
name: 'ERC4626ExceededMaxWithdraw',
|
|
115
115
|
type: 'error',
|
|
116
116
|
},
|
|
117
|
+
{ inputs: [], name: 'InsufficientAvailableBalance', type: 'error' },
|
|
118
|
+
{ inputs: [], name: 'InsufficientBalance', type: 'error' },
|
|
119
|
+
{ inputs: [], name: 'InsufficientLockedBalance', type: 'error' },
|
|
120
|
+
{ inputs: [], name: 'InsufficientTotalLocked', type: 'error' },
|
|
117
121
|
{
|
|
118
122
|
inputs: [
|
|
119
123
|
{ internalType: 'address', name: 'account', type: 'address' },
|
|
@@ -122,7 +126,14 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
122
126
|
name: 'InvalidAccountNonce',
|
|
123
127
|
type: 'error',
|
|
124
128
|
},
|
|
129
|
+
{ inputs: [], name: 'InvalidAmount', type: 'error' },
|
|
130
|
+
{ inputs: [], name: 'InvalidAssets', type: 'error' },
|
|
131
|
+
{ inputs: [], name: 'InvalidShares', type: 'error' },
|
|
125
132
|
{ inputs: [], name: 'InvalidShortString', type: 'error' },
|
|
133
|
+
{ inputs: [], name: 'NestedDeflationaryTokenAlreadySet', type: 'error' },
|
|
134
|
+
{ inputs: [], name: 'NotEnoughClaimable', type: 'error' },
|
|
135
|
+
{ inputs: [], name: 'NothingToClaim', type: 'error' },
|
|
136
|
+
{ inputs: [], name: 'OnlyBookManager', type: 'error' },
|
|
126
137
|
{
|
|
127
138
|
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
|
|
128
139
|
name: 'OwnableInvalidOwner',
|
|
@@ -144,11 +155,13 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
144
155
|
name: 'StringTooLong',
|
|
145
156
|
type: 'error',
|
|
146
157
|
},
|
|
158
|
+
{ inputs: [], name: 'TakenExtraDeficit', type: 'error' },
|
|
147
159
|
{
|
|
148
160
|
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
149
161
|
name: 'UnauthorizedDeflator',
|
|
150
162
|
type: 'error',
|
|
151
163
|
},
|
|
164
|
+
{ inputs: [], name: 'VaultBalanceLessThanLocked', type: 'error' },
|
|
152
165
|
{
|
|
153
166
|
anonymous: false,
|
|
154
167
|
inputs: [
|
|
@@ -386,6 +399,25 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
386
399
|
name: 'NestedDeflationaryTokenSet',
|
|
387
400
|
type: 'event',
|
|
388
401
|
},
|
|
402
|
+
{
|
|
403
|
+
anonymous: false,
|
|
404
|
+
inputs: [
|
|
405
|
+
{
|
|
406
|
+
indexed: true,
|
|
407
|
+
internalType: 'address',
|
|
408
|
+
name: 'previousOwner',
|
|
409
|
+
type: 'address',
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
indexed: true,
|
|
413
|
+
internalType: 'address',
|
|
414
|
+
name: 'newOwner',
|
|
415
|
+
type: 'address',
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
name: 'OwnershipTransferStarted',
|
|
419
|
+
type: 'event',
|
|
420
|
+
},
|
|
389
421
|
{
|
|
390
422
|
anonymous: false,
|
|
391
423
|
inputs: [
|
|
@@ -541,6 +573,13 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
541
573
|
stateMutability: 'view',
|
|
542
574
|
type: 'function',
|
|
543
575
|
},
|
|
576
|
+
{
|
|
577
|
+
inputs: [],
|
|
578
|
+
name: 'acceptOwnership',
|
|
579
|
+
outputs: [],
|
|
580
|
+
stateMutability: 'nonpayable',
|
|
581
|
+
type: 'function',
|
|
582
|
+
},
|
|
544
583
|
{
|
|
545
584
|
inputs: [
|
|
546
585
|
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
@@ -885,6 +924,13 @@ exports.CLAIMABLE_DEX_VAULT_ABI = [
|
|
|
885
924
|
stateMutability: 'view',
|
|
886
925
|
type: 'function',
|
|
887
926
|
},
|
|
927
|
+
{
|
|
928
|
+
inputs: [],
|
|
929
|
+
name: 'pendingOwner',
|
|
930
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
931
|
+
stateMutability: 'view',
|
|
932
|
+
type: 'function',
|
|
933
|
+
},
|
|
888
934
|
{
|
|
889
935
|
inputs: [
|
|
890
936
|
{ internalType: 'address', name: 'owner', type: 'address' },
|