@augustdigital/sdk 4.24.1 → 4.24.3-alpha.2

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 (119) hide show
  1. package/lib/abis/LendingPoolV2.d.ts +55 -1413
  2. package/lib/abis/LendingPoolV2.js.map +1 -1
  3. package/lib/abis/LendingPoolV3.d.ts +35 -1677
  4. package/lib/abis/LendingPoolV3.js.map +1 -1
  5. package/lib/abis/RewardDistributor.d.ts +46 -267
  6. package/lib/abis/RewardDistributor.js.map +1 -1
  7. package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +78 -1456
  8. package/lib/abis/TokenizedVaultV2DepositWithPermit.js.map +1 -1
  9. package/lib/abis/TokenizedVaultV2WithDepositWithPermit.d.ts +85 -0
  10. package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js +1878 -0
  11. package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js.map +1 -0
  12. package/lib/abis/index.d.ts +0 -2
  13. package/lib/abis/index.js +0 -2
  14. package/lib/abis/index.js.map +1 -1
  15. package/lib/adapters/evm/index.d.ts +1 -20
  16. package/lib/adapters/evm/index.js +0 -16
  17. package/lib/adapters/evm/index.js.map +1 -1
  18. package/lib/adapters/solana/getters.js +1 -2
  19. package/lib/adapters/solana/getters.js.map +1 -1
  20. package/lib/adapters/solana/index.js.map +1 -1
  21. package/lib/adapters/sui/index.js.map +1 -1
  22. package/lib/adapters/sui/transformer.js +1 -4
  23. package/lib/adapters/sui/transformer.js.map +1 -1
  24. package/lib/core/constants/core.d.ts +1 -1
  25. package/lib/core/constants/core.js +4 -4
  26. package/lib/core/constants/core.js.map +1 -1
  27. package/lib/core/constants/vaults.d.ts +0 -2
  28. package/lib/core/constants/vaults.js +1 -3
  29. package/lib/core/constants/vaults.js.map +1 -1
  30. package/lib/core/constants/web3.js +1 -0
  31. package/lib/core/constants/web3.js.map +1 -1
  32. package/lib/core/constants.adapters.d.ts +117 -0
  33. package/lib/core/constants.adapters.js +160 -0
  34. package/lib/core/constants.adapters.js.map +1 -0
  35. package/lib/core/constants.core.d.ts +78 -0
  36. package/lib/core/constants.core.js +75 -0
  37. package/lib/core/constants.core.js.map +1 -0
  38. package/lib/core/constants.vaults.d.ts +64 -0
  39. package/lib/core/constants.vaults.js +156 -0
  40. package/lib/core/constants.vaults.js.map +1 -0
  41. package/lib/core/constants.web3.d.ts +31 -0
  42. package/lib/core/constants.web3.js +100 -0
  43. package/lib/core/constants.web3.js.map +1 -0
  44. package/lib/core/fetcher.d.ts +3 -2
  45. package/lib/core/fetcher.js +5 -7
  46. package/lib/core/fetcher.js.map +1 -1
  47. package/lib/core/helpers/core.d.ts +1 -1
  48. package/lib/core/helpers/vaults.d.ts +0 -1
  49. package/lib/core/helpers/vaults.js +1 -19
  50. package/lib/core/helpers/vaults.js.map +1 -1
  51. package/lib/core/helpers/web3.d.ts +4 -6
  52. package/lib/core/helpers/web3.js.map +1 -1
  53. package/lib/core/helpers.adapters.d.ts +9 -0
  54. package/lib/core/helpers.adapters.js +28 -0
  55. package/lib/core/helpers.adapters.js.map +1 -0
  56. package/lib/core/helpers.core.d.ts +48 -0
  57. package/lib/core/helpers.core.js +210 -0
  58. package/lib/core/helpers.core.js.map +1 -0
  59. package/lib/core/helpers.signer.d.ts +9 -0
  60. package/lib/core/helpers.signer.js +54 -0
  61. package/lib/core/helpers.signer.js.map +1 -0
  62. package/lib/core/helpers.vaults.d.ts +36 -0
  63. package/lib/core/helpers.vaults.js +145 -0
  64. package/lib/core/helpers.vaults.js.map +1 -0
  65. package/lib/core/helpers.web3.d.ts +95 -0
  66. package/lib/core/helpers.web3.js +376 -0
  67. package/lib/core/helpers.web3.js.map +1 -0
  68. package/lib/index.d.ts +0 -2
  69. package/lib/index.js +0 -2
  70. package/lib/index.js.map +1 -1
  71. package/lib/main.d.ts +1 -5
  72. package/lib/main.js +0 -13
  73. package/lib/main.js.map +1 -1
  74. package/lib/modules/vaults/adapter.helpers.js +1 -2
  75. package/lib/modules/vaults/adapter.helpers.js.map +1 -1
  76. package/lib/modules/vaults/getters.js +87 -129
  77. package/lib/modules/vaults/getters.js.map +1 -1
  78. package/lib/modules/vaults/main.js +6 -9
  79. package/lib/modules/vaults/main.js.map +1 -1
  80. package/lib/modules/vaults/read.actions.d.ts +3 -21
  81. package/lib/modules/vaults/read.actions.js +1 -130
  82. package/lib/modules/vaults/read.actions.js.map +1 -1
  83. package/lib/modules/vaults/utils.js +5 -11
  84. package/lib/modules/vaults/utils.js.map +1 -1
  85. package/lib/modules/vaults/write.actions.js +7 -8
  86. package/lib/modules/vaults/write.actions.js.map +1 -1
  87. package/lib/services/subgraph/vaults.js +6 -6
  88. package/lib/services/subgraph/vaults.js.map +1 -1
  89. package/lib/types/index.d.ts +0 -2
  90. package/lib/types/index.js +0 -2
  91. package/lib/types/index.js.map +1 -1
  92. package/lib/types/vaults.d.ts +0 -2
  93. package/lib/types/vaults.js.map +1 -1
  94. package/lib/types/webserver.d.ts +0 -2
  95. package/lib/verify.d.ts +2 -0
  96. package/lib/verify.js +33 -0
  97. package/lib/verify.js.map +1 -0
  98. package/package.json +12 -12
  99. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.d.ts +0 -454
  100. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js +0 -327
  101. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js.map +0 -1
  102. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.d.ts +0 -1466
  103. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js +0 -1092
  104. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js.map +0 -1
  105. package/lib/modules/sub-accounts/fetcher.d.ts +0 -10
  106. package/lib/modules/sub-accounts/fetcher.js +0 -33
  107. package/lib/modules/sub-accounts/fetcher.js.map +0 -1
  108. package/lib/modules/sub-accounts/index.d.ts +0 -2
  109. package/lib/modules/sub-accounts/index.js +0 -19
  110. package/lib/modules/sub-accounts/index.js.map +0 -1
  111. package/lib/modules/sub-accounts/main.d.ts +0 -16
  112. package/lib/modules/sub-accounts/main.js +0 -39
  113. package/lib/modules/sub-accounts/main.js.map +0 -1
  114. package/lib/types/sub-accounts.d.ts +0 -8
  115. package/lib/types/sub-accounts.js +0 -3
  116. package/lib/types/sub-accounts.js.map +0 -1
  117. package/lib/types/typed-contract.d.ts +0 -38
  118. package/lib/types/typed-contract.js +0 -3
  119. package/lib/types/typed-contract.js.map +0 -1
