@b3dotfun/sdk 0.0.70-alpha.1 → 0.0.70
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/index.d.ts +0 -1
- package/dist/cjs/anyspend/index.js +0 -1
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +0 -6
- package/dist/cjs/anyspend/react/components/AnySpend.js +1 -13
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +2 -6
- package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +1 -3
- package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpside.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +2 -2
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
- package/dist/cjs/anyspend/services/anyspend.d.ts +1 -2
- package/dist/cjs/anyspend/services/anyspend.js +1 -2
- package/dist/cjs/anyspend/types/api.d.ts +0 -295
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +0 -4
- package/dist/esm/anyspend/index.d.ts +0 -1
- package/dist/esm/anyspend/index.js +0 -1
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +0 -6
- package/dist/esm/anyspend/react/components/AnySpend.js +1 -13
- package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +2 -6
- package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
- package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +1 -3
- package/dist/esm/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendDepositUpside.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpside.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +1 -1
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +2 -2
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
- package/dist/esm/anyspend/services/anyspend.d.ts +1 -2
- package/dist/esm/anyspend/services/anyspend.js +1 -2
- package/dist/esm/anyspend/types/api.d.ts +0 -295
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +0 -4
- package/dist/types/anyspend/index.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpend.d.ts +0 -6
- package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +1 -3
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpendDepositUpside.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendStakeUpside.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -16
- package/dist/types/anyspend/services/anyspend.d.ts +1 -2
- package/dist/types/anyspend/types/api.d.ts +0 -295
- package/dist/types/global-account/react/stores/useModalStore.d.ts +0 -4
- package/package.json +1 -1
- package/src/anyspend/index.ts +0 -1
- package/src/anyspend/react/components/AnySpend.tsx +0 -23
- package/src/anyspend/react/components/AnySpendBondKit.tsx +1 -3
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +0 -3
- package/src/anyspend/react/components/AnySpendCustom.tsx +1 -8
- package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +0 -4
- package/src/anyspend/react/components/AnySpendDepositUpside.tsx +0 -3
- package/src/anyspend/react/components/AnySpendNFT.tsx +0 -3
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +0 -3
- package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +0 -3
- package/src/anyspend/react/components/AnySpendStakeUpside.tsx +0 -3
- package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +0 -3
- package/src/anyspend/react/components/AnySpendTournament.tsx +0 -3
- package/src/anyspend/react/components/AnyspendDepositHype.tsx +0 -3
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +0 -3
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -2
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +1 -13
- package/src/anyspend/services/anyspend.ts +0 -3
- package/src/anyspend/types/api.ts +0 -295
- package/src/global-account/react/stores/useModalStore.ts +0 -4
- package/dist/cjs/anyspend/utils/validation.d.ts +0 -67
- package/dist/cjs/anyspend/utils/validation.js +0 -157
- package/dist/esm/anyspend/utils/validation.d.ts +0 -67
- package/dist/esm/anyspend/utils/validation.js +0 -153
- package/dist/types/anyspend/utils/validation.d.ts +0 -67
- package/src/anyspend/utils/validation.ts +0 -209
|
@@ -122,8 +122,6 @@ export interface AnySpendModalProps extends BaseModalProps {
|
|
|
122
122
|
destinationTokenChainId?: number;
|
|
123
123
|
/** Custom USD input values for quick amount buttons in fiat onramp */
|
|
124
124
|
customUsdInputValues?: string[];
|
|
125
|
-
/** Client-provided reference ID for tracking orders */
|
|
126
|
-
clientReferenceId?: string;
|
|
127
125
|
}
|
|
128
126
|
/**
|
|
129
127
|
* Props for the AnySpend NFT modal
|
|
@@ -138,8 +136,6 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
138
136
|
recipientAddress?: string;
|
|
139
137
|
/** Callback function called when the NFT is successfully transferred */
|
|
140
138
|
onSuccess?: (txHash?: string) => void;
|
|
141
|
-
/** Client-provided reference ID for tracking orders */
|
|
142
|
-
clientReferenceId?: string;
|
|
143
139
|
}
|
|
144
140
|
/**
|
|
145
141
|
* Props for the AnySpend tournament modal
|
|
@@ -6,7 +6,6 @@ export * from "./utils/json";
|
|
|
6
6
|
export * from "./utils/number";
|
|
7
7
|
export * from "./utils/string";
|
|
8
8
|
export * from "./utils/token";
|
|
9
|
-
export * from "./utils/validation";
|
|
10
9
|
export * from "./constants";
|
|
11
10
|
export * from "./abis/abiUsdcBase";
|
|
12
11
|
export * from "./abis/erc20Staking";
|
|
@@ -34,10 +34,4 @@ export declare function AnySpend(props: {
|
|
|
34
34
|
}) => void;
|
|
35
35
|
onSuccess?: (txHash?: string) => void;
|
|
36
36
|
customUsdInputValues?: string[];
|
|
37
|
-
/**
|
|
38
|
-
* Client-provided reference ID for tracking orders.
|
|
39
|
-
* Must be alphanumeric with optional hyphens, underscores, and dots (max 255 chars).
|
|
40
|
-
* Auto-generates UUID if not provided.
|
|
41
|
-
*/
|
|
42
|
-
clientReferenceId?: string;
|
|
43
37
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { AnySpendBondKitProps } from "@b3dotfun/sdk/global-account/react/stores/useModalStore";
|
|
2
|
-
export declare function AnySpendBondKit({ mode, recipientAddress, contractAddress, minTokensOut, imageUrl, b3Amount: initialB3Amount, onSuccess,
|
|
3
|
-
clientReferenceId?: string;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function AnySpendBondKit({ mode, recipientAddress, contractAddress, minTokensOut, imageUrl, b3Amount: initialB3Amount, onSuccess, }: AnySpendBondKitProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess,
|
|
1
|
+
export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess, }: {
|
|
2
2
|
loadOrder?: string;
|
|
3
3
|
mode?: "modal" | "page";
|
|
4
4
|
spinwheelContractAddress: string;
|
|
@@ -6,5 +6,4 @@ export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddr
|
|
|
6
6
|
recipientAddress: string;
|
|
7
7
|
prefillQuantity?: string;
|
|
8
8
|
onSuccess?: (txHash?: string) => void;
|
|
9
|
-
clientReferenceId?: string;
|
|
10
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,7 +31,6 @@ export interface AnySpendCustomExactInProps {
|
|
|
31
31
|
anyspendPrice: GetQuoteResponse | undefined;
|
|
32
32
|
isLoadingAnyspendPrice: boolean;
|
|
33
33
|
}) => React.JSX.Element;
|
|
34
|
-
clientReferenceId?: string;
|
|
35
34
|
}
|
|
36
35
|
export declare function AnySpendCustomExactIn(props: AnySpendCustomExactInProps): import("react/jsx-runtime").JSX.Element;
|
|
37
36
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
|
-
export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, depositContractAddress, token, onSuccess,
|
|
2
|
+
export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, depositContractAddress, token, onSuccess, }: {
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
5
5
|
recipientAddress: string;
|
|
@@ -8,5 +8,4 @@ export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddres
|
|
|
8
8
|
depositContractAddress: string;
|
|
9
9
|
token: components["schemas"]["Token"];
|
|
10
10
|
onSuccess?: (amount: string) => void;
|
|
11
|
-
clientReferenceId?: string;
|
|
12
11
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
|
-
export declare function AnySpendNFT({ loadOrder, mode, recipientAddress, nftContract, onSuccess, onShowPointsDetail,
|
|
2
|
+
export declare function AnySpendNFT({ loadOrder, mode, recipientAddress, nftContract, onSuccess, onShowPointsDetail, }: {
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
5
5
|
recipientAddress?: string;
|
|
6
6
|
nftContract: components["schemas"]["NftContract"];
|
|
7
7
|
onSuccess?: (txHash?: string) => void;
|
|
8
8
|
onShowPointsDetail?: () => void;
|
|
9
|
-
clientReferenceId?: string;
|
|
10
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export declare function AnySpendStakeB3({ loadOrder, mode, recipientAddress, stakeAmount, onSuccess,
|
|
1
|
+
export declare function AnySpendStakeB3({ loadOrder, mode, recipientAddress, stakeAmount, onSuccess, }: {
|
|
2
2
|
loadOrder?: string;
|
|
3
3
|
mode?: "modal" | "page";
|
|
4
4
|
recipientAddress: string;
|
|
5
5
|
stakeAmount?: string;
|
|
6
6
|
onSuccess?: () => void;
|
|
7
|
-
clientReferenceId?: string;
|
|
8
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAddress, sourceTokenChainId, recipientAddress, stakeAmount, onSuccess,
|
|
1
|
+
export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAddress, sourceTokenChainId, recipientAddress, stakeAmount, onSuccess, }: {
|
|
2
2
|
loadOrder?: string;
|
|
3
3
|
mode?: "modal" | "page";
|
|
4
4
|
sourceTokenAddress?: string;
|
|
@@ -6,5 +6,4 @@ export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAdd
|
|
|
6
6
|
recipientAddress: string;
|
|
7
7
|
stakeAmount?: string;
|
|
8
8
|
onSuccess?: (amount: string) => void;
|
|
9
|
-
clientReferenceId?: string;
|
|
10
9
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
|
-
export declare function AnySpendStakeUpside({ loadOrder, mode, beneficiaryAddress, stakeAmount, stakingContractAddress, token, onSuccess, activeTab,
|
|
2
|
+
export declare function AnySpendStakeUpside({ loadOrder, mode, beneficiaryAddress, stakeAmount, stakingContractAddress, token, onSuccess, activeTab, }: {
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
5
5
|
beneficiaryAddress: string;
|
|
@@ -8,5 +8,4 @@ export declare function AnySpendStakeUpside({ loadOrder, mode, beneficiaryAddres
|
|
|
8
8
|
token: components["schemas"]["Token"];
|
|
9
9
|
onSuccess?: () => void;
|
|
10
10
|
activeTab?: "crypto" | "fiat";
|
|
11
|
-
clientReferenceId?: string;
|
|
12
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
|
-
export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, stakingContractAddress, token, onSuccess,
|
|
2
|
+
export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, stakingContractAddress, token, onSuccess, }: {
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
5
5
|
recipientAddress: string;
|
|
@@ -8,5 +8,4 @@ export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientA
|
|
|
8
8
|
stakingContractAddress: string;
|
|
9
9
|
token: components["schemas"]["Token"];
|
|
10
10
|
onSuccess?: (amount: string) => void;
|
|
11
|
-
clientReferenceId?: string;
|
|
12
11
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -10,7 +10,6 @@ type AnySpendTournamentProps = {
|
|
|
10
10
|
tournamentEntryToken: components["schemas"]["Token"];
|
|
11
11
|
tournamentEntryFee: string;
|
|
12
12
|
onSuccess?: () => void;
|
|
13
|
-
clientReferenceId?: string;
|
|
14
13
|
} | {
|
|
15
14
|
mode?: "modal" | "page";
|
|
16
15
|
action: "fund";
|
|
@@ -21,7 +20,6 @@ type AnySpendTournamentProps = {
|
|
|
21
20
|
tournamentFundToken: components["schemas"]["Token"];
|
|
22
21
|
tournamentFundAmount: string;
|
|
23
22
|
onSuccess?: () => void;
|
|
24
|
-
clientReferenceId?: string;
|
|
25
23
|
};
|
|
26
24
|
export declare function AnySpendTournament(props: AnySpendTournamentProps): import("react/jsx-runtime").JSX.Element;
|
|
27
25
|
export {};
|
|
@@ -21,6 +21,5 @@ export interface AnySpendDepositHypeProps {
|
|
|
21
21
|
}) => void;
|
|
22
22
|
customUsdInputValues?: string[];
|
|
23
23
|
preferEoa?: boolean;
|
|
24
|
-
clientReferenceId?: string;
|
|
25
24
|
}
|
|
26
|
-
export declare function AnySpendDepositHype({ loadOrder, mode, recipientAddress, paymentType, sourceTokenAddress, sourceTokenChainId, onSuccess, mainFooter, onTokenSelect, customUsdInputValues, preferEoa,
|
|
25
|
+
export declare function AnySpendDepositHype({ loadOrder, mode, recipientAddress, paymentType, sourceTokenAddress, sourceTokenChainId, onSuccess, mainFooter, onTokenSelect, customUsdInputValues, preferEoa, }: AnySpendDepositHypeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { GenerateSigMintResponse } from "../../types/signatureMint";
|
|
2
|
-
export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData, imageUrl, onSuccess,
|
|
2
|
+
export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData, imageUrl, onSuccess, }: {
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
5
5
|
signatureData: GenerateSigMintResponse;
|
|
6
6
|
imageUrl?: string;
|
|
7
7
|
onSuccess?: (txHash?: string) => void;
|
|
8
|
-
clientReferenceId?: string;
|
|
9
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
16
16
|
receivedDepositAt: number | null;
|
|
17
17
|
creatorAddress: string | null;
|
|
18
18
|
partnerId: string | null;
|
|
19
|
-
clientReferenceId?: string | null;
|
|
20
19
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
21
20
|
oneClickBuyUrl: string | null;
|
|
22
21
|
stripePaymentIntentId: string | null;
|
|
@@ -46,7 +45,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
46
45
|
receivedDepositAt: number | null;
|
|
47
46
|
creatorAddress: string | null;
|
|
48
47
|
partnerId: string | null;
|
|
49
|
-
clientReferenceId?: string | null;
|
|
50
48
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
51
49
|
oneClickBuyUrl: string | null;
|
|
52
50
|
stripePaymentIntentId: string | null;
|
|
@@ -76,7 +74,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
76
74
|
receivedDepositAt: number | null;
|
|
77
75
|
creatorAddress: string | null;
|
|
78
76
|
partnerId: string | null;
|
|
79
|
-
clientReferenceId?: string | null;
|
|
80
77
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
81
78
|
oneClickBuyUrl: string | null;
|
|
82
79
|
stripePaymentIntentId: string | null;
|
|
@@ -106,7 +103,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
106
103
|
receivedDepositAt: number | null;
|
|
107
104
|
creatorAddress: string | null;
|
|
108
105
|
partnerId: string | null;
|
|
109
|
-
clientReferenceId?: string | null;
|
|
110
106
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
111
107
|
oneClickBuyUrl: string | null;
|
|
112
108
|
stripePaymentIntentId: string | null;
|
|
@@ -136,7 +132,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
136
132
|
receivedDepositAt: number | null;
|
|
137
133
|
creatorAddress: string | null;
|
|
138
134
|
partnerId: string | null;
|
|
139
|
-
clientReferenceId?: string | null;
|
|
140
135
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
141
136
|
oneClickBuyUrl: string | null;
|
|
142
137
|
stripePaymentIntentId: string | null;
|
|
@@ -166,7 +161,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
166
161
|
receivedDepositAt: number | null;
|
|
167
162
|
creatorAddress: string | null;
|
|
168
163
|
partnerId: string | null;
|
|
169
|
-
clientReferenceId?: string | null;
|
|
170
164
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
171
165
|
oneClickBuyUrl: string | null;
|
|
172
166
|
stripePaymentIntentId: string | null;
|
|
@@ -196,7 +190,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
196
190
|
receivedDepositAt: number | null;
|
|
197
191
|
creatorAddress: string | null;
|
|
198
192
|
partnerId: string | null;
|
|
199
|
-
clientReferenceId?: string | null;
|
|
200
193
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
201
194
|
oneClickBuyUrl: string | null;
|
|
202
195
|
stripePaymentIntentId: string | null;
|
|
@@ -226,7 +219,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
226
219
|
receivedDepositAt: number | null;
|
|
227
220
|
creatorAddress: string | null;
|
|
228
221
|
partnerId: string | null;
|
|
229
|
-
clientReferenceId?: string | null;
|
|
230
222
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
231
223
|
oneClickBuyUrl: string | null;
|
|
232
224
|
stripePaymentIntentId: string | null;
|
|
@@ -259,7 +251,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
259
251
|
receivedDepositAt: number | null;
|
|
260
252
|
creatorAddress: string | null;
|
|
261
253
|
partnerId: string | null;
|
|
262
|
-
clientReferenceId?: string | null;
|
|
263
254
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
264
255
|
oneClickBuyUrl: string | null;
|
|
265
256
|
stripePaymentIntentId: string | null;
|
|
@@ -289,7 +280,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
289
280
|
receivedDepositAt: number | null;
|
|
290
281
|
creatorAddress: string | null;
|
|
291
282
|
partnerId: string | null;
|
|
292
|
-
clientReferenceId?: string | null;
|
|
293
283
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
294
284
|
oneClickBuyUrl: string | null;
|
|
295
285
|
stripePaymentIntentId: string | null;
|
|
@@ -319,7 +309,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
319
309
|
receivedDepositAt: number | null;
|
|
320
310
|
creatorAddress: string | null;
|
|
321
311
|
partnerId: string | null;
|
|
322
|
-
clientReferenceId?: string | null;
|
|
323
312
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
324
313
|
oneClickBuyUrl: string | null;
|
|
325
314
|
stripePaymentIntentId: string | null;
|
|
@@ -349,7 +338,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
349
338
|
receivedDepositAt: number | null;
|
|
350
339
|
creatorAddress: string | null;
|
|
351
340
|
partnerId: string | null;
|
|
352
|
-
clientReferenceId?: string | null;
|
|
353
341
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
354
342
|
oneClickBuyUrl: string | null;
|
|
355
343
|
stripePaymentIntentId: string | null;
|
|
@@ -379,7 +367,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
379
367
|
receivedDepositAt: number | null;
|
|
380
368
|
creatorAddress: string | null;
|
|
381
369
|
partnerId: string | null;
|
|
382
|
-
clientReferenceId?: string | null;
|
|
383
370
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
384
371
|
oneClickBuyUrl: string | null;
|
|
385
372
|
stripePaymentIntentId: string | null;
|
|
@@ -409,7 +396,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
409
396
|
receivedDepositAt: number | null;
|
|
410
397
|
creatorAddress: string | null;
|
|
411
398
|
partnerId: string | null;
|
|
412
|
-
clientReferenceId?: string | null;
|
|
413
399
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
414
400
|
oneClickBuyUrl: string | null;
|
|
415
401
|
stripePaymentIntentId: string | null;
|
|
@@ -439,7 +425,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
439
425
|
receivedDepositAt: number | null;
|
|
440
426
|
creatorAddress: string | null;
|
|
441
427
|
partnerId: string | null;
|
|
442
|
-
clientReferenceId?: string | null;
|
|
443
428
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
444
429
|
oneClickBuyUrl: string | null;
|
|
445
430
|
stripePaymentIntentId: string | null;
|
|
@@ -469,7 +454,6 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
469
454
|
receivedDepositAt: number | null;
|
|
470
455
|
creatorAddress: string | null;
|
|
471
456
|
partnerId: string | null;
|
|
472
|
-
clientReferenceId?: string | null;
|
|
473
457
|
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
474
458
|
oneClickBuyUrl: string | null;
|
|
475
459
|
stripePaymentIntentId: string | null;
|
|
@@ -6,7 +6,7 @@ export declare const anyspendService: {
|
|
|
6
6
|
getTokenList: (chainId: number, query: string) => Promise<components["schemas"]["Token"][]>;
|
|
7
7
|
getToken: (chainId: number, tokenAddress: string) => Promise<components["schemas"]["Token"]>;
|
|
8
8
|
getQuote: (req: GetQuoteRequest) => Promise<GetQuoteResponse>;
|
|
9
|
-
createOrder: ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId,
|
|
9
|
+
createOrder: ({ recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, visitorData, }: {
|
|
10
10
|
recipientAddress: string;
|
|
11
11
|
type: string;
|
|
12
12
|
srcChain: number;
|
|
@@ -19,7 +19,6 @@ export declare const anyspendService: {
|
|
|
19
19
|
metadata: Record<string, any>;
|
|
20
20
|
creatorAddress?: string;
|
|
21
21
|
partnerId?: string;
|
|
22
|
-
clientReferenceId?: string;
|
|
23
22
|
visitorData?: VisitorData;
|
|
24
23
|
}) => Promise<{
|
|
25
24
|
success: boolean;
|