@spicenet-io/spiceflow-ui 3.3.5 → 3.3.7
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/Button-CkSwrat1.js +2 -0
- package/dist/Button-jx5yrM-s.js +2 -0
- package/dist/auth-dynamic.cjs.js +1 -1
- package/dist/auth-dynamic.js +1 -1
- package/dist/auth-privy.cjs.js +1 -1
- package/dist/auth-privy.js +1 -1
- package/dist/components/AccountDisplay/AccountCustomSection.d.ts +2 -2
- package/dist/components/AccountDisplay/AccountDisplay.d.ts +1 -1
- package/dist/components/AccountDisplay/AccountHeader.d.ts +1 -1
- package/dist/components/AccountDisplay/AccountIdleBalances.d.ts +2 -2
- package/dist/components/AccountDisplay/AccountPanel.d.ts +2 -2
- package/dist/components/AccountDisplay/AccountPendingDeposits.d.ts +1 -1
- package/dist/components/AccountDisplay/index.d.ts +2 -2
- package/dist/{types/account.d.ts → components/AccountDisplay/types.d.ts} +2 -3
- package/dist/components/SpiceBalance/SpiceBalance.d.ts +1 -1
- package/dist/components/SpiceBalance/index.d.ts +1 -1
- package/dist/{types/balance.d.ts → components/SpiceBalance/types.d.ts} +1 -1
- package/dist/components/SpiceDeposit/executors.d.ts +64 -0
- package/dist/components/SpiceDeposit/feePreview.d.ts +15 -0
- package/dist/components/SpiceDeposit/views/AssetChooserList.d.ts +21 -0
- package/dist/components/SpiceDeposit/views/DepositSubtitle.d.ts +9 -0
- package/dist/components/SpiceLock/LockConfirmationPanel.d.ts +4 -0
- package/dist/components/SpiceLock/LockDurationSlider.d.ts +4 -0
- package/dist/components/SpiceLock/LockExpiryRow.d.ts +4 -0
- package/dist/components/{SpiceLockModal/SpiceLockModal.d.ts → SpiceLock/SpiceLock.d.ts} +1 -1
- package/dist/components/SpiceLock/VotingPowerRow.d.ts +4 -0
- package/dist/components/SpiceLock/executors.d.ts +54 -0
- package/dist/components/SpiceLock/helpers.d.ts +31 -0
- package/dist/components/SpiceLock/index.d.ts +2 -0
- package/dist/components/SpicePay/SpicePay.d.ts +12 -2
- package/dist/components/SpiceSupply/DestinationEstimate.d.ts +1 -1
- package/dist/components/SpiceSupply/buildBatches.d.ts +35 -0
- package/dist/components/SpiceSupply/executors.d.ts +73 -0
- package/dist/components/SpiceSupply/feePreview.d.ts +45 -0
- package/dist/components/SpiceWithdraw/executors.d.ts +50 -0
- package/dist/components/SpiceWithdraw/helpers.d.ts +6 -0
- package/dist/components/SpiceWithdraw/views/BalancePopover.d.ts +15 -0
- package/dist/components/SpiceWithdraw/views/WithdrawDetailsPanel.d.ts +39 -0
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/{useLockDuration/index.d.ts → useLockDuration.d.ts} +1 -1
- package/dist/hooks/{useSpiceAssets/index.d.ts → useSpiceAssets.d.ts} +1 -1
- package/dist/hooks/useSpiceBrand.d.ts +9 -1
- package/dist/hooks/{useGaslessExecution/index.d.ts → useSpiceExecution.d.ts} +2 -2
- package/dist/hooks/{useStatus/index.d.ts → useStatus.d.ts} +1 -1
- package/dist/hooks/{useAssets/index.d.ts → useWalletBalances.d.ts} +1 -1
- package/dist/index.cjs.js +12 -12
- package/dist/index.d.ts +13 -11
- package/dist/index.js +12 -12
- package/dist/{providerWallet-CIbQEcIP.js → providerWallet-6FpyLYqw.js} +1 -1
- package/dist/{providerWallet-CVHyIqiI.js → providerWallet-Ds1PM0vC.js} +1 -1
- package/dist/providers/SpiceFlowProvider.d.ts +2 -0
- package/dist/providers/dynamic.d.ts +3 -0
- package/dist/providers/privy.d.ts +3 -0
- package/dist/types/deposit.d.ts +0 -3
- package/dist/types/index.d.ts +0 -4
- package/dist/types/lock.d.ts +0 -2
- package/dist/types/theme.d.ts +20 -90
- package/dist/types/ui.d.ts +1 -1
- package/dist/types/wallet.d.ts +5 -24
- package/dist/types/withdraw.d.ts +0 -1
- package/dist/utils/addresses.d.ts +1 -0
- package/dist/utils/chains/index.d.ts +7 -0
- package/dist/utils/crossChainRouter/executeSwapThenAction.d.ts +1 -1
- package/dist/utils/errors.d.ts +11 -1
- package/dist/utils/fees.d.ts +18 -1
- package/dist/utils/relayer/index.d.ts +2 -6
- package/package.json +5 -5
- package/dist/Button-BXgazUZN.js +0 -2
- package/dist/Button-d9wfO_xs.js +0 -2
- package/dist/auth-dynamic.d.ts +0 -3
- package/dist/auth-privy.d.ts +0 -3
- package/dist/components/SpiceLockModal/LockSubComponents.d.ts +0 -7
- package/dist/components/SpiceLockModal/index.d.ts +0 -1
- package/dist/errors.d.ts +0 -8
- package/dist/types/pay.d.ts +0 -30
- package/dist/types/rollup.d.ts +0 -50
- package/dist/types/unified.d.ts +0 -85
- package/dist/utils/abis/spicenet.d.ts +0 -115
- package/dist/utils/abis/spicenetWalletManager.d.ts +0 -566
- /package/dist/hooks/{useAssetInput/index.d.ts → useAssetInput.d.ts} +0 -0
- /package/dist/utils/{loadFonts.d.ts → fonts.d.ts} +0 -0
- /package/dist/utils/{resolveTheme.d.ts → theme.d.ts} +0 -0
package/dist/types/pay.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { Address } from "viem";
|
|
3
|
-
import type { Call } from "./authorization";
|
|
4
|
-
import type { CustomStyles } from "./theme";
|
|
5
|
-
import type { BuildActionCallsContext, SpiceSupplyProps } from "./supply";
|
|
6
|
-
export interface SpicePayProps {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
paymentTokenAddress: Address;
|
|
10
|
-
paymentTokenSymbol: string;
|
|
11
|
-
paymentTokenDecimals: number;
|
|
12
|
-
paymentTokenLogoURI?: string;
|
|
13
|
-
paymentChainId: number;
|
|
14
|
-
paymentAmount?: string;
|
|
15
|
-
amountInputMode?: "fixed" | "adjustable";
|
|
16
|
-
minPaymentAmount?: string;
|
|
17
|
-
maxPaymentAmount?: string;
|
|
18
|
-
onAmountChange?: (amount: string) => void;
|
|
19
|
-
buildActionCalls: (amount: bigint, ctx: BuildActionCallsContext) => Call[];
|
|
20
|
-
buildSpicenetBatch?: SpiceSupplyProps["buildSpicenetBatch"];
|
|
21
|
-
sourceChains?: number[];
|
|
22
|
-
onPaymentSuccess?: (txHash?: string) => void;
|
|
23
|
-
onPaymentError?: (error: Error) => void;
|
|
24
|
-
styles?: CustomStyles;
|
|
25
|
-
dark?: boolean;
|
|
26
|
-
title?: string;
|
|
27
|
-
subtitle?: React.ReactNode;
|
|
28
|
-
ctaLabel?: string;
|
|
29
|
-
onAddFunds?: () => void;
|
|
30
|
-
}
|
package/dist/types/rollup.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { Address, Hex } from "viem";
|
|
2
|
-
export interface CreateWalletRequest {
|
|
3
|
-
timestamp: number;
|
|
4
|
-
signature: Hex;
|
|
5
|
-
}
|
|
6
|
-
export interface WalletInfo {
|
|
7
|
-
address: string;
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface WithdrawalIntent {
|
|
11
|
-
chainId: string;
|
|
12
|
-
signatureType: "ecdsa";
|
|
13
|
-
signature: Hex;
|
|
14
|
-
nbf: number;
|
|
15
|
-
exp: number;
|
|
16
|
-
chainBatches: Array<{
|
|
17
|
-
hash: Hex;
|
|
18
|
-
chainId: number;
|
|
19
|
-
calls: Array<{
|
|
20
|
-
to: Address;
|
|
21
|
-
value: bigint;
|
|
22
|
-
data: Hex;
|
|
23
|
-
}>;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
export interface CreateWithdrawalRequest {
|
|
27
|
-
user?: Address;
|
|
28
|
-
intent: WithdrawalIntent;
|
|
29
|
-
}
|
|
30
|
-
export interface CreateWithdrawalResponse {
|
|
31
|
-
txHash?: string;
|
|
32
|
-
requestId?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface WithdrawalStatus {
|
|
35
|
-
state: "created" | "successful" | "failed" | "cancelled" | string;
|
|
36
|
-
idempotenceKey: string;
|
|
37
|
-
chain: string;
|
|
38
|
-
forUser: string;
|
|
39
|
-
reason?: string;
|
|
40
|
-
error?: string;
|
|
41
|
-
transfers: Array<{
|
|
42
|
-
tokenIn: string;
|
|
43
|
-
tokenOut: string;
|
|
44
|
-
recipient: string;
|
|
45
|
-
amount: number;
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
48
|
-
export interface RollupTimestamp {
|
|
49
|
-
unix_timestamp: number;
|
|
50
|
-
}
|
package/dist/types/unified.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Address, Hex } from "viem";
|
|
2
|
-
import { Call, TokenTransferConfig } from "./authorization";
|
|
3
|
-
export type { Call, TokenTransferConfig };
|
|
4
|
-
export interface Intent7702 {
|
|
5
|
-
mode: "7702";
|
|
6
|
-
signatureType: string;
|
|
7
|
-
signature: Hex;
|
|
8
|
-
nbf: number;
|
|
9
|
-
exp: number;
|
|
10
|
-
chainBatches: {
|
|
11
|
-
hash: Hex;
|
|
12
|
-
chainId: number;
|
|
13
|
-
tokenTransfers: TokenTransferConfig[];
|
|
14
|
-
calls: Call[];
|
|
15
|
-
}[];
|
|
16
|
-
}
|
|
17
|
-
export interface ChainBatchNon7702OnDemand {
|
|
18
|
-
chainId: number;
|
|
19
|
-
tokenTransfers: TokenTransferConfig[];
|
|
20
|
-
call: Call;
|
|
21
|
-
}
|
|
22
|
-
export interface IntentNon7702OnDemand {
|
|
23
|
-
mode: "non-7702:on-demand";
|
|
24
|
-
chainBatches: ChainBatchNon7702OnDemand[];
|
|
25
|
-
}
|
|
26
|
-
export interface CreateActionRequest {
|
|
27
|
-
user: Address;
|
|
28
|
-
chainAuthorizations?: {
|
|
29
|
-
r: Hex;
|
|
30
|
-
s: Hex;
|
|
31
|
-
yParity?: number;
|
|
32
|
-
address: Address;
|
|
33
|
-
chainId: number;
|
|
34
|
-
nonce: number;
|
|
35
|
-
}[];
|
|
36
|
-
intents: (Intent7702 | IntentNon7702OnDemand)[];
|
|
37
|
-
}
|
|
38
|
-
export interface FeeEstimateBatch {
|
|
39
|
-
chainId: number;
|
|
40
|
-
quotedAmount: string;
|
|
41
|
-
totalDebit: string;
|
|
42
|
-
gasQuoteSource: "estimated" | "configured_fallback" | "static_zero";
|
|
43
|
-
feeBreakdown: {
|
|
44
|
-
spicenetFee: string;
|
|
45
|
-
gasFee: string;
|
|
46
|
-
bridgeFee?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface FeeEstimateIntent {
|
|
50
|
-
intentIndex: number;
|
|
51
|
-
batches: FeeEstimateBatch[];
|
|
52
|
-
}
|
|
53
|
-
export interface FeeEstimateSummary {
|
|
54
|
-
intents: FeeEstimateIntent[];
|
|
55
|
-
}
|
|
56
|
-
export interface CreateActionResponse {
|
|
57
|
-
actionId: string;
|
|
58
|
-
intentIds: string[];
|
|
59
|
-
feeEstimate?: FeeEstimateSummary;
|
|
60
|
-
}
|
|
61
|
-
export interface EstimateActionFeesResponse {
|
|
62
|
-
success: boolean;
|
|
63
|
-
data?: {
|
|
64
|
-
feeEstimate: FeeEstimateSummary;
|
|
65
|
-
};
|
|
66
|
-
error?: {
|
|
67
|
-
message: string;
|
|
68
|
-
code?: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export interface ExecuteStepExecuteRequest {
|
|
72
|
-
action: "execute";
|
|
73
|
-
}
|
|
74
|
-
export interface ExecuteStepExecuteWithSignatureRequest extends ExecuteStepExecuteRequest {
|
|
75
|
-
signature: Hex;
|
|
76
|
-
}
|
|
77
|
-
export interface ExecuteStepExecuteWithHashRequest {
|
|
78
|
-
action: "execute";
|
|
79
|
-
hash: Hex;
|
|
80
|
-
}
|
|
81
|
-
export interface ExecuteStepRegisterHashRequest {
|
|
82
|
-
action: "register";
|
|
83
|
-
hash: Hex;
|
|
84
|
-
}
|
|
85
|
-
export type ExecuteStepRequest = ExecuteStepExecuteRequest | ExecuteStepExecuteWithSignatureRequest | ExecuteStepExecuteWithHashRequest | ExecuteStepRegisterHashRequest;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
export declare const spicenetAbi: readonly [{
|
|
2
|
-
readonly type: "function";
|
|
3
|
-
readonly name: "closeRebalancingRequest";
|
|
4
|
-
readonly inputs: readonly [{
|
|
5
|
-
readonly name: "args";
|
|
6
|
-
readonly type: "tuple";
|
|
7
|
-
readonly internalType: "struct Spicenet.CloseRebalancingRequestArgs";
|
|
8
|
-
readonly components: readonly [{
|
|
9
|
-
readonly name: "idempotenceKey";
|
|
10
|
-
readonly type: "bytes32";
|
|
11
|
-
readonly internalType: "bytes32";
|
|
12
|
-
}, {
|
|
13
|
-
readonly name: "repaymentChainTokenAmount";
|
|
14
|
-
readonly type: "uint256";
|
|
15
|
-
readonly internalType: "uint256";
|
|
16
|
-
}];
|
|
17
|
-
}];
|
|
18
|
-
readonly outputs: readonly [];
|
|
19
|
-
readonly stateMutability: "nonpayable";
|
|
20
|
-
}, {
|
|
21
|
-
readonly type: "function";
|
|
22
|
-
readonly name: "createWithdrawalRequest";
|
|
23
|
-
readonly inputs: readonly [{
|
|
24
|
-
readonly name: "request";
|
|
25
|
-
readonly type: "tuple";
|
|
26
|
-
readonly internalType: "struct Spicenet.CreateWithdrawalRequestArgs";
|
|
27
|
-
readonly components: readonly [{
|
|
28
|
-
readonly name: "chainId";
|
|
29
|
-
readonly type: "string";
|
|
30
|
-
readonly internalType: "string";
|
|
31
|
-
}, {
|
|
32
|
-
readonly name: "idempotenceKey";
|
|
33
|
-
readonly type: "bytes32";
|
|
34
|
-
readonly internalType: "bytes32";
|
|
35
|
-
}, {
|
|
36
|
-
readonly name: "nbf";
|
|
37
|
-
readonly type: "uint256";
|
|
38
|
-
readonly internalType: "uint256";
|
|
39
|
-
}, {
|
|
40
|
-
readonly name: "exp";
|
|
41
|
-
readonly type: "uint256";
|
|
42
|
-
readonly internalType: "uint256";
|
|
43
|
-
}, {
|
|
44
|
-
readonly name: "metadata";
|
|
45
|
-
readonly type: "string";
|
|
46
|
-
readonly internalType: "string";
|
|
47
|
-
}, {
|
|
48
|
-
readonly name: "transfers";
|
|
49
|
-
readonly type: "tuple[]";
|
|
50
|
-
readonly internalType: "struct Spicenet.CreateTokenTransfer[]";
|
|
51
|
-
readonly components: readonly [{
|
|
52
|
-
readonly name: "token";
|
|
53
|
-
readonly type: "string";
|
|
54
|
-
readonly internalType: "string";
|
|
55
|
-
}, {
|
|
56
|
-
readonly name: "to";
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
readonly internalType: "string";
|
|
59
|
-
}, {
|
|
60
|
-
readonly name: "amount";
|
|
61
|
-
readonly type: "uint256";
|
|
62
|
-
readonly internalType: "uint256";
|
|
63
|
-
}];
|
|
64
|
-
}];
|
|
65
|
-
}];
|
|
66
|
-
readonly outputs: readonly [];
|
|
67
|
-
readonly stateMutability: "nonpayable";
|
|
68
|
-
}, {
|
|
69
|
-
readonly type: "function";
|
|
70
|
-
readonly name: "createRebalancingRequest";
|
|
71
|
-
readonly inputs: readonly [{
|
|
72
|
-
readonly name: "request";
|
|
73
|
-
readonly type: "tuple";
|
|
74
|
-
readonly internalType: "struct Spicenet.CreateRebalancingRequestArgs";
|
|
75
|
-
readonly components: readonly [{
|
|
76
|
-
readonly name: "idempotenceKey";
|
|
77
|
-
readonly type: "bytes32";
|
|
78
|
-
readonly internalType: "bytes32";
|
|
79
|
-
}, {
|
|
80
|
-
readonly name: "nbf";
|
|
81
|
-
readonly type: "uint256";
|
|
82
|
-
readonly internalType: "uint256";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "exp";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
readonly internalType: "uint256";
|
|
87
|
-
}, {
|
|
88
|
-
readonly name: "metadata";
|
|
89
|
-
readonly type: "string";
|
|
90
|
-
readonly internalType: "string";
|
|
91
|
-
}, {
|
|
92
|
-
readonly name: "recipient";
|
|
93
|
-
readonly type: "string";
|
|
94
|
-
readonly internalType: "string";
|
|
95
|
-
}, {
|
|
96
|
-
readonly name: "fromChainToken";
|
|
97
|
-
readonly type: "string";
|
|
98
|
-
readonly internalType: "string";
|
|
99
|
-
}, {
|
|
100
|
-
readonly name: "fromChainTokenAmount";
|
|
101
|
-
readonly type: "uint256";
|
|
102
|
-
readonly internalType: "uint256";
|
|
103
|
-
}, {
|
|
104
|
-
readonly name: "toChainToken";
|
|
105
|
-
readonly type: "string";
|
|
106
|
-
readonly internalType: "string";
|
|
107
|
-
}, {
|
|
108
|
-
readonly name: "toChainTokenAmountMin";
|
|
109
|
-
readonly type: "uint256";
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
|
-
}];
|
|
112
|
-
}];
|
|
113
|
-
readonly outputs: readonly [];
|
|
114
|
-
readonly stateMutability: "nonpayable";
|
|
115
|
-
}];
|