@b3dotfun/sdk 0.0.29-alpha.0 → 0.0.29-alpha.2
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/constants/index.d.ts +1 -0
- package/dist/cjs/anyspend/constants/index.js +2 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +23 -24
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +9 -8
- package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +6 -4
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/cjs/bondkit/abis/BondkitTokenABI.d.ts +2 -5
- package/dist/cjs/bondkit/abis/BondkitTokenABI.js +2 -3
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +4 -2
- package/dist/esm/anyspend/constants/index.d.ts +1 -0
- package/dist/esm/anyspend/constants/index.js +1 -0
- package/dist/esm/anyspend/react/components/AnySpend.js +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +23 -24
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +1 -1
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +11 -10
- package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +7 -5
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/esm/bondkit/abis/BondkitTokenABI.d.ts +2 -5
- package/dist/esm/bondkit/abis/BondkitTokenABI.js +2 -3
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +4 -2
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/constants/index.d.ts +1 -0
- package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/types/bondkit/abis/BondkitTokenABI.d.ts +2 -5
- package/dist/types/global-account/react/stores/useModalStore.d.ts +4 -2
- package/package.json +1 -1
- package/src/anyspend/constants/index.ts +2 -0
- package/src/anyspend/react/components/AnySpend.tsx +1 -1
- package/src/anyspend/react/components/AnySpendBondKit.tsx +28 -28
- package/src/anyspend/react/components/AnySpendCustom.tsx +1 -1
- package/src/anyspend/react/components/AnyspendDepositHype.tsx +131 -129
- package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +10 -4
- package/src/anyspend/react/components/common/OrderStatus.tsx +9 -2
- package/src/bondkit/abis/BondkitTokenABI.ts +2 -3
- package/src/global-account/react/stores/useModalStore.ts +4 -2
- package/dist/cjs/anyspend/abis/bondKit.d.ts +0 -35
- package/dist/cjs/anyspend/abis/bondKit.js +0 -29
- package/dist/esm/anyspend/abis/bondKit.d.ts +0 -35
- package/dist/esm/anyspend/abis/bondKit.js +0 -26
- package/dist/types/anyspend/abis/bondKit.d.ts +0 -35
- package/src/anyspend/abis/bondKit.ts +0 -26
|
@@ -323,7 +323,7 @@ export const BondkitTokenABI = [
|
|
|
323
323
|
],
|
|
324
324
|
name: "buy",
|
|
325
325
|
outputs: [],
|
|
326
|
-
stateMutability: "
|
|
326
|
+
stateMutability: "nonpayable",
|
|
327
327
|
type: "function",
|
|
328
328
|
},
|
|
329
329
|
{
|
|
@@ -334,7 +334,7 @@ export const BondkitTokenABI = [
|
|
|
334
334
|
],
|
|
335
335
|
name: "buyFor",
|
|
336
336
|
outputs: [],
|
|
337
|
-
stateMutability: "
|
|
337
|
+
stateMutability: "nonpayable",
|
|
338
338
|
type: "function",
|
|
339
339
|
},
|
|
340
340
|
{
|
|
@@ -701,5 +701,4 @@ export const BondkitTokenABI = [
|
|
|
701
701
|
stateMutability: "view",
|
|
702
702
|
type: "function",
|
|
703
703
|
},
|
|
704
|
-
{ stateMutability: "payable", type: "receive" },
|
|
705
704
|
] as const;
|
|
@@ -289,8 +289,8 @@ export interface AnySpendBondKitProps extends BaseModalProps {
|
|
|
289
289
|
imageUrl?: string;
|
|
290
290
|
/** Token name to display */
|
|
291
291
|
tokenName?: string;
|
|
292
|
-
/** Optional pre-filled
|
|
293
|
-
|
|
292
|
+
/** Optional pre-filled B3 amount */
|
|
293
|
+
b3Amount?: string;
|
|
294
294
|
/** Callback function called when purchase is successful */
|
|
295
295
|
onSuccess?: (txHash?: string) => void;
|
|
296
296
|
}
|
|
@@ -318,6 +318,8 @@ export interface AnySpendDepositHypeProps extends BaseModalProps {
|
|
|
318
318
|
paymentType?: "crypto" | "fiat";
|
|
319
319
|
/** Deposit contract address */
|
|
320
320
|
depositContractAddress: string;
|
|
321
|
+
/** Main footer */
|
|
322
|
+
mainFooter?: React.ReactNode;
|
|
321
323
|
/** Callback function called when the deposit is successful */
|
|
322
324
|
onSuccess?: () => void;
|
|
323
325
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const ABI_bondKit: readonly [{
|
|
2
|
-
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "address";
|
|
4
|
-
readonly name: "_recipient";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
}, {
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
|
-
readonly name: "_minTokensOut";
|
|
9
|
-
readonly type: "uint256";
|
|
10
|
-
}];
|
|
11
|
-
readonly name: "buyFor";
|
|
12
|
-
readonly outputs: readonly [];
|
|
13
|
-
readonly stateMutability: "payable";
|
|
14
|
-
readonly type: "function";
|
|
15
|
-
}, {
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "name";
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly internalType: "string";
|
|
20
|
-
readonly name: "";
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
readonly type: "function";
|
|
25
|
-
}, {
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "symbol";
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly internalType: "string";
|
|
30
|
-
readonly name: "";
|
|
31
|
-
readonly type: "string";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
readonly type: "function";
|
|
35
|
-
}];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ABI_bondKit = void 0;
|
|
4
|
-
exports.ABI_bondKit = [
|
|
5
|
-
{
|
|
6
|
-
inputs: [
|
|
7
|
-
{ internalType: "address", name: "_recipient", type: "address" },
|
|
8
|
-
{ internalType: "uint256", name: "_minTokensOut", type: "uint256" },
|
|
9
|
-
],
|
|
10
|
-
name: "buyFor",
|
|
11
|
-
outputs: [],
|
|
12
|
-
stateMutability: "payable",
|
|
13
|
-
type: "function",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
inputs: [],
|
|
17
|
-
name: "name",
|
|
18
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
19
|
-
stateMutability: "view",
|
|
20
|
-
type: "function",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
inputs: [],
|
|
24
|
-
name: "symbol",
|
|
25
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
26
|
-
stateMutability: "view",
|
|
27
|
-
type: "function",
|
|
28
|
-
},
|
|
29
|
-
];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const ABI_bondKit: readonly [{
|
|
2
|
-
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "address";
|
|
4
|
-
readonly name: "_recipient";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
}, {
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
|
-
readonly name: "_minTokensOut";
|
|
9
|
-
readonly type: "uint256";
|
|
10
|
-
}];
|
|
11
|
-
readonly name: "buyFor";
|
|
12
|
-
readonly outputs: readonly [];
|
|
13
|
-
readonly stateMutability: "payable";
|
|
14
|
-
readonly type: "function";
|
|
15
|
-
}, {
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "name";
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly internalType: "string";
|
|
20
|
-
readonly name: "";
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
readonly type: "function";
|
|
25
|
-
}, {
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "symbol";
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly internalType: "string";
|
|
30
|
-
readonly name: "";
|
|
31
|
-
readonly type: "string";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
readonly type: "function";
|
|
35
|
-
}];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const ABI_bondKit = [
|
|
2
|
-
{
|
|
3
|
-
inputs: [
|
|
4
|
-
{ internalType: "address", name: "_recipient", type: "address" },
|
|
5
|
-
{ internalType: "uint256", name: "_minTokensOut", type: "uint256" },
|
|
6
|
-
],
|
|
7
|
-
name: "buyFor",
|
|
8
|
-
outputs: [],
|
|
9
|
-
stateMutability: "payable",
|
|
10
|
-
type: "function",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
name: "name",
|
|
15
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
16
|
-
stateMutability: "view",
|
|
17
|
-
type: "function",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
inputs: [],
|
|
21
|
-
name: "symbol",
|
|
22
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
23
|
-
stateMutability: "view",
|
|
24
|
-
type: "function",
|
|
25
|
-
},
|
|
26
|
-
];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const ABI_bondKit: readonly [{
|
|
2
|
-
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "address";
|
|
4
|
-
readonly name: "_recipient";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
}, {
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
|
-
readonly name: "_minTokensOut";
|
|
9
|
-
readonly type: "uint256";
|
|
10
|
-
}];
|
|
11
|
-
readonly name: "buyFor";
|
|
12
|
-
readonly outputs: readonly [];
|
|
13
|
-
readonly stateMutability: "payable";
|
|
14
|
-
readonly type: "function";
|
|
15
|
-
}, {
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly name: "name";
|
|
18
|
-
readonly outputs: readonly [{
|
|
19
|
-
readonly internalType: "string";
|
|
20
|
-
readonly name: "";
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
}];
|
|
23
|
-
readonly stateMutability: "view";
|
|
24
|
-
readonly type: "function";
|
|
25
|
-
}, {
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "symbol";
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly internalType: "string";
|
|
30
|
-
readonly name: "";
|
|
31
|
-
readonly type: "string";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
readonly type: "function";
|
|
35
|
-
}];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const ABI_bondKit = [
|
|
2
|
-
{
|
|
3
|
-
inputs: [
|
|
4
|
-
{ internalType: "address", name: "_recipient", type: "address" },
|
|
5
|
-
{ internalType: "uint256", name: "_minTokensOut", type: "uint256" },
|
|
6
|
-
],
|
|
7
|
-
name: "buyFor",
|
|
8
|
-
outputs: [],
|
|
9
|
-
stateMutability: "payable",
|
|
10
|
-
type: "function",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
name: "name",
|
|
15
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
16
|
-
stateMutability: "view",
|
|
17
|
-
type: "function",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
inputs: [],
|
|
21
|
-
name: "symbol",
|
|
22
|
-
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
23
|
-
stateMutability: "view",
|
|
24
|
-
type: "function",
|
|
25
|
-
},
|
|
26
|
-
] as const;
|