@opensea/sdk 11.1.0 → 11.1.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.
- package/lib/api/types.d.ts +15 -11
- package/package.json +1 -1
- package/src/api/types.ts +15 -11
package/lib/api/types.d.ts
CHANGED
|
@@ -646,18 +646,22 @@ export interface GetTokensArgs {
|
|
|
646
646
|
* @category API Query Args
|
|
647
647
|
*/
|
|
648
648
|
export interface GetSwapQuoteArgs {
|
|
649
|
-
/**
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
|
|
659
|
-
/**
|
|
649
|
+
/** Chain of the token to swap from */
|
|
650
|
+
fromChain: string;
|
|
651
|
+
/** Contract address of the token to swap from */
|
|
652
|
+
fromAddress: string;
|
|
653
|
+
/** Chain of the token to swap to */
|
|
654
|
+
toChain: string;
|
|
655
|
+
/** Contract address of the token to swap to */
|
|
656
|
+
toAddress: string;
|
|
657
|
+
/** Amount to swap in the smallest unit of the token (e.g. wei for ETH) */
|
|
658
|
+
quantity: string;
|
|
659
|
+
/** Wallet address executing the swap */
|
|
660
|
+
address: string;
|
|
661
|
+
/** Slippage tolerance, 0.0 to 0.5 (default 0.01) */
|
|
660
662
|
slippage?: number;
|
|
663
|
+
/** Recipient address (defaults to the sender address) */
|
|
664
|
+
recipient?: string;
|
|
661
665
|
}
|
|
662
666
|
/**
|
|
663
667
|
* Response from OpenSea API for fetching a swap quote.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensea/sdk",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs, tokens, and our marketplace data",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "OpenSea Developers",
|
package/src/api/types.ts
CHANGED
|
@@ -759,18 +759,22 @@ export interface GetTokensArgs {
|
|
|
759
759
|
* @category API Query Args
|
|
760
760
|
*/
|
|
761
761
|
export interface GetSwapQuoteArgs {
|
|
762
|
-
/**
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
|
|
772
|
-
/**
|
|
762
|
+
/** Chain of the token to swap from */
|
|
763
|
+
fromChain: string
|
|
764
|
+
/** Contract address of the token to swap from */
|
|
765
|
+
fromAddress: string
|
|
766
|
+
/** Chain of the token to swap to */
|
|
767
|
+
toChain: string
|
|
768
|
+
/** Contract address of the token to swap to */
|
|
769
|
+
toAddress: string
|
|
770
|
+
/** Amount to swap in the smallest unit of the token (e.g. wei for ETH) */
|
|
771
|
+
quantity: string
|
|
772
|
+
/** Wallet address executing the swap */
|
|
773
|
+
address: string
|
|
774
|
+
/** Slippage tolerance, 0.0 to 0.5 (default 0.01) */
|
|
773
775
|
slippage?: number
|
|
776
|
+
/** Recipient address (defaults to the sender address) */
|
|
777
|
+
recipient?: string
|
|
774
778
|
}
|
|
775
779
|
|
|
776
780
|
/**
|