package/lib/verify.js ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.verifyInfuraKey = verifyInfuraKey;
13
+ exports.verifyAugustKey = verifyAugustKey;
14
+ const utils_1 = require("@augustdigital/utils");
15
+ function verifyInfuraKey(key) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ if (key.length !== 32)
18
+ return false;
19
+ const regex = /[a-z0-9]+/i;
20
+ if (!regex.test(key))
21
+ return false;
22
+ return true;
23
+ });
24
+ }
25
+ function verifyAugustKey(key) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const verify = yield (0, utils_1.fetchAugustWithKey)(key, utils_1.WEBSERVER_ENDPOINTS.auth.verify);
28
+ if (verify.status === 200)
29
+ return true;
30
+ return false;
31
+ });
32
+ }
33
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../src.ts/verify.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,0CAKC;AAED,0CAIC;AAbD,gDAA+E;AAE/E,SAAsB,eAAe,CAAC,GAAW;;QAC/C,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACpC,MAAM,KAAK,GAAG,YAAY,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAED,SAAsB,eAAe,CAAC,GAAW;;QAC/C,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAkB,EAAC,GAAG,EAAE,2BAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9E,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augustdigital/sdk",
3
- "version": "4.24.1",
3
+ "version": "4.24.3-alpha.2",
4
4
  "main": "lib/index.js",
