bandkit 0.0.1 → 0.1.1
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/.env.example +9 -0
- package/LICENSE +3 -3
- package/README.md +41 -12
- package/bin/bandkit.js +38 -0
- package/contracts/BandExecutor.sol +178 -0
- package/contracts/BandStrategy.sol +111 -0
- package/contracts/test/MockDexTarget.sol +29 -0
- package/contracts/test/MockErc20.sol +40 -0
- package/dist/BandContractPanel.d.ts +11 -0
- package/dist/BandContractPanel.d.ts.map +1 -0
- package/dist/BandContractPanel.js +95 -0
- package/dist/BandContractPanel.js.map +1 -0
- package/dist/BandPanel.d.ts +13 -0
- package/dist/BandPanel.d.ts.map +1 -0
- package/dist/BandPanel.js +142 -0
- package/dist/BandPanel.js.map +1 -0
- package/dist/bandExecutorAbi.d.ts +431 -0
- package/dist/bandExecutorAbi.d.ts.map +1 -0
- package/dist/bandExecutorAbi.js +558 -0
- package/dist/bandExecutorAbi.js.map +1 -0
- package/dist/bandExecutorBytecode.d.ts +2 -0
- package/dist/bandExecutorBytecode.d.ts.map +1 -0
- package/dist/bandExecutorBytecode.js +3 -0
- package/dist/bandExecutorBytecode.js.map +1 -0
- package/dist/bandStrategyAbi.d.ts +250 -0
- package/dist/bandStrategyAbi.d.ts.map +1 -0
- package/dist/bandStrategyAbi.js +323 -0
- package/dist/bandStrategyAbi.js.map +1 -0
- package/dist/bandStrategyBytecode.d.ts +2 -0
- package/dist/bandStrategyBytecode.d.ts.map +1 -0
- package/dist/bandStrategyBytecode.js +3 -0
- package/dist/bandStrategyBytecode.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/rainbowkit.d.ts +7 -0
- package/dist/rainbowkit.d.ts.map +1 -0
- package/dist/rainbowkit.js +33 -0
- package/dist/rainbowkit.js.map +1 -0
- package/dist/tradingExecutor.d.ts +38 -0
- package/dist/tradingExecutor.d.ts.map +1 -0
- package/dist/tradingExecutor.js +125 -0
- package/dist/tradingExecutor.js.map +1 -0
- package/dist/useBandDashboard.d.ts +27 -0
- package/dist/useBandDashboard.d.ts.map +1 -0
- package/dist/useBandDashboard.js +35 -0
- package/dist/useBandDashboard.js.map +1 -0
- package/dist/useEthPriceTicker.d.ts +32 -0
- package/dist/useEthPriceTicker.d.ts.map +1 -0
- package/dist/useEthPriceTicker.js +95 -0
- package/dist/useEthPriceTicker.js.map +1 -0
- package/dist/useStrategyContract.d.ts +42 -0
- package/dist/useStrategyContract.d.ts.map +1 -0
- package/dist/useStrategyContract.js +258 -0
- package/dist/useStrategyContract.js.map +1 -0
- package/dist/useStrategyContractDeployment.d.ts +31 -0
- package/dist/useStrategyContractDeployment.d.ts.map +1 -0
- package/dist/useStrategyContractDeployment.js +229 -0
- package/dist/useStrategyContractDeployment.js.map +1 -0
- package/dist/useWalletEthBalance.d.ts +17 -0
- package/dist/useWalletEthBalance.d.ts.map +1 -0
- package/dist/useWalletEthBalance.js +98 -0
- package/dist/useWalletEthBalance.js.map +1 -0
- package/engine/browser-provider.js +25 -0
- package/engine/executor-searcher.js +138 -0
- package/engine/provider.js +32 -0
- package/engine/uniswap-v2-roundtrip.js +215 -0
- package/hardhat.config.cjs +27 -0
- package/package.json +75 -14
- package/scripts/deploy.cjs +31 -0
- package/index.d.ts +0 -2
- package/index.js +0 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { mainnet } from "wagmi/chains";
|
|
4
|
+
import { useBandDashboard } from "./useBandDashboard.js";
|
|
5
|
+
const usdFormatter = new Intl.NumberFormat("en-US", {
|
|
6
|
+
currency: "USD",
|
|
7
|
+
maximumFractionDigits: 2,
|
|
8
|
+
minimumFractionDigits: 2,
|
|
9
|
+
style: "currency"
|
|
10
|
+
});
|
|
11
|
+
const buttonStyle = {
|
|
12
|
+
border: "1px solid #3b82f6",
|
|
13
|
+
borderRadius: 6,
|
|
14
|
+
background: "#2563eb",
|
|
15
|
+
color: "#ffffff",
|
|
16
|
+
cursor: "pointer",
|
|
17
|
+
fontWeight: 700,
|
|
18
|
+
minHeight: 42,
|
|
19
|
+
padding: "0 14px"
|
|
20
|
+
};
|
|
21
|
+
const secondaryButtonStyle = {
|
|
22
|
+
...buttonStyle,
|
|
23
|
+
background: "#111827",
|
|
24
|
+
border: "1px solid #334155",
|
|
25
|
+
color: "#e5e7eb"
|
|
26
|
+
};
|
|
27
|
+
const quickAmounts = ["0.0001", "0.0005", "0.001", "0.002"];
|
|
28
|
+
function formatUsd(value) {
|
|
29
|
+
return value === null || !Number.isFinite(value) ? "--" : usdFormatter.format(value);
|
|
30
|
+
}
|
|
31
|
+
export function BandPanel({ strategyContractAddress, strategyWalletAddress, chainId = mainnet.id, className, title = "BandKit Engine", onSubmitted, onStrategyContractDeployed }) {
|
|
32
|
+
const [fundAmountEth, setFundAmountEth] = useState("0.0001");
|
|
33
|
+
const [localError, setLocalError] = useState();
|
|
34
|
+
const dashboard = useBandDashboard({ strategyContractAddress, chainId, deployment: { strategyWalletAddress } });
|
|
35
|
+
const { engine, deployment, price, strategyContract, wallet } = dashboard;
|
|
36
|
+
const effectiveStrategyContractAddress = strategyContractAddress ?? deployment.strategyContractAddress;
|
|
37
|
+
const isBusy = strategyContract.isWritePending || strategyContract.isConfirming || deployment.isDeployPending || deployment.isDeploying;
|
|
38
|
+
const requestedFundAmountEth = Number(fundAmountEth);
|
|
39
|
+
const walletBalanceEth = Number(wallet.balanceEth);
|
|
40
|
+
const hasValidFundAmount = Number.isFinite(requestedFundAmountEth) && requestedFundAmountEth > 0;
|
|
41
|
+
const hasEnoughWalletEth = hasValidFundAmount && Number.isFinite(walletBalanceEth) && requestedFundAmountEth < walletBalanceEth;
|
|
42
|
+
const status = useMemo(() => {
|
|
43
|
+
if (!effectiveStrategyContractAddress) {
|
|
44
|
+
if (deployment.deployStatus === "cancelled" || deployment.deployStatus === "failed" || deployment.deployStatus === "timeout") {
|
|
45
|
+
return deployment.deployStatusText;
|
|
46
|
+
}
|
|
47
|
+
return deployment.isDeploying ? deployment.deployStatusText : "Deploy strategy contract";
|
|
48
|
+
}
|
|
49
|
+
if (deployment.contractStatus === "checking" || deployment.contractStatus === "missing" || deployment.contractStatus === "unknown") {
|
|
50
|
+
return deployment.contractStatusText;
|
|
51
|
+
}
|
|
52
|
+
if (!strategyContract.isConnected)
|
|
53
|
+
return "Connect wallet";
|
|
54
|
+
if (!strategyContract.isCorrectChain)
|
|
55
|
+
return "Switch to Ethereum mainnet";
|
|
56
|
+
if (strategyContract.transactionStatus === "cancelled" || strategyContract.transactionStatus === "failed" || strategyContract.transactionStatus === "confirmed") {
|
|
57
|
+
return strategyContract.transactionStatusText;
|
|
58
|
+
}
|
|
59
|
+
if (isBusy)
|
|
60
|
+
return strategyContract.isWritePending ? "Confirm in wallet" : "Waiting for confirmation";
|
|
61
|
+
if (hasValidFundAmount && !hasEnoughWalletEth)
|
|
62
|
+
return "Amount exceeds wallet ETH balance";
|
|
63
|
+
if (engine.isActive)
|
|
64
|
+
return "Engine active";
|
|
65
|
+
if (engine.isFunded)
|
|
66
|
+
return "Funded, ready to activate";
|
|
67
|
+
return "Ready to fund";
|
|
68
|
+
}, [
|
|
69
|
+
engine.isFunded,
|
|
70
|
+
engine.isActive,
|
|
71
|
+
deployment.contractStatus,
|
|
72
|
+
deployment.contractStatusText,
|
|
73
|
+
deployment.deployStatus,
|
|
74
|
+
deployment.deployStatusText,
|
|
75
|
+
hasEnoughWalletEth,
|
|
76
|
+
hasValidFundAmount,
|
|
77
|
+
deployment.isDeploying,
|
|
78
|
+
effectiveStrategyContractAddress,
|
|
79
|
+
isBusy,
|
|
80
|
+
strategyContract.transactionStatus,
|
|
81
|
+
strategyContract.transactionStatusText,
|
|
82
|
+
strategyContract.isConnected,
|
|
83
|
+
strategyContract.isCorrectChain,
|
|
84
|
+
strategyContract.isWritePending
|
|
85
|
+
]);
|
|
86
|
+
const canDeploy = !effectiveStrategyContractAddress && deployment.isConnected && !isBusy;
|
|
87
|
+
const canUseStrategyContract = Boolean(effectiveStrategyContractAddress) && strategyContract.isConnected && strategyContract.isCorrectChain && !isBusy;
|
|
88
|
+
const canFund = canUseStrategyContract && !strategyContract.depositsPaused && hasValidFundAmount && hasEnoughWalletEth;
|
|
89
|
+
async function runAction(action, task) {
|
|
90
|
+
setLocalError(undefined);
|
|
91
|
+
try {
|
|
92
|
+
const hash = await task();
|
|
93
|
+
onSubmitted?.(hash, action);
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
setLocalError(error instanceof Error ? error.message : String(error));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async function deployStrategyContract() {
|
|
100
|
+
setLocalError(undefined);
|
|
101
|
+
try {
|
|
102
|
+
await deployment.deployStrategyContract();
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
setLocalError(error instanceof Error ? error.message : String(error));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
if (deployment.strategyContractAddress && !strategyContractAddress) {
|
|
110
|
+
onStrategyContractDeployed?.(deployment.strategyContractAddress);
|
|
111
|
+
}
|
|
112
|
+
}, [deployment.strategyContractAddress, onStrategyContractDeployed, strategyContractAddress]);
|
|
113
|
+
return (_jsxs("section", { className: className, style: {
|
|
114
|
+
background: "#020617",
|
|
115
|
+
border: "1px solid #1e293b",
|
|
116
|
+
borderRadius: 8,
|
|
117
|
+
boxShadow: "0 18px 60px rgba(2, 6, 23, 0.35)",
|
|
118
|
+
color: "#e5e7eb",
|
|
119
|
+
display: "grid",
|
|
120
|
+
gap: 16,
|
|
121
|
+
maxWidth: 520,
|
|
122
|
+
padding: 18
|
|
123
|
+
}, children: [_jsxs("header", { style: { display: "grid", gap: 6 }, children: [_jsx("h2", { style: { fontSize: 18, lineHeight: 1.2, margin: 0 }, children: title }), _jsxs("div", { style: { color: "#94a3b8", fontSize: 14 }, children: ["Status: ", status] })] }), _jsxs("div", { style: { display: "grid", gap: 8 }, children: [_jsx(Row, { label: "Strategy contract", value: effectiveStrategyContractAddress ? `${effectiveStrategyContractAddress.slice(0, 6)}...${effectiveStrategyContractAddress.slice(-4)}` : "Not deployed" }), _jsx(Row, { label: "Strategy destination", value: strategyContract.strategyWallet ? `${strategyContract.strategyWallet.slice(0, 6)}...${strategyContract.strategyWallet.slice(-4)}` : "Not loaded" }), _jsx(Row, { label: "ETH / USDT", value: price.priceText }), _jsx(Row, { label: "24h change", value: price.changePercent24hText }), _jsx(Row, { label: "Market status", value: price.status }), _jsx(Row, { label: "Wallet ETH", value: `${Number(wallet.balanceEth).toFixed(6)} ETH` }), _jsx(Row, { label: "Contract ETH", value: `${Number(strategyContract.balanceEth).toFixed(6)} ETH` }), _jsx(Row, { label: "Allocated total", value: `${Number(engine.allocatedEth).toFixed(6)} ETH` }), _jsx(Row, { label: "Allocated value", value: formatUsd(engine.allocatedUsd) })] }), !effectiveStrategyContractAddress ? (_jsx("button", { disabled: !canDeploy, onClick: () => void deployStrategyContract(), style: { ...buttonStyle, opacity: canDeploy ? 1 : 0.5 }, type: "button", children: "Deploy Strategy Contract" })) : null, deployment.deployHash && !effectiveStrategyContractAddress ? (_jsx("a", { href: `https://etherscan.io/tx/${deployment.deployHash}`, rel: "noreferrer", style: { color: "#60a5fa", fontSize: 14, overflowWrap: "anywhere" }, target: "_blank", children: "View deployment transaction" })) : null, _jsxs("div", { style: { borderTop: "1px solid #1e293b", display: "grid", gap: 10, paddingTop: 14 }, children: [_jsx("h3", { style: { fontSize: 15, lineHeight: 1.2, margin: 0 }, children: "Fund Contract" }), _jsxs("label", { style: { display: "grid", gap: 6, fontSize: 14, fontWeight: 700 }, children: ["Amount ETH", _jsx("input", { inputMode: "decimal", min: "0", onChange: (event) => setFundAmountEth(event.target.value), placeholder: "0.0001", step: "any", style: {
|
|
124
|
+
background: "#0f172a",
|
|
125
|
+
border: "1px solid #334155",
|
|
126
|
+
borderRadius: 6,
|
|
127
|
+
color: "#e5e7eb",
|
|
128
|
+
font: "inherit",
|
|
129
|
+
minHeight: 42,
|
|
130
|
+
padding: "0 12px"
|
|
131
|
+
}, type: "number", value: fundAmountEth })] }), _jsx("div", { style: { display: "grid", gap: 6, gridTemplateColumns: "repeat(4, minmax(0, 1fr))" }, children: quickAmounts.map((amount) => (_jsx("button", { onClick: () => setFundAmountEth(amount), style: {
|
|
132
|
+
...secondaryButtonStyle,
|
|
133
|
+
fontSize: 12,
|
|
134
|
+
minHeight: 34,
|
|
135
|
+
opacity: fundAmountEth === amount ? 1 : 0.75,
|
|
136
|
+
padding: "0 8px"
|
|
137
|
+
}, type: "button", children: amount }, amount))) }), _jsx("button", { disabled: !canFund, onClick: () => void runAction("deposit", () => strategyContract.depositEth(fundAmountEth)), style: { ...buttonStyle, opacity: canFund ? 1 : 0.5 }, type: "button", children: "Fund Contract" }), hasValidFundAmount && !hasEnoughWalletEth ? (_jsx("div", { style: { color: "#fca5a5", fontSize: 13 }, children: "Amount must be lower than wallet ETH balance so gas can also be paid." })) : null] }), _jsxs("div", { style: { borderTop: "1px solid #1e293b", display: "grid", gap: 10, paddingTop: 14 }, children: [_jsx("h3", { style: { fontSize: 15, lineHeight: 1.2, margin: 0 }, children: "Strategy Engine" }), _jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8 }, children: [_jsx("button", { disabled: !canUseStrategyContract || engine.isActive || strategyContract.balanceWei === 0n, onClick: () => void runAction("activateStrategyEngine", strategyContract.activateStrategyEngine), style: { ...buttonStyle, opacity: canUseStrategyContract && !engine.isActive && strategyContract.balanceWei > 0n ? 1 : 0.5 }, type: "button", children: "Activate Engine" }), _jsx("button", { disabled: !canUseStrategyContract || !engine.isActive, onClick: () => void runAction("deactivateStrategyEngine", strategyContract.deactivateStrategyEngine), style: { ...buttonStyle, opacity: canUseStrategyContract && engine.isActive ? 1 : 0.5 }, type: "button", children: "Pause Engine" })] }), _jsx("button", { disabled: !canUseStrategyContract || strategyContract.balanceWei === 0n, onClick: () => void runAction("withdrawAll", strategyContract.withdrawAll), style: { ...secondaryButtonStyle, opacity: canUseStrategyContract && strategyContract.balanceWei > 0n ? 1 : 0.5 }, type: "button", children: "Withdraw Available ETH" })] }), _jsx("div", { style: { color: "#94a3b8", fontSize: 13, lineHeight: 1.4 }, children: "Fund Contract holds ETH in the strategy contract. Activate Engine commits available contract ETH to the configured strategy destination. Pass a BandExecutor address for executable strategy funding; otherwise dashboard deployment uses the connected wallet as the destination. Withdraw applies only to ETH still held in the contract. Inspect the deployed contract and wallet transaction before confirming." }), strategyContract.pendingHash ? (_jsx("a", { href: `https://etherscan.io/tx/${strategyContract.pendingHash}`, rel: "noreferrer", style: { color: "#60a5fa", fontSize: 14, overflowWrap: "anywhere" }, target: "_blank", children: "View transaction" })) : null, localError || deployment.error || strategyContract.error || price.error || wallet.error ? (_jsx("div", { style: { color: "#fca5a5", fontSize: 14 }, children: localError ?? deployment.error?.message ?? strategyContract.error?.message ?? price.error ?? wallet.error?.message })) : null] }));
|
|
138
|
+
}
|
|
139
|
+
function Row({ label, value }) {
|
|
140
|
+
return (_jsxs("div", { style: { display: "flex", justifyContent: "space-between", gap: 12 }, children: [_jsx("span", { children: label }), _jsx("strong", { children: value })] }));
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=BandPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BandPanel.js","sourceRoot":"","sources":["../src/BandPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAazD,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,Y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CAAC,KAAK,IAAI,gBAAgB,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CACzF,cAAK,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,YAC3C,UAAU,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,IAAI,gBAAgB,CAAC,KAAK,EAAE,OAAO,IAAI,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,GAC/G,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC;AAED,SAAS,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAoC;IAC7D,OAAO,CACL,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,EAAE,aACvE,yBAAO,KAAK,GAAQ,EACpB,2BAAS,KAAK,GAAU,IACpB,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
export declare const BAND_EXECUTOR_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address payable";
|
|
4
|
+
readonly name: "engineWallet_";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly stateMutability: "nonpayable";
|
|
8
|
+
readonly type: "constructor";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "EmptyPayload";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "EthTransferFailed";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "bytes";
|
|
20
|
+
readonly name: "returnData";
|
|
21
|
+
readonly type: "bytes";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "ExternalCallFailed";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "InvalidArrayLength";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly internalType: "uint256";
|
|
32
|
+
readonly name: "balanceAfter";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "minBalanceAfter";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "MinBalanceNotMet";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "NoTargetCode";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "NotEngineOperator";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "NotOwner";
|
|
52
|
+
readonly type: "error";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly name: "Paused";
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
}, {
|
|
58
|
+
readonly inputs: readonly [];
|
|
59
|
+
readonly name: "ReentrantCall";
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "SelectorNotApproved";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "TargetCodeHashChanged";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "TargetNotApproved";
|
|
72
|
+
readonly type: "error";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly name: "TokenNotApproved";
|
|
76
|
+
readonly type: "error";
|
|
77
|
+
}, {
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly name: "ZeroAddress";
|
|
80
|
+
readonly type: "error";
|
|
81
|
+
}, {
|
|
82
|
+
readonly anonymous: false;
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "target";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "bytes4";
|
|
91
|
+
readonly name: "selector";
|
|
92
|
+
readonly type: "bytes4";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "bool";
|
|
96
|
+
readonly name: "approved";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
}];
|
|
99
|
+
readonly name: "ApprovedSelectorSet";
|
|
100
|
+
readonly type: "event";
|
|
101
|
+
}, {
|
|
102
|
+
readonly anonymous: false;
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly indexed: true;
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
readonly name: "target";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}, {
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
readonly internalType: "bool";
|
|
111
|
+
readonly name: "approved";
|
|
112
|
+
readonly type: "bool";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "ApprovedTargetSet";
|
|
115
|
+
readonly type: "event";
|
|
116
|
+
}, {
|
|
117
|
+
readonly anonymous: false;
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly indexed: true;
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "token";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly indexed: false;
|
|
125
|
+
readonly internalType: "bool";
|
|
126
|
+
readonly name: "approved";
|
|
127
|
+
readonly type: "bool";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "ApprovedTokenSet";
|
|
130
|
+
readonly type: "event";
|
|
131
|
+
}, {
|
|
132
|
+
readonly anonymous: false;
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly indexed: true;
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
readonly name: "operator";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly indexed: true;
|
|
140
|
+
readonly internalType: "address";
|
|
141
|
+
readonly name: "target";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly indexed: false;
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly name: "value";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly indexed: false;
|
|
150
|
+
readonly internalType: "bytes32";
|
|
151
|
+
readonly name: "calldataHash";
|
|
152
|
+
readonly type: "bytes32";
|
|
153
|
+
}, {
|
|
154
|
+
readonly indexed: false;
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly name: "balanceAfter";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}];
|
|
159
|
+
readonly name: "ExecutionSubmitted";
|
|
160
|
+
readonly type: "event";
|
|
161
|
+
}, {
|
|
162
|
+
readonly anonymous: false;
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly indexed: false;
|
|
165
|
+
readonly internalType: "bool";
|
|
166
|
+
readonly name: "paused";
|
|
167
|
+
readonly type: "bool";
|
|
168
|
+
}];
|
|
169
|
+
readonly name: "PausedSet";
|
|
170
|
+
readonly type: "event";
|
|
171
|
+
}, {
|
|
172
|
+
readonly anonymous: false;
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly indexed: true;
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly name: "token";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly indexed: true;
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
readonly name: "spender";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly indexed: false;
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "amount";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}];
|
|
189
|
+
readonly name: "TokenApprovalSet";
|
|
190
|
+
readonly type: "event";
|
|
191
|
+
}, {
|
|
192
|
+
readonly anonymous: false;
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly indexed: false;
|
|
195
|
+
readonly internalType: "uint256";
|
|
196
|
+
readonly name: "amount";
|
|
197
|
+
readonly type: "uint256";
|
|
198
|
+
}];
|
|
199
|
+
readonly name: "WithdrawnToEngine";
|
|
200
|
+
readonly type: "event";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
readonly name: "token";
|
|
205
|
+
readonly type: "address";
|
|
206
|
+
}, {
|
|
207
|
+
readonly internalType: "address";
|
|
208
|
+
readonly name: "spender";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly name: "amount";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly name: "approveToken";
|
|
216
|
+
readonly outputs: readonly [];
|
|
217
|
+
readonly stateMutability: "nonpayable";
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly name: "target";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "bytes4";
|
|
226
|
+
readonly name: "selector";
|
|
227
|
+
readonly type: "bytes4";
|
|
228
|
+
}];
|
|
229
|
+
readonly name: "approvedSelectors";
|
|
230
|
+
readonly outputs: readonly [{
|
|
231
|
+
readonly internalType: "bool";
|
|
232
|
+
readonly name: "approved";
|
|
233
|
+
readonly type: "bool";
|
|
234
|
+
}];
|
|
235
|
+
readonly stateMutability: "view";
|
|
236
|
+
readonly type: "function";
|
|
237
|
+
}, {
|
|
238
|
+
readonly inputs: readonly [{
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
readonly name: "target";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "approvedTargetCodeHash";
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly internalType: "bytes32";
|
|
246
|
+
readonly name: "codeHash";
|
|
247
|
+
readonly type: "bytes32";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}, {
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
readonly name: "target";
|
|
255
|
+
readonly type: "address";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "approvedTargets";
|
|
258
|
+
readonly outputs: readonly [{
|
|
259
|
+
readonly internalType: "bool";
|
|
260
|
+
readonly name: "approved";
|
|
261
|
+
readonly type: "bool";
|
|
262
|
+
}];
|
|
263
|
+
readonly stateMutability: "view";
|
|
264
|
+
readonly type: "function";
|
|
265
|
+
}, {
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly internalType: "address";
|
|
268
|
+
readonly name: "token";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
}];
|
|
271
|
+
readonly name: "approvedTokens";
|
|
272
|
+
readonly outputs: readonly [{
|
|
273
|
+
readonly internalType: "bool";
|
|
274
|
+
readonly name: "approved";
|
|
275
|
+
readonly type: "bool";
|
|
276
|
+
}];
|
|
277
|
+
readonly stateMutability: "view";
|
|
278
|
+
readonly type: "function";
|
|
279
|
+
}, {
|
|
280
|
+
readonly inputs: readonly [];
|
|
281
|
+
readonly name: "engineWallet";
|
|
282
|
+
readonly outputs: readonly [{
|
|
283
|
+
readonly internalType: "address payable";
|
|
284
|
+
readonly name: "";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}];
|
|
287
|
+
readonly stateMutability: "view";
|
|
288
|
+
readonly type: "function";
|
|
289
|
+
}, {
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly internalType: "address[]";
|
|
292
|
+
readonly name: "targets";
|
|
293
|
+
readonly type: "address[]";
|
|
294
|
+
}, {
|
|
295
|
+
readonly internalType: "uint256[]";
|
|
296
|
+
readonly name: "values";
|
|
297
|
+
readonly type: "uint256[]";
|
|
298
|
+
}, {
|
|
299
|
+
readonly internalType: "bytes[]";
|
|
300
|
+
readonly name: "payloads";
|
|
301
|
+
readonly type: "bytes[]";
|
|
302
|
+
}, {
|
|
303
|
+
readonly internalType: "uint256";
|
|
304
|
+
readonly name: "minBalanceAfter";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
}];
|
|
307
|
+
readonly name: "executeBatch";
|
|
308
|
+
readonly outputs: readonly [{
|
|
309
|
+
readonly internalType: "bytes[]";
|
|
310
|
+
readonly name: "returnData";
|
|
311
|
+
readonly type: "bytes[]";
|
|
312
|
+
}];
|
|
313
|
+
readonly stateMutability: "payable";
|
|
314
|
+
readonly type: "function";
|
|
315
|
+
}, {
|
|
316
|
+
readonly inputs: readonly [{
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
readonly name: "target";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
}, {
|
|
321
|
+
readonly internalType: "uint256";
|
|
322
|
+
readonly name: "value";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}, {
|
|
325
|
+
readonly internalType: "bytes";
|
|
326
|
+
readonly name: "data";
|
|
327
|
+
readonly type: "bytes";
|
|
328
|
+
}, {
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
readonly name: "minBalanceAfter";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
}];
|
|
333
|
+
readonly name: "executeTrade";
|
|
334
|
+
readonly outputs: readonly [{
|
|
335
|
+
readonly internalType: "bytes";
|
|
336
|
+
readonly name: "returnData";
|
|
337
|
+
readonly type: "bytes";
|
|
338
|
+
}];
|
|
339
|
+
readonly stateMutability: "payable";
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
}, {
|
|
342
|
+
readonly inputs: readonly [];
|
|
343
|
+
readonly name: "owner";
|
|
344
|
+
readonly outputs: readonly [{
|
|
345
|
+
readonly internalType: "address";
|
|
346
|
+
readonly name: "";
|
|
347
|
+
readonly type: "address";
|
|
348
|
+
}];
|
|
349
|
+
readonly stateMutability: "view";
|
|
350
|
+
readonly type: "function";
|
|
351
|
+
}, {
|
|
352
|
+
readonly inputs: readonly [];
|
|
353
|
+
readonly name: "paused";
|
|
354
|
+
readonly outputs: readonly [{
|
|
355
|
+
readonly internalType: "bool";
|
|
356
|
+
readonly name: "";
|
|
357
|
+
readonly type: "bool";
|
|
358
|
+
}];
|
|
359
|
+
readonly stateMutability: "view";
|
|
360
|
+
readonly type: "function";
|
|
361
|
+
}, {
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly internalType: "address";
|
|
364
|
+
readonly name: "target";
|
|
365
|
+
readonly type: "address";
|
|
366
|
+
}, {
|
|
367
|
+
readonly internalType: "bytes4";
|
|
368
|
+
readonly name: "selector";
|
|
369
|
+
readonly type: "bytes4";
|
|
370
|
+
}, {
|
|
371
|
+
readonly internalType: "bool";
|
|
372
|
+
readonly name: "approved";
|
|
373
|
+
readonly type: "bool";
|
|
374
|
+
}];
|
|
375
|
+
readonly name: "setApprovedSelector";
|
|
376
|
+
readonly outputs: readonly [];
|
|
377
|
+
readonly stateMutability: "nonpayable";
|
|
378
|
+
readonly type: "function";
|
|
379
|
+
}, {
|
|
380
|
+
readonly inputs: readonly [{
|
|
381
|
+
readonly internalType: "address";
|
|
382
|
+
readonly name: "target";
|
|
383
|
+
readonly type: "address";
|
|
384
|
+
}, {
|
|
385
|
+
readonly internalType: "bool";
|
|
386
|
+
readonly name: "approved";
|
|
387
|
+
readonly type: "bool";
|
|
388
|
+
}];
|
|
389
|
+
readonly name: "setApprovedTarget";
|
|
390
|
+
readonly outputs: readonly [];
|
|
391
|
+
readonly stateMutability: "nonpayable";
|
|
392
|
+
readonly type: "function";
|
|
393
|
+
}, {
|
|
394
|
+
readonly inputs: readonly [{
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
readonly name: "token";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "bool";
|
|
400
|
+
readonly name: "approved";
|
|
401
|
+
readonly type: "bool";
|
|
402
|
+
}];
|
|
403
|
+
readonly name: "setApprovedToken";
|
|
404
|
+
readonly outputs: readonly [];
|
|
405
|
+
readonly stateMutability: "nonpayable";
|
|
406
|
+
readonly type: "function";
|
|
407
|
+
}, {
|
|
408
|
+
readonly inputs: readonly [{
|
|
409
|
+
readonly internalType: "bool";
|
|
410
|
+
readonly name: "paused_";
|
|
411
|
+
readonly type: "bool";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "setPaused";
|
|
414
|
+
readonly outputs: readonly [];
|
|
415
|
+
readonly stateMutability: "nonpayable";
|
|
416
|
+
readonly type: "function";
|
|
417
|
+
}, {
|
|
418
|
+
readonly inputs: readonly [{
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
readonly name: "amount";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "withdrawToEngine";
|
|
424
|
+
readonly outputs: readonly [];
|
|
425
|
+
readonly stateMutability: "nonpayable";
|
|
426
|
+
readonly type: "function";
|
|
427
|
+
}, {
|
|
428
|
+
readonly stateMutability: "payable";
|
|
429
|
+
readonly type: "receive";
|
|
430
|
+
}];
|
|
431
|
+
//# sourceMappingURL=bandExecutorAbi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bandExecutorAbi.d.ts","sourceRoot":"","sources":["../src/bandExecutorAbi.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAulBpB,CAAC"}
|