@meterio/sumer-js 0.1.45 → 0.1.46

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 (50) hide show
  1. package/dist/browser/sumer.min.js +8 -8
  2. package/dist/nodejs/abi.js +285 -20
  3. package/dist/nodejs/abi.js.map +1 -1
  4. package/dist/nodejs/constants/arbitrum.d.ts +2 -10
  5. package/dist/nodejs/constants/arbitrum.js +8 -24
  6. package/dist/nodejs/constants/arbitrum.js.map +1 -1
  7. package/dist/nodejs/constants/basemain.d.ts +3 -10
  8. package/dist/nodejs/constants/basemain.js +5 -22
  9. package/dist/nodejs/constants/basemain.js.map +1 -1
  10. package/dist/nodejs/constants/metertest.js +2 -2
  11. package/dist/nodejs/errors.d.ts +8 -0
  12. package/dist/nodejs/errors.js +8 -0
  13. package/dist/nodejs/errors.js.map +1 -1
  14. package/dist/nodejs/index.d.ts +8 -0
  15. package/dist/nodejs/typechain/contracts/Interfaces/ITimelock.d.ts +4 -12
  16. package/dist/nodejs/typechain/contracts/Timelock.d.ts +140 -14
  17. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +9 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +11 -1
  19. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
  20. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +9 -1
  21. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +11 -1
  22. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  23. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +8 -0
  24. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +10 -0
  25. package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
  26. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +9 -1
  27. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +11 -1
  28. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +9 -1
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +11 -1
  31. package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +9 -1
  33. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +11 -1
  34. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +9 -1
  36. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +11 -1
  37. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +9 -1
  39. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +11 -1
  40. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.d.ts +0 -8
  42. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js +0 -10
  43. package/dist/nodejs/typechain/factories/contracts/Interfaces/ITimelock__factory.js.map +1 -1
  44. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +9 -1
  45. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +11 -1
  46. package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
  47. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +153 -9
  48. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +196 -11
  49. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
  50. package/package.json +1 -1
@@ -377,6 +377,11 @@ exports.abi = {
377
377
  "name": "ComptrollerMismatch",
378
378
  "type": "error"
379
379
  },
