@1delta/abis 0.0.5 → 0.0.6
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.
- package/README.md +29 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.d.ts.map +1 -1
- package/dist/init/index.js +1 -1
- package/dist/morpho/index.d.ts +3 -3
- package/dist/morpho/index.d.ts.map +1 -1
- package/dist/morpho/index.js +3 -3
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @1delta/abis
|
|
2
|
+
|
|
3
|
+
ABI definitions for DeFi lending protocols used across 1delta packages.
|
|
4
|
+
|
|
5
|
+
## Included Protocols
|
|
6
|
+
|
|
7
|
+
- Aave V2/V3
|
|
8
|
+
- Compound V2 (Venus)
|
|
9
|
+
- Compound V3 (Comet)
|
|
10
|
+
- Morpho Blue + Bundler3
|
|
11
|
+
- Silo V2
|
|
12
|
+
- Init Capital
|
|
13
|
+
- ERC20 / EIP-2612 / Permit2
|
|
14
|
+
|
|
15
|
+
## ESM Import Rule
|
|
16
|
+
|
|
17
|
+
This package uses `"type": "module"`. All relative imports **must** include explicit file extensions:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
// correct
|
|
21
|
+
export { Foo } from './bar/index.js'
|
|
22
|
+
export { Baz } from './qux.js'
|
|
23
|
+
|
|
24
|
+
// wrong - will fail at runtime with ERR_UNSUPPORTED_DIR_IMPORT
|
|
25
|
+
export { Foo } from './bar'
|
|
26
|
+
export { Baz } from './qux'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Node.js ESM does not resolve directory imports or extensionless imports automatically. Always use `.js` extensions in import specifiers (even for `.ts` source files — TypeScript emits them as-is).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
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';
|
|
2
|
+
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
|
|
3
|
+
export { CompoundV3CometAbi } from './compound-v3/index.js';
|
|
4
|
+
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } 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
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,wBAAwB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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';
|
|
2
|
+
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
|
|
3
|
+
export { CompoundV3CometAbi } from './compound-v3/index.js';
|
|
4
|
+
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } 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';
|
package/dist/init/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PosManagerAbi } from './posManager';
|
|
1
|
+
export { PosManagerAbi } from './posManager.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/init/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/init/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PosManagerAbi } from './posManager';
|
|
1
|
+
export { PosManagerAbi } from './posManager.js';
|
package/dist/morpho/index.d.ts
CHANGED
|
@@ -1,4 +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
4
|
//# 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,
|
|
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"}
|
package/dist/morpho/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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';
|