@1delta/abis 0.0.5 → 0.0.7

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 (47) hide show
  1. package/README.md +29 -0
  2. package/dist/aave/index.d.ts +1 -1
  3. package/dist/aave/index.d.ts.map +1 -1
  4. package/dist/aave/index.js +1 -1
  5. package/dist/aave/weth-gateway.d.ts +38 -0
  6. package/dist/aave/weth-gateway.d.ts.map +1 -1
  7. package/dist/aave/weth-gateway.js +25 -0
  8. package/dist/compound-v3/baseBulker.d.ts +188 -0
  9. package/dist/compound-v3/baseBulker.d.ts.map +1 -0
  10. package/dist/compound-v3/baseBulker.js +57 -0
  11. package/dist/compound-v3/index.d.ts +3 -0
  12. package/dist/compound-v3/index.d.ts.map +1 -1
  13. package/dist/compound-v3/index.js +3 -0
  14. package/dist/compound-v3/mainnetBulker.d.ts +236 -0
  15. package/dist/compound-v3/mainnetBulker.d.ts.map +1 -0
  16. package/dist/compound-v3/mainnetBulker.js +63 -0
  17. package/dist/compound-v3/mainnetWstethBulker.d.ts +246 -0
  18. package/dist/compound-v3/mainnetWstethBulker.d.ts.map +1 -0
  19. package/dist/compound-v3/mainnetWstethBulker.js +64 -0
  20. package/dist/euler-v2/eVault.d.ts +206 -0
  21. package/dist/euler-v2/eVault.d.ts.map +1 -0
  22. package/dist/euler-v2/eVault.js +147 -0
  23. package/dist/euler-v2/evc.d.ts +81 -0
  24. package/dist/euler-v2/evc.d.ts.map +1 -0
  25. package/dist/euler-v2/evc.js +62 -0
  26. package/dist/euler-v2/index.d.ts +5 -0
  27. package/dist/euler-v2/index.d.ts.map +1 -0
  28. package/dist/euler-v2/index.js +4 -0
  29. package/dist/euler-v2/payments.d.ts +140 -0
  30. package/dist/euler-v2/payments.d.ts.map +1 -0
  31. package/dist/euler-v2/payments.js +88 -0
  32. package/dist/euler-v2/swapper.d.ts +143 -0
  33. package/dist/euler-v2/swapper.d.ts.map +1 -0
  34. package/dist/euler-v2/swapper.js +105 -0
  35. package/dist/index.d.ts +9 -8
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +9 -8
  38. package/dist/init/index.d.ts +1 -1
  39. package/dist/init/index.d.ts.map +1 -1
  40. package/dist/init/index.js +1 -1
  41. package/dist/morpho/index.d.ts +4 -3
  42. package/dist/morpho/index.d.ts.map +1 -1
  43. package/dist/morpho/index.js +4 -3
  44. package/dist/morpho/lista-providers.d.ts +1082 -0
  45. package/dist/morpho/lista-providers.d.ts.map +1 -0
  46. package/dist/morpho/lista-providers.js +601 -0
  47. package/package.json +1 -1
