@gearbox-protocol/sdk 13.6.0-kyc.7 → 13.6.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 (155) hide show
  1. package/dist/cjs/dev/AccountOpener.js +5 -45
  2. package/dist/cjs/dev/logSplitterTransport.js +10 -1
  3. package/dist/cjs/plugins/adapters/abi/actionAbi.js +1 -1
  4. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +1 -1
  5. package/dist/cjs/plugins/adapters/createAdapter.js +1 -1
  6. package/dist/cjs/plugins/adapters/types.js +1 -1
  7. package/dist/cjs/plugins/apy/ApyPlugin.js +266 -0
  8. package/dist/cjs/plugins/apy/apy-cache.js +120 -0
  9. package/dist/cjs/plugins/apy/apy-parser.js +169 -0
  10. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/constants.js +6 -3
  11. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/index.js +14 -6
  12. package/dist/cjs/{sdk/market/kyc/securitize/types.js → plugins/apy/pool-apy-types.js} +2 -2
  13. package/dist/cjs/plugins/apy/pool-apy-utils.js +141 -0
  14. package/dist/cjs/rewards/rewards/extra-apy.js +10 -8
  15. package/dist/cjs/sdk/GearboxSDK.js +5 -52
  16. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +16 -324
  17. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  18. package/dist/cjs/sdk/base/TokensMeta.js +43 -32
  19. package/dist/cjs/sdk/base/token-types.js +0 -9
  20. package/dist/cjs/sdk/chain/chains.js +32 -17
  21. package/dist/cjs/sdk/constants/address-provider.js +0 -3
  22. package/dist/cjs/sdk/market/MarketRegister.js +116 -70
  23. package/dist/cjs/sdk/market/MarketSuite.js +0 -3
  24. package/dist/cjs/sdk/market/index.js +0 -2
  25. package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -3
  26. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -11
  27. package/dist/cjs/sdk/market/pool/index.js +0 -2
  28. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  29. package/dist/cjs/sdk/options.js +1 -7
  30. package/dist/cjs/sdk/pools/PoolService.js +12 -104
  31. package/dist/cjs/sdk/utils/viem/index.js +0 -2
  32. package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +39 -2
  33. package/dist/esm/dev/AccountOpener.js +6 -47
  34. package/dist/esm/dev/logSplitterTransport.js +10 -1
  35. package/dist/esm/plugins/adapters/abi/actionAbi.js +1 -1
  36. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +1 -1
  37. package/dist/esm/plugins/adapters/createAdapter.js +1 -1
  38. package/dist/esm/plugins/adapters/types.js +1 -1
  39. package/dist/esm/plugins/apy/ApyPlugin.js +255 -0
  40. package/dist/esm/plugins/apy/apy-cache.js +86 -0
  41. package/dist/esm/plugins/apy/apy-parser.js +143 -0
  42. package/dist/esm/plugins/apy/constants.js +6 -0
  43. package/dist/esm/plugins/apy/index.js +7 -0
  44. package/dist/esm/plugins/apy/pool-apy-utils.js +113 -0
  45. package/dist/esm/rewards/rewards/extra-apy.js +10 -8
  46. package/dist/esm/sdk/GearboxSDK.js +6 -56
  47. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +17 -328
  48. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  49. package/dist/esm/sdk/base/TokensMeta.js +45 -32
  50. package/dist/esm/sdk/base/token-types.js +0 -6
  51. package/dist/esm/sdk/chain/chains.js +32 -17
  52. package/dist/esm/sdk/constants/address-provider.js +0 -2
  53. package/dist/esm/sdk/market/MarketRegister.js +118 -74
  54. package/dist/esm/sdk/market/MarketSuite.js +0 -3
  55. package/dist/esm/sdk/market/index.js +0 -1
  56. package/dist/esm/sdk/market/pool/PoolSuite.js +0 -3
  57. package/dist/esm/sdk/market/pool/PoolV310Contract.js +2 -11
  58. package/dist/esm/sdk/market/pool/index.js +0 -1
  59. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  60. package/dist/esm/sdk/options.js +1 -7
  61. package/dist/esm/sdk/pools/PoolService.js +13 -109
  62. package/dist/esm/sdk/utils/viem/index.js +0 -1
  63. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +41 -2
  64. package/dist/types/dev/logSplitterTransport.d.ts +3 -1
  65. package/dist/types/plugins/adapters/types.d.ts +2 -2
  66. package/dist/types/plugins/apy/ApyPlugin.d.ts +46 -0
  67. package/dist/types/plugins/apy/apy-cache.d.ts +28 -0
  68. package/dist/types/plugins/apy/apy-parser.d.ts +5 -0
  69. package/dist/types/plugins/apy/constants.d.ts +2 -0
  70. package/dist/types/plugins/apy/index.d.ts +7 -0
  71. package/dist/types/plugins/apy/pool-apy-types.d.ts +41 -0
  72. package/dist/types/plugins/apy/pool-apy-utils.d.ts +73 -0
  73. package/dist/types/plugins/apy/types.d.ts +37 -0
  74. package/dist/types/rewards/rewards/api.d.ts +10 -1
  75. package/dist/types/rewards/rewards/common.d.ts +0 -10
  76. package/dist/types/rewards/rewards/extra-apy.d.ts +4 -6
  77. package/dist/types/sdk/GearboxSDK.d.ts +0 -7
  78. package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +2 -52
  79. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
  80. package/dist/types/sdk/accounts/types.d.ts +13 -93
  81. package/dist/types/sdk/base/TokensMeta.d.ts +3 -14
  82. package/dist/types/sdk/base/token-types.d.ts +4 -44
  83. package/dist/types/sdk/base/types.d.ts +11 -116
  84. package/dist/types/sdk/chain/chains.d.ts +5 -5
  85. package/dist/types/sdk/constants/address-provider.d.ts +0 -1
  86. package/dist/types/sdk/market/MarketRegister.d.ts +9 -6
  87. package/dist/types/sdk/market/MarketSuite.d.ts +0 -2
  88. package/dist/types/sdk/market/index.d.ts +0 -1
  89. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -3
  90. package/dist/types/sdk/market/oracle/types.d.ts +10 -3
  91. package/dist/types/sdk/market/pool/PoolSuite.d.ts +0 -2
  92. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -6
  93. package/dist/types/sdk/market/pool/index.d.ts +0 -1
  94. package/dist/types/sdk/market/pricefeeds/PriceFeedsRegister.d.ts +1 -1
  95. package/dist/types/sdk/market/types.d.ts +1 -1
  96. package/dist/types/sdk/options.d.ts +0 -1
  97. package/dist/types/sdk/pools/PoolService.d.ts +8 -8
  98. package/dist/types/sdk/pools/types.d.ts +1 -1
  99. package/dist/types/sdk/types/state-human.d.ts +0 -2
  100. package/dist/types/sdk/types/state.d.ts +0 -5
  101. package/dist/types/sdk/utils/viem/index.d.ts +0 -1
  102. package/package.json +2 -3
  103. package/dist/cjs/abi/kyc/iDSRegistryService.js +0 -70
  104. package/dist/cjs/abi/kyc/iDSToken.js +0 -71
  105. package/dist/cjs/abi/kyc/iKYCCompressor.js +0 -196
  106. package/dist/cjs/abi/kyc/iKYCFactory.js +0 -122
  107. package/dist/cjs/abi/kyc/iKYCUnderlying.js +0 -401
  108. package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +0 -326
  109. package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +0 -319
  110. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +0 -108
  111. package/dist/cjs/plugins/pools-history/index.js +0 -24
  112. package/dist/cjs/sdk/market/kyc/KYCRegistry.js +0 -269
  113. package/dist/cjs/sdk/market/kyc/index.js +0 -26
  114. package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -244
  115. package/dist/cjs/sdk/market/kyc/types.js +0 -34
  116. package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +0 -38
  117. package/dist/esm/abi/kyc/iDSRegistryService.js +0 -46
  118. package/dist/esm/abi/kyc/iDSToken.js +0 -47
  119. package/dist/esm/abi/kyc/iKYCCompressor.js +0 -172
  120. package/dist/esm/abi/kyc/iKYCFactory.js +0 -98
  121. package/dist/esm/abi/kyc/iKYCUnderlying.js +0 -377
  122. package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +0 -302
  123. package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +0 -295
  124. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +0 -90
  125. package/dist/esm/plugins/pools-history/index.js +0 -2
  126. package/dist/esm/sdk/market/kyc/KYCRegistry.js +0 -253
  127. package/dist/esm/sdk/market/kyc/index.js +0 -3
  128. package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -220
  129. package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
  130. package/dist/esm/sdk/market/kyc/securitize/index.js +0 -3
  131. package/dist/esm/sdk/market/kyc/types.js +0 -9
  132. package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +0 -14
  133. package/dist/types/abi/kyc/iDSRegistryService.d.ts +0 -71
  134. package/dist/types/abi/kyc/iDSToken.d.ts +0 -67
  135. package/dist/types/abi/kyc/iKYCCompressor.d.ts +0 -228
  136. package/dist/types/abi/kyc/iKYCFactory.d.ts +0 -139
  137. package/dist/types/abi/kyc/iKYCUnderlying.d.ts +0 -548
  138. package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +0 -404
  139. package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +0 -376
  140. package/dist/types/plugins/pools-history/Pools7DAgoPlugin.d.ts +0 -20
  141. package/dist/types/plugins/pools-history/index.d.ts +0 -2
  142. package/dist/types/plugins/pools-history/types.d.ts +0 -9
  143. package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
  144. package/dist/types/sdk/market/kyc/index.d.ts +0 -3
  145. package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +0 -428
  146. package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
  147. package/dist/types/sdk/market/kyc/securitize/index.d.ts +0 -3
  148. package/dist/types/sdk/market/kyc/securitize/types.d.ts +0 -127
  149. package/dist/types/sdk/market/kyc/types.d.ts +0 -170
  150. package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +0 -28
  151. /package/dist/cjs/plugins/{pools-history → apy}/package.json +0 -0
  152. /package/dist/cjs/plugins/{pools-history → apy}/types.js +0 -0
  153. /package/dist/esm/plugins/{pools-history → apy}/package.json +0 -0
  154. /package/dist/esm/plugins/{pools-history/types.js → apy/pool-apy-types.js} +0 -0
  155. /package/dist/esm/{sdk/market/kyc/securitize → plugins/apy}/types.js +0 -0
