@b3dotfun/sdk 0.0.20-alpha.4 → 0.0.20-alpha.6
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.native.d.ts +0 -2
- package/dist/cjs/anyspend/index.native.js +0 -4
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +3 -3
- package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +3 -3
- package/dist/cjs/anyspend/react/index.d.ts +1 -1
- package/dist/cjs/anyspend/react/index.js +1 -1
- package/dist/cjs/anyspend/react/providers/index.d.ts +2 -0
- package/dist/cjs/anyspend/react/providers/index.js +18 -0
- package/dist/cjs/shared/constants/index.js +5 -3
- package/dist/esm/anyspend/index.native.d.ts +0 -2
- package/dist/esm/anyspend/index.native.js +0 -4
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +3 -3
- package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +3 -3
- package/dist/esm/anyspend/react/index.d.ts +1 -1
- package/dist/esm/anyspend/react/index.js +1 -1
- package/dist/esm/anyspend/react/providers/index.d.ts +2 -0
- package/dist/esm/anyspend/react/providers/index.js +2 -0
- package/dist/esm/shared/constants/index.js +5 -3
- package/dist/types/anyspend/index.native.d.ts +0 -2
- package/dist/types/anyspend/react/components/AnySpend.d.ts +3 -3
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +3 -3
- package/dist/types/anyspend/react/index.d.ts +1 -1
- package/dist/types/anyspend/react/providers/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/anyspend/index.native.ts +0 -6
- package/src/anyspend/react/components/AnySpend.tsx +3 -3
- package/src/anyspend/react/index.ts +1 -1
- package/src/anyspend/react/providers/index.ts +2 -0
- package/src/shared/constants/index.ts +5 -3
|
@@ -14,10 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Export all hooks
|
|
18
|
-
__exportStar(require("./react/hooks"), exports);
|
|
19
|
-
// Providers
|
|
20
|
-
__exportStar(require("./react/providers/AnyspendProvider"), exports);
|
|
21
17
|
// Types
|
|
22
18
|
__exportStar(require("./types/api"), exports);
|
|
23
19
|
// Utils
|
|
@@ -15,12 +15,12 @@ export declare enum PanelView {
|
|
|
15
15
|
FIAT_PAYMENT_METHOD = 7
|
|
16
16
|
}
|
|
17
17
|
export declare function AnySpend(props: {
|
|
18
|
-
destinationTokenAddress?: string;
|
|
19
|
-
destinationTokenChainId?: number;
|
|
20
18
|
isMainnet?: boolean;
|
|
21
19
|
mode?: "page" | "modal";
|
|
22
20
|
defaultActiveTab?: "crypto" | "fiat";
|
|
21
|
+
destinationTokenAddress?: string;
|
|
22
|
+
destinationTokenChainId?: number;
|
|
23
|
+
recipientAddress?: string;
|
|
23
24
|
loadOrder?: string;
|
|
24
25
|
hideTransactionHistoryButton?: boolean;
|
|
25
|
-
recipientAddress?: string;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
16
16
|
creator?: string | undefined;
|
|
17
17
|
signatureRequestBody?: {
|
|
18
18
|
currency?: string | undefined;
|
|
19
|
-
price?: string | undefined;
|
|
20
|
-
clonePrice?: string | undefined;
|
|
21
|
-
primarySaleRecipient?: string | undefined;
|
|
22
19
|
royaltyRecipient?: string | undefined;
|
|
23
20
|
royaltyBps?: number | undefined;
|
|
21
|
+
primarySaleRecipient?: string | undefined;
|
|
24
22
|
validityStartTimestamp?: number | undefined;
|
|
25
23
|
validityEndTimestamp?: number | undefined;
|
|
24
|
+
price?: string | undefined;
|
|
25
|
+
clonePrice?: string | undefined;
|
|
26
26
|
metadata: {
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
description?: string | undefined;
|
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./components"), exports);
|
|
18
18
|
__exportStar(require("./hooks"), exports);
|
|
19
|
-
__exportStar(require("./providers
|
|
19
|
+
__exportStar(require("./providers"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AnyspendProvider"), exports);
|
|
18
|
+
__exportStar(require("./StripeRedirectHandler"), exports);
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ENS_GATEWAY_URL = exports.B3_AUTH_COOKIE_NAME = exports.CLIENT_APP_BUNDLE_ID = exports.THIRDWEB_CLIENT_ID = exports.THIRDWEB_SECRET_KEY = exports.tokenIcons = exports.ecosystemWalletId = exports.b3CoinIcon = exports.siteURL = void 0;
|
|
4
4
|
exports.siteURL = "https://basement.fun";
|
|
5
5
|
exports.b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
|
|
6
|
-
exports.ecosystemWalletId = (process.env.
|
|
7
|
-
process.env.
|
|
6
|
+
exports.ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
7
|
+
process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
8
8
|
"ecosystem.b3-open-gaming"); // Fallback to prod key lookup
|
|
9
9
|
exports.tokenIcons = {
|
|
10
10
|
ETH: "https://cdn.b3.fun/ethereum.svg",
|
|
@@ -16,7 +16,9 @@ exports.tokenIcons = {
|
|
|
16
16
|
// Add more asset icons as needed
|
|
17
17
|
};
|
|
18
18
|
exports.THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
|
|
19
|
-
exports.THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
19
|
+
exports.THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
20
|
+
process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
21
|
+
"f393c7eb287696dc4db76d980cc68328";
|
|
20
22
|
exports.CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
|
|
21
23
|
exports.B3_AUTH_COOKIE_NAME = "b3-auth";
|
|
22
24
|
exports.ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
|
|
@@ -15,12 +15,12 @@ export declare enum PanelView {
|
|
|
15
15
|
FIAT_PAYMENT_METHOD = 7
|
|
16
16
|
}
|
|
17
17
|
export declare function AnySpend(props: {
|
|
18
|
-
destinationTokenAddress?: string;
|
|
19
|
-
destinationTokenChainId?: number;
|
|
20
18
|
isMainnet?: boolean;
|
|
21
19
|
mode?: "page" | "modal";
|
|
22
20
|
defaultActiveTab?: "crypto" | "fiat";
|
|
21
|
+
destinationTokenAddress?: string;
|
|
22
|
+
destinationTokenChainId?: number;
|
|
23
|
+
recipientAddress?: string;
|
|
23
24
|
loadOrder?: string;
|
|
24
25
|
hideTransactionHistoryButton?: boolean;
|
|
25
|
-
recipientAddress?: string;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
16
16
|
creator?: string | undefined;
|
|
17
17
|
signatureRequestBody?: {
|
|
18
18
|
currency?: string | undefined;
|
|
19
|
-
price?: string | undefined;
|
|
20
|
-
clonePrice?: string | undefined;
|
|
21
|
-
primarySaleRecipient?: string | undefined;
|
|
22
19
|
royaltyRecipient?: string | undefined;
|
|
23
20
|
royaltyBps?: number | undefined;
|
|
21
|
+
primarySaleRecipient?: string | undefined;
|
|
24
22
|
validityStartTimestamp?: number | undefined;
|
|
25
23
|
validityEndTimestamp?: number | undefined;
|
|
24
|
+
price?: string | undefined;
|
|
25
|
+
clonePrice?: string | undefined;
|
|
26
26
|
metadata: {
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
description?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const siteURL = "https://basement.fun";
|
|
2
2
|
export const b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
|
|
3
|
-
export const ecosystemWalletId = (process.env.
|
|
4
|
-
process.env.
|
|
3
|
+
export const ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
4
|
+
process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
5
5
|
"ecosystem.b3-open-gaming"); // Fallback to prod key lookup
|
|
6
6
|
export const tokenIcons = {
|
|
7
7
|
ETH: "https://cdn.b3.fun/ethereum.svg",
|
|
@@ -13,7 +13,9 @@ export const tokenIcons = {
|
|
|
13
13
|
// Add more asset icons as needed
|
|
14
14
|
};
|
|
15
15
|
export const THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
|
|
16
|
-
export const THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
16
|
+
export const THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
17
|
+
process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
18
|
+
"f393c7eb287696dc4db76d980cc68328";
|
|
17
19
|
export const CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
|
|
18
20
|
export const B3_AUTH_COOKIE_NAME = "b3-auth";
|
|
19
21
|
export const ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
|
|
@@ -15,12 +15,12 @@ export declare enum PanelView {
|
|
|
15
15
|
FIAT_PAYMENT_METHOD = 7
|
|
16
16
|
}
|
|
17
17
|
export declare function AnySpend(props: {
|
|
18
|
-
destinationTokenAddress?: string;
|
|
19
|
-
destinationTokenChainId?: number;
|
|
20
18
|
isMainnet?: boolean;
|
|
21
19
|
mode?: "page" | "modal";
|
|
22
20
|
defaultActiveTab?: "crypto" | "fiat";
|
|
21
|
+
destinationTokenAddress?: string;
|
|
22
|
+
destinationTokenChainId?: number;
|
|
23
|
+
recipientAddress?: string;
|
|
23
24
|
loadOrder?: string;
|
|
24
25
|
hideTransactionHistoryButton?: boolean;
|
|
25
|
-
recipientAddress?: string;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,13 +16,13 @@ export declare const useGenerateSigMintData: ({ recipientAddress, contractAddres
|
|
|
16
16
|
creator?: string | undefined;
|
|
17
17
|
signatureRequestBody?: {
|
|
18
18
|
currency?: string | undefined;
|
|
19
|
-
price?: string | undefined;
|
|
20
|
-
clonePrice?: string | undefined;
|
|
21
|
-
primarySaleRecipient?: string | undefined;
|
|
22
19
|
royaltyRecipient?: string | undefined;
|
|
23
20
|
royaltyBps?: number | undefined;
|
|
21
|
+
primarySaleRecipient?: string | undefined;
|
|
24
22
|
validityStartTimestamp?: number | undefined;
|
|
25
23
|
validityEndTimestamp?: number | undefined;
|
|
24
|
+
price?: string | undefined;
|
|
25
|
+
clonePrice?: string | undefined;
|
|
26
26
|
metadata: {
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
description?: string | undefined;
|
package/package.json
CHANGED
|
@@ -72,14 +72,14 @@ export enum PanelView {
|
|
|
72
72
|
const ANYSPEND_RECIPIENTS_KEY = "anyspend_recipients";
|
|
73
73
|
|
|
74
74
|
export function AnySpend(props: {
|
|
75
|
-
destinationTokenAddress?: string;
|
|
76
|
-
destinationTokenChainId?: number;
|
|
77
75
|
isMainnet?: boolean;
|
|
78
76
|
mode?: "page" | "modal";
|
|
79
77
|
defaultActiveTab?: "crypto" | "fiat";
|
|
78
|
+
destinationTokenAddress?: string;
|
|
79
|
+
destinationTokenChainId?: number;
|
|
80
|
+
recipientAddress?: string;
|
|
80
81
|
loadOrder?: string;
|
|
81
82
|
hideTransactionHistoryButton?: boolean;
|
|
82
|
-
recipientAddress?: string;
|
|
83
83
|
}) {
|
|
84
84
|
const fingerprintConfig = getFingerprintConfig();
|
|
85
85
|
|
|
@@ -2,8 +2,8 @@ export const siteURL = "https://basement.fun";
|
|
|
2
2
|
|
|
3
3
|
export const b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
|
|
4
4
|
|
|
5
|
-
export const ecosystemWalletId = (process.env.
|
|
6
|
-
process.env.
|
|
5
|
+
export const ecosystemWalletId = (process.env.NEXT_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
6
|
+
process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
7
7
|
"ecosystem.b3-open-gaming") as `ecosystem.${string}`; // Fallback to prod key lookup
|
|
8
8
|
|
|
9
9
|
export const tokenIcons = {
|
|
@@ -19,7 +19,9 @@ export const tokenIcons = {
|
|
|
19
19
|
export const THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
|
|
20
20
|
|
|
21
21
|
export const THIRDWEB_CLIENT_ID =
|
|
22
|
-
process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
22
|
+
process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
23
|
+
process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID ||
|
|
24
|
+
"f393c7eb287696dc4db76d980cc68328";
|
|
23
25
|
|
|
24
26
|
export const CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
|
|
25
27
|
|