@1delta/abis 0.0.11 → 0.0.13

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/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
2
- export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
1
+ export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi, } from './aave/index.js';
2
+ export { venusCompoundV2ComptrollerAbi, CompoundV2CEtherAbi, } from './compound-v2/index.js';
3
3
  export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
4
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';
5
+ export { SiloV2Abi, SiloConvertToAssetsAbi } from './silo-v2/index.js';
6
+ export { FluidLendingResolverAbi, FluidVaultResolverAbi, } from './fluid/index.js';
6
7
  export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
7
8
  export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
8
9
  export { PosManagerAbi } from './init/index.js';
9
- export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi } from './euler-v2/index.js';
10
+ export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
10
11
  export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
11
12
  //# 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,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACxF,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,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,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACrF,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,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,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
package/dist/index.js CHANGED
@@ -1,10 +1,11 @@
1
- export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
2
- export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
1
+ export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi, } from './aave/index.js';
2
+ export { venusCompoundV2ComptrollerAbi, CompoundV2CEtherAbi, } from './compound-v2/index.js';
3
3
  export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
4
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';
5
+ export { SiloV2Abi, SiloConvertToAssetsAbi } from './silo-v2/index.js';
6
+ export { FluidLendingResolverAbi, FluidVaultResolverAbi, } from './fluid/index.js';
6
7
  export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
7
8
  export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
8
9
  export { PosManagerAbi } from './init/index.js';
9
- export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi } from './euler-v2/index.js';
10
+ export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
10
11
  export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
@@ -1,2 +1,28 @@
1
1
  export { SiloV2Abi } from './silo.js';
2
+ /**
3
+ * Isolated ABI for the 2-arg `convertToAssets(uint256, uint8)` overload.
4
+ *
5
+ * Silo has both a standard ERC-4626 1-arg `convertToAssets(uint256)` and a
6
+ * Silo-specific 2-arg version where the second param is the `AssetType`
7
+ * enum (0 = Protected, 1 = Collateral, 2 = Debt).
8
+ *
9
+ * viem cannot disambiguate overloaded function names within a single ABI,
10
+ * so callers that need the 2-arg variant must use this standalone ABI.
11
+ */
12
+ export declare const SiloConvertToAssetsAbi: readonly [{
13
+ readonly type: "function";
14
+ readonly name: "convertToAssets";
15
+ readonly stateMutability: "view";
16
+ readonly inputs: readonly [{
17
+ readonly name: "_shares";
18
+ readonly type: "uint256";
19
+ }, {
20
+ readonly name: "_assetType";
21
+ readonly type: "uint8";
22
+ }];
23
+ readonly outputs: readonly [{
24
+ readonly name: "assets";
25
+ readonly type: "uint256";
26
+ }];
27
+ }];
2
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/silo-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/silo-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAWzB,CAAA"}
@@ -1 +1,23 @@
1
1
  export { SiloV2Abi } from './silo.js';
2
+ /**
3
+ * Isolated ABI for the 2-arg `convertToAssets(uint256, uint8)` overload.
4
+ *
5
+ * Silo has both a standard ERC-4626 1-arg `convertToAssets(uint256)` and a
6
+ * Silo-specific 2-arg version where the second param is the `AssetType`
7
+ * enum (0 = Protected, 1 = Collateral, 2 = Debt).
8
+ *
9
+ * viem cannot disambiguate overloaded function names within a single ABI,
10
+ * so callers that need the 2-arg variant must use this standalone ABI.
11
+ */
12
+ export const SiloConvertToAssetsAbi = [
13
+ {
14
+ type: 'function',
15
+ name: 'convertToAssets',
16
+ stateMutability: 'view',
17
+ inputs: [
18
+ { name: '_shares', type: 'uint256' },
19
+ { name: '_assetType', type: 'uint8' },
20
+ ],
21
+ outputs: [{ name: 'assets', type: 'uint256' }],
22
+ },
23
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/abis",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,13 +16,13 @@
16
16
  "files": [
17
17
  "dist"
18
18
  ],
19
+ "scripts": {
20
+ "build": "tsc"
21
+ },
19
22
  "devDependencies": {
20
23
  "typescript": "^5.9.3"
21
24
  },
22
25
  "engines": {
23
26
  "node": ">=20"
24
- },
25
- "scripts": {
26
- "build": "tsc"
27
27
  }
28
- }
28
+ }