380
+ {
381
+ "inputs": [],
382
+ "name": "ExpiredSignature",
383
+ "type": "error"
384
+ },
380
385
  {
381
386
  "inputs": [],
382
387
  "name": "GroupIdMismatch",
@@ -512,6 +517,11 @@ exports.abi = {
512
517
  "name": "MarketNotListed",
513
518
  "type": "error"
514
519
  },
520
+ {
521
+ "inputs": [],
522
+ "name": "MinDelayNotReached",
523
+ "type": "error"
524
+ },
515
525
  {
516
526
  "inputs": [],
517
527
  "name": "MintMarketNotFresh",
@@ -1674,6 +1684,11 @@ exports.abi = {
1674
1684
  "name": "ComptrollerMismatch",
1675
1685
  "type": "error"
1676
1686
  },
1687
+ {
1688
+ "inputs": [],
1689
+ "name": "ExpiredSignature",
1690
+ "type": "error"
1691
+ },
1677
1692
  {
1678
1693
  "inputs": [],
1679
1694
  "name": "GroupIdMismatch",
@@ -1809,6 +1824,11 @@ exports.abi = {
1809
1824
  "name": "MarketNotListed",
1810
1825
  "type": "error"
1811
1826
  },
1827
+ {
1828
+ "inputs": [],
1829
+ "name": "MinDelayNotReached",
1830
+ "type": "error"
1831
+ },
1812
1832
  {
1813
1833
  "inputs": [],
1814
1834
  "name": "MintMarketNotFresh",
@@ -2119,6 +2139,75 @@ exports.abi = {
2119
2139
  "name": "AgreementFrozen",
2120
2140
  "type": "event"
2121
2141
  },
2142
+ {
2143
+ "anonymous": false,
2144
+ "inputs": [
2145
+ {
2146
+ "indexed": false,
2147
+ "internalType": "uint256",
2148
+ "name": "oldRate",
2149
+ "type": "uint256"
2150
+ },
2151
+ {
2152
+ "indexed": false,
2153
+ "internalType": "uint256",
2154
+ "name": "newRate",
2155
+ "type": "uint256"
2156
+ },
2157
+ {
2158
+ "indexed": false,
2159
+ "internalType": "uint256",
2160
+ "name": "oldCapacity",
2161
+ "type": "uint256"
2162
+ },
2163
+ {
2164
+ "indexed": false,
2165
+ "internalType": "uint256",
2166
+ "name": "newCapacity",
2167
+ "type": "uint256"
2168
+ }
2169
+ ],
2170
+ "name": "NewLimiter",
2171
+ "type": "event"
2172
+ },
2173
+ {
2174
+ "anonymous": false,
2175
+ "inputs": [
2176
+ {
2177
+ "indexed": false,
2178
+ "internalType": "uint48",
2179
+ "name": "oldValue",
2180
+ "type": "uint48"
2181
+ },
2182
+ {
2183
+ "indexed": false,
2184
+ "internalType": "uint48",
2185
+ "name": "newValue",
2186
+ "type": "uint48"
2187
+ }
2188
+ ],
2189
+ "name": "NewMaxDelay",
2190
+ "type": "event"
2191
+ },
2192
+ {
2193
+ "anonymous": false,
2194
+ "inputs": [
2195
+ {
2196
+ "indexed": false,
2197
+ "internalType": "uint48",
2198
+ "name": "oldValue",
2199
+ "type": "uint48"
2200
+ },
2201
+ {
2202
+ "indexed": false,
2203
+ "internalType": "uint48",
2204
+ "name": "newValue",
2205
+ "type": "uint48"
2206
+ }
2207
+ ],
2208
+ "name": "NewMinDelay",
2209
+ "type": "event"
2210
+ },
2122
2211
  {
2123
2212
  "anonymous": false,
2124
2213
  "inputs": [
@@ -2377,11 +2466,6 @@ exports.abi = {
2377
2466
  "internalType": "uint256",
2378
2467
  "name": "underlyAmount",
2379
2468
  "type": "uint256"
2380
- },
2381
- {
2382
- "internalType": "address",
2383
- "name": "cToken",
2384
- "type": "address"
2385
2469
  }
2386
2470
  ],
2387
2471
  "name": "consumeValue",
@@ -2420,11 +2504,6 @@ exports.abi = {
2420
2504
  "name": "actionType",
2421
2505
  "type": "uint8"
2422
2506
  },
2423
- {
2424
- "internalType": "address",
2425
- "name": "cToken",
2426
- "type": "address"
2427
- },
2428
2507
  {
2429
2508
  "internalType": "uint256",
2430
2509
  "name": "underlyAmount",
@@ -2447,6 +2526,46 @@ exports.abi = {
2447
2526
  "stateMutability": "nonpayable",
2448
2527
  "type": "function"
2449
2528
  },
2529
+ {
2530
+ "inputs": [],
2531
+ "name": "currentState",
2532
+ "outputs": [
2533
+ {
2534
+ "components": [
2535
+ {
2536
+ "internalType": "uint256",
2537
+ "name": "tokens",
2538
+ "type": "uint256"
2539
+ },
2540
+ {
2541
+ "internalType": "uint32",
2542
+ "name": "lastUpdated",
2543
+ "type": "uint32"
2544
+ },
2545
+ {
2546
+ "internalType": "bool",
2547
+ "name": "isEnabled",
2548
+ "type": "bool"
2549
+ },
2550
+ {
2551
+ "internalType": "uint256",
2552
+ "name": "capacity",
2553
+ "type": "uint256"
2554
+ },
2555
+ {
2556
+ "internalType": "uint256",
2557
+ "name": "rate",
2558
+ "type": "uint256"
2559
+ }
2560
+ ],
2561
+ "internalType": "struct RateLimiter.TokenBucket",
2562
+ "name": "",
2563
+ "type": "tuple"
2564
+ }
2565
+ ],
2566
+ "stateMutability": "view",
2567
+ "type": "function"
2568
+ },
2450
2569
  {
2451
2570
  "inputs": [],
2452
2571
  "name": "freeze",
@@ -2584,6 +2703,25 @@ exports.abi = {
2584
2703
  "stateMutability": "view",
2585
2704
  "type": "function"
2586
2705
  },
2706
+ {
2707
+ "inputs": [
2708
+ {
2709
+ "internalType": "uint256",
2710
+ "name": "agreementId",
2711
+ "type": "uint256"
2712
+ }
2713
+ ],
2714
+ "name": "isAgreementMature",
2715
+ "outputs": [
2716
+ {
2717
+ "internalType": "bool",
2718
+ "name": "",
2719
+ "type": "bool"
2720
+ }
2721
+ ],
2722
+ "stateMutability": "view",
2723
+ "type": "function"
2724
+ },
2587
2725
  {
2588
2726
  "inputs": [],
2589
2727
  "name": "maxDelay",
@@ -2597,6 +2735,19 @@ exports.abi = {
2597
2735
  "stateMutability": "view",
2598
2736
  "type": "function"
2599
2737
  },
2738
+ {
2739
+ "inputs": [],
2740
+ "name": "minDelay",
2741
+ "outputs": [
2742
+ {
2743
+ "internalType": "uint48",
2744
+ "name": "",
2745
+ "type": "uint48"
2746
+ }
2747
+ ],
2748
+ "stateMutability": "view",
2749
+ "type": "function"
2750
+ },
2600
2751
  {
2601
2752
  "inputs": [
2602
2753
  {
@@ -2656,6 +2807,50 @@ exports.abi = {
2656
2807
  "stateMutability": "nonpayable",
2657
2808
  "type": "function"
2658
2809
  },
2810
+ {
2811
+ "inputs": [
2812
+ {
2813
+ "internalType": "uint256",
2814
+ "name": "newRate",
2815
+ "type": "uint256"
2816
+ },
2817
+ {
2818
+ "internalType": "uint256",
2819
+ "name": "newCapacity",
2820
+ "type": "uint256"
2821
+ }
2822
+ ],
2823
+ "name": "setLimiter",
2824
+ "outputs": [],
2825
+ "stateMutability": "nonpayable",
2826
+ "type": "function"
2827
+ },
2828
+ {
2829
+ "inputs": [
2830
+ {
2831
+ "internalType": "uint48",
2832
+ "name": "newMaxDelayInSeconds",
2833
+ "type": "uint48"
2834
+ }
2835
+ ],
2836
+ "name": "setMaxDelay",
2837
+ "outputs": [],
2838
+ "stateMutability": "nonpayable",
2839
+ "type": "function"
2840
+ },
2841
+ {
2842
+ "inputs": [
2843
+ {
2844
+ "internalType": "uint48",
2845
+ "name": "newMinDelayInSeconds",
2846
+ "type": "uint48"
2847
+ }
2848
+ ],
2849
+ "name": "setMinDelay",
2850
+ "outputs": [],
2851
+ "stateMutability": "nonpayable",
2852
+ "type": "function"
2853
+ },
2659
2854
  {
2660
2855
  "inputs": [
2661
2856
  {
@@ -2874,6 +3069,11 @@ exports.abi = {
2874
3069
  "name": "ComptrollerMismatch",
2875
3070
  "type": "error"
2876
3071
  },
3072
+ {
3073
+ "inputs": [],
3074
+ "name": "ExpiredSignature",
3075
+ "type": "error"
3076
+ },
2877
3077
  {
2878
3078
  "inputs": [],
2879
3079
  "name": "GroupIdMismatch",
@@ -3009,6 +3209,11 @@ exports.abi = {
3009
3209
  "name": "MarketNotListed",
3010
3210
  "type": "error"
3011
3211
  },
3212
+ {
3213
+ "inputs": [],
3214
+ "name": "MinDelayNotReached",
3215
+ "type": "error"
3216
+ },
3012
3217
  {
3013
3218
  "inputs": [],
3014
3219
  "name": "MintMarketNotFresh",
@@ -4812,6 +5017,11 @@ exports.abi = {
4812
5017
  "name": "ComptrollerMismatch",
4813
5018
  "type": "error"
4814
5019
  },
5020
+ {
5021
+ "inputs": [],
5022
+ "name": "ExpiredSignature",
5023
+ "type": "error"
5024
+ },
4815
5025
  {
4816
5026
  "inputs": [],
4817
5027
  "name": "GroupIdMismatch",
@@ -4947,6 +5157,11 @@ exports.abi = {
4947
5157
  "name": "MarketNotListed",
4948
5158
  "type": "error"
4949
5159
  },
5160
+ {
5161
+ "inputs": [],
5162
+ "name": "MinDelayNotReached",
5163
+ "type": "error"
5164
+ },
4950
5165
  {
4951
5166
  "inputs": [],
4952
5167
  "name": "MintMarketNotFresh",
@@ -6626,6 +6841,11 @@ exports.abi = {
6626
6841
  "name": "ComptrollerMismatch",
6627
6842
  "type": "error"
6628
6843
  },
6844
+ {
6845
+ "inputs": [],
6846
+ "name": "ExpiredSignature",
6847
+ "type": "error"
6848
+ },
6629
6849
  {
6630
6850
  "inputs": [],
6631
6851
  "name": "GroupIdMismatch",
@@ -6761,6 +6981,11 @@ exports.abi = {
6761
6981
  "name": "MarketNotListed",
6762
6982
  "type": "error"
6763
6983
  },
6984
+ {
6985
+ "inputs": [],
6986
+ "name": "MinDelayNotReached",
6987
+ "type": "error"
6988
+ },
6764
6989
  {
6765
6990
  "inputs": [],
6766
6991
  "name": "MintMarketNotFresh",
@@ -9420,6 +9645,11 @@ exports.abi = {
9420
9645
  "name": "ComptrollerMismatch",
9421
9646
  "type": "error"
9422
9647
  },
9648
+ {
9649
+ "inputs": [],
9650
+ "name": "ExpiredSignature",
9651
+ "type": "error"
9652
+ },
9423
9653
  {
9424
9654
  "inputs": [],
9425
9655
  "name": "GroupIdMismatch",
@@ -9555,6 +9785,11 @@ exports.abi = {
9555
9785
  "name": "MarketNotListed",
9556
9786
  "type": "error"
9557
9787
  },
9788
+ {
9789
+ "inputs": [],
9790
+ "name": "MinDelayNotReached",
9791
+ "type": "error"
9792
+ },
9558
9793
  {
9559
9794
  "inputs": [],
9560
9795
  "name": "MintMarketNotFresh",
@@ -11431,6 +11666,11 @@ exports.abi = {
11431
11666
  "name": "ComptrollerMismatch",
11432
11667
  "type": "error"
11433
11668
  },
11669
+ {
11670
+ "inputs": [],
11671
+ "name": "ExpiredSignature",
11672
+ "type": "error"
11673
+ },
11434
11674
  {
11435
11675
  "inputs": [],
11436
11676
  "name": "GroupIdMismatch",
@@ -11566,6 +11806,11 @@ exports.abi = {
11566
11806
  "name": "MarketNotListed",
11567
11807
  "type": "error"
11568
11808
  },
11809
+ {
11810
+ "inputs": [],
11811
+ "name": "MinDelayNotReached",
11812
+ "type": "error"
11813
+ },
11569
11814
  {
11570
11815
  "inputs": [],
11571
11816
  "name": "MintMarketNotFresh",
@@ -13142,6 +13387,11 @@ exports.abi = {
13142
13387
  "name": "ComptrollerMismatch",
13143
13388
  "type": "error"
13144
13389
  },
13390
+ {
13391
+ "inputs": [],
13392
+ "name": "ExpiredSignature",
13393
+ "type": "error"
13394
+ },
13145
13395
  {
13146
13396
  "inputs": [],
13147
13397
  "name": "GroupIdMismatch",
@@ -13277,6 +13527,11 @@ exports.abi = {
13277
13527
  "name": "MarketNotListed",
13278
13528
  "type": "error"
13279
13529
  },
13530
+ {
13531
+ "inputs": [],
13532
+ "name": "MinDelayNotReached",
13533
+ "type": "error"
13534
+ },
13280
13535
  {
13281
13536
  "inputs": [],
13282
13537
  "name": "MintMarketNotFresh",
@@ -14518,6 +14773,11 @@ exports.abi = {
14518
14773
  "name": "ComptrollerMismatch",
14519
14774
  "type": "error"
14520
14775
  },
14776
+ {
14777
+ "inputs": [],
14778
+ "name": "ExpiredSignature",
14779
+ "type": "error"
14780
+ },
14521
14781
  {
14522
14782
  "inputs": [],
14523
14783
  "name": "GroupIdMismatch",
@@ -14653,6 +14913,11 @@ exports.abi = {
14653
14913
  "name": "MarketNotListed",
14654
14914
  "type": "error"
14655
14915
  },
14916
+ {
14917
+ "inputs": [],
14918
+ "name": "MinDelayNotReached",
14919
+ "type": "error"
14920
+ },
14656
14921
  {
14657
14922
  "inputs": [],
14658
14923
  "name": "MintMarketNotFresh",
@@ -17784,6 +18049,11 @@ exports.abi = {
17784
18049
  "name": "ComptrollerMismatch",
17785
18050
  "type": "error"
17786
18051
  },
18052
+ {
18053
+ "inputs": [],
18054
+ "name": "ExpiredSignature",
18055
+ "type": "error"
18056
+ },
17787
18057
  {
17788
18058
  "inputs": [],
17789
18059
  "name": "GroupIdMismatch",
@@ -17919,6 +18189,11 @@ exports.abi = {
17919
18189
  "name": "MarketNotListed",
17920
18190
  "type": "error"
17921
18191
  },
18192
+ {
18193
+ "inputs": [],
18194
+ "name": "MinDelayNotReached",
18195
+ "type": "error"
18196
+ },
17922
18197
  {
17923
18198
  "inputs": [],
17924
18199
  "name": "MintMarketNotFresh",
@@ -25443,11 +25718,6 @@ exports.abi = {
25443
25718
  "internalType": "uint256",
25444
25719
  "name": "underlyAmount",
25445
25720
  "type": "uint256"
25446
- },
25447
- {
25448
- "internalType": "address",
25449
- "name": "cToken",
25450
- "type": "address"
25451
25721
  }
25452
25722
  ],
25453
25723
  "name": "consumeValue",
@@ -25486,11 +25756,6 @@ exports.abi = {
25486
25756
  "name": "actionType",
25487
25757
  "type": "uint8"
25488
25758
  },
25489
- {
25490
- "internalType": "address",
25491
- "name": "cToken",
25492
- "type": "address"
25493
- },
25494
25759
  {
25495
25760
  "internalType": "uint256",
25496
25761
  "name": "underlyAmount",