@rabby-wallet/rabby-api 0.6.10 → 0.6.12

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 (2) hide show
  1. package/dist/types.d.ts +16 -2
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -421,6 +421,7 @@ export interface ExplainTxResponse {
421
421
  msg: string;
422
422
  } | null;
423
423
  };
424
+ trace_id: string;
424
425
  recommend: {
425
426
  gas: string;
426
427
  nonce: string;
@@ -876,7 +877,7 @@ export interface CollectionWithFloorPrice {
876
877
  name: string;
877
878
  floor_price: number;
878
879
  }
879
- export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address';
880
+ export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address' | 'sell_nft_list_order' | 'permit2_approve_token_list';
880
881
  export interface BuyNFTOrderAction {
881
882
  expire_at: string;
882
883
  pay_token: TokenItem;
@@ -891,6 +892,13 @@ export interface SellNFTOrderAction {
891
892
  takers: string[];
892
893
  expire_at: string;
893
894
  }
895
+ export interface BatchSellNFTOrderAction {
896
+ pay_nft_list: NFTItem[];
897
+ receive_token: TokenItem[];
898
+ receiver: string;
899
+ takers: string[];
900
+ expire_at: string;
901
+ }
894
902
  export interface SwapTokenOrderAction {
895
903
  pay_token: TokenItem;
896
904
  receive_token: TokenItem;
@@ -912,6 +920,12 @@ export interface Permit2Action {
912
920
  token: PermitTokenItem;
913
921
  expire_at: number | null;
914
922
  }
923
+ export interface BatchPermit2Action {
924
+ permit2_id: string;
925
+ spender: string;
926
+ token_list: PermitTokenItem[];
927
+ expire_at: number | null;
928
+ }
915
929
  export interface SignMultiSigActions {
916
930
  multisig_id: string;
917
931
  }
@@ -919,7 +933,7 @@ export interface ParseTypedDataResponse {
919
933
  action: {
920
934
  type: TypedDataActionName;
921
935
  expire_at?: number;
922
- data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction;
936
+ data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action;
923
937
  } | null;
924
938
  }
925
939
  export declare type TextActionName = 'create_key' | 'verify_address';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"