@bulletxyz/bullet-sdk 0.28.1-rc.0 → 0.28.2

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.
@@ -195,7 +195,7 @@ export declare class Client {
195
195
  liquidateSpotLiability(address: Address, liabilityAssetId: AssetName, collateralAssetId: AssetName, liabilityAmount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
196
196
  depositToUsdcPnlPool(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
197
197
  depositToInsuranceFund(amount: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
198
- initAssetMetadata(asset_id: number, assetName: string, tokenId: TokenId, decimals: number, withdrawFee: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
198
+ initAssetMetadata(asset_id: number, assetName: string, tokenId: TokenId | null, decimals: number, withdrawFee: Decimal): Promise<TransactionResult<Transaction<RuntimeCall>>>;
199
199
  updateAssetMetadata(assetId: number, assetName: string | null, tokenId: TokenId | null, decimals: number | null, withdrawFee: Decimal | null): Promise<TransactionResult<Transaction<RuntimeCall>>>;
200
200
  initSpotMarket(marketId: number, baseAssetId: number, quoteAssetId: AssetId, baseMinLotSize: Decimal, quoteMinLotSize: Decimal, maxOrdersPerSide: number, takerFeesTenthBps: number[], makerFeesTenthBps: number[], name: string): Promise<TransactionResult<Transaction<RuntimeCall>>>;
201
201
  initPerpMarket(marketId: number, baseAssetId: number, name: string, minTickSize: Decimal, minLotSize: Decimal, maxOrdersPerSide: number, minInterestRateClamp: Decimal, maxInterestRateClamp: Decimal, minFundingRateClamp: Decimal, maxFundingRateClamp: Decimal, impactMargin: Decimal, interestRate: Decimal, leverageTableArgs: Record<string, number>, takerFeesTenthBps: number[], makerFeesTenthBps: number[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -255,7 +255,7 @@ type ExchangeCallMessage = {
255
255
  args: {
256
256
  asset_id: AssetId;
257
257
  asset_name: string;
258
- token_id: TokenId;
258
+ token_id: TokenId | null;
259
259
  decimals: number;
260
260
  withdraw_fee: number;
261
261
  };
@@ -2529,29 +2529,29 @@ export declare const Schemas: {
2529
2529
  metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2530
2530
  id: z.ZodNumber;
2531
2531
  name: z.ZodString;
2532
- token_id: z.ZodString;
2532
+ token_id: z.ZodNullable<z.ZodString>;
2533
2533
  decimals: z.ZodNumber;
2534
2534
  withdraw_fee: z.ZodString;
2535
2535
  }, "strip", z.ZodTypeAny, {
2536
- token_id: string;
2536
+ token_id: string | null;
2537
2537
  id: number;
2538
2538
  name: string;
2539
2539
  decimals: number;
2540
2540
  withdraw_fee: string;
2541
2541
  }, {
2542
- token_id: string;
2542
+ token_id: string | null;
2543
2543
  id: number;
2544
2544
  name: string;
2545
2545
  decimals: number;
2546
2546
  withdraw_fee: string;
2547
2547
  }>>, Map<number, {
2548
- token_id: string;
2548
+ token_id: string | null;
2549
2549
  id: number;
2550
2550
  name: string;
2551
2551
  decimals: number;
2552
2552
  withdraw_fee: string;
2553
2553
  }>, Record<string, {
2554
- token_id: string;
2554
+ token_id: string | null;
2555
2555
  id: number;
2556
2556
  name: string;
2557
2557
  decimals: number;
@@ -2559,7 +2559,7 @@ export declare const Schemas: {
2559
2559
  }>>;
2560
2560
  }, "strip", z.ZodTypeAny, {
2561
2561
  metas: Map<number, {
2562
- token_id: string;
2562
+ token_id: string | null;
2563
2563
  id: number;
2564
2564
  name: string;
2565
2565
  decimals: number;
@@ -2567,7 +2567,7 @@ export declare const Schemas: {
2567
2567
  }>;
2568
2568
  }, {
2569
2569
  metas: Record<string, {
2570
- token_id: string;
2570
+ token_id: string | null;
2571
2571
  id: number;
2572
2572
  name: string;
2573
2573
  decimals: number;
@@ -3339,29 +3339,29 @@ export declare const ResponseSchemas: {
3339
3339
  metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3340
3340
  id: z.ZodNumber;
3341
3341
  name: z.ZodString;
3342
- token_id: z.ZodString;
3342
+ token_id: z.ZodNullable<z.ZodString>;
3343
3343
  decimals: z.ZodNumber;
3344
3344
  withdraw_fee: z.ZodString;
3345
3345
  }, "strip", z.ZodTypeAny, {
3346
- token_id: string;
3346
+ token_id: string | null;
3347
3347
  id: number;
3348
3348
  name: string;
3349
3349
  decimals: number;
3350
3350
  withdraw_fee: string;
3351
3351
  }, {
3352
- token_id: string;
3352
+ token_id: string | null;
3353
3353
  id: number;
3354
3354
  name: string;
3355
3355
  decimals: number;
3356
3356
  withdraw_fee: string;
3357
3357
  }>>, Map<number, {
3358
- token_id: string;
3358
+ token_id: string | null;
3359
3359
  id: number;
3360
3360
  name: string;
3361
3361
  decimals: number;
3362
3362
  withdraw_fee: string;
3363
3363
  }>, Record<string, {
3364
- token_id: string;
3364
+ token_id: string | null;
3365
3365
  id: number;
3366
3366
  name: string;
3367
3367
  decimals: number;
@@ -3369,7 +3369,7 @@ export declare const ResponseSchemas: {
3369
3369
  }>>;
3370
3370
  }, "strip", z.ZodTypeAny, {
3371
3371
  metas: Map<number, {
3372
- token_id: string;
3372
+ token_id: string | null;
3373
3373
  id: number;
3374
3374
  name: string;
3375
3375
  decimals: number;
@@ -3377,7 +3377,7 @@ export declare const ResponseSchemas: {
3377
3377
  }>;
3378
3378
  }, {
3379
3379
  metas: Record<string, {
3380
- token_id: string;
3380
+ token_id: string | null;
3381
3381
  id: number;
3382
3382
  name: string;
3383
3383
  decimals: number;
@@ -3387,7 +3387,7 @@ export declare const ResponseSchemas: {
3387
3387
  }, "strip", z.ZodTypeAny, {
3388
3388
  value: {
3389
3389
  metas: Map<number, {
3390
- token_id: string;
3390
+ token_id: string | null;
3391
3391
  id: number;
3392
3392
  name: string;
3393
3393
  decimals: number;
@@ -3397,7 +3397,7 @@ export declare const ResponseSchemas: {
3397
3397
  }, {
3398
3398
  value: {
3399
3399
  metas: Record<string, {
3400
- token_id: string;
3400
+ token_id: string | null;
3401
3401
  id: number;
3402
3402
  name: string;
3403
3403
  decimals: number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/zetamarkets/bullet-sdk.git"
6
6
  },
7
- "version": "0.28.1-rc.0",
7
+ "version": "0.28.2",
8
8
  "description": "Bullet SDK",
9
9
  "author": "@bulletxyz",
10
10
  "license": "Apache-2.0",