@spicenet-io/spiceflow-core 0.3.11 → 0.3.13
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/abis/index.d.ts +1 -0
- package/dist/abis/index.d.ts.map +1 -1
- package/dist/abis/spicenetEscrow.d.ts +771 -0
- package/dist/abis/spicenetEscrow.d.ts.map +1 -0
- package/dist/abis/spicenetWalletManager.d.ts +1 -566
- package/dist/abis/spicenetWalletManager.d.ts.map +1 -1
- package/dist/chains/index.d.ts +1 -0
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/list.d.ts.map +1 -1
- package/dist/chains/types.d.ts +1 -0
- package/dist/chains/types.d.ts.map +1 -1
- package/dist/index.cjs +341 -63
- package/dist/index.js +338 -62
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,6 @@ __export(index_exports, {
|
|
|
23
23
|
ChainBatchHashAbi: () => ChainBatchHashAbi,
|
|
24
24
|
DELEGATE_ABI: () => DELEGATE_ABI,
|
|
25
25
|
ERC20_ABI: () => ERC20_ABI,
|
|
26
|
-
ESCROW_ADDRESS: () => ESCROW_ADDRESS,
|
|
27
26
|
HttpError: () => HttpError,
|
|
28
27
|
IntentHashAbi: () => IntentHashAbi,
|
|
29
28
|
NATIVE_TOKEN_ADDRESS: () => NATIVE_TOKEN_ADDRESS,
|
|
@@ -49,6 +48,8 @@ __export(index_exports, {
|
|
|
49
48
|
getDeployment: () => getDeployment,
|
|
50
49
|
getEquivalenceGroup: () => getEquivalenceGroup,
|
|
51
50
|
getEquivalentAddresses: () => getEquivalentAddresses,
|
|
51
|
+
getEscrowContract: () => getEscrowContract,
|
|
52
|
+
getEscrowContractAddress: () => getEscrowContractAddress,
|
|
52
53
|
getIntentHash: () => getIntentHash,
|
|
53
54
|
getIntentStepStatus: () => getIntentStepStatus,
|
|
54
55
|
getMainnetChains: () => getMainnetChains,
|
|
@@ -71,7 +72,8 @@ __export(index_exports, {
|
|
|
71
72
|
requireViemChain: () => requireViemChain,
|
|
72
73
|
resolveTokenRef: () => resolveTokenRef,
|
|
73
74
|
spicenetAbi: () => spicenetAbi,
|
|
74
|
-
|
|
75
|
+
spicenetEscrowAbi: () => spicenetEscrowAbi,
|
|
76
|
+
spicenetWalletManagerAbi: () => spicenetEscrowAbi,
|
|
75
77
|
submitTransaction: () => submitTransaction,
|
|
76
78
|
truncateAddress: () => truncateAddress,
|
|
77
79
|
uniV3QuoterV2Abi: () => uniV3QuoterV2Abi,
|
|
@@ -755,6 +757,7 @@ var CHAINS = {
|
|
|
755
757
|
network: "mainnet",
|
|
756
758
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
757
759
|
delegateContract: "0x5884Bff4876C979271E65D2feA8D0CF3bF6E6CcC",
|
|
760
|
+
escrowContract: "0xd3F8f177BB3d7dfD883d7c232f3093EdD61C3De9",
|
|
758
761
|
blockExplorer: "https://basescan.org",
|
|
759
762
|
rpcUrl: "https://mainnet.base.org",
|
|
760
763
|
logo: logo_base,
|
|
@@ -767,6 +770,7 @@ var CHAINS = {
|
|
|
767
770
|
network: "mainnet",
|
|
768
771
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
769
772
|
delegateContract: "0x262E1A689555dA5209113A056d0d164EF8355395",
|
|
773
|
+
escrowContract: "0x47d6DB10d99b1E0A074B1467407C7A53B68e1147",
|
|
770
774
|
blockExplorer: "https://arbiscan.io",
|
|
771
775
|
rpcUrl: "https://arb1.arbitrum.io/rpc",
|
|
772
776
|
logo: logo_arb,
|
|
@@ -779,6 +783,7 @@ var CHAINS = {
|
|
|
779
783
|
network: "mainnet",
|
|
780
784
|
nativeCurrency: { name: "Citrea Bitcoin", symbol: "cBTC", decimals: 18 },
|
|
781
785
|
delegateContract: "0x5884Bff4876C979271E65D2feA8D0CF3bF6E6CcC",
|
|
786
|
+
escrowContract: "0x3677113f10d82acFEeDd22dF5c7cFD58736111ee",
|
|
782
787
|
blockExplorer: "https://explorer.mainnet.citrea.xyz",
|
|
783
788
|
rpcUrl: "https://rpc.mainnet.citrea.xyz",
|
|
784
789
|
logo: logo_citrea,
|
|
@@ -826,6 +831,7 @@ var CHAINS = {
|
|
|
826
831
|
network: "testnet",
|
|
827
832
|
nativeCurrency: { name: "cBTC", symbol: "cBTC", decimals: 18 },
|
|
828
833
|
delegateContract: "0x347056dd1CB95ae850192e3fC6FA995537A3A091",
|
|
834
|
+
escrowContract: "0xDf5616Fe65f103972c25EF596C6386904E5CbC8f",
|
|
829
835
|
blockExplorer: "https://explorer.testnet.citrea.xyz",
|
|
830
836
|
rpcUrl: "https://rpc.testnet.citrea.xyz",
|
|
831
837
|
logo: logo_citrea,
|
|
@@ -958,6 +964,9 @@ function getAllChainsByNetwork(network) {
|
|
|
958
964
|
function getDelegateContract(chainId) {
|
|
959
965
|
return CHAINS[chainId]?.delegateContract;
|
|
960
966
|
}
|
|
967
|
+
function getEscrowContract(chainId) {
|
|
968
|
+
return CHAINS[chainId]?.escrowContract;
|
|
969
|
+
}
|
|
961
970
|
function toViemChain(meta) {
|
|
962
971
|
if (meta.chainType === "starknet") return void 0;
|
|
963
972
|
return (0, import_viem2.defineChain)({
|
|
@@ -1001,7 +1010,13 @@ var STARKNET_MAINNET_CHAIN_ID = 23448594291968336;
|
|
|
1001
1010
|
// src/utils.ts
|
|
1002
1011
|
var NATIVE_TOKEN_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
1003
1012
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
1004
|
-
|
|
1013
|
+
function getEscrowContractAddress(chainId) {
|
|
1014
|
+
const escrow = getEscrowContract(chainId);
|
|
1015
|
+
if (!escrow) {
|
|
1016
|
+
throw new Error(`Escrow contract not configured for chain ${chainId}`);
|
|
1017
|
+
}
|
|
1018
|
+
return escrow;
|
|
1019
|
+
}
|
|
1005
1020
|
function isNativeToken(address) {
|
|
1006
1021
|
const lower = address.toLowerCase();
|
|
1007
1022
|
return lower === "0x0" || lower === "0x0000000000000000000000000000000000000000" || lower === "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
@@ -1563,13 +1578,17 @@ var spicenetAbi = [
|
|
|
1563
1578
|
}
|
|
1564
1579
|
];
|
|
1565
1580
|
|
|
1566
|
-
// src/abis/
|
|
1567
|
-
var
|
|
1581
|
+
// src/abis/spicenetEscrow.ts
|
|
1582
|
+
var spicenetEscrowAbi = [
|
|
1568
1583
|
{
|
|
1569
1584
|
type: "constructor",
|
|
1570
1585
|
inputs: [],
|
|
1571
1586
|
stateMutability: "nonpayable"
|
|
1572
1587
|
},
|
|
1588
|
+
{
|
|
1589
|
+
type: "receive",
|
|
1590
|
+
stateMutability: "payable"
|
|
1591
|
+
},
|
|
1573
1592
|
{
|
|
1574
1593
|
type: "function",
|
|
1575
1594
|
name: "DEFAULT_ADMIN_ROLE",
|
|
@@ -1583,6 +1602,45 @@ var spicenetWalletManagerAbi = [
|
|
|
1583
1602
|
],
|
|
1584
1603
|
stateMutability: "view"
|
|
1585
1604
|
},
|
|
1605
|
+
{
|
|
1606
|
+
type: "function",
|
|
1607
|
+
name: "PAUSER_ROLE",
|
|
1608
|
+
inputs: [],
|
|
1609
|
+
outputs: [
|
|
1610
|
+
{
|
|
1611
|
+
name: "",
|
|
1612
|
+
type: "bytes32",
|
|
1613
|
+
internalType: "bytes32"
|
|
1614
|
+
}
|
|
1615
|
+
],
|
|
1616
|
+
stateMutability: "view"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
type: "function",
|
|
1620
|
+
name: "RELAYER_ROLE",
|
|
1621
|
+
inputs: [],
|
|
1622
|
+
outputs: [
|
|
1623
|
+
{
|
|
1624
|
+
name: "",
|
|
1625
|
+
type: "bytes32",
|
|
1626
|
+
internalType: "bytes32"
|
|
1627
|
+
}
|
|
1628
|
+
],
|
|
1629
|
+
stateMutability: "view"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
type: "function",
|
|
1633
|
+
name: "UNPAUSER_ROLE",
|
|
1634
|
+
inputs: [],
|
|
1635
|
+
outputs: [
|
|
1636
|
+
{
|
|
1637
|
+
name: "",
|
|
1638
|
+
type: "bytes32",
|
|
1639
|
+
internalType: "bytes32"
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
stateMutability: "view"
|
|
1643
|
+
},
|
|
1586
1644
|
{
|
|
1587
1645
|
type: "function",
|
|
1588
1646
|
name: "UPGRADER_ROLE",
|
|
@@ -1609,6 +1667,143 @@ var spicenetWalletManagerAbi = [
|
|
|
1609
1667
|
],
|
|
1610
1668
|
stateMutability: "view"
|
|
1611
1669
|
},
|
|
1670
|
+
{
|
|
1671
|
+
type: "function",
|
|
1672
|
+
name: "adminProcessWithdrawalRequestEvents",
|
|
1673
|
+
inputs: [
|
|
1674
|
+
{
|
|
1675
|
+
name: "requests",
|
|
1676
|
+
type: "tuple[]",
|
|
1677
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest[]",
|
|
1678
|
+
components: [
|
|
1679
|
+
{
|
|
1680
|
+
name: "idempotenceKey",
|
|
1681
|
+
type: "bytes32",
|
|
1682
|
+
internalType: "bytes32"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
name: "forUser",
|
|
1686
|
+
type: "string",
|
|
1687
|
+
internalType: "string"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
name: "nbf",
|
|
1691
|
+
type: "uint256",
|
|
1692
|
+
internalType: "uint256"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
name: "exp",
|
|
1696
|
+
type: "uint256",
|
|
1697
|
+
internalType: "uint256"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: "metadata",
|
|
1701
|
+
type: "string",
|
|
1702
|
+
internalType: "string"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
name: "transfers",
|
|
1706
|
+
type: "tuple[]",
|
|
1707
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1708
|
+
components: [
|
|
1709
|
+
{
|
|
1710
|
+
name: "token",
|
|
1711
|
+
type: "address",
|
|
1712
|
+
internalType: "address"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
name: "to",
|
|
1716
|
+
type: "address",
|
|
1717
|
+
internalType: "address"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
name: "amount",
|
|
1721
|
+
type: "uint256",
|
|
1722
|
+
internalType: "uint256"
|
|
1723
|
+
}
|
|
1724
|
+
]
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
}
|
|
1728
|
+
],
|
|
1729
|
+
outputs: [],
|
|
1730
|
+
stateMutability: "nonpayable"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
type: "function",
|
|
1734
|
+
name: "adminSetWithdrawalInfos",
|
|
1735
|
+
inputs: [
|
|
1736
|
+
{
|
|
1737
|
+
name: "idempotenceKeys",
|
|
1738
|
+
type: "bytes32[]",
|
|
1739
|
+
internalType: "bytes32[]"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
name: "withdrawalInfos",
|
|
1743
|
+
type: "tuple[]",
|
|
1744
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo[]",
|
|
1745
|
+
components: [
|
|
1746
|
+
{
|
|
1747
|
+
name: "forUser",
|
|
1748
|
+
type: "string",
|
|
1749
|
+
internalType: "string"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
name: "blockNumber",
|
|
1753
|
+
type: "uint256",
|
|
1754
|
+
internalType: "uint256"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
name: "nbf",
|
|
1758
|
+
type: "uint256",
|
|
1759
|
+
internalType: "uint256"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
name: "exp",
|
|
1763
|
+
type: "uint256",
|
|
1764
|
+
internalType: "uint256"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
name: "metadata",
|
|
1768
|
+
type: "string",
|
|
1769
|
+
internalType: "string"
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
|
+
}
|
|
1773
|
+
],
|
|
1774
|
+
outputs: [],
|
|
1775
|
+
stateMutability: "nonpayable"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
type: "function",
|
|
1779
|
+
name: "adminWithdraw",
|
|
1780
|
+
inputs: [
|
|
1781
|
+
{
|
|
1782
|
+
name: "transfers",
|
|
1783
|
+
type: "tuple[]",
|
|
1784
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1785
|
+
components: [
|
|
1786
|
+
{
|
|
1787
|
+
name: "token",
|
|
1788
|
+
type: "address",
|
|
1789
|
+
internalType: "address"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
name: "to",
|
|
1793
|
+
type: "address",
|
|
1794
|
+
internalType: "address"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
name: "amount",
|
|
1798
|
+
type: "uint256",
|
|
1799
|
+
internalType: "uint256"
|
|
1800
|
+
}
|
|
1801
|
+
]
|
|
1802
|
+
}
|
|
1803
|
+
],
|
|
1804
|
+
outputs: [],
|
|
1805
|
+
stateMutability: "nonpayable"
|
|
1806
|
+
},
|
|
1612
1807
|
{
|
|
1613
1808
|
type: "function",
|
|
1614
1809
|
name: "getRoleAdmin",
|
|
@@ -1704,12 +1899,12 @@ var spicenetWalletManagerAbi = [
|
|
|
1704
1899
|
{
|
|
1705
1900
|
name: "",
|
|
1706
1901
|
type: "tuple",
|
|
1707
|
-
internalType: "struct
|
|
1902
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
1708
1903
|
components: [
|
|
1709
1904
|
{
|
|
1710
|
-
name: "
|
|
1711
|
-
type: "
|
|
1712
|
-
internalType: "
|
|
1905
|
+
name: "forUser",
|
|
1906
|
+
type: "string",
|
|
1907
|
+
internalType: "string"
|
|
1713
1908
|
},
|
|
1714
1909
|
{
|
|
1715
1910
|
name: "blockNumber",
|
|
@@ -1791,6 +1986,26 @@ var spicenetWalletManagerAbi = [
|
|
|
1791
1986
|
outputs: [],
|
|
1792
1987
|
stateMutability: "nonpayable"
|
|
1793
1988
|
},
|
|
1989
|
+
{
|
|
1990
|
+
type: "function",
|
|
1991
|
+
name: "pause",
|
|
1992
|
+
inputs: [],
|
|
1993
|
+
outputs: [],
|
|
1994
|
+
stateMutability: "nonpayable"
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
type: "function",
|
|
1998
|
+
name: "paused",
|
|
1999
|
+
inputs: [],
|
|
2000
|
+
outputs: [
|
|
2001
|
+
{
|
|
2002
|
+
name: "",
|
|
2003
|
+
type: "bool",
|
|
2004
|
+
internalType: "bool"
|
|
2005
|
+
}
|
|
2006
|
+
],
|
|
2007
|
+
stateMutability: "view"
|
|
2008
|
+
},
|
|
1794
2009
|
{
|
|
1795
2010
|
type: "function",
|
|
1796
2011
|
name: "processWithdrawal",
|
|
@@ -1798,13 +2013,18 @@ var spicenetWalletManagerAbi = [
|
|
|
1798
2013
|
{
|
|
1799
2014
|
name: "request",
|
|
1800
2015
|
type: "tuple",
|
|
1801
|
-
internalType: "struct
|
|
2016
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
1802
2017
|
components: [
|
|
1803
2018
|
{
|
|
1804
2019
|
name: "idempotenceKey",
|
|
1805
2020
|
type: "bytes32",
|
|
1806
2021
|
internalType: "bytes32"
|
|
1807
2022
|
},
|
|
2023
|
+
{
|
|
2024
|
+
name: "forUser",
|
|
2025
|
+
type: "string",
|
|
2026
|
+
internalType: "string"
|
|
2027
|
+
},
|
|
1808
2028
|
{
|
|
1809
2029
|
name: "nbf",
|
|
1810
2030
|
type: "uint256",
|
|
@@ -1823,7 +2043,7 @@ var spicenetWalletManagerAbi = [
|
|
|
1823
2043
|
{
|
|
1824
2044
|
name: "transfers",
|
|
1825
2045
|
type: "tuple[]",
|
|
1826
|
-
internalType: "struct
|
|
2046
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1827
2047
|
components: [
|
|
1828
2048
|
{
|
|
1829
2049
|
name: "token",
|
|
@@ -1897,51 +2117,6 @@ var spicenetWalletManagerAbi = [
|
|
|
1897
2117
|
outputs: [],
|
|
1898
2118
|
stateMutability: "nonpayable"
|
|
1899
2119
|
},
|
|
1900
|
-
{
|
|
1901
|
-
type: "function",
|
|
1902
|
-
name: "setWithdrawalInfo",
|
|
1903
|
-
inputs: [
|
|
1904
|
-
{
|
|
1905
|
-
name: "idempotenceKey",
|
|
1906
|
-
type: "bytes32",
|
|
1907
|
-
internalType: "bytes32"
|
|
1908
|
-
},
|
|
1909
|
-
{
|
|
1910
|
-
name: "withdrawalInfo",
|
|
1911
|
-
type: "tuple",
|
|
1912
|
-
internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalInfo",
|
|
1913
|
-
components: [
|
|
1914
|
-
{
|
|
1915
|
-
name: "processed",
|
|
1916
|
-
type: "bool",
|
|
1917
|
-
internalType: "bool"
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
name: "blockNumber",
|
|
1921
|
-
type: "uint256",
|
|
1922
|
-
internalType: "uint256"
|
|
1923
|
-
},
|
|
1924
|
-
{
|
|
1925
|
-
name: "nbf",
|
|
1926
|
-
type: "uint256",
|
|
1927
|
-
internalType: "uint256"
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
name: "exp",
|
|
1931
|
-
type: "uint256",
|
|
1932
|
-
internalType: "uint256"
|
|
1933
|
-
},
|
|
1934
|
-
{
|
|
1935
|
-
name: "metadata",
|
|
1936
|
-
type: "string",
|
|
1937
|
-
internalType: "string"
|
|
1938
|
-
}
|
|
1939
|
-
]
|
|
1940
|
-
}
|
|
1941
|
-
],
|
|
1942
|
-
outputs: [],
|
|
1943
|
-
stateMutability: "nonpayable"
|
|
1944
|
-
},
|
|
1945
2120
|
{
|
|
1946
2121
|
type: "function",
|
|
1947
2122
|
name: "supportsInterface",
|
|
@@ -1961,6 +2136,13 @@ var spicenetWalletManagerAbi = [
|
|
|
1961
2136
|
],
|
|
1962
2137
|
stateMutability: "view"
|
|
1963
2138
|
},
|
|
2139
|
+
{
|
|
2140
|
+
type: "function",
|
|
2141
|
+
name: "unpause",
|
|
2142
|
+
inputs: [],
|
|
2143
|
+
outputs: [],
|
|
2144
|
+
stateMutability: "nonpayable"
|
|
2145
|
+
},
|
|
1964
2146
|
{
|
|
1965
2147
|
type: "function",
|
|
1966
2148
|
name: "upgradeToAndCall",
|
|
@@ -1992,6 +2174,44 @@ var spicenetWalletManagerAbi = [
|
|
|
1992
2174
|
],
|
|
1993
2175
|
anonymous: false
|
|
1994
2176
|
},
|
|
2177
|
+
{
|
|
2178
|
+
type: "event",
|
|
2179
|
+
name: "NativeTransfer",
|
|
2180
|
+
inputs: [
|
|
2181
|
+
{
|
|
2182
|
+
name: "from",
|
|
2183
|
+
type: "address",
|
|
2184
|
+
indexed: true,
|
|
2185
|
+
internalType: "address"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
name: "to",
|
|
2189
|
+
type: "address",
|
|
2190
|
+
indexed: true,
|
|
2191
|
+
internalType: "address"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
name: "value",
|
|
2195
|
+
type: "uint256",
|
|
2196
|
+
indexed: false,
|
|
2197
|
+
internalType: "uint256"
|
|
2198
|
+
}
|
|
2199
|
+
],
|
|
2200
|
+
anonymous: false
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
type: "event",
|
|
2204
|
+
name: "Paused",
|
|
2205
|
+
inputs: [
|
|
2206
|
+
{
|
|
2207
|
+
name: "account",
|
|
2208
|
+
type: "address",
|
|
2209
|
+
indexed: false,
|
|
2210
|
+
internalType: "address"
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2213
|
+
anonymous: false
|
|
2214
|
+
},
|
|
1995
2215
|
{
|
|
1996
2216
|
type: "event",
|
|
1997
2217
|
name: "RoleAdminChanged",
|
|
@@ -2067,6 +2287,19 @@ var spicenetWalletManagerAbi = [
|
|
|
2067
2287
|
],
|
|
2068
2288
|
anonymous: false
|
|
2069
2289
|
},
|
|
2290
|
+
{
|
|
2291
|
+
type: "event",
|
|
2292
|
+
name: "Unpaused",
|
|
2293
|
+
inputs: [
|
|
2294
|
+
{
|
|
2295
|
+
name: "account",
|
|
2296
|
+
type: "address",
|
|
2297
|
+
indexed: false,
|
|
2298
|
+
internalType: "address"
|
|
2299
|
+
}
|
|
2300
|
+
],
|
|
2301
|
+
anonymous: false
|
|
2302
|
+
},
|
|
2070
2303
|
{
|
|
2071
2304
|
type: "event",
|
|
2072
2305
|
name: "Upgraded",
|
|
@@ -2084,17 +2317,34 @@ var spicenetWalletManagerAbi = [
|
|
|
2084
2317
|
type: "event",
|
|
2085
2318
|
name: "WithdrawalProcessed",
|
|
2086
2319
|
inputs: [
|
|
2320
|
+
{
|
|
2321
|
+
name: "idempotenceKey",
|
|
2322
|
+
type: "bytes32",
|
|
2323
|
+
indexed: true,
|
|
2324
|
+
internalType: "bytes32"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "forUser",
|
|
2328
|
+
type: "string",
|
|
2329
|
+
indexed: true,
|
|
2330
|
+
internalType: "string"
|
|
2331
|
+
},
|
|
2087
2332
|
{
|
|
2088
2333
|
name: "request",
|
|
2089
2334
|
type: "tuple",
|
|
2090
2335
|
indexed: false,
|
|
2091
|
-
internalType: "struct
|
|
2336
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
2092
2337
|
components: [
|
|
2093
2338
|
{
|
|
2094
2339
|
name: "idempotenceKey",
|
|
2095
2340
|
type: "bytes32",
|
|
2096
2341
|
internalType: "bytes32"
|
|
2097
2342
|
},
|
|
2343
|
+
{
|
|
2344
|
+
name: "forUser",
|
|
2345
|
+
type: "string",
|
|
2346
|
+
internalType: "string"
|
|
2347
|
+
},
|
|
2098
2348
|
{
|
|
2099
2349
|
name: "nbf",
|
|
2100
2350
|
type: "uint256",
|
|
@@ -2113,7 +2363,7 @@ var spicenetWalletManagerAbi = [
|
|
|
2113
2363
|
{
|
|
2114
2364
|
name: "transfers",
|
|
2115
2365
|
type: "tuple[]",
|
|
2116
|
-
internalType: "struct
|
|
2366
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
2117
2367
|
components: [
|
|
2118
2368
|
{
|
|
2119
2369
|
name: "token",
|
|
@@ -2185,11 +2435,37 @@ var spicenetWalletManagerAbi = [
|
|
|
2185
2435
|
name: "ERC1967NonPayable",
|
|
2186
2436
|
inputs: []
|
|
2187
2437
|
},
|
|
2438
|
+
{
|
|
2439
|
+
type: "error",
|
|
2440
|
+
name: "EnforcedPause",
|
|
2441
|
+
inputs: []
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
type: "error",
|
|
2445
|
+
name: "ExpectedPause",
|
|
2446
|
+
inputs: []
|
|
2447
|
+
},
|
|
2188
2448
|
{
|
|
2189
2449
|
type: "error",
|
|
2190
2450
|
name: "FailedCall",
|
|
2191
2451
|
inputs: []
|
|
2192
2452
|
},
|
|
2453
|
+
{
|
|
2454
|
+
type: "error",
|
|
2455
|
+
name: "InsufficientBalance",
|
|
2456
|
+
inputs: [
|
|
2457
|
+
{
|
|
2458
|
+
name: "balance",
|
|
2459
|
+
type: "uint256",
|
|
2460
|
+
internalType: "uint256"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
name: "needed",
|
|
2464
|
+
type: "uint256",
|
|
2465
|
+
internalType: "uint256"
|
|
2466
|
+
}
|
|
2467
|
+
]
|
|
2468
|
+
},
|
|
2193
2469
|
{
|
|
2194
2470
|
type: "error",
|
|
2195
2471
|
name: "InvalidInitialization",
|
|
@@ -2239,12 +2515,12 @@ var spicenetWalletManagerAbi = [
|
|
|
2239
2515
|
{
|
|
2240
2516
|
name: "withdrawalInfo",
|
|
2241
2517
|
type: "tuple",
|
|
2242
|
-
internalType: "struct
|
|
2518
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
2243
2519
|
components: [
|
|
2244
2520
|
{
|
|
2245
|
-
name: "
|
|
2246
|
-
type: "
|
|
2247
|
-
internalType: "
|
|
2521
|
+
name: "forUser",
|
|
2522
|
+
type: "string",
|
|
2523
|
+
internalType: "string"
|
|
2248
2524
|
},
|
|
2249
2525
|
{
|
|
2250
2526
|
name: "blockNumber",
|
|
@@ -2357,7 +2633,6 @@ function buildUniV3SwapCalls(params) {
|
|
|
2357
2633
|
ChainBatchHashAbi,
|
|
2358
2634
|
DELEGATE_ABI,
|
|
2359
2635
|
ERC20_ABI,
|
|
2360
|
-
ESCROW_ADDRESS,
|
|
2361
2636
|
HttpError,
|
|
2362
2637
|
IntentHashAbi,
|
|
2363
2638
|
NATIVE_TOKEN_ADDRESS,
|
|
@@ -2383,6 +2658,8 @@ function buildUniV3SwapCalls(params) {
|
|
|
2383
2658
|
getDeployment,
|
|
2384
2659
|
getEquivalenceGroup,
|
|
2385
2660
|
getEquivalentAddresses,
|
|
2661
|
+
getEscrowContract,
|
|
2662
|
+
getEscrowContractAddress,
|
|
2386
2663
|
getIntentHash,
|
|
2387
2664
|
getIntentStepStatus,
|
|
2388
2665
|
getMainnetChains,
|
|
@@ -2405,6 +2682,7 @@ function buildUniV3SwapCalls(params) {
|
|
|
2405
2682
|
requireViemChain,
|
|
2406
2683
|
resolveTokenRef,
|
|
2407
2684
|
spicenetAbi,
|
|
2685
|
+
spicenetEscrowAbi,
|
|
2408
2686
|
spicenetWalletManagerAbi,
|
|
2409
2687
|
submitTransaction,
|
|
2410
2688
|
truncateAddress,
|