@meterio/sumer-js 0.2.1 → 0.2.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.
Files changed (36) hide show
  1. package/dist/browser/sumer.min.js +9 -9
  2. package/dist/nodejs/abi.d.ts +80 -0
  3. package/dist/nodejs/abi.js +143 -0
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/metertest.d.ts +2 -0
  6. package/dist/nodejs/constants/metertest.js +14 -0
  7. package/dist/nodejs/constants/metertest.js.map +1 -1
  8. package/dist/nodejs/index.d.ts +80 -0
  9. package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +26 -1
  10. package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +26 -1
  11. package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +26 -1
  12. package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +26 -1
  13. package/dist/nodejs/typechain/contracts/Timelock.d.ts +9 -1
  14. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +24 -1
  15. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +32 -1
  16. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  17. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +24 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +32 -1
  19. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  20. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +23 -0
  21. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +31 -0
  22. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  23. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +24 -1
  24. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +32 -1
  25. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  26. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
  27. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
  28. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +1 -1
  33. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +15 -1
  34. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +20 -1
  35. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  36. package/package.json +1 -1
@@ -220,6 +220,26 @@ export declare const abi: {
220
220
  stateMutability: string;
221
221
  type: string;
222
222
  anonymous?: undefined;
223
+ } | {
224
+ inputs: {
225
+ internalType: string;
226
+ name: string;
227
+ type: string;
228
+ }[];
229
+ name: string;
230
+ outputs: {
231
+ components: {
232
+ internalType: string;
233
+ name: string;
234
+ type: string;
235
+ }[];
236
+ internalType: string;
237
+ name: string;
238
+ type: string;
239
+ }[];
240
+ stateMutability: string;
241
+ type: string;
242
+ anonymous?: undefined;
223
243
  })[];
