@meterio/sumer-js 0.2.84 → 0.2.85

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 (46) hide show
  1. package/dist/browser/sumer.min.js +6 -6
  2. package/dist/nodejs/abi.d.ts +36 -0
  3. package/dist/nodejs/abi.js +130 -0
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/index.d.ts +36 -0
  6. package/dist/nodejs/typechain/contracts/Interfaces/ILayerBank.d.ts +25 -0
  7. package/dist/nodejs/typechain/contracts/Interfaces/ILayerBank.js +3 -0
  8. package/dist/nodejs/typechain/contracts/Interfaces/ILayerBank.js.map +1 -0
  9. package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +1 -0
  10. package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +43 -1
  11. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/ILayerBank.d.ts +25 -0
  12. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/ILayerBank.js +3 -0
  13. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/ILayerBank.js.map +1 -0
  14. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter.d.ts +29 -0
  15. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter.js +3 -0
  16. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter.js.map +1 -0
  17. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/index.d.ts +2 -0
  18. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/index.js +3 -0
  19. package/dist/nodejs/typechain/contracts/Oracle/LayerBankAdapter.sol/index.js.map +1 -0
  20. package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +10 -0
  21. package/dist/nodejs/typechain/factories/contracts/Interfaces/ILayerBank__factory.d.ts +21 -0
  22. package/dist/nodejs/typechain/factories/contracts/Interfaces/ILayerBank__factory.js +39 -0
  23. package/dist/nodejs/typechain/factories/contracts/Interfaces/ILayerBank__factory.js.map +1 -0
  24. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +1 -0
  25. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +3 -1
  26. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
  27. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +47 -1
  28. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +61 -1
  29. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/ILayerBank__factory.d.ts +21 -0
  31. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/ILayerBank__factory.js +39 -0
  32. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/ILayerBank__factory.js.map +1 -0
  33. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter__factory.d.ts +58 -0
  34. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter__factory.js +87 -0
  35. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter__factory.js.map +1 -0
  36. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/index.d.ts +2 -0
  37. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/index.js +11 -0
  38. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/index.js.map +1 -0
  39. package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +5 -0
  40. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +6 -1
  41. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
  42. package/dist/nodejs/typechain/hardhat.d.ts +198 -0
  43. package/dist/nodejs/typechain/index.d.ts +20 -0
  44. package/dist/nodejs/typechain/index.js +22 -2
  45. package/dist/nodejs/typechain/index.js.map +1 -1
  46. package/package.json +1 -1
@@ -1207,6 +1207,21 @@ export declare const abi: {
1207
1207
  stateMutability: string;
1208
1208
  type: string;
1209
1209
  }[];
