@gearbox-protocol/sdk 18.2.0-next.7 → 18.2.0-next.8

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.
@@ -1,5 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_onchain_chain_chains = require("../../../onchain/chain/chains.js");
2
3
  const require_model_opportunities_schema = require("../../../model/opportunities.schema.js");
4
+ require("../../../onchain/index.js");
3
5
  const require_offchain_AbstractOffchainNamespace = require("../../../offchain/AbstractOffchainNamespace.js");
4
6
  const require_permissionless_utils_price_update_get_prices = require("../../utils/price-update/get-prices.js");
5
7
  const require_permissionless_api_oracles_schemas = require("./schemas.js");
@@ -120,17 +122,31 @@ var PermissionlessOracles = class extends require_offchain_AbstractOffchainNames
120
122
  * renders the rows as they arrive. Omit `chainId` for every chain the
121
123
  * backend serves, ordered the same way across all of them.
122
124
  *
125
+ * Each row also carries what this SDK's tables say the asset is — see
126
+ * {@link PermissionlessAssetSummary} for why that is read here and not
127
+ * served.
128
+ *
123
129
  * ```ts
124
130
  * const assets = await permissionless.oracles.assets({ chainId: 1 });
125
131
  * const everywhere = await permissionless.oracles.assets();
126
132
  * ```
127
133
  **/