@@ -0,0 +1,105 @@
1
+ export const swapperAbi = [
2
+ {
3
+ type: "function",
4
+ name: "swapSimple",
5
+ inputs: [
6
+ { type: "uint256", name: "value" },
7
+ { type: "bytes", name: "data" },
8
+ ],
9
+ outputs: [],
10
+ stateMutability: "payable",
11
+ },
12
+ {
13
+ type: "function",
14
+ name: "approve",
15
+ inputs: [
16
+ { type: "address", name: "token" },
17
+ { type: "address", name: "spender" },
18
+ ],
19
+ outputs: [],
20
+ stateMutability: "nonpayable",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "deposit",
25
+ inputs: [
26
+ { type: "address", name: "token" },
27
+ { type: "address", name: "vault" },
28
+ { type: "uint256", name: "amountMin" },
29
+ { type: "address", name: "account" },
30
+ ],
31
+ outputs: [],
32
+ stateMutability: "nonpayable",
33
+ },
34
+ {
35
+ type: "function",
36
+ name: "repay",
37
+ inputs: [
38
+ { type: "address", name: "token" },
39
+ { type: "address", name: "vault" },
40
+ { type: "uint256", name: "repayAmount" },
41
+ { type: "uint256", name: "amountMin" },
42
+ { type: "address", name: "account" },
43
+ ],
44
+ outputs: [],
45
+ stateMutability: "nonpayable",
46
+ },
47
+ {
48
+ type: "function",
49
+ name: "repayAndDeposit",
50
+ inputs: [
51
+ { type: "address", name: "token" },
52
+ { type: "address", name: "vault" },
53
+ { type: "uint256", name: "repayAmount" },
54
+ { type: "uint256", name: "amountMin" },
55
+ { type: "address", name: "account" },
56
+ ],
57
+ outputs: [],
58
+ stateMutability: "nonpayable",
59
+ },
60
+ {
61
+ type: "function",
62
+ name: "sweep",
63
+ inputs: [
64
+ { type: "address", name: "token" },
65
+ { type: "uint256", name: "amountMin" },
66
+ { type: "address", name: "to" },
67
+ ],
68
+ outputs: [],
69
+ stateMutability: "nonpayable",
70
+ },
71
+ {
72
+ type: "function",
73
+ name: "sweepNative",
74
+ inputs: [
75
+ { type: "uint256", name: "amountMin" },
76
+ { type: "address", name: "to" },
77
+ ],
78
+ outputs: [],
79
+ stateMutability: "nonpayable",
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "wrap",
84
+ inputs: [{ type: "address", name: "wrappedNative" }],
85
+ outputs: [],
86
+ stateMutability: "payable",
87
+ },
88
+ {
89
+ type: "function",
90
+ name: "unwrap",
91
+ inputs: [
92
+ { type: "address", name: "wrappedNative" },
93
+ { type: "uint256", name: "amount" },
94
+ ],
95
+ outputs: [],
96
+ stateMutability: "nonpayable",
97
+ },
98
+ {
99
+ type: "function",
100
+ name: "multicall",
101
+ inputs: [{ type: "bytes[]", name: "calls" }],
102
+ outputs: [],
103
+ stateMutability: "payable",
104
+ },
105
+ ];
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- export { AaveV2V3Abi, AaveWethGatewayAbi } from './aave/index.js';
2
- export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2';
3
- export { CompoundV3CometAbi } from './compound-v3';
4
- export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } from './morpho';
5
- export { SiloV2Abi } from './silo-v2';
6
- export { Erc20Abi, Eip2612Abi } from './erc20';
7
- export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi } from './permissions';
8
- export { PosManagerAbi } from './init';
1
+ export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
2
+ export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
3
+ export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
4
+ export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './morpho/index.js';
5
+ export { SiloV2Abi } from './silo-v2/index.js';
6
+ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
7
+ export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
8
+ export { PosManagerAbi } from './init/index.js';
9
+ export { evcAbi, eVaultAbi, swapperAbi, paymentsAbi } from './euler-v2/index.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EA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
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
- export { AaveV2V3Abi, AaveWethGatewayAbi } from './aave/index.js';
2
- export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2';
3
- export { CompoundV3CometAbi } from './compound-v3';
4
- export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } from './morpho';
5
- export { SiloV2Abi } from './silo-v2';
6
- export { Erc20Abi, Eip2612Abi } from './erc20';
7
- export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi } from './permissions';
8
- export { PosManagerAbi } from './init';
1
+ export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
2
+ export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
3
+ export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
4
+ export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './morpho/index.js';
5
+ export { SiloV2Abi } from './silo-v2/index.js';
6
+ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
7
+ export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
8
+ export { PosManagerAbi } from './init/index.js';
9
+ export { evcAbi, eVaultAbi, swapperAbi, paymentsAbi } from './euler-v2/index.js';
@@ -1,2 +1,2 @@
1
- export { PosManagerAbi } from './posManager';
1
+ export { PosManagerAbi } from './posManager.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- export { PosManagerAbi } from './posManager';
1
+ export { PosManagerAbi } from './posManager.js';
@@ -1,4 +1,5 @@
1
- export { MorphoBlueAbi } from './blue';
2
- export { MorphoLensAbi } from './lens';
3
- export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3';
1
+ export { MorphoBlueAbi } from './blue.js';
2
+ export { MorphoLensAbi } from './lens.js';
3
+ export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3.js';
4
+ export { LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './lista-providers.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EACL,8BAA8B,EAC9B,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EACL,8BAA8B,EAC9B,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAA"}
@@ -1,3 +1,4 @@
1
- export { MorphoBlueAbi } from './blue';
2
- export { MorphoLensAbi } from './lens';
3
- export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3';
1
+ export { MorphoBlueAbi } from './blue.js';
2
+ export { MorphoLensAbi } from './lens.js';
3
+ export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3.js';
4
+ export { LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './lista-providers.js';