@@ -1,8 +1,8 @@
1
- import type { Address } from "viem";
1
+ import type { Address, ContractFunctionParameters, ContractFunctionReturnType } from "viem";
2
+ import type { priceFeedCompressorAbi } from "../../../abi/compressors/priceFeedCompressor.js";
2
3
  import type { IBaseContract } from "../../base/index.js";
3
4
  import type { MultiCall, PriceOracleStateHuman } from "../../types/index.js";
4
5
  import type { AddressMap } from "../../utils/index.js";
5
- import type { DelegatedMulticall } from "../../utils/viem/index.js";
6
6
  import type { IPriceFeedContract, PriceFeedRef, PriceUpdate, UpdatePriceFeedsResult } from "../pricefeeds/index.js";
7
7
  import type PriceFeedAnswerMap from "./PriceFeedAnswerMap.js";
8
8
  /**
@@ -71,7 +71,7 @@ export interface IPriceOracleContract extends IBaseContract {
71
71
  /**
72
72
  * @internal
73
73
  **/
74
- syncStateMulticall: () => DelegatedMulticall;
74
+ syncStateMulticall: () => DelegatedOracleMulticall;
75
75
  /**
76
76
  * Checks whether the given price feed address appears anywhere in this
77
77
  * oracle's feed tree (including as a dependency of a composite feed,
@@ -124,3 +124,10 @@ export interface IPriceOracleContract extends IBaseContract {
124
124
  **/