128
134
  async assets({ chainId } = {}) {
129
- return this.getData({
135
+ const indexed = await this.getData({
130
136
  path: "/pfs/assets",
131
137
  query: { chainId: chainId?.toString() },
132
138
  schema: require_permissionless_api_oracles_schemas.assetSummariesSchema
133
139
  });
140
+ const networks = /* @__PURE__ */ new Map();
141
+ for (const { chainId: id } of indexed) if (!networks.has(id)) networks.set(id, require_onchain_chain_chains.isSupportedNetwork(id) ? require_onchain_chain_chains.getNetworkType(id) : void 0);
142
+ return indexed.map((asset) => {
143
+ const network = networks.get(asset.chainId);
144
+ return {
145
+ ...asset,
146
+ assetType: network === void 0 ? null : require_onchain_chain_chains.getAssetType(asset.address, network) ?? null,
147
+ isRwa: network === void 0 ? false : require_onchain_chain_chains.isRWAToken(asset.address, network)
148
+ };
149
+ });
134
150
  }
135
151
  /**
136
152
  * The feeds one feed reads from, recursively.
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_model_primitives_schema = require("../../../model/primitives.schema.js");
3
2
  const require_permissionless_api_chains_schemas = require("../chains/schemas.js");
4
3
  const require_permissionless_api_schemas = require("../schemas.js");
5
4
  let zod_v4 = require("zod/v4");
@@ -124,15 +123,14 @@ const assetPricesSchema = zod_v4.z.looseObject({
124
123
  marketCaps: require_permissionless_api_schemas.addressRecord(zod_v4.z.string().nullable()),
125
124
  time: zod_v4.z.number()
126
125
  });
127
- /** {@link PermissionlessAssetSummary} */
126
+ /** {@link PermissionlessIndexedAssetSummary} */
128
127
  const assetSummarySchema = zod_v4.z.looseObject({
129
128
  chainId: zod_v4.z.number(),
130
129
  address: require_permissionless_api_schemas.addressSchema,
131
130
  symbol: zod_v4.z.string(),
132
131
  underlyingMarketCount: zod_v4.z.number(),
133
132
  quotaLimitUsd: zod_v4.z.number().nullable(),
134
- quotaUsedUsd: zod_v4.z.number().nullable(),
135
- assetType: require_model_primitives_schema.assetTypeSchema.nullable().default(null)
133
+ quotaUsedUsd: zod_v4.z.number().nullable()
136
134
  });
137
135
  /** The list of {@link PermissionlessAssetSummary}, already ordered. */
138
136
  const assetSummariesSchema = zod_v4.z.array(assetSummarySchema);
@@ -1,4 +1,6 @@
1
+ import { getAssetType, getNetworkType, isRWAToken, isSupportedNetwork } from "../../../onchain/chain/chains.js";
1
2
  import { priceFeedDataSchema } from "../../../model/opportunities.schema.js";
3
+ import "../../../onchain/index.js";
2
4
  import { AbstractOffchainNamespace } from "../../../offchain/AbstractOffchainNamespace.js";
3
5
  import { getPrices } from "../../utils/price-update/get-prices.js";
4
6
  import { assetDetailsSchema, assetPricesSchema, assetSummariesSchema, priceFeedDetailsSchema, priceFeedMarketCapsSchema, priceFeedStoreSchema, pricesSchema } from "./schemas.js";
@@ -119,17 +121,31 @@ var PermissionlessOracles = class extends AbstractOffchainNamespace {
119
121
  * renders the rows as they arrive. Omit `chainId` for every chain the
120
122
  * backend serves, ordered the same way across all of them.
121
123
  *
124
+ * Each row also carries what this SDK's tables say the asset is — see
125
+ * {@link PermissionlessAssetSummary} for why that is read here and not
126
+ * served.
127
+ *
122
128
  * ```ts
123
129
  * const assets = await permissionless.oracles.assets({ chainId: 1 });
124
130
  * const everywhere = await permissionless.oracles.assets();
125
131
  * ```
126
132
  **/
127
133
  async assets({ chainId } = {}) {
128
- return this.getData({
134
+ const indexed = await this.getData({
129
135
  path: "/pfs/assets",
130
136
  query: { chainId: chainId?.toString() },
131
137
  schema: assetSummariesSchema
132
138
  });
139
+ const networks = /* @__PURE__ */ new Map();
140
+ for (const { chainId: id } of indexed) if (!networks.has(id)) networks.set(id, isSupportedNetwork(id) ? getNetworkType(id) : void 0);
141
+ return indexed.map((asset) => {
142
+ const network = networks.get(asset.chainId);
143
+ return {
144
+ ...asset,
145
+ assetType: network === void 0 ? null : getAssetType(asset.address, network) ?? null,
146
+ isRwa: network === void 0 ? false : isRWAToken(asset.address, network)
147
+ };
148
+ });
133
149
  }
134
150
  /**
135
151
  * The feeds one feed reads from, recursively.
@@ -1,4 +1,3 @@
1
- import { assetTypeSchema } from "../../../model/primitives.schema.js";
2
1
  import { chainSchema } from "../chains/schemas.js";
3
2
  import { addressRecord, addressSchema } from "../schemas.js";
4
3
  import { z } from "zod/v4";
@@ -123,15 +122,14 @@ const assetPricesSchema = z.looseObject({
123
122
  marketCaps: addressRecord(z.string().nullable()),
124
123
  time: z.number()
125
124
  });
126
- /** {@link PermissionlessAssetSummary} */
125
+ /** {@link PermissionlessIndexedAssetSummary} */
127
126
  const assetSummarySchema = z.looseObject({
128
127
  chainId: z.number(),
129
128
  address: addressSchema,
130
129
  symbol: z.string(),
131
130
  underlyingMarketCount: z.number(),
132
131
  quotaLimitUsd: z.number().nullable(),
133
- quotaUsedUsd: z.number().nullable(),
134
- assetType: assetTypeSchema.nullable().default(null)
132
+ quotaUsedUsd: z.number().nullable()
135
133
  });
136
134
  /** The list of {@link PermissionlessAssetSummary}, already ordered. */
137
135
  const assetSummariesSchema = z.array(assetSummarySchema);
@@ -5,7 +5,7 @@ import { AttachChainsArgs, ChainScope, ChainSummaryArgs, PermissionlessChain, Pe
5
5
  import { ChainsNamespace } from "./chains/ChainsNamespace.js";
6
6
  import { DeployArgs, DeployContractArgs, DeployPriceFeedArgs, PreparedDeployment, PreparedPriceFeedDeployment } from "./deploy/types.js";
7
7
  import { DEFAULT_DEPLOY_SALT, PermissionlessDeploy, priceFeedSalt } from "./deploy/PermissionlessDeploy.js";
8
- import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./oracles/types.js";
8
+ import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./oracles/types.js";
9
9
  import { GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, PermissionlessOracles } from "./oracles/PermissionlessOracles.js";
10
10
  import { AddFeedsArgs, ChangeNamesArgs, ChangeStalenessPeriodsArgs, ForbidFeedsArgs, InstanceTxsArgs, PriceFeedPair } from "./transactions/types.js";
11
11
  import { InstanceOwnerTransactions } from "./transactions/InstanceOwnerTransactions.js";
@@ -17,4 +17,4 @@ import "./deploy/index.js";
17
17
  import { PermissionlessChainUnreachableError, PermissionlessNotAttachedError, PriceFeedNotInStoreError, PriceFeedSaltMissingError, PriceFeedStalenessUnknownError } from "./errors.js";
18
18
  import "./oracles/index.js";
19
19
  import "./transactions/index.js";
20
- export { AddFeedsArgs, AssetArgs, AssetsArgs, AttachChainsArgs, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, DEFAULT_DEPLOY_SALT, DeployArgs, DeployContractArgs, DeployPriceFeedArgs, ForbidFeedsArgs, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GearboxPermissionless, GearboxPermissionlessOptions, GetPricesArgs, InstanceOwnerTransactions, InstanceTxsArgs, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessDeploy, PermissionlessMarket, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PreparedDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeedArgs, PriceFeedChartPoint, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedPriceChart, PriceFeedSaltMissingError, PriceFeedStalenessUnknownError, deriveEffectiveStalenessPeriod, priceFeedSalt };
20
+ export { AddFeedsArgs, AssetArgs, AssetsArgs, AttachChainsArgs, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, DEFAULT_DEPLOY_SALT, DeployArgs, DeployContractArgs, DeployPriceFeedArgs, ForbidFeedsArgs, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GearboxPermissionless, GearboxPermissionlessOptions, GetPricesArgs, InstanceOwnerTransactions, InstanceTxsArgs, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessDeploy, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PreparedDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeedArgs, PriceFeedChartPoint, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedPriceChart, PriceFeedSaltMissingError, PriceFeedStalenessUnknownError, deriveEffectiveStalenessPeriod, priceFeedSalt };
@@ -97,6 +97,10 @@ export declare class PermissionlessOracles extends AbstractOffchainNamespace {
97
97
  * renders the rows as they arrive. Omit `chainId` for every chain the
98
98
  * backend serves, ordered the same way across all of them.
99
99
  *
100
+ * Each row also carries what this SDK's tables say the asset is — see
101
+ * {@link PermissionlessAssetSummary} for why that is read here and not
102
+ * served.
103
+ *
100
104
  * ```ts
101
105
  * const assets = await permissionless.oracles.assets({ chainId: 1 });
102
106
  * const everywhere = await permissionless.oracles.assets();
@@ -1,3 +1,3 @@
1
- import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./types.js";
1
+ import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./types.js";
2
2
  import { GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, PermissionlessOracles } from "./PermissionlessOracles.js";
3
- export { AssetArgs, AssetsArgs, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessMarket, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs };
3
+ export { AssetArgs, AssetsArgs, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs };
@@ -221,7 +221,7 @@ export declare const assetPricesSchema: z.ZodObject<{
221
221
  marketCaps: z.ZodType<Record<`0x${string}`, string | null>, unknown, z.core.$ZodTypeInternals<Record<`0x${string}`, string | null>, unknown>>;
222
222
  time: z.ZodNumber;
223
223
  }, z.core.$loose>;
224
- /** {@link PermissionlessAssetSummary} */
224
+ /** {@link PermissionlessIndexedAssetSummary} */
225
225
  export declare const assetSummarySchema: z.ZodObject<{
226
226
  chainId: z.ZodNumber;
227
227
  address: z.ZodCustom<`0x${string}`, `0x${string}`>;
@@ -229,7 +229,6 @@ export declare const assetSummarySchema: z.ZodObject<{
229
229
  underlyingMarketCount: z.ZodNumber;
230
230
  quotaLimitUsd: z.ZodNullable<z.ZodNumber>;
231
231
  quotaUsedUsd: z.ZodNullable<z.ZodNumber>;
232
- assetType: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>>;
233
232
  }, z.core.$loose>;
234
233
  /** The list of {@link PermissionlessAssetSummary}, already ordered. */
235
234
  export declare const assetSummariesSchema: z.ZodArray<z.ZodObject<{
@@ -239,6 +238,5 @@ export declare const assetSummariesSchema: z.ZodArray<z.ZodObject<{
239
238
  underlyingMarketCount: z.ZodNumber;
240
239
  quotaLimitUsd: z.ZodNullable<z.ZodNumber>;
241
240
  quotaUsedUsd: z.ZodNullable<z.ZodNumber>;
242
- assetType: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>>;
243
241
  }, z.core.$loose>>;
244
242
  //#endregion
@@ -262,8 +262,11 @@ export interface PermissionlessAssetPrices {
262
262
  * still running, what is already quoted counts everywhere, and `null` is
263
263
  * nothing to total rather than a zero — so the list and the page a row of it
264
264
  * opens cannot disagree.
265
+ *
266
+ * What a reader gets is {@link PermissionlessAssetSummary}, this plus what the
267
+ * SDK makes of the asset.
265
268
  **/
266
- export interface PermissionlessAssetSummary {
269
+ export interface PermissionlessIndexedAssetSummary {
267
270
  chainId: number;
268
271
  /** Lowercased, as everything addressed in these payloads is. */
269
272
  address: Address;
@@ -279,16 +282,38 @@ export interface PermissionlessAssetSummary {
279
282
  underlyingMarketCount: number;
280
283
  quotaLimitUsd: number | null;
281
284
  quotaUsedUsd: number | null;
285
+ }
286
+ /**
287
+ * The same asset with what this SDK's curated tables say it is.
288
+ *
289
+ * Read here rather than served, because the tables are this package's and a
290
+ * backend consulting them could only answer from whichever version it was
291
+ * built against. A reader on a newer SDK than the deployment it talks to
292
+ * still classifies by the newer tables, and nothing has to be redeployed for
293
+ * a token added to one to be sorted.
294
+ **/
295
+ export interface PermissionlessAssetSummary extends PermissionlessIndexedAssetSummary {
282
296
  /**
283
- * What the asset is, where the SDK's curated tables say so.
297
+ * What the asset is, where the tables say so.
284
298
  *
285
- * `null` for anything they do not name, which is most of a store: the
286
- * tables classify the tokens markets are built on, and a store carries
287
- * everything those markets will take as collateral. A filter over this
288
- * sorts the assets worth sorting and leaves the rest in one heap, which is
289
- * the honest answer rather than a guess from the symbol.
299
+ * `null` for anything they do not name, which is most of a store: they
300
+ * classify the tokens markets are built on, and a store carries everything
301
+ * those markets will take as collateral. A filter over this sorts the
302
+ * assets worth sorting and leaves the rest in one heap, which is the honest
303
+ * answer rather than a guess from the symbol.
290
304
  */
291
305
  assetType: AssetType | null;
306
+ /**
307
+ * Whether the asset stands for something outside the chain.
308
+ *
309
+ * A flag rather than a value of {@link assetType}, because the two answer
310
+ * different questions and an asset can be both: a tokenised treasury is a
311
+ * real-world asset and may still be the stable a market is built on. Unlike
312
+ * {@link assetType} there is no third state — the curated list naming it is
313
+ * the whole of what makes an asset one, so not being on it is a real `false`
314
+ * rather than something unknown.
315
+ */
316
+ isRwa: boolean;
292
317
  }
293
318
  /**
294
319
  * Market caps of one feed's assets, keyed by the lowercased asset address.
@@ -13,7 +13,7 @@ import "./core/index.js";
13
13
  import { FunctionParams, ValueParams, encodeFunctionParams } from "./utils/abi-encoder.js";
14
14
  import { DeployArgs, DeployContractArgs, DeployPriceFeedArgs, PreparedDeployment, PreparedPriceFeedDeployment } from "./api/deploy/types.js";
15
15
  import { DEFAULT_DEPLOY_SALT, PermissionlessDeploy, priceFeedSalt } from "./api/deploy/PermissionlessDeploy.js";
16
- import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./api/oracles/types.js";
16
+ import { AssetArgs, AssetsArgs, GetPricesArgs, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PriceFeedArgs } from "./api/oracles/types.js";
17
17
  import { GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, PermissionlessOracles } from "./api/oracles/PermissionlessOracles.js";
18
18
  import { AddressProviderContract } from "./bindings/address-provider.js";
19
19
  import { BytecodeRepositoryContract } from "./bindings/bytecode-repository.js";
@@ -54,4 +54,4 @@ import { getPrices } from "./utils/price-update/get-prices.js";
54
54
  import { GetUpdatablePriceFeedsArgs, getUpdatablePriceFeeds } from "./utils/price-update/get-updatable-feeds.js";
55
55
  import { normalizeSignature } from "./utils/signature.js";
56
56
  import "./utils/index.js";
57
- export { AccessMode, AddAssetParams, AddFeedsArgs, AddressProviderContract, Addresses, AllowTokenParams, ArchiveTransport, ArchiveTransportConfig, AssetArgs, AssetsArgs, AttachChainsArgs, AuditEvent, Auditor, BYTECODE_REPOSITORY, Batch, Bytecode, BytecodeRepositoryContract, CCMConstructorParams, CROSS_CHAIN_GOVERNANCE, CROSS_CHAIN_MULTISIG, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, ConstructorParams, CreditManagerFees, CrossChainCall, CrossChainMultisigContract, DEFAULT_DEPLOY_SALT, DeployArgs, DeployContractArgs, DeployParams, DeployPriceFeedArgs, Deployment, DeploymentExtended, ForbidAdapterParams, ForbidFeedsArgs, ForbidTokenParams, FunctionParams, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GearboxPermissionless, GearboxPermissionlessOptions, GetPricesArgs, GetUpdatablePriceFeedsArgs, GovernorContract, INSTANCE_MANAGER, InputValueParams, InstanceManagerContract, InstanceOwnerTransactions, InstanceTxs, InstanceTxsArgs, MAINNET_CCM_CONSTRUCTOR_PARAMS, MAINNET_DEPLOYMENT_BLOCK, MAINNET_DEPLOYMENT_CCM_SALT, MAINNET_DEPLOYMENT_IM_SALT, MARKET_CONFIGURATOR_FACTORY, Market, MarketConfiguratorContract, MarketConfiguratorFactoryContract, PRICE_FEED_STORE, PUBLIC_CREATE2_FACTORY, PauseCreditManagerParams, PeripheryDomain, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessDeploy, PermissionlessMarket, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PreparedDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeed, PriceFeedArgs, PriceFeedChartPoint, PriceFeedConstructorParam, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedParamType, PriceFeedParams, PriceFeedPriceChart, PriceFeedSaltMissingError, PriceFeedSetupParams, PriceFeedStalenessUnknownError, PriceFeedStoreContract, Proposal, QueuedAndExecutedTransaction, RecoveryMessage, RoutingManagerContract, SafeBatch, SafeMeta, SafeTx, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, Signature, TOKEN_COMPRESSOR, TimeLockContract, TimelockTransaction, TimelockTxParams, TimelockTxs, TokenCompressorContract, TreasurySplitterContract, UnpauseCreditManagerParams, ValueParams, WithdrawalCompressorContract, calculateChecksum, checkCreate2Deployment, checkCreate2DeploymentAddress, chunkedLogsTransport, convertPercent, convertQueueBatchToExecuteTx, convertRawTxToSafeMultisigTx, createCallData, createCreate2DeployRawTx, deepJsonParse, deployUsingPublicCreate2, deriveEffectiveStalenessPeriod, encodeFunctionParams, formatBytecodeSize, formatBytecodeVersion, getBlockNumberByTimestamp, getCreate2AddressPublicFactory, getCreate2DeploymentAddress, getPriceUpdateTx, getPrices, getSafeBatch, getSafeBatches, getUpdatablePriceFeeds, handleSalt, normalizeSignature, priceFeedSalt, priceFeedSetupParams, shortenHash, significantTrunc };
57
+ export { AccessMode, AddAssetParams, AddFeedsArgs, AddressProviderContract, Addresses, AllowTokenParams, ArchiveTransport, ArchiveTransportConfig, AssetArgs, AssetsArgs, AttachChainsArgs, AuditEvent, Auditor, BYTECODE_REPOSITORY, Batch, Bytecode, BytecodeRepositoryContract, CCMConstructorParams, CROSS_CHAIN_GOVERNANCE, CROSS_CHAIN_MULTISIG, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, ConstructorParams, CreditManagerFees, CrossChainCall, CrossChainMultisigContract, DEFAULT_DEPLOY_SALT, DeployArgs, DeployContractArgs, DeployParams, DeployPriceFeedArgs, Deployment, DeploymentExtended, ForbidAdapterParams, ForbidFeedsArgs, ForbidTokenParams, FunctionParams, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GearboxPermissionless, GearboxPermissionlessOptions, GetPricesArgs, GetUpdatablePriceFeedsArgs, GovernorContract, INSTANCE_MANAGER, InputValueParams, InstanceManagerContract, InstanceOwnerTransactions, InstanceTxs, InstanceTxsArgs, MAINNET_CCM_CONSTRUCTOR_PARAMS, MAINNET_DEPLOYMENT_BLOCK, MAINNET_DEPLOYMENT_CCM_SALT, MAINNET_DEPLOYMENT_IM_SALT, MARKET_CONFIGURATOR_FACTORY, Market, MarketConfiguratorContract, MarketConfiguratorFactoryContract, PRICE_FEED_STORE, PUBLIC_CREATE2_FACTORY, PauseCreditManagerParams, PeripheryDomain, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetPrices, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessDeploy, PermissionlessIndexedAssetSummary, PermissionlessMarket, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedMarketCaps, PermissionlessPriceFeedStore, PermissionlessPrices, PreparedDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeed, PriceFeedArgs, PriceFeedChartPoint, PriceFeedConstructorParam, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedParamType, PriceFeedParams, PriceFeedPriceChart, PriceFeedSaltMissingError, PriceFeedSetupParams, PriceFeedStalenessUnknownError, PriceFeedStoreContract, Proposal, QueuedAndExecutedTransaction, RecoveryMessage, RoutingManagerContract, SafeBatch, SafeMeta, SafeTx, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, Signature, TOKEN_COMPRESSOR, TimeLockContract, TimelockTransaction, TimelockTxParams, TimelockTxs, TokenCompressorContract, TreasurySplitterContract, UnpauseCreditManagerParams, ValueParams, WithdrawalCompressorContract, calculateChecksum, checkCreate2Deployment, checkCreate2DeploymentAddress, chunkedLogsTransport, convertPercent, convertQueueBatchToExecuteTx, convertRawTxToSafeMultisigTx, createCallData, createCreate2DeployRawTx, deepJsonParse, deployUsingPublicCreate2, deriveEffectiveStalenessPeriod, encodeFunctionParams, formatBytecodeSize, formatBytecodeVersion, getBlockNumberByTimestamp, getCreate2AddressPublicFactory, getCreate2DeploymentAddress, getPriceUpdateTx, getPrices, getSafeBatch, getSafeBatches, getUpdatablePriceFeeds, handleSalt, normalizeSignature, priceFeedSalt, priceFeedSetupParams, shortenHash, significantTrunc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "18.2.0-next.7",
3
+ "version": "18.2.0-next.8",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {