@gearbox-protocol/sdk 14.4.3 → 14.5.1

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 (26) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.js +187 -0
  2. package/dist/cjs/abi/router/securitizeOnrampWorker.js +541 -0
  3. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +9 -0
  4. package/dist/cjs/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +68 -0
  5. package/dist/cjs/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +77 -0
  6. package/dist/cjs/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +68 -0
  7. package/dist/cjs/plugins/adapters/createAdapter.js +9 -0
  8. package/dist/cjs/plugins/adapters/types.js +3 -0
  9. package/dist/cjs/sdk/chain/chains.js +1 -1
  10. package/dist/esm/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.js +163 -0
  11. package/dist/esm/abi/router/securitizeOnrampWorker.js +517 -0
  12. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +9 -0
  13. package/dist/esm/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +46 -0
  14. package/dist/esm/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +55 -0
  15. package/dist/esm/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +46 -0
  16. package/dist/esm/plugins/adapters/createAdapter.js +9 -0
  17. package/dist/esm/plugins/adapters/types.js +3 -0
  18. package/dist/esm/sdk/chain/chains.js +1 -1
  19. package/dist/types/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.d.ts +220 -0
  20. package/dist/types/abi/router/securitizeOnrampWorker.d.ts +726 -0
  21. package/dist/types/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +24 -0
  22. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +26 -0
  23. package/dist/types/plugins/adapters/contracts/SecuritizeSwapAdapterContract.d.ts +24 -0
  24. package/dist/types/plugins/adapters/types.d.ts +4 -1
  25. package/dist/types/sdk/chain/chains.d.ts +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { type Address } from "viem";
2
+ import { type ConstructOptions } from "../../../sdk/index.js";
3
+ import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
4
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
+ declare const abi: readonly [];
6
+ type abi = typeof abi;
7
+ declare const protocolAbi: readonly [];
8
+ type protocolAbi = typeof protocolAbi;
9
+ export declare class SecuritizeOnRampAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
10
+ #private;
11
+ constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
12
+ get dsToken(): Address;
13
+ get liquidityToken(): Address;
14
+ stateHuman(raw?: boolean): {
15
+ dsToken: string | undefined;
16
+ liquidityToken: string | undefined;
17
+ creditManager?: string;
18
+ targetContract?: string;
19
+ address: string;
20
+ version: number;
21
+ contractType?: string;
22
+ };
23
+ }
24
+ export {};
@@ -0,0 +1,26 @@
1
+ import { type Address } from "viem";
2
+ import { type ConstructOptions } from "../../../sdk/index.js";
3
+ import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
4
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
+ declare const abi: readonly [];
6
+ type abi = typeof abi;
7
+ declare const protocolAbi: readonly [];
8
+ type protocolAbi = typeof protocolAbi;
9
+ export declare class SecuritizeRedemptionGatewayAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
10
+ #private;
11
+ constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
12
+ get dsToken(): Address;
13
+ get stableCoinToken(): Address;
14
+ get redemptionPhantomToken(): Address;
15
+ stateHuman(raw?: boolean): {
16
+ dsToken: string | undefined;
17
+ stableCoinToken: string | undefined;
18
+ redemptionPhantomToken: string | undefined;
19
+ creditManager?: string;
20
+ targetContract?: string;
21
+ address: string;
22
+ version: number;
23
+ contractType?: string;
24
+ };
25
+ }
26
+ export {};
@@ -0,0 +1,24 @@
1
+ import { type Address } from "viem";
2
+ import { type ConstructOptions } from "../../../sdk/index.js";
3
+ import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
4
+ import { AbstractAdapterContract } from "./AbstractAdapter.js";
5
+ declare const abi: readonly [];
6
+ type abi = typeof abi;
7
+ declare const protocolAbi: readonly [];
8
+ type protocolAbi = typeof protocolAbi;
9
+ export declare class SecuritizeSwapAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
10
+ #private;
11
+ constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
12
+ get dsToken(): Address;
13
+ get stableCoinToken(): Address;
14
+ stateHuman(raw?: boolean): {
15
+ dsToken: string | undefined;
16
+ stableCoinToken: string | undefined;
17
+ creditManager?: string;
18
+ targetContract?: string;
19
+ address: string;
20
+ version: number;
21
+ contractType?: string;
22
+ };
23
+ }
24
+ export {};
@@ -2,7 +2,7 @@ import type { AbiParameter, Address } from "viem";
2
2
  import type { BaseContractStateHuman } from "../../sdk/types/state-human.js";
3
3
  import type { LegacyAdapterOperation } from "./legacyAdapterOperations.js";
4
4
  export type VersionedAbi = Record<number, readonly AbiParameter[]>;
5
- export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADER_JOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
5
+ export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::SECURITIZE_ONRAMP" | "ADAPTER::SECURITIZE_REDEMPTION" | "ADAPTER::SECURITIZE_SWAP" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADER_JOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
6
6
  export declare enum AdapterType {
7
7
  ACCOUNT_MIGRATOR = "ACCOUNT_MIGRATOR",
8
8
  BALANCER_V3_ROUTER = "BALANCER_V3_ROUTER",
@@ -40,6 +40,9 @@ export declare enum AdapterType {
40
40
  MIDAS_ISSUANCE_VAULT = "MIDAS_ISSUANCE_VAULT",
41
41
  MIDAS_REDEMPTION_VAULT = "MIDAS_REDEMPTION_VAULT",
42
42
  PENDLE_ROUTER = "PENDLE_ROUTER",
43
+ SECURITIZE_ONRAMP = "SECURITIZE_ONRAMP",
44
+ SECURITIZE_REDEMPTION = "SECURITIZE_REDEMPTION",
45
+ SECURITIZE_SWAP = "SECURITIZE_SWAP",
43
46
  STAKING_REWARDS = "STAKING_REWARDS",
44
47
  TRADER_JOE_ROUTER = "TRADER_JOE_ROUTER",
45
48
  UNISWAP_V2_ROUTER = "UNISWAP_V2_ROUTER",
@@ -4,7 +4,7 @@ import { z } from "zod/v4";
4
4
  * Known curator names that manage Gearbox markets.
5
5
  *
6
6
  **/
7
- export type Curator = "Chaos Labs" | "K3" | "cp0x" | "Re7" | "Invariant Group" | "Tulipa" | "M11 Credit" | "kpk" | "Hyperithm" | "UltraYield" | "TelosC" | "Gami Labs" | "Securitize";
7
+ export type Curator = "Chaos Labs" | "K3" | "cp0x" | "Re7" | "Invariant Group" | "Tulipa" | "M11 Credit" | "KPK" | "Hyperithm" | "UltraYield" | "TelosC" | "Gami Labs" | "Securitize";
8
8
  /**
9
9
  * Extended viem {@link Chain} with Gearbox-specific metadata.
10
10
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.4.3",
3
+ "version": "14.5.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",