@b3dotfun/sdk 0.0.20-alpha.2 → 0.0.20-alpha.4
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/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +2 -2
- package/dist/cjs/anyspend/types/api.d.ts +35 -56
- package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +2 -2
- package/dist/esm/anyspend/types/api.d.ts +35 -56
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +2 -2
- package/dist/types/anyspend/types/api.d.ts +35 -56
- package/package.json +2 -2
- package/src/anyspend/types/api.ts +37 -58
|
@@ -38,9 +38,9 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
38
38
|
maxSupply?: number | undefined;
|
|
39
39
|
conditions?: {
|
|
40
40
|
chainId: number;
|
|
41
|
-
tokenAddress: string;
|
|
42
41
|
conditionType: "user-owns-tokens";
|
|
43
42
|
isOnchain: boolean;
|
|
43
|
+
tokenAddress: string;
|
|
44
44
|
tokenAmount: string;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
isFreeMint?: boolean | undefined;
|
|
@@ -90,9 +90,9 @@ export declare const useSigMintCollection: ({ address, chainId }: FindByAddressP
|
|
|
90
90
|
description?: string | undefined;
|
|
91
91
|
name?: string | undefined;
|
|
92
92
|
image?: string | undefined;
|
|
93
|
+
attributes?: any;
|
|
93
94
|
externalLink?: string | undefined;
|
|
94
95
|
appUri?: string | undefined;
|
|
95
|
-
attributes?: any;
|
|
96
96
|
backgroundColor?: string | undefined;
|
|
97
97
|
promptImageUrl?: string | undefined;
|
|
98
98
|
};
|
|
@@ -51,10 +51,6 @@ export interface paths {
|
|
|
51
51
|
metadata: {
|
|
52
52
|
/** @description Token logo URI */
|
|
53
53
|
logoURI: string;
|
|
54
|
-
/** @description Whether token is verified */
|
|
55
|
-
verified: boolean;
|
|
56
|
-
/** @description Whether token is native to chain */
|
|
57
|
-
isNative: boolean;
|
|
58
54
|
};
|
|
59
55
|
}[];
|
|
60
56
|
/** @example 200 */
|
|
@@ -430,12 +426,8 @@ export interface paths {
|
|
|
430
426
|
* "createdAt": 1752505817654
|
|
431
427
|
* } */
|
|
432
428
|
relayTx: components["schemas"]["RelayTx"] | null;
|
|
433
|
-
/** @example null */
|
|
434
429
|
executeTx: components["schemas"]["ExecuteTx"] | null;
|
|
435
|
-
/**
|
|
436
|
-
* @description Refund transactions if order failed
|
|
437
|
-
* @example null
|
|
438
|
-
*/
|
|
430
|
+
/** @description Refund transactions if order failed */
|
|
439
431
|
refundTxs: components["schemas"]["RefundTx"][] | null;
|
|
440
432
|
};
|
|
441
433
|
/** @example 200 */
|
|
@@ -643,8 +635,6 @@ export interface paths {
|
|
|
643
635
|
metadata?: {
|
|
644
636
|
/** @example https://assets.relay.link/icons/1/light.png */
|
|
645
637
|
logoURI?: string;
|
|
646
|
-
/** @example true */
|
|
647
|
-
verified?: boolean;
|
|
648
638
|
};
|
|
649
639
|
};
|
|
650
640
|
/**
|
|
@@ -684,8 +674,6 @@ export interface paths {
|
|
|
684
674
|
metadata?: {
|
|
685
675
|
/** @example https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694 */
|
|
686
676
|
logoURI?: string;
|
|
687
|
-
/** @example true */
|
|
688
|
-
verified?: boolean;
|
|
689
677
|
};
|
|
690
678
|
};
|
|
691
679
|
/**
|
|
@@ -1026,7 +1014,7 @@ export interface components {
|
|
|
1026
1014
|
expectedDstAmount: string;
|
|
1027
1015
|
/**
|
|
1028
1016
|
* @description Actual received amount (null for new orders)
|
|
1029
|
-
* @example
|
|
1017
|
+
* @example 990000
|
|
1030
1018
|
*/
|
|
1031
1019
|
actualDstAmount: string | null;
|
|
1032
1020
|
};
|
|
@@ -1062,7 +1050,7 @@ export interface components {
|
|
|
1062
1050
|
contractAddress: string;
|
|
1063
1051
|
/**
|
|
1064
1052
|
* @description Token ID (for ERC1155, null for ERC721)
|
|
1065
|
-
* @example
|
|
1053
|
+
* @example 1
|
|
1066
1054
|
*/
|
|
1067
1055
|
tokenId: number | null;
|
|
1068
1056
|
/**
|
|
@@ -1179,10 +1167,7 @@ export interface components {
|
|
|
1179
1167
|
* @enum {string}
|
|
1180
1168
|
*/
|
|
1181
1169
|
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
1182
|
-
/**
|
|
1183
|
-
* @description Error details if order failed
|
|
1184
|
-
* @example null
|
|
1185
|
-
*/
|
|
1170
|
+
/** @description Error details if order failed */
|
|
1186
1171
|
errorDetails: string | null;
|
|
1187
1172
|
/**
|
|
1188
1173
|
* @description Creation timestamp
|
|
@@ -1199,17 +1184,11 @@ export interface components {
|
|
|
1199
1184
|
* @example 0xb34facb90a200251318e8841c05102366f2158cf
|
|
1200
1185
|
*/
|
|
1201
1186
|
creatorAddress: string | null;
|
|
1202
|
-
/**
|
|
1203
|
-
* @description Optional partner identifier
|
|
1204
|
-
* @example null
|
|
1205
|
-
*/
|
|
1187
|
+
/** @description Optional partner identifier */
|
|
1206
1188
|
partnerId: string | null;
|
|
1207
1189
|
/** @description Onramp configuration if used */
|
|
1208
1190
|
onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
|
|
1209
|
-
/**
|
|
1210
|
-
* @description Quick purchase URL if available
|
|
1211
|
-
* @example null
|
|
1212
|
-
*/
|
|
1191
|
+
/** @description Quick purchase URL if available */
|
|
1213
1192
|
oneClickBuyUrl: string | null;
|
|
1214
1193
|
/**
|
|
1215
1194
|
* @description Stripe payment intent ID if using Stripe
|
|
@@ -1628,34 +1607,6 @@ export interface components {
|
|
|
1628
1607
|
*/
|
|
1629
1608
|
createdAt: number;
|
|
1630
1609
|
};
|
|
1631
|
-
StripeWeb2Support: {
|
|
1632
|
-
/**
|
|
1633
|
-
* @example false
|
|
1634
|
-
* @constant
|
|
1635
|
-
*/
|
|
1636
|
-
isSupport: false;
|
|
1637
|
-
} | {
|
|
1638
|
-
/**
|
|
1639
|
-
* @example true
|
|
1640
|
-
* @constant
|
|
1641
|
-
*/
|
|
1642
|
-
isSupport: true;
|
|
1643
|
-
/**
|
|
1644
|
-
* @description Total payment amount formatted in USD
|
|
1645
|
-
* @example 10.00
|
|
1646
|
-
*/
|
|
1647
|
-
formattedTotalUsd: string;
|
|
1648
|
-
/**
|
|
1649
|
-
* @description Onramp amount formatted in USD
|
|
1650
|
-
* @example 9.50
|
|
1651
|
-
*/
|
|
1652
|
-
formattedOnrampUsd: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* @description Stripe fee formatted in USD
|
|
1655
|
-
* @example 0.50
|
|
1656
|
-
*/
|
|
1657
|
-
formattedFeeUsd: string;
|
|
1658
|
-
};
|
|
1659
1610
|
/** @description NFT contract details */
|
|
1660
1611
|
NftContract: {
|
|
1661
1612
|
/**
|
|
@@ -1696,7 +1647,7 @@ export interface components {
|
|
|
1696
1647
|
description: string;
|
|
1697
1648
|
/**
|
|
1698
1649
|
* @description Token ID (null for ERC721, specific ID for ERC1155)
|
|
1699
|
-
* @example
|
|
1650
|
+
* @example 1
|
|
1700
1651
|
*/
|
|
1701
1652
|
tokenId: number | null;
|
|
1702
1653
|
/**
|
|
@@ -1706,6 +1657,34 @@ export interface components {
|
|
|
1706
1657
|
*/
|
|
1707
1658
|
type: "erc721" | "erc1155";
|
|
1708
1659
|
};
|
|
1660
|
+
StripeWeb2Support: {
|
|
1661
|
+
/**
|
|
1662
|
+
* @example false
|
|
1663
|
+
* @constant
|
|
1664
|
+
*/
|
|
1665
|
+
isSupport: false;
|
|
1666
|
+
} | {
|
|
1667
|
+
/**
|
|
1668
|
+
* @example true
|
|
1669
|
+
* @constant
|
|
1670
|
+
*/
|
|
1671
|
+
isSupport: true;
|
|
1672
|
+
/**
|
|
1673
|
+
* @description Total payment amount formatted in USD
|
|
1674
|
+
* @example 10.00
|
|
1675
|
+
*/
|
|
1676
|
+
formattedTotalUsd: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* @description Onramp amount formatted in USD
|
|
1679
|
+
* @example 9.50
|
|
1680
|
+
*/
|
|
1681
|
+
formattedOnrampUsd: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* @description Stripe fee formatted in USD
|
|
1684
|
+
* @example 0.50
|
|
1685
|
+
*/
|
|
1686
|
+
formattedFeeUsd: string;
|
|
1687
|
+
};
|
|
1709
1688
|
};
|
|
1710
1689
|
responses: never;
|
|
1711
1690
|
parameters: never;
|
|
@@ -38,9 +38,9 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
38
38
|
maxSupply?: number | undefined;
|
|
39
39
|
conditions?: {
|
|
40
40
|
chainId: number;
|
|
41
|
-
tokenAddress: string;
|
|
42
41
|
conditionType: "user-owns-tokens";
|
|
43
42
|
isOnchain: boolean;
|
|
43
|
+
tokenAddress: string;
|
|
44
44
|
tokenAmount: string;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
isFreeMint?: boolean | undefined;
|
|
@@ -90,9 +90,9 @@ export declare const useSigMintCollection: ({ address, chainId }: FindByAddressP
|
|
|
90
90
|
description?: string | undefined;
|
|
91
91
|
name?: string | undefined;
|
|
92
92
|
image?: string | undefined;
|
|
93
|
+
attributes?: any;
|
|
93
94
|
externalLink?: string | undefined;
|
|
94
95
|
appUri?: string | undefined;
|
|
95
|
-
attributes?: any;
|
|
96
96
|
backgroundColor?: string | undefined;
|
|
97
97
|
promptImageUrl?: string | undefined;
|
|
98
98
|
};
|
|
@@ -51,10 +51,6 @@ export interface paths {
|
|
|
51
51
|
metadata: {
|
|
52
52
|
/** @description Token logo URI */
|
|
53
53
|
logoURI: string;
|
|
54
|
-
/** @description Whether token is verified */
|
|
55
|
-
verified: boolean;
|
|
56
|
-
/** @description Whether token is native to chain */
|
|
57
|
-
isNative: boolean;
|
|
58
54
|
};
|
|
59
55
|
}[];
|
|
60
56
|
/** @example 200 */
|
|
@@ -430,12 +426,8 @@ export interface paths {
|
|
|
430
426
|
* "createdAt": 1752505817654
|
|
431
427
|
* } */
|
|
432
428
|
relayTx: components["schemas"]["RelayTx"] | null;
|
|
433
|
-
/** @example null */
|
|
434
429
|
executeTx: components["schemas"]["ExecuteTx"] | null;
|
|
435
|
-
/**
|
|
436
|
-
* @description Refund transactions if order failed
|
|
437
|
-
* @example null
|
|
438
|
-
*/
|
|
430
|
+
/** @description Refund transactions if order failed */
|
|
439
431
|
refundTxs: components["schemas"]["RefundTx"][] | null;
|
|
440
432
|
};
|
|
441
433
|
/** @example 200 */
|
|
@@ -643,8 +635,6 @@ export interface paths {
|
|
|
643
635
|
metadata?: {
|
|
644
636
|
/** @example https://assets.relay.link/icons/1/light.png */
|
|
645
637
|
logoURI?: string;
|
|
646
|
-
/** @example true */
|
|
647
|
-
verified?: boolean;
|
|
648
638
|
};
|
|
649
639
|
};
|
|
650
640
|
/**
|
|
@@ -684,8 +674,6 @@ export interface paths {
|
|
|
684
674
|
metadata?: {
|
|
685
675
|
/** @example https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694 */
|
|
686
676
|
logoURI?: string;
|
|
687
|
-
/** @example true */
|
|
688
|
-
verified?: boolean;
|
|
689
677
|
};
|
|
690
678
|
};
|
|
691
679
|
/**
|
|
@@ -1026,7 +1014,7 @@ export interface components {
|
|
|
1026
1014
|
expectedDstAmount: string;
|
|
1027
1015
|
/**
|
|
1028
1016
|
* @description Actual received amount (null for new orders)
|
|
1029
|
-
* @example
|
|
1017
|
+
* @example 990000
|
|
1030
1018
|
*/
|
|
1031
1019
|
actualDstAmount: string | null;
|
|
1032
1020
|
};
|
|
@@ -1062,7 +1050,7 @@ export interface components {
|
|
|
1062
1050
|
contractAddress: string;
|
|
1063
1051
|
/**
|
|
1064
1052
|
* @description Token ID (for ERC1155, null for ERC721)
|
|
1065
|
-
* @example
|
|
1053
|
+
* @example 1
|
|
1066
1054
|
*/
|
|
1067
1055
|
tokenId: number | null;
|
|
1068
1056
|
/**
|
|
@@ -1179,10 +1167,7 @@ export interface components {
|
|
|
1179
1167
|
* @enum {string}
|
|
1180
1168
|
*/
|
|
1181
1169
|
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
1182
|
-
/**
|
|
1183
|
-
* @description Error details if order failed
|
|
1184
|
-
* @example null
|
|
1185
|
-
*/
|
|
1170
|
+
/** @description Error details if order failed */
|
|
1186
1171
|
errorDetails: string | null;
|
|
1187
1172
|
/**
|
|
1188
1173
|
* @description Creation timestamp
|
|
@@ -1199,17 +1184,11 @@ export interface components {
|
|
|
1199
1184
|
* @example 0xb34facb90a200251318e8841c05102366f2158cf
|
|
1200
1185
|
*/
|
|
1201
1186
|
creatorAddress: string | null;
|
|
1202
|
-
/**
|
|
1203
|
-
* @description Optional partner identifier
|
|
1204
|
-
* @example null
|
|
1205
|
-
*/
|
|
1187
|
+
/** @description Optional partner identifier */
|
|
1206
1188
|
partnerId: string | null;
|
|
1207
1189
|
/** @description Onramp configuration if used */
|
|
1208
1190
|
onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
|
|
1209
|
-
/**
|
|
1210
|
-
* @description Quick purchase URL if available
|
|
1211
|
-
* @example null
|
|
1212
|
-
*/
|
|
1191
|
+
/** @description Quick purchase URL if available */
|
|
1213
1192
|
oneClickBuyUrl: string | null;
|
|
1214
1193
|
/**
|
|
1215
1194
|
* @description Stripe payment intent ID if using Stripe
|
|
@@ -1628,34 +1607,6 @@ export interface components {
|
|
|
1628
1607
|
*/
|
|
1629
1608
|
createdAt: number;
|
|
1630
1609
|
};
|
|
1631
|
-
StripeWeb2Support: {
|
|
1632
|
-
/**
|
|
1633
|
-
* @example false
|
|
1634
|
-
* @constant
|
|
1635
|
-
*/
|
|
1636
|
-
isSupport: false;
|
|
1637
|
-
} | {
|
|
1638
|
-
/**
|
|
1639
|
-
* @example true
|
|
1640
|
-
* @constant
|
|
1641
|
-
*/
|
|
1642
|
-
isSupport: true;
|
|
1643
|
-
/**
|
|
1644
|
-
* @description Total payment amount formatted in USD
|
|
1645
|
-
* @example 10.00
|
|
1646
|
-
*/
|
|
1647
|
-
formattedTotalUsd: string;
|
|
1648
|
-
/**
|
|
1649
|
-
* @description Onramp amount formatted in USD
|
|
1650
|
-
* @example 9.50
|
|
1651
|
-
*/
|
|
1652
|
-
formattedOnrampUsd: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* @description Stripe fee formatted in USD
|
|
1655
|
-
* @example 0.50
|
|
1656
|
-
*/
|
|
1657
|
-
formattedFeeUsd: string;
|
|
1658
|
-
};
|
|
1659
1610
|
/** @description NFT contract details */
|
|
1660
1611
|
NftContract: {
|
|
1661
1612
|
/**
|
|
@@ -1696,7 +1647,7 @@ export interface components {
|
|
|
1696
1647
|
description: string;
|
|
1697
1648
|
/**
|
|
1698
1649
|
* @description Token ID (null for ERC721, specific ID for ERC1155)
|
|
1699
|
-
* @example
|
|
1650
|
+
* @example 1
|
|
1700
1651
|
*/
|
|
1701
1652
|
tokenId: number | null;
|
|
1702
1653
|
/**
|
|
@@ -1706,6 +1657,34 @@ export interface components {
|
|
|
1706
1657
|
*/
|
|
1707
1658
|
type: "erc721" | "erc1155";
|
|
1708
1659
|
};
|
|
1660
|
+
StripeWeb2Support: {
|
|
1661
|
+
/**
|
|
1662
|
+
* @example false
|
|
1663
|
+
* @constant
|
|
1664
|
+
*/
|
|
1665
|
+
isSupport: false;
|
|
1666
|
+
} | {
|
|
1667
|
+
/**
|
|
1668
|
+
* @example true
|
|
1669
|
+
* @constant
|
|
1670
|
+
*/
|
|
1671
|
+
isSupport: true;
|
|
1672
|
+
/**
|
|
1673
|
+
* @description Total payment amount formatted in USD
|
|
1674
|
+
* @example 10.00
|
|
1675
|
+
*/
|
|
1676
|
+
formattedTotalUsd: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* @description Onramp amount formatted in USD
|
|
1679
|
+
* @example 9.50
|
|
1680
|
+
*/
|
|
1681
|
+
formattedOnrampUsd: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* @description Stripe fee formatted in USD
|
|
1684
|
+
* @example 0.50
|
|
1685
|
+
*/
|
|
1686
|
+
formattedFeeUsd: string;
|
|
1687
|
+
};
|
|
1709
1688
|
};
|
|
1710
1689
|
responses: never;
|
|
1711
1690
|
parameters: never;
|
|
@@ -38,9 +38,9 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
38
38
|
maxSupply?: number | undefined;
|
|
39
39
|
conditions?: {
|
|
40
40
|
chainId: number;
|
|
41
|
-
tokenAddress: string;
|
|
42
41
|
conditionType: "user-owns-tokens";
|
|
43
42
|
isOnchain: boolean;
|
|
43
|
+
tokenAddress: string;
|
|
44
44
|
tokenAmount: string;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
isFreeMint?: boolean | undefined;
|
|
@@ -90,9 +90,9 @@ export declare const useSigMintCollection: ({ address, chainId }: FindByAddressP
|
|
|
90
90
|
description?: string | undefined;
|
|
91
91
|
name?: string | undefined;
|
|
92
92
|
image?: string | undefined;
|
|
93
|
+
attributes?: any;
|
|
93
94
|
externalLink?: string | undefined;
|
|
94
95
|
appUri?: string | undefined;
|
|
95
|
-
attributes?: any;
|
|
96
96
|
backgroundColor?: string | undefined;
|
|
97
97
|
promptImageUrl?: string | undefined;
|
|
98
98
|
};
|
|
@@ -51,10 +51,6 @@ export interface paths {
|
|
|
51
51
|
metadata: {
|
|
52
52
|
/** @description Token logo URI */
|
|
53
53
|
logoURI: string;
|
|
54
|
-
/** @description Whether token is verified */
|
|
55
|
-
verified: boolean;
|
|
56
|
-
/** @description Whether token is native to chain */
|
|
57
|
-
isNative: boolean;
|
|
58
54
|
};
|
|
59
55
|
}[];
|
|
60
56
|
/** @example 200 */
|
|
@@ -430,12 +426,8 @@ export interface paths {
|
|
|
430
426
|
* "createdAt": 1752505817654
|
|
431
427
|
* } */
|
|
432
428
|
relayTx: components["schemas"]["RelayTx"] | null;
|
|
433
|
-
/** @example null */
|
|
434
429
|
executeTx: components["schemas"]["ExecuteTx"] | null;
|
|
435
|
-
/**
|
|
436
|
-
* @description Refund transactions if order failed
|
|
437
|
-
* @example null
|
|
438
|
-
*/
|
|
430
|
+
/** @description Refund transactions if order failed */
|
|
439
431
|
refundTxs: components["schemas"]["RefundTx"][] | null;
|
|
440
432
|
};
|
|
441
433
|
/** @example 200 */
|
|
@@ -643,8 +635,6 @@ export interface paths {
|
|
|
643
635
|
metadata?: {
|
|
644
636
|
/** @example https://assets.relay.link/icons/1/light.png */
|
|
645
637
|
logoURI?: string;
|
|
646
|
-
/** @example true */
|
|
647
|
-
verified?: boolean;
|
|
648
638
|
};
|
|
649
639
|
};
|
|
650
640
|
/**
|
|
@@ -684,8 +674,6 @@ export interface paths {
|
|
|
684
674
|
metadata?: {
|
|
685
675
|
/** @example https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694 */
|
|
686
676
|
logoURI?: string;
|
|
687
|
-
/** @example true */
|
|
688
|
-
verified?: boolean;
|
|
689
677
|
};
|
|
690
678
|
};
|
|
691
679
|
/**
|
|
@@ -1026,7 +1014,7 @@ export interface components {
|
|
|
1026
1014
|
expectedDstAmount: string;
|
|
1027
1015
|
/**
|
|
1028
1016
|
* @description Actual received amount (null for new orders)
|
|
1029
|
-
* @example
|
|
1017
|
+
* @example 990000
|
|
1030
1018
|
*/
|
|
1031
1019
|
actualDstAmount: string | null;
|
|
1032
1020
|
};
|
|
@@ -1062,7 +1050,7 @@ export interface components {
|
|
|
1062
1050
|
contractAddress: string;
|
|
1063
1051
|
/**
|
|
1064
1052
|
* @description Token ID (for ERC1155, null for ERC721)
|
|
1065
|
-
* @example
|
|
1053
|
+
* @example 1
|
|
1066
1054
|
*/
|
|
1067
1055
|
tokenId: number | null;
|
|
1068
1056
|
/**
|
|
@@ -1179,10 +1167,7 @@ export interface components {
|
|
|
1179
1167
|
* @enum {string}
|
|
1180
1168
|
*/
|
|
1181
1169
|
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
1182
|
-
/**
|
|
1183
|
-
* @description Error details if order failed
|
|
1184
|
-
* @example null
|
|
1185
|
-
*/
|
|
1170
|
+
/** @description Error details if order failed */
|
|
1186
1171
|
errorDetails: string | null;
|
|
1187
1172
|
/**
|
|
1188
1173
|
* @description Creation timestamp
|
|
@@ -1199,17 +1184,11 @@ export interface components {
|
|
|
1199
1184
|
* @example 0xb34facb90a200251318e8841c05102366f2158cf
|
|
1200
1185
|
*/
|
|
1201
1186
|
creatorAddress: string | null;
|
|
1202
|
-
/**
|
|
1203
|
-
* @description Optional partner identifier
|
|
1204
|
-
* @example null
|
|
1205
|
-
*/
|
|
1187
|
+
/** @description Optional partner identifier */
|
|
1206
1188
|
partnerId: string | null;
|
|
1207
1189
|
/** @description Onramp configuration if used */
|
|
1208
1190
|
onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
|
|
1209
|
-
/**
|
|
1210
|
-
* @description Quick purchase URL if available
|
|
1211
|
-
* @example null
|
|
1212
|
-
*/
|
|
1191
|
+
/** @description Quick purchase URL if available */
|
|
1213
1192
|
oneClickBuyUrl: string | null;
|
|
1214
1193
|
/**
|
|
1215
1194
|
* @description Stripe payment intent ID if using Stripe
|
|
@@ -1628,34 +1607,6 @@ export interface components {
|
|
|
1628
1607
|
*/
|
|
1629
1608
|
createdAt: number;
|
|
1630
1609
|
};
|
|
1631
|
-
StripeWeb2Support: {
|
|
1632
|
-
/**
|
|
1633
|
-
* @example false
|
|
1634
|
-
* @constant
|
|
1635
|
-
*/
|
|
1636
|
-
isSupport: false;
|
|
1637
|
-
} | {
|
|
1638
|
-
/**
|
|
1639
|
-
* @example true
|
|
1640
|
-
* @constant
|
|
1641
|
-
*/
|
|
1642
|
-
isSupport: true;
|
|
1643
|
-
/**
|
|
1644
|
-
* @description Total payment amount formatted in USD
|
|
1645
|
-
* @example 10.00
|
|
1646
|
-
*/
|
|
1647
|
-
formattedTotalUsd: string;
|
|
1648
|
-
/**
|
|
1649
|
-
* @description Onramp amount formatted in USD
|
|
1650
|
-
* @example 9.50
|
|
1651
|
-
*/
|
|
1652
|
-
formattedOnrampUsd: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* @description Stripe fee formatted in USD
|
|
1655
|
-
* @example 0.50
|
|
1656
|
-
*/
|
|
1657
|
-
formattedFeeUsd: string;
|
|
1658
|
-
};
|
|
1659
1610
|
/** @description NFT contract details */
|
|
1660
1611
|
NftContract: {
|
|
1661
1612
|
/**
|
|
@@ -1696,7 +1647,7 @@ export interface components {
|
|
|
1696
1647
|
description: string;
|
|
1697
1648
|
/**
|
|
1698
1649
|
* @description Token ID (null for ERC721, specific ID for ERC1155)
|
|
1699
|
-
* @example
|
|
1650
|
+
* @example 1
|
|
1700
1651
|
*/
|
|
1701
1652
|
tokenId: number | null;
|
|
1702
1653
|
/**
|
|
@@ -1706,6 +1657,34 @@ export interface components {
|
|
|
1706
1657
|
*/
|
|
1707
1658
|
type: "erc721" | "erc1155";
|
|
1708
1659
|
};
|
|
1660
|
+
StripeWeb2Support: {
|
|
1661
|
+
/**
|
|
1662
|
+
* @example false
|
|
1663
|
+
* @constant
|
|
1664
|
+
*/
|
|
1665
|
+
isSupport: false;
|
|
1666
|
+
} | {
|
|
1667
|
+
/**
|
|
1668
|
+
* @example true
|
|
1669
|
+
* @constant
|
|
1670
|
+
*/
|
|
1671
|
+
isSupport: true;
|
|
1672
|
+
/**
|
|
1673
|
+
* @description Total payment amount formatted in USD
|
|
1674
|
+
* @example 10.00
|
|
1675
|
+
*/
|
|
1676
|
+
formattedTotalUsd: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* @description Onramp amount formatted in USD
|
|
1679
|
+
* @example 9.50
|
|
1680
|
+
*/
|
|
1681
|
+
formattedOnrampUsd: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* @description Stripe fee formatted in USD
|
|
1684
|
+
* @example 0.50
|
|
1685
|
+
*/
|
|
1686
|
+
formattedFeeUsd: string;
|
|
1687
|
+
};
|
|
1709
1688
|
};
|
|
1710
1689
|
responses: never;
|
|
1711
1690
|
parameters: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3dotfun/sdk",
|
|
3
|
-
"version": "0.0.20-alpha.
|
|
3
|
+
"version": "0.0.20-alpha.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"react-native": "./dist/cjs/index.native.js",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
],
|
|
192
192
|
"dependencies": {
|
|
193
193
|
"@amplitude/analytics-browser": "2.14.0",
|
|
194
|
-
"@b3dotfun/b3-api": "0.0.
|
|
194
|
+
"@b3dotfun/b3-api": "0.0.31",
|
|
195
195
|
"@b3dotfun/basement-api": "0.0.11",
|
|
196
196
|
"@b3dotfun/bondkit": "^0.1.17",
|
|
197
197
|
"@chakra-ui/react": "2.10.7",
|
|
@@ -52,10 +52,6 @@ export interface paths {
|
|
|
52
52
|
metadata: {
|
|
53
53
|
/** @description Token logo URI */
|
|
54
54
|
logoURI: string;
|
|
55
|
-
/** @description Whether token is verified */
|
|
56
|
-
verified: boolean;
|
|
57
|
-
/** @description Whether token is native to chain */
|
|
58
|
-
isNative: boolean;
|
|
59
55
|
};
|
|
60
56
|
}[];
|
|
61
57
|
/** @example 200 */
|
|
@@ -431,12 +427,8 @@ export interface paths {
|
|
|
431
427
|
* "createdAt": 1752505817654
|
|
432
428
|
* } */
|
|
433
429
|
relayTx: components["schemas"]["RelayTx"] | null;
|
|
434
|
-
/** @example null */
|
|
435
430
|
executeTx: components["schemas"]["ExecuteTx"] | null;
|
|
436
|
-
/**
|
|
437
|
-
* @description Refund transactions if order failed
|
|
438
|
-
* @example null
|
|
439
|
-
*/
|
|
431
|
+
/** @description Refund transactions if order failed */
|
|
440
432
|
refundTxs: components["schemas"]["RefundTx"][] | null;
|
|
441
433
|
};
|
|
442
434
|
/** @example 200 */
|
|
@@ -649,8 +641,6 @@ export interface paths {
|
|
|
649
641
|
metadata?: {
|
|
650
642
|
/** @example https://assets.relay.link/icons/1/light.png */
|
|
651
643
|
logoURI?: string;
|
|
652
|
-
/** @example true */
|
|
653
|
-
verified?: boolean;
|
|
654
644
|
};
|
|
655
645
|
};
|
|
656
646
|
/**
|
|
@@ -690,8 +680,6 @@ export interface paths {
|
|
|
690
680
|
metadata?: {
|
|
691
681
|
/** @example https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694 */
|
|
692
682
|
logoURI?: string;
|
|
693
|
-
/** @example true */
|
|
694
|
-
verified?: boolean;
|
|
695
683
|
};
|
|
696
684
|
};
|
|
697
685
|
/**
|
|
@@ -1032,7 +1020,7 @@ export interface components {
|
|
|
1032
1020
|
expectedDstAmount: string;
|
|
1033
1021
|
/**
|
|
1034
1022
|
* @description Actual received amount (null for new orders)
|
|
1035
|
-
* @example
|
|
1023
|
+
* @example 990000
|
|
1036
1024
|
*/
|
|
1037
1025
|
actualDstAmount: string | null;
|
|
1038
1026
|
};
|
|
@@ -1068,7 +1056,7 @@ export interface components {
|
|
|
1068
1056
|
contractAddress: string;
|
|
1069
1057
|
/**
|
|
1070
1058
|
* @description Token ID (for ERC1155, null for ERC721)
|
|
1071
|
-
* @example
|
|
1059
|
+
* @example 1
|
|
1072
1060
|
*/
|
|
1073
1061
|
tokenId: number | null;
|
|
1074
1062
|
/**
|
|
@@ -1194,10 +1182,7 @@ export interface components {
|
|
|
1194
1182
|
| "refunding"
|
|
1195
1183
|
| "refunded"
|
|
1196
1184
|
| "failure";
|
|
1197
|
-
/**
|
|
1198
|
-
* @description Error details if order failed
|
|
1199
|
-
* @example null
|
|
1200
|
-
*/
|
|
1185
|
+
/** @description Error details if order failed */
|
|
1201
1186
|
errorDetails: string | null;
|
|
1202
1187
|
/**
|
|
1203
1188
|
* @description Creation timestamp
|
|
@@ -1214,17 +1199,11 @@ export interface components {
|
|
|
1214
1199
|
* @example 0xb34facb90a200251318e8841c05102366f2158cf
|
|
1215
1200
|
*/
|
|
1216
1201
|
creatorAddress: string | null;
|
|
1217
|
-
/**
|
|
1218
|
-
* @description Optional partner identifier
|
|
1219
|
-
* @example null
|
|
1220
|
-
*/
|
|
1202
|
+
/** @description Optional partner identifier */
|
|
1221
1203
|
partnerId: string | null;
|
|
1222
1204
|
/** @description Onramp configuration if used */
|
|
1223
1205
|
onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
|
|
1224
|
-
/**
|
|
1225
|
-
* @description Quick purchase URL if available
|
|
1226
|
-
* @example null
|
|
1227
|
-
*/
|
|
1206
|
+
/** @description Quick purchase URL if available */
|
|
1228
1207
|
oneClickBuyUrl: string | null;
|
|
1229
1208
|
/**
|
|
1230
1209
|
* @description Stripe payment intent ID if using Stripe
|
|
@@ -1653,36 +1632,6 @@ export interface components {
|
|
|
1653
1632
|
*/
|
|
1654
1633
|
createdAt: number;
|
|
1655
1634
|
};
|
|
1656
|
-
StripeWeb2Support:
|
|
1657
|
-
| {
|
|
1658
|
-
/**
|
|
1659
|
-
* @example false
|
|
1660
|
-
* @constant
|
|
1661
|
-
*/
|
|
1662
|
-
isSupport: false;
|
|
1663
|
-
}
|
|
1664
|
-
| {
|
|
1665
|
-
/**
|
|
1666
|
-
* @example true
|
|
1667
|
-
* @constant
|
|
1668
|
-
*/
|
|
1669
|
-
isSupport: true;
|
|
1670
|
-
/**
|
|
1671
|
-
* @description Total payment amount formatted in USD
|
|
1672
|
-
* @example 10.00
|
|
1673
|
-
*/
|
|
1674
|
-
formattedTotalUsd: string;
|
|
1675
|
-
/**
|
|
1676
|
-
* @description Onramp amount formatted in USD
|
|
1677
|
-
* @example 9.50
|
|
1678
|
-
*/
|
|
1679
|
-
formattedOnrampUsd: string;
|
|
1680
|
-
/**
|
|
1681
|
-
* @description Stripe fee formatted in USD
|
|
1682
|
-
* @example 0.50
|
|
1683
|
-
*/
|
|
1684
|
-
formattedFeeUsd: string;
|
|
1685
|
-
};
|
|
1686
1635
|
/** @description NFT contract details */
|
|
1687
1636
|
NftContract: {
|
|
1688
1637
|
/**
|
|
@@ -1723,7 +1672,7 @@ export interface components {
|
|
|
1723
1672
|
description: string;
|
|
1724
1673
|
/**
|
|
1725
1674
|
* @description Token ID (null for ERC721, specific ID for ERC1155)
|
|
1726
|
-
* @example
|
|
1675
|
+
* @example 1
|
|
1727
1676
|
*/
|
|
1728
1677
|
tokenId: number | null;
|
|
1729
1678
|
/**
|
|
@@ -1733,6 +1682,36 @@ export interface components {
|
|
|
1733
1682
|
*/
|
|
1734
1683
|
type: "erc721" | "erc1155";
|
|
1735
1684
|
};
|
|
1685
|
+
StripeWeb2Support:
|
|
1686
|
+
| {
|
|
1687
|
+
/**
|
|
1688
|
+
* @example false
|
|
1689
|
+
* @constant
|
|
1690
|
+
*/
|
|
1691
|
+
isSupport: false;
|
|
1692
|
+
}
|
|
1693
|
+
| {
|
|
1694
|
+
/**
|
|
1695
|
+
* @example true
|
|
1696
|
+
* @constant
|
|
1697
|
+
*/
|
|
1698
|
+
isSupport: true;
|
|
1699
|
+
/**
|
|
1700
|
+
* @description Total payment amount formatted in USD
|
|
1701
|
+
* @example 10.00
|
|
1702
|
+
*/
|
|
1703
|
+
formattedTotalUsd: string;
|
|
1704
|
+
/**
|
|
1705
|
+
* @description Onramp amount formatted in USD
|
|
1706
|
+
* @example 9.50
|
|
1707
|
+
*/
|
|
1708
|
+
formattedOnrampUsd: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* @description Stripe fee formatted in USD
|
|
1711
|
+
* @example 0.50
|
|
1712
|
+
*/
|
|
1713
|
+
formattedFeeUsd: string;
|
|
1714
|
+
};
|
|
1736
1715
|
};
|
|
1737
1716
|
responses: never;
|
|
1738
1717
|
parameters: never;
|