5
5
  "keywords": [
6
6
  "augustdigital",
@@ -12,6 +12,16 @@
12
12
  "author": "August Digital",
13
13
  "license": "MIT",
14
14
  "description": "JS SDK powering the August Digital ecosystem.",
15
+ "scripts": {
16
+ "build": "tsc",
17
+ "test": "pnpm build && cross-env node dist/test",
18
+ "test:jest": "jest",
19
+ "test:jest:watch": "jest --watch",
20
+ "test:jest:coverage": "jest --coverage",
21
+ "clean": "rm -rf ./lib",
22
+ "format": "eslint . --fix",
23
+ "lint-sdk": "lint-staged"
24
+ },
15
25
  "lint-staged": {
16
26
  "*.{ts,tsx,js,jsx,json}": [
17
27
  "eslint --fix"
@@ -53,15 +63,5 @@
53
63
  "viem": {
54
64
  "optional": true
55
65
  }
56
- },
57
- "scripts": {
58
- "build": "tsc",
59
- "test": "pnpm build && cross-env node dist/test",
60
- "test:jest": "jest",
61
- "test:jest:watch": "jest --watch",
62
- "test:jest:coverage": "jest --coverage",
63
- "clean": "rm -rf ./lib",
64
- "format": "eslint . --fix",
65
- "lint-sdk": "lint-staged"
66
66
  }
67
- }
67
+ }
@@ -1,454 +0,0 @@
1
- export declare const ABI_TOKENIZED_VAULT_V2_SENDER_ALLOCATION_WHITELIST: readonly [{
2
- readonly inputs: readonly [{
3
- readonly internalType: "address";
4
- readonly name: "ownerAddr";
5
- readonly type: "address";
6
- }];
7
- readonly stateMutability: "nonpayable";
8
- readonly type: "constructor";
9
- }, {
10
- readonly inputs: readonly [{
11
- readonly internalType: "uint256";
12
- readonly name: "attempted";
13
- readonly type: "uint256";
14
- }, {
15
- readonly internalType: "uint256";
16
- readonly name: "limit";
17
- readonly type: "uint256";
18
- }, {
19
- readonly internalType: "uint256";
20
- readonly name: "alreadyDeposited";
21
- readonly type: "uint256";
22
- }];
23
- readonly name: "AllocationExceeded";
24
- readonly type: "error";
25
- }, {
26
- readonly inputs: readonly [];
27
- readonly name: "ArrayLengthMismatch";
28
- readonly type: "error";
29
- }, {
30
- readonly inputs: readonly [];
31
- readonly name: "BatchSizeExceeded";
32
- readonly type: "error";
33
- }, {
34
- readonly inputs: readonly [];
35
- readonly name: "EmptyBatch";
36
- readonly type: "error";
37
- }, {
38
- readonly inputs: readonly [];
39
- readonly name: "InvalidAddress";
40
- readonly type: "error";
41
- }, {
42
- readonly inputs: readonly [];
43
- readonly name: "InvalidBps";
44
- readonly type: "error";
45
- }, {
46
- readonly inputs: readonly [];
47
- readonly name: "OwnerAddressRequired";
48
- readonly type: "error";
49
- }, {
50
- readonly inputs: readonly [];
51
- readonly name: "OwnerOnly";
52
- readonly type: "error";
53
- }, {
54
- readonly inputs: readonly [];
55
- readonly name: "ReceiverNotWhitelisted";
56
- readonly type: "error";
57
- }, {
58
- readonly inputs: readonly [];
59
- readonly name: "ReentrancyGuardReentrantCall";
60
- readonly type: "error";
61
- }, {
62
- readonly inputs: readonly [];
63
- readonly name: "UnauthorizedRecorder";
64
- readonly type: "error";
65
- }, {
66
- readonly anonymous: false;
67
- readonly inputs: readonly [{
68
- readonly indexed: true;
69
- readonly internalType: "address";
70
- readonly name: "addr";
71
- readonly type: "address";
72
- }, {
73
- readonly indexed: false;
74
- readonly internalType: "uint256";
75
- readonly name: "oldBps";
76
- readonly type: "uint256";
77
- }, {
78
- readonly indexed: false;
79
- readonly internalType: "uint256";
80
- readonly name: "newBps";
81
- readonly type: "uint256";
82
- }];
83
- readonly name: "AllocationSet";
84
- readonly type: "event";
85
- }, {
86
- readonly anonymous: false;
87
- readonly inputs: readonly [{
88
- readonly indexed: true;
89
- readonly internalType: "address";
90
- readonly name: "recorder";
91
- readonly type: "address";
92
- }, {
93
- readonly indexed: false;
94
- readonly internalType: "bool";
95
- readonly name: "authorized";
96
- readonly type: "bool";
97
- }];
98
- readonly name: "AuthorizedRecorderSet";
99
- readonly type: "event";
100
- }, {
101
- readonly anonymous: false;
102
- readonly inputs: readonly [{
103
- readonly indexed: true;
104
- readonly internalType: "address";
105
- readonly name: "addr";
106
- readonly type: "address";
107
- }, {
108
- readonly indexed: false;
109
- readonly internalType: "uint256";
110
- readonly name: "amount";
111
- readonly type: "uint256";
112
- }, {
113
- readonly indexed: false;
114
- readonly internalType: "uint256";
115
- readonly name: "newDeposited";
116
- readonly type: "uint256";
117
- }];
118
- readonly name: "DepositRecorded";
119
- readonly type: "event";
120
- }, {
121
- readonly anonymous: false;
122
- readonly inputs: readonly [{
123
- readonly indexed: true;
124
- readonly internalType: "address";
125
- readonly name: "addr";
126
- readonly type: "address";
127
- }, {
128
- readonly indexed: false;
129
- readonly internalType: "uint256";
130
- readonly name: "oldAmount";
131
- readonly type: "uint256";
132
- }, {
133
- readonly indexed: false;
134
- readonly internalType: "uint256";
135
- readonly name: "newAmount";
136
- readonly type: "uint256";
137
- }, {
138
- readonly indexed: true;
139
- readonly internalType: "address";
140
- readonly name: "admin";
141
- readonly type: "address";
142
- }];
143
- readonly name: "DepositedSet";
144
- readonly type: "event";
145
- }, {
146
- readonly anonymous: false;
147
- readonly inputs: readonly [{
148
- readonly indexed: true;
149
- readonly internalType: "address";
150
- readonly name: "previousOwner";
151
- readonly type: "address";
152
- }, {
153
- readonly indexed: true;
154
- readonly internalType: "address";
155
- readonly name: "newOwner";
156
- readonly type: "address";
157
- }];
158
- readonly name: "OwnershipTransferred";
159
- readonly type: "event";
160
- }, {
161
- readonly anonymous: false;
162
- readonly inputs: readonly [{
163
- readonly indexed: true;
164
- readonly internalType: "address";
165
- readonly name: "addr";
166
- readonly type: "address";
167
- }, {
168
- readonly indexed: false;
169
- readonly internalType: "uint256";
170
- readonly name: "amount";
171
- readonly type: "uint256";
172
- }, {
173
- readonly indexed: false;
174
- readonly internalType: "uint256";
175
- readonly name: "newDeposited";
176
- readonly type: "uint256";
177
- }];
178
- readonly name: "WithdrawalRecorded";
179
- readonly type: "event";
180
- }, {
181
- readonly inputs: readonly [];
182
- readonly name: "MAX_BATCH_SIZE";
183
- readonly outputs: readonly [{
184
- readonly internalType: "uint256";
185
- readonly name: "";
186
- readonly type: "uint256";
187
- }];
188
- readonly stateMutability: "view";
189
- readonly type: "function";
190
- }, {
191
- readonly inputs: readonly [];
192
- readonly name: "MAX_BPS";
193
- readonly outputs: readonly [{
194
- readonly internalType: "uint256";
195
- readonly name: "";
196
- readonly type: "uint256";
197
- }];
198
- readonly stateMutability: "view";
199
- readonly type: "function";
200
- }, {
201
- readonly inputs: readonly [{
202
- readonly internalType: "address";
203
- readonly name: "";
204
- readonly type: "address";
205
- }];
206
- readonly name: "allocationBps";
207
- readonly outputs: readonly [{
208
- readonly internalType: "uint256";
209
- readonly name: "";
210
- readonly type: "uint256";
211
- }];
212
- readonly stateMutability: "view";
213
- readonly type: "function";
214
- }, {
215
- readonly inputs: readonly [{
216
- readonly internalType: "address";
217
- readonly name: "";
218
- readonly type: "address";
219
- }];
220
- readonly name: "authorizedRecorders";
221
- readonly outputs: readonly [{
222
- readonly internalType: "bool";
223
- readonly name: "";
224
- readonly type: "bool";
225
- }];
226
- readonly stateMutability: "view";
227
- readonly type: "function";
228
- }, {
229
- readonly inputs: readonly [{
230
- readonly internalType: "address";
231
- readonly name: "addr";
232
- readonly type: "address";
233
- }, {
234
- readonly internalType: "uint256";
235
- readonly name: "amount";
236
- readonly type: "uint256";
237
- }];
238
- readonly name: "checkAndRecordDeposit";
239
- readonly outputs: readonly [{
240
- readonly internalType: "uint256";
241
- readonly name: "newDeposited";
242
- readonly type: "uint256";
243
- }];
244
- readonly stateMutability: "nonpayable";
245
- readonly type: "function";
246
- }, {
247
- readonly inputs: readonly [{
248
- readonly internalType: "address";
249
- readonly name: "";
250
- readonly type: "address";
251
- }];
252
- readonly name: "deposited";
253
- readonly outputs: readonly [{
254
- readonly internalType: "uint256";
255
- readonly name: "";
256
- readonly type: "uint256";
257
- }];
258
- readonly stateMutability: "view";
259
- readonly type: "function";
260
- }, {
261
- readonly inputs: readonly [{
262
- readonly internalType: "address";
263
- readonly name: "addr";
264
- readonly type: "address";
265
- }];
266
- readonly name: "disableSender";
267
- readonly outputs: readonly [];
268
- readonly stateMutability: "nonpayable";
269
- readonly type: "function";
270
- }, {
271
- readonly inputs: readonly [{
272
- readonly internalType: "address";
273
- readonly name: "addr";
274
- readonly type: "address";
275
- }];
276
- readonly name: "enableSender";
277
- readonly outputs: readonly [];
278
- readonly stateMutability: "nonpayable";
279
- readonly type: "function";
280
- }, {
281
- readonly inputs: readonly [{
282
- readonly internalType: "address";
283
- readonly name: "addr";
284
- readonly type: "address";
285
- }];
286
- readonly name: "getAllocationBps";
287
- readonly outputs: readonly [{
288
- readonly internalType: "uint256";
289
- readonly name: "";
290
- readonly type: "uint256";
291
- }];
292
- readonly stateMutability: "view";
293
- readonly type: "function";
294
- }, {
295
- readonly inputs: readonly [];
296
- readonly name: "getAuthorizedRecorders";
297
- readonly outputs: readonly [{
298
- readonly internalType: "address[]";
299
- readonly name: "";
300
- readonly type: "address[]";
301
- }];
302
- readonly stateMutability: "view";
303
- readonly type: "function";
304
- }, {
305
- readonly inputs: readonly [{
306
- readonly internalType: "address";
307
- readonly name: "addr";
308
- readonly type: "address";
309
- }];
310
- readonly name: "getDeposited";
311
- readonly outputs: readonly [{
312
- readonly internalType: "uint256";
313
- readonly name: "";
314
- readonly type: "uint256";
315
- }];
316
- readonly stateMutability: "view";
317
- readonly type: "function";
318
- }, {
319
- readonly inputs: readonly [{
320
- readonly internalType: "address";
321
- readonly name: "addr";
322
- readonly type: "address";
323
- }, {
324
- readonly internalType: "uint256";
325
- readonly name: "depositCapAmount";
326
- readonly type: "uint256";
327
- }];
328
- readonly name: "getRemainingAllocation";
329
- readonly outputs: readonly [{
330
- readonly internalType: "uint256";
331
- readonly name: "";
332
- readonly type: "uint256";
333
- }];
334
- readonly stateMutability: "view";
335
- readonly type: "function";
336
- }, {
337
- readonly inputs: readonly [{
338
- readonly internalType: "address";
339
- readonly name: "addr";
340
- readonly type: "address";
341
- }];
342
- readonly name: "isWhitelisted";
343
- readonly outputs: readonly [{
344
- readonly internalType: "bool";
345
- readonly name: "";
346
- readonly type: "bool";
347
- }];
348
- readonly stateMutability: "view";
349
- readonly type: "function";
350
- }, {
351
- readonly inputs: readonly [];
352
- readonly name: "owner";
353
- readonly outputs: readonly [{
354
- readonly internalType: "address";
355
- readonly name: "";
356
- readonly type: "address";
357
- }];
358
- readonly stateMutability: "view";
359
- readonly type: "function";
360
- }, {
361
- readonly inputs: readonly [{
362
- readonly internalType: "address";
363
- readonly name: "addr";
364
- readonly type: "address";
365
- }, {
366
- readonly internalType: "uint256";
367
- readonly name: "amount";
368
- readonly type: "uint256";
369
- }];
370
- readonly name: "recordWithdrawal";
371
- readonly outputs: readonly [];
372
- readonly stateMutability: "nonpayable";
373
- readonly type: "function";
374
- }, {
375
- readonly inputs: readonly [{
376
- readonly internalType: "address";
377
- readonly name: "addr";
378
- readonly type: "address";
379
- }, {
380
- readonly internalType: "uint256";
381
- readonly name: "bps";
382
- readonly type: "uint256";
383
- }];
384
- readonly name: "setAllocation";
385
- readonly outputs: readonly [];
386
- readonly stateMutability: "nonpayable";
387
- readonly type: "function";
388
- }, {
389
- readonly inputs: readonly [{
390
- readonly internalType: "address[]";
391
- readonly name: "addrs";
392
- readonly type: "address[]";
393
- }, {
394
- readonly internalType: "uint256[]";
395
- readonly name: "bpsValues";
396
- readonly type: "uint256[]";
397
- }];
398
- readonly name: "setAllocationBatch";
399
- readonly outputs: readonly [];
400
- readonly stateMutability: "nonpayable";
401
- readonly type: "function";
402
- }, {
403
- readonly inputs: readonly [{
404
- readonly internalType: "address";
405
- readonly name: "recorder";
406
- readonly type: "address";
407
- }, {
408
- readonly internalType: "bool";
409
- readonly name: "authorized";
410
- readonly type: "bool";
411
- }];
412
- readonly name: "setAuthorizedRecorder";
413
- readonly outputs: readonly [];
414
- readonly stateMutability: "nonpayable";
415
- readonly type: "function";
416
- }, {
417
- readonly inputs: readonly [{
418
- readonly internalType: "address";
419
- readonly name: "addr";
420
- readonly type: "address";
421
- }, {
422
- readonly internalType: "uint256";
423
- readonly name: "amount";
424
- readonly type: "uint256";
425
- }];
426
- readonly name: "setDeposited";
427
- readonly outputs: readonly [];
428
- readonly stateMutability: "nonpayable";
429
- readonly type: "function";
430
- }, {
431
- readonly inputs: readonly [{
432
- readonly internalType: "address[]";
433
- readonly name: "addrs";
434
- readonly type: "address[]";
435
- }, {
436
- readonly internalType: "uint256[]";
437
- readonly name: "amounts";
438
- readonly type: "uint256[]";
439
- }];
440
- readonly name: "setDepositedBatch";
441
- readonly outputs: readonly [];
442
- readonly stateMutability: "nonpayable";
443
- readonly type: "function";
444
- }, {
445
- readonly inputs: readonly [{
446
- readonly internalType: "address";
447
- readonly name: "newOwner";
448
- readonly type: "address";
449
- }];
450
- readonly name: "transferOwnership";
451
- readonly outputs: readonly [];
452
- readonly stateMutability: "nonpayable";
453
- readonly type: "function";
454
- }];