125
125
  stateHuman: (raw?: boolean) => PriceOracleStateHuman;
126
126
  }
127
+ /**
128
+ * @internal
129
+ **/
130
+ export interface DelegatedOracleMulticall {
131
+ call: ContractFunctionParameters<typeof priceFeedCompressorAbi, "view", "getPriceOracleState">;
132
+ onResult: (resp: ContractFunctionReturnType<typeof priceFeedCompressorAbi, "view", "getPriceOracleState">) => void;
133
+ }
@@ -3,7 +3,6 @@ import type { MarketData } from "../../base/index.js";
3
3
  import { SDKConstruct } from "../../base/index.js";
4
4
  import type { GearboxSDK } from "../../GearboxSDK.js";
5
5
  import type { PoolSuiteStateHuman } from "../../types/index.js";
6
- import type { IKYCFactory } from "../kyc/types.js";
7
6
  import type { MarketConfiguratorContract } from "../MarketConfiguratorContract.js";
8
7
  import { GaugeContract } from "./GaugeContract.js";
9
8
  import { LinearInterestRateModelContract } from "./LinearInterestRateModelContract.js";
@@ -21,7 +20,6 @@ export declare class PoolSuite extends SDKConstruct {
21
20
  get linearModel(): LinearInterestRateModelContract;
22
21
  get marketConfigurator(): MarketConfiguratorContract;
23
22
  get underlying(): Address;
24
- get kycFactory(): IKYCFactory | undefined;
25
23
  get dirty(): boolean;
26
24
  get watchAddresses(): Set<Address>;
27
25
  stateHuman(raw?: boolean): PoolSuiteStateHuman;
@@ -1,10 +1,8 @@
1
1
  import type { ContractEventName, DecodeFunctionDataReturnType, Log } from "viem";
2
- import type { CreditManagerDebtParams, PoolState } from "../../base/index.js";
2
+ import type { ConstructOptions, CreditManagerDebtParams, PoolState } from "../../base/index.js";
3
3
  import { BaseContract } from "../../base/index.js";
4
- import type { GearboxSDK } from "../../GearboxSDK.js";
5
4
  import type { PoolStateHuman } from "../../types/index.js";
6
5
  import { AddressMap } from "../../utils/index.js";
7
- import type { IKYCFactory } from "../kyc/types.js";
8
6
  declare const abi: readonly [{
9
7
  readonly type: "function";
10
8
  readonly inputs: readonly [];
@@ -1132,10 +1130,8 @@ type abi = typeof abi;
1132
1130
  export interface PoolV310Contract extends Omit<PoolState, "baseParams" | "creditManagerDebtParams" | "name">, BaseContract<abi> {
1133
1131
  }
1134
1132
  export declare class PoolV310Contract extends BaseContract<abi> {
1135
- #private;
1136
1133
  readonly creditManagerDebtParams: AddressMap<CreditManagerDebtParams>;
1137
- constructor(sdk: GearboxSDK, data: PoolState);
1138
- get kycFactory(): IKYCFactory | undefined;
1134
+ constructor(options: ConstructOptions, data: PoolState);
1139
1135
  stateHuman(raw?: boolean): PoolStateHuman;
1140
1136
  processLog(log: Log<bigint, number, false, undefined, undefined, abi, ContractEventName<abi>>): void;
1141
1137
  protected stringifyFunctionParams(params: DecodeFunctionDataReturnType<abi>): string[];
@@ -1,5 +1,4 @@
1
1
  export * from "./GaugeContract.js";
2
2
  export * from "./LinearInterestRateModelContract.js";
3
3
  export * from "./PoolSuite.js";
4
- export * from "./PoolV310Contract.js";
5
4
  export * from "./types.js";
@@ -152,7 +152,7 @@ export declare class PriceFeedRegister extends SDKConstruct implements IHooks<Pr
152
152
  * Loads PARTIAL information about all updatable price feeds from MarketCompressor
153
153
  * Discovered price feeds are not saved anywhere in PriceFeedRegister, and can later be used to load price feed updates
154
154
  */
155
- getPartialUpdatablePriceFeeds(configurators: Address[]): Promise<IPriceFeedContract[]>;
155
+ getPartialUpdatablePriceFeeds(configurators: Address[], pools?: Address[]): Promise<IPriceFeedContract[]>;
156
156
  /**
157
157
  * Instantiates the appropriate price feed contract wrapper based on
158
158
  * the `contractType` discriminator in the node's base params.
@@ -5,6 +5,6 @@ import type { Unarray } from "../base/index.js";
5
5
  type CompressorZapperData = Unarray<AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof peripheryCompressorAbi, "getZappers">["outputs"]>>;
6
6
  export interface ZapperData extends CompressorZapperData {
7
7
  pool: Address;
8
- type: "migration" | "kyc" | "base";
8
+ type: "migration" | "base";
9
9
  }
10
10
  export {};
@@ -7,7 +7,6 @@ import type { ILogger } from "./types/index.js";
7
7
  export declare const SDKOptions: z.ZodObject<{
8
8
  addressProvider: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
9
9
  marketConfigurators: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
10
- kycFactories: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
11
10
  blockNumber: z.ZodOptional<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>>;
12
11
  ignoreUpdateablePrices: z.ZodOptional<z.ZodBoolean>;
13
12
  ignoreMarkets: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
@@ -4,35 +4,35 @@ import type { AddLiquidityProps, DepositMetadata, IPoolsService, PoolServiceCall
4
4
  export declare class PoolService extends SDKConstruct implements IPoolsService {
5
5
  #private;
6
6
  /**
7
- * {@inheritDoc IPoolsService.getDepositTokensIn}
7
+ * @inheritdoc IPoolsService.getDepositTokensIn
8
8
  */
9
9
  getDepositTokensIn(pool: Address): Address[];
10
10
  /**
11
- * {@inheritDoc IPoolsService.getDepositTokensOut}
11
+ * @inheritdoc IPoolsService.getDepositTokensOut
12
12
  */
13
13
  getDepositTokensOut(pool: Address, tokenIn: Address): Address[];
14
14
  /**
15
- * {@inheritDoc IPoolsService.getDepositMetadata}
15
+ * @inheritdoc IPoolsService.getDepositMetadata
16
16
  */
17
17
  getDepositMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): DepositMetadata;
18
18
  /**
19
- * {@inheritDoc IPoolsService.addLiquidity}
19
+ * @inheritdoc IPoolsService.addLiquidity
20
20
  */
21
21
  addLiquidity(props: AddLiquidityProps): PoolServiceCall | undefined;
22
22
  /**
23
- * {@inheritDoc IPoolsService.getWithdrawalTokensIn}
23
+ * @inheritdoc IPoolsService.getWithdrawalTokensIn
24
24
  */
25
25
  getWithdrawalTokensIn(pool: Address): Address[];
26
26
  /**
27
- * {@inheritDoc IPoolsService.getWithdrawalTokensOut}
27
+ * @inheritdoc IPoolsService.getWithdrawalTokensOut
28
28
  */
29
29
  getWithdrawalTokensOut(pool: Address, tokenIn: Address): Address[];
30
30
  /**
31
- * {@inheritDoc IPoolsService.removeLiquidity}
31
+ * @inheritdoc IPoolsService.removeLiquidity
32
32
  */
33
33
  removeLiquidity(props: RemoveLiquidityProps): PoolServiceCall;
34
34
  /**
35
- * {@inheritDoc IPoolsService.getWithdrawalMetadata}
35
+ * @inheritdoc IPoolsService.getWithdrawalMetadata
36
36
  */
37
37
  getWithdrawalMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): WithdrawalMetadata;
38
38
  }
@@ -53,7 +53,7 @@ export interface RemoveLiquidityProps {
53
53
  permit: PermitResult | undefined;
54
54
  meta: WithdrawalMetadata;
55
55
  }
56
- export type MarketType = "kyc-on-demand" | "kyc-default" | "classic";
56
+ export type MarketType = "classic";
57
57
  export interface DepositMetadata {
58
58
  /**
59
59
  * Zapper that will perform the deposit, undefined in case of direct pool underlying deposit
@@ -1,7 +1,6 @@
1
1
  import type { Address } from "viem";
2
2
  import type { TokenMetaData } from "../base/index.js";
3
3
  import type { PriceFeedContractType } from "../market/index.js";
4
- import type { KYCStateHuman } from "../market/kyc/index.js";
5
4
  export interface BaseContractStateHuman {
6
5
  address: string;
7
6
  version: number;
@@ -200,5 +199,4 @@ export interface GearboxStateHuman {
200
199
  markets: MarketStateHuman[];
201
200
  plugins: Record<string, unknown>;
202
201
  tokens: TokenMetaData[];
203
- kyc: KYCStateHuman;
204
202
  }
@@ -1,7 +1,6 @@
1
1
  import type { MarketData } from "../base/index.js";
2
2
  import type { NetworkType } from "../chain/chains.js";
3
3
  import type { AddressProviderState } from "../core/index.js";
4
- import type { KYCState } from "../market/kyc/index.js";
5
4
  import type { PluginStatesMap, PluginsMap } from "../plugins/index.js";
6
5
  /**
7
6
  * Complete serialisable snapshot of the Gearbox SDK state.
@@ -41,10 +40,6 @@ export interface GearboxState<Plugins extends PluginsMap = {}> {
41
40
  * All loaded market data.
42
41
  **/
43
42
  markets: MarketData[];
44
- /**
45
- * KYC compressor state snapshot, if KYC factories were loaded.
46
- **/
47
- kyc?: KYCState;
48
43
  /**
49
44
  * Per-plugin serialised state.
50
45
  **/
@@ -1,5 +1,4 @@
1
1
  export * from "./cast.js";
2
- export * from "./executeDelegatedMulticalls.js";
3
2
  export * from "./getLogsPaginated.js";
4
3
  export * from "./getLogsSafe.js";
5
4
  export * from "./sendRawTx.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "13.6.0-kyc.7",
3
+ "version": "13.6.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",
@@ -105,8 +105,7 @@
105
105
  "typescript": "^5.9.3",
106
106
  "viem-deal": "^2.0.4",
107
107
  "vite": "^8.0.3",
108
- "vitest": "^4.1.2",
109
- "yaml": "^2.8.3"
108
+ "vitest": "^4.1.2"
110
109
  },
111
110
  "peerDependencies": {
112
111
  "axios": "^1.0.0",
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var iDSRegistryService_exports = {};
20
- __export(iDSRegistryService_exports, {
21
- iDSRegistryServiceAbi: () => iDSRegistryServiceAbi
22
- });
23
- module.exports = __toCommonJS(iDSRegistryService_exports);
24
- const iDSRegistryServiceAbi = [
25
- {
26
- type: "function",
27
- name: "addWallet",
28
- inputs: [
29
- { name: "wallet", type: "address", internalType: "address" },
30
- { name: "investorId", type: "string", internalType: "string" }
31
- ],
32
- outputs: [],
33
- stateMutability: "nonpayable"
34
- },
35
- {
36
- type: "function",
37
- name: "getInvestor",
38
- inputs: [{ name: "wallet", type: "address", internalType: "address" }],
39
- outputs: [{ name: "", type: "string", internalType: "string" }],
40
- stateMutability: "view"
41
- },
42
- {
43
- type: "function",
44
- name: "isInvestor",
45
- inputs: [{ name: "investorId", type: "string", internalType: "string" }],
46
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
47
- stateMutability: "view"
48
- },
49
- {
50
- type: "function",
51
- name: "isWallet",
52
- inputs: [{ name: "wallet", type: "address", internalType: "address" }],
53
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
54
- stateMutability: "view"
55
- },
56
- {
57
- type: "function",
58
- name: "registerInvestor",
59
- inputs: [
60
- { name: "investorId", type: "string", internalType: "string" },
61
- { name: "collisionHash", type: "string", internalType: "string" }
62
- ],
63
- outputs: [],
64
- stateMutability: "nonpayable"
65
- }
66
- ];
67
- // Annotate the CommonJS export names for ESM import in node:
68
- 0 && (module.exports = {
69
- iDSRegistryServiceAbi
70
- });
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var iDSToken_exports = {};
20
- __export(iDSToken_exports, {
21
- iDSTokenAbi: () => iDSTokenAbi
22
- });
23
- module.exports = __toCommonJS(iDSToken_exports);
24
- const iDSTokenAbi = [
25
- {
26
- type: "function",
27
- name: "REGISTRY_SERVICE",
28
- inputs: [],
29
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
30
- stateMutability: "view"
31
- },
32
- {
33
- type: "function",
34
- name: "TRUST_SERVICE",
35
- inputs: [],
36
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
37
- stateMutability: "view"
38
- },
39
- {
40
- type: "function",
41
- name: "burn",
42
- inputs: [
43
- { name: "from", type: "address", internalType: "address" },
44
- { name: "amount", type: "uint256", internalType: "uint256" },
45
- { name: "reason", type: "string", internalType: "string" }
46
- ],
47
- outputs: [],
48
- stateMutability: "nonpayable"
49
- },
50
- {
51
- type: "function",
52
- name: "getDSService",
53
- inputs: [{ name: "serviceId", type: "uint256", internalType: "uint256" }],
54
- outputs: [{ name: "", type: "address", internalType: "address" }],
55
- stateMutability: "view"
56
- },
57
- {
58
- type: "function",
59
- name: "issueTokens",
60
- inputs: [
61
- { name: "to", type: "address", internalType: "address" },
62
- { name: "amount", type: "uint256", internalType: "uint256" }
63
- ],
64
- outputs: [],
65
- stateMutability: "nonpayable"
66
- }
67
- ];
68
- // Annotate the CommonJS export names for ESM import in node:
69
- 0 && (module.exports = {
70
- iDSTokenAbi
71
- });
@@ -1,196 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var iKYCCompressor_exports = {};
20
- __export(iKYCCompressor_exports, {
21
- iKYCCompressorAbi: () => iKYCCompressorAbi
22
- });
23
- module.exports = __toCommonJS(iKYCCompressor_exports);
24
- const iKYCCompressorAbi = [
25
- {
26
- type: "function",
27
- name: "contractType",
28
- inputs: [],
29
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
30
- stateMutability: "view"
31
- },
32
- {
33
- type: "function",
34
- name: "getKYCInvestorData",
35
- inputs: [
36
- { name: "investor", type: "address", internalType: "address" },
37
- { name: "factories", type: "address[]", internalType: "address[]" }
38
- ],
39
- outputs: [
40
- {
41
- name: "",
42
- type: "tuple[]",
43
- internalType: "struct IKYCCompressor.KYCInvestorData[]",
44
- components: [
45
- {
46
- name: "creditAccounts",
47
- type: "tuple[]",
48
- internalType: "struct IKYCCompressor.KYCCreditAccountData[]",
49
- components: [
50
- {
51
- name: "creditAccount",
52
- type: "address",
53
- internalType: "address"
54
- },
55
- { name: "wallet", type: "address", internalType: "address" },
56
- { name: "frozen", type: "bool", internalType: "bool" },
57
- { name: "extraDetails", type: "bytes", internalType: "bytes" }
58
- ]
59
- },
60
- { name: "extraDetails", type: "bytes", internalType: "bytes" }
61
- ]
62
- }
63
- ],
64
- stateMutability: "view"
65
- },
66
- {
67
- type: "function",
68
- name: "getKYCMarketsData",
69
- inputs: [
70
- { name: "configurators", type: "address[]", internalType: "address[]" },
71
- { name: "factories", type: "address[]", internalType: "address[]" }
72
- ],
73
- outputs: [
74
- {
75
- name: "",
76
- type: "tuple[]",
77
- internalType: "struct IKYCCompressor.KYCUnderlyingData[]",
78
- components: [
79
- {
80
- name: "baseParams",
81
- type: "tuple",
82
- internalType: "struct BaseParams",
83
- components: [
84
- { name: "addr", type: "address", internalType: "address" },
85
- { name: "version", type: "uint256", internalType: "uint256" },
86
- {
87
- name: "contractType",
88
- type: "bytes32",
89
- internalType: "bytes32"
90
- },
91
- {
92
- name: "serializedParams",
93
- type: "bytes",
94
- internalType: "bytes"
95
- }
96
- ]
97
- },
98
- { name: "asset", type: "address", internalType: "address" },
99
- { name: "factory", type: "address", internalType: "address" },
100
- { name: "extraDetails", type: "bytes", internalType: "bytes" }
101
- ]
102
- },
103
- {
104
- name: "",
105
- type: "tuple[]",
106
- internalType: "struct IKYCCompressor.KYCFactoryData[]",
107
- components: [
108
- {
109
- name: "baseParams",
110
- type: "tuple",
111
- internalType: "struct BaseParams",
112
- components: [
113
- { name: "addr", type: "address", internalType: "address" },
114
- { name: "version", type: "uint256", internalType: "uint256" },
115
- {
116
- name: "contractType",
117
- type: "bytes32",
118
- internalType: "bytes32"
119
- },
120
- {
121
- name: "serializedParams",
122
- type: "bytes",
123
- internalType: "bytes"
124
- }
125
- ]
126
- },
127
- {
128
- name: "tokens",
129
- type: "tuple[]",
130
- internalType: "struct TokenData[]",
131
- components: [
132
- { name: "addr", type: "address", internalType: "address" },
133
- { name: "symbol", type: "string", internalType: "string" },
134
- { name: "name", type: "string", internalType: "string" },
135
- { name: "decimals", type: "uint8", internalType: "uint8" }
136
- ]
137
- },
138
- { name: "extraDetails", type: "bytes", internalType: "bytes" }
139
- ]
140
- }
141
- ],
142
- stateMutability: "view"
143
- },
144
- {
145
- type: "function",
146
- name: "setSubcompressor",
147
- inputs: [
148
- { name: "subcompressor", type: "address", internalType: "address" }
149
- ],
150
- outputs: [],
151
- stateMutability: "nonpayable"
152
- },
153
- {
154
- type: "function",
155
- name: "subcompressors",
156
- inputs: [
157
- { name: "domain", type: "bytes32", internalType: "bytes32" },
158
- { name: "postfix", type: "bytes32", internalType: "bytes32" }
159
- ],
160
- outputs: [{ name: "", type: "address", internalType: "address" }],
161
- stateMutability: "view"
162
- },
163
- {
164
- type: "function",
165
- name: "version",
166
- inputs: [],
167
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
168
- stateMutability: "view"
169
- },
170
- {
171
- type: "error",
172
- name: "CallerIsNotInstanceOwnerException",
173
- inputs: [{ name: "caller", type: "address", internalType: "address" }]
174
- },
175
- {
176
- type: "error",
177
- name: "InvalidDomainException",
178
- inputs: [{ name: "domain", type: "bytes32", internalType: "bytes32" }]
179
- },
180
- {
181
- type: "error",
182
- name: "InvalidKYCFactoryException",
183
- inputs: [{ name: "factory", type: "address", internalType: "address" }]
184
- },
185
- {
186
- type: "error",
187
- name: "InvalidMarketConfiguratorException",
188
- inputs: [
189
- { name: "marketConfigurator", type: "address", internalType: "address" }
190
- ]
191
- }
192
- ];
193
- // Annotate the CommonJS export names for ESM import in node:
194
- 0 && (module.exports = {
195
- iKYCCompressorAbi
196
- });