1210
+ ILayerBank: {
1211
+ inputs: {
1212
+ internalType: string;
1213
+ name: string;
1214
+ type: string;
1215
+ }[];
1216
+ name: string;
1217
+ outputs: {
1218
+ internalType: string;
1219
+ name: string;
1220
+ type: string;
1221
+ }[];
1222
+ stateMutability: string;
1223
+ type: string;
1224
+ }[];
1210
1225
  IPMarket: ({
1211
1226
  anonymous: boolean;
1212
1227
  inputs: {
@@ -1660,6 +1675,27 @@ export declare const abi: {
1660
1675
  type: string;
1661
1676
  anonymous?: undefined;
1662
1677
  })[];
1678
+ LayerBankAdapter: ({
1679
+ inputs: {
1680
+ internalType: string;
1681
+ name: string;
1682
+ type: string;
1683
+ }[];
1684
+ stateMutability: string;
1685
+ type: string;
1686
+ name?: undefined;
1687
+ outputs?: undefined;
1688
+ } | {
1689
+ inputs: any[];
1690
+ name: string;
1691
+ outputs: {
1692
+ internalType: string;
1693
+ name: string;
1694
+ type: string;
1695
+ }[];
1696
+ stateMutability: string;
1697
+ type: string;
1698
+ })[];
1663
1699
  PriceAdapter: {
1664
1700
  inputs: any[];
1665
1701
  name: string;
@@ -24719,6 +24719,27 @@ exports.abi = {
24719
24719
  "type": "function"
24720
24720
  }
24721
24721
  ],
24722
+ "ILayerBank": [
24723
+ {
24724
+ "inputs": [
24725
+ {
24726
+ "internalType": "address",
24727
+ "name": "token",
24728
+ "type": "address"
24729
+ }
24730
+ ],
24731
+ "name": "priceOf",
24732
+ "outputs": [
24733
+ {
24734
+ "internalType": "uint256",
24735
+ "name": "",
24736
+ "type": "uint256"
24737
+ }
24738
+ ],
24739
+ "stateMutability": "view",
24740
+ "type": "function"
24741
+ }
24742
+ ],
24722
24743
  "IPMarket": [
24723
24744
  {
24724
24745
  "anonymous": false,
@@ -28850,6 +28871,30 @@ exports.abi = {
28850
28871
  "stateMutability": "view",
28851
28872
  "type": "function"
28852
28873
  },
28874
+ {
28875
+ "inputs": [
28876
+ {
28877
+ "internalType": "address",
28878
+ "name": "",
28879
+ "type": "address"
28880
+ }
28881
+ ],
28882
+ "name": "layerbankFeeds",
28883
+ "outputs": [
28884
+ {
28885
+ "internalType": "address",
28886
+ "name": "feedAddr",
28887
+ "type": "address"
28888
+ },
28889
+ {
28890
+ "internalType": "address",
28891
+ "name": "feedAssetAddr",
28892
+ "type": "address"
28893
+ }
28894
+ ],
28895
+ "stateMutability": "view",
28896
+ "type": "function"
28897
+ },
28853
28898
  {
28854
28899
  "inputs": [
28855
28900
  {
@@ -29073,6 +29118,19 @@ exports.abi = {
29073
29118
  "stateMutability": "nonpayable",
29074
29119
  "type": "function"
29075
29120
  },
29121
+ {
29122
+ "inputs": [
29123
+ {
29124
+ "internalType": "address",
29125
+ "name": "asset",
29126
+ "type": "address"
29127
+ }
29128
+ ],
29129
+ "name": "removeLayerbankFeed",
29130
+ "outputs": [],
29131
+ "stateMutability": "nonpayable",
29132
+ "type": "function"
29133
+ },
29076
29134
  {
29077
29135
  "inputs": [
29078
29136
  {
@@ -29188,6 +29246,29 @@ exports.abi = {
29188
29246
  "stateMutability": "nonpayable",
29189
29247
  "type": "function"
29190
29248
  },
29249
+ {
29250
+ "inputs": [
29251
+ {
29252
+ "internalType": "address",
29253
+ "name": "asset",
29254
+ "type": "address"
29255
+ },
29256
+ {
29257
+ "internalType": "address",
29258
+ "name": "feedAddr",
29259
+ "type": "address"
29260
+ },
29261
+ {
29262
+ "internalType": "address",
29263
+ "name": "feedAssetAddr",
29264
+ "type": "address"
29265
+ }
29266
+ ],
29267
+ "name": "setLayerbankFeed",
29268
+ "outputs": [],
29269
+ "stateMutability": "nonpayable",
29270
+ "type": "function"
29271
+ },
29191
29272
  {
29192
29273
  "inputs": [
29193
29274
  {
@@ -29325,6 +29406,55 @@ exports.abi = {
29325
29406
  "type": "function"
29326
29407
  }
29327
29408
  ],
29409
+ "LayerBankAdapter": [
29410
+ {
29411
+ "inputs": [
29412
+ {
29413
+ "internalType": "address",
29414
+ "name": "_correlatedToken",
29415
+ "type": "address"
29416
+ },
29417
+ {
29418
+ "internalType": "address",
29419
+ "name": "_underlyingToken",
29420
+ "type": "address"
29421
+ },
29422
+ {
29423
+ "internalType": "address",
29424
+ "name": "_feedAddr",
29425
+ "type": "address"
29426
+ }
29427
+ ],
29428
+ "stateMutability": "nonpayable",
29429
+ "type": "constructor"
29430
+ },
29431
+ {
29432
+ "inputs": [],
29433
+ "name": "exchangeRate",
29434
+ "outputs": [
29435
+ {
29436
+ "internalType": "uint256",
29437
+ "name": "",
29438
+ "type": "uint256"
29439
+ }
29440
+ ],
29441
+ "stateMutability": "view",
29442
+ "type": "function"
29443
+ },
29444
+ {
29445
+ "inputs": [],
29446
+ "name": "feedAddr",
29447
+ "outputs": [
29448
+ {
29449
+ "internalType": "address",
29450
+ "name": "",
29451
+ "type": "address"
29452
+ }
29453
+ ],
29454
+ "stateMutability": "view",
29455
+ "type": "function"
29456
+ }
29457
+ ],
29328
29458
  "PriceAdapter": [
29329
29459
  {
29330
29460
  "inputs": [],