224
244
  CEther: ({
225
245
  inputs: {
@@ -259,6 +279,26 @@ export declare const abi: {
259
279
  stateMutability: string;
260
280
  type: string;
261
281
  anonymous?: undefined;
282
+ } | {
283
+ inputs: {
284
+ internalType: string;
285
+ name: string;
286
+ type: string;
287
+ }[];
288
+ name: string;
289
+ outputs: {
290
+ components: {
291
+ internalType: string;
292
+ name: string;
293
+ type: string;
294
+ }[];
295
+ internalType: string;
296
+ name: string;
297
+ type: string;
298
+ }[];
299
+ stateMutability: string;
300
+ type: string;
301
+ anonymous?: undefined;
262
302
  } | {
263
303
  stateMutability: string;
264
304
  type: string;
@@ -305,6 +345,26 @@ export declare const abi: {
305
345
  stateMutability: string;
306
346
  type: string;
307
347
  anonymous?: undefined;
348
+ } | {
349
+ inputs: {
350
+ internalType: string;
351
+ name: string;
352
+ type: string;
353
+ }[];
354
+ name: string;
355
+ outputs: {
356
+ components: {
357
+ internalType: string;
358
+ name: string;
359
+ type: string;
360
+ }[];
361
+ internalType: string;
362
+ name: string;
363
+ type: string;
364
+ }[];
365
+ stateMutability: string;
366
+ type: string;
367
+ anonymous?: undefined;
308
368
  })[];
309
369
  CTokenStorage: ({
310
370
  anonymous: boolean;
@@ -372,6 +432,26 @@ export declare const abi: {
372
432
  stateMutability: string;
373
433
  type: string;
374
434
  anonymous?: undefined;
435
+ } | {
436
+ inputs: {
437
+ internalType: string;
438
+ name: string;
439
+ type: string;
440
+ }[];
441
+ name: string;
442
+ outputs: {
443
+ components: {
444
+ internalType: string;
445
+ name: string;
446
+ type: string;
447
+ }[];
448
+ internalType: string;
449
+ name: string;
450
+ type: string;
451
+ }[];
452
+ stateMutability: string;
453
+ type: string;
454
+ anonymous?: undefined;
375
455
  })[];
376
456
  AccountLiquidity: ({
377
457
  inputs: {
@@ -2609,6 +2609,25 @@ exports.abi = {
2609
2609
  "stateMutability": "view",
2610
2610
  "type": "function"
2611
2611
  },
2612
+ {
2613
+ "inputs": [
2614
+ {
2615
+ "internalType": "uint256",
2616
+ "name": "agreementId",
2617
+ "type": "uint256"
2618
+ }
2619
+ ],
2620
+ "name": "getMinWaitInSeconds",
2621
+ "outputs": [
2622
+ {
2623
+ "internalType": "uint256",
2624
+ "name": "",
2625
+ "type": "uint256"
2626
+ }
2627
+ ],
2628
+ "stateMutability": "view",
2629
+ "type": "function"
2630
+ },
2612
2631
  {
2613
2632
  "inputs": [
2614
2633
  {
@@ -4359,6 +4378,37 @@ exports.abi = {
4359
4378
  "stateMutability": "view",
4360
4379
  "type": "function"
4361
4380
  },
4381
+ {
4382
+ "inputs": [
4383
+ {
4384
+ "internalType": "address",
4385
+ "name": "borrower",
4386
+ "type": "address"
4387
+ }
4388
+ ],
4389
+ "name": "getBorrowSnapshot",
4390
+ "outputs": [
4391
+ {
4392
+ "components": [
4393
+ {
4394
+ "internalType": "uint256",
4395
+ "name": "principal",
4396
+ "type": "uint256"
4397
+ },
4398
+ {
4399
+ "internalType": "uint256",
4400
+ "name": "interestIndex",
4401
+ "type": "uint256"
4402
+ }
4403
+ ],
4404
+ "internalType": "struct CTokenStorage.BorrowSnapshot",
4405
+ "name": "",
4406
+ "type": "tuple"
4407
+ }
4408
+ ],
4409
+ "stateMutability": "view",
4410
+ "type": "function"
4411
+ },
4362
4412
  {
4363
4413
  "inputs": [],
4364
4414
  "name": "getCash",
@@ -6306,6 +6356,37 @@ exports.abi = {
6306
6356
  "stateMutability": "view",
6307
6357
  "type": "function"
6308
6358
  },
6359
+ {
6360
+ "inputs": [
6361
+ {
6362
+ "internalType": "address",
6363
+ "name": "borrower",
6364
+ "type": "address"
6365
+ }
6366
+ ],
6367
+ "name": "getBorrowSnapshot",
6368
+ "outputs": [
6369
+ {
6370
+ "components": [
6371
+ {
6372
+ "internalType": "uint256",
6373
+ "name": "principal",
6374
+ "type": "uint256"
6375
+ },
6376
+ {
6377
+ "internalType": "uint256",
6378
+ "name": "interestIndex",
6379
+ "type": "uint256"
6380
+ }
6381
+ ],
6382
+ "internalType": "struct CTokenStorage.BorrowSnapshot",
6383
+ "name": "",
6384
+ "type": "tuple"
6385
+ }
6386
+ ],
6387
+ "stateMutability": "view",
6388
+ "type": "function"
6389
+ },
6309
6390
  {
6310
6391
  "inputs": [],
6311
6392
  "name": "getCash",
@@ -8090,6 +8171,37 @@ exports.abi = {
8090
8171
  "stateMutability": "view",
8091
8172
  "type": "function"
8092
8173
  },
8174
+ {
8175
+ "inputs": [
8176
+ {
8177
+ "internalType": "address",
8178
+ "name": "borrower",
8179
+ "type": "address"
8180
+ }
8181
+ ],
8182
+ "name": "getBorrowSnapshot",
8183
+ "outputs": [
8184
+ {
8185
+ "components": [
8186
+ {
8187
+ "internalType": "uint256",
8188
+ "name": "principal",
8189
+ "type": "uint256"
8190
+ },
8191
+ {
8192
+ "internalType": "uint256",
8193
+ "name": "interestIndex",
8194
+ "type": "uint256"
8195
+ }
8196
+ ],
8197
+ "internalType": "struct CTokenStorage.BorrowSnapshot",
8198
+ "name": "",
8199
+ "type": "tuple"
8200
+ }
8201
+ ],
8202
+ "stateMutability": "view",
8203
+ "type": "function"
8204
+ },
8093
8205
  {
8094
8206
  "inputs": [],
8095
8207
  "name": "getCash",
@@ -10994,6 +11106,37 @@ exports.abi = {
10994
11106
  "stateMutability": "view",
10995
11107
  "type": "function"
10996
11108
  },
11109
+ {
11110
+ "inputs": [
11111
+ {
11112
+ "internalType": "address",
11113
+ "name": "borrower",
11114
+ "type": "address"
11115
+ }
11116
+ ],
11117
+ "name": "getBorrowSnapshot",
11118
+ "outputs": [
11119
+ {
11120
+ "components": [
11121
+ {
11122
+ "internalType": "uint256",
11123
+ "name": "principal",
11124
+ "type": "uint256"
11125
+ },
11126
+ {
11127
+ "internalType": "uint256",
11128
+ "name": "interestIndex",
11129
+ "type": "uint256"
11130
+ }
11131
+ ],
11132
+ "internalType": "struct CTokenStorage.BorrowSnapshot",
11133
+ "name": "",
11134
+ "type": "tuple"
11135
+ }
11136
+ ],
11137
+ "stateMutability": "view",
11138
+ "type": "function"
11139
+ },
10997
11140
  {
10998
11141
  "inputs": [],
10999
11142
  "name": "getCash",