@spicenet-io/spiceflow-core 0.3.10 → 0.3.12

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/index.js CHANGED
@@ -1330,6 +1330,1159 @@ var uniV3SwapRouterAbi = [
1330
1330
  }
1331
1331
  ];
1332
1332
 
1333
+ // src/abis/spicenet.ts
1334
+ var spicenetAbi = [
1335
+ {
1336
+ type: "function",
1337
+ name: "closeRebalancingRequest",
1338
+ inputs: [
1339
+ {
1340
+ name: "args",
1341
+ type: "tuple",
1342
+ internalType: "struct Spicenet.CloseRebalancingRequestArgs",
1343
+ components: [
1344
+ {
1345
+ name: "idempotenceKey",
1346
+ type: "bytes32",
1347
+ internalType: "bytes32"
1348
+ },
1349
+ {
1350
+ name: "repaymentChainTokenAmount",
1351
+ type: "uint256",
1352
+ internalType: "uint256"
1353
+ }
1354
+ ]
1355
+ }
1356
+ ],
1357
+ outputs: [],
1358
+ stateMutability: "nonpayable"
1359
+ },
1360
+ {
1361
+ type: "function",
1362
+ name: "createWithdrawalRequest",
1363
+ inputs: [
1364
+ {
1365
+ name: "request",
1366
+ type: "tuple",
1367
+ internalType: "struct Spicenet.CreateWithdrawalRequestArgs",
1368
+ components: [
1369
+ {
1370
+ name: "chainId",
1371
+ type: "string",
1372
+ internalType: "string"
1373
+ },
1374
+ {
1375
+ name: "idempotenceKey",
1376
+ type: "bytes32",
1377
+ internalType: "bytes32"
1378
+ },
1379
+ {
1380
+ name: "nbf",
1381
+ type: "uint256",
1382
+ internalType: "uint256"
1383
+ },
1384
+ {
1385
+ name: "exp",
1386
+ type: "uint256",
1387
+ internalType: "uint256"
1388
+ },
1389
+ {
1390
+ name: "metadata",
1391
+ type: "string",
1392
+ internalType: "string"
1393
+ },
1394
+ {
1395
+ name: "transfers",
1396
+ type: "tuple[]",
1397
+ internalType: "struct Spicenet.CreateTokenTransfer[]",
1398
+ components: [
1399
+ {
1400
+ name: "token",
1401
+ type: "string",
1402
+ internalType: "string"
1403
+ },
1404
+ {
1405
+ name: "to",
1406
+ type: "string",
1407
+ internalType: "string"
1408
+ },
1409
+ {
1410
+ name: "amount",
1411
+ type: "uint256",
1412
+ internalType: "uint256"
1413
+ }
1414
+ ]
1415
+ }
1416
+ ]
1417
+ }
1418
+ ],
1419
+ outputs: [],
1420
+ stateMutability: "nonpayable"
1421
+ },
1422
+ {
1423
+ type: "function",
1424
+ name: "createRebalancingRequest",
1425
+ inputs: [
1426
+ {
1427
+ name: "request",
1428
+ type: "tuple",
1429
+ internalType: "struct Spicenet.CreateRebalancingRequestArgs",
1430
+ components: [
1431
+ {
1432
+ name: "idempotenceKey",
1433
+ type: "bytes32",
1434
+ internalType: "bytes32"
1435
+ },
1436
+ {
1437
+ name: "nbf",
1438
+ type: "uint256",
1439
+ internalType: "uint256"
1440
+ },
1441
+ {
1442
+ name: "exp",
1443
+ type: "uint256",
1444
+ internalType: "uint256"
1445
+ },
1446
+ {
1447
+ name: "metadata",
1448
+ type: "string",
1449
+ internalType: "string"
1450
+ },
1451
+ {
1452
+ name: "recipient",
1453
+ type: "string",
1454
+ internalType: "string"
1455
+ },
1456
+ {
1457
+ name: "fromChainToken",
1458
+ type: "string",
1459
+ internalType: "string"
1460
+ },
1461
+ {
1462
+ name: "fromChainTokenAmount",
1463
+ type: "uint256",
1464
+ internalType: "uint256"
1465
+ },
1466
+ {
1467
+ name: "toChainToken",
1468
+ type: "string",
1469
+ internalType: "string"
1470
+ },
1471
+ {
1472
+ name: "toChainTokenAmountMin",
1473
+ type: "uint256",
1474
+ internalType: "uint256"
1475
+ }
1476
+ ]
1477
+ }
1478
+ ],
1479
+ outputs: [],
1480
+ stateMutability: "nonpayable"
1481
+ }
1482
+ ];
1483
+
1484
+ // src/abis/spicenetWalletManager.ts
1485
+ var spicenetWalletManagerAbi = [
1486
+ {
1487
+ type: "constructor",
1488
+ inputs: [],
1489
+ stateMutability: "nonpayable"
1490
+ },
1491
+ {
1492
+ type: "receive",
1493
+ stateMutability: "payable"
1494
+ },
1495
+ {
1496
+ type: "function",
1497
+ name: "DEFAULT_ADMIN_ROLE",
1498
+ inputs: [],
1499
+ outputs: [
1500
+ {
1501
+ name: "",
1502
+ type: "bytes32",
1503
+ internalType: "bytes32"
1504
+ }
1505
+ ],
1506
+ stateMutability: "view"
1507
+ },
1508
+ {
1509
+ type: "function",
1510
+ name: "PAUSER_ROLE",
1511
+ inputs: [],
1512
+ outputs: [
1513
+ {
1514
+ name: "",
1515
+ type: "bytes32",
1516
+ internalType: "bytes32"
1517
+ }
1518
+ ],
1519
+ stateMutability: "view"
1520
+ },
1521
+ {
1522
+ type: "function",
1523
+ name: "RELAYER_ROLE",
1524
+ inputs: [],
1525
+ outputs: [
1526
+ {
1527
+ name: "",
1528
+ type: "bytes32",
1529
+ internalType: "bytes32"
1530
+ }
1531
+ ],
1532
+ stateMutability: "view"
1533
+ },
1534
+ {
1535
+ type: "function",
1536
+ name: "UNPAUSER_ROLE",
1537
+ inputs: [],
1538
+ outputs: [
1539
+ {
1540
+ name: "",
1541
+ type: "bytes32",
1542
+ internalType: "bytes32"
1543
+ }
1544
+ ],
1545
+ stateMutability: "view"
1546
+ },
1547
+ {
1548
+ type: "function",
1549
+ name: "UPGRADER_ROLE",
1550
+ inputs: [],
1551
+ outputs: [
1552
+ {
1553
+ name: "",
1554
+ type: "bytes32",
1555
+ internalType: "bytes32"
1556
+ }
1557
+ ],
1558
+ stateMutability: "view"
1559
+ },
1560
+ {
1561
+ type: "function",
1562
+ name: "UPGRADE_INTERFACE_VERSION",
1563
+ inputs: [],
1564
+ outputs: [
1565
+ {
1566
+ name: "",
1567
+ type: "string",
1568
+ internalType: "string"
1569
+ }
1570
+ ],
1571
+ stateMutability: "view"
1572
+ },
1573
+ {
1574
+ type: "function",
1575
+ name: "adminProcessWithdrawalRequestEvents",
1576
+ inputs: [
1577
+ {
1578
+ name: "requests",
1579
+ type: "tuple[]",
1580
+ internalType: "struct ISpicenetEscrow.WithdrawalRequest[]",
1581
+ components: [
1582
+ {
1583
+ name: "idempotenceKey",
1584
+ type: "bytes32",
1585
+ internalType: "bytes32"
1586
+ },
1587
+ {
1588
+ name: "forUser",
1589
+ type: "string",
1590
+ internalType: "string"
1591
+ },
1592
+ {
1593
+ name: "nbf",
1594
+ type: "uint256",
1595
+ internalType: "uint256"
1596
+ },
1597
+ {
1598
+ name: "exp",
1599
+ type: "uint256",
1600
+ internalType: "uint256"
1601
+ },
1602
+ {
1603
+ name: "metadata",
1604
+ type: "string",
1605
+ internalType: "string"
1606
+ },
1607
+ {
1608
+ name: "transfers",
1609
+ type: "tuple[]",
1610
+ internalType: "struct ISpicenetEscrow.TokenTransfer[]",
1611
+ components: [
1612
+ {
1613
+ name: "token",
1614
+ type: "address",
1615
+ internalType: "address"
1616
+ },
1617
+ {
1618
+ name: "to",
1619
+ type: "address",
1620
+ internalType: "address"
1621
+ },
1622
+ {
1623
+ name: "amount",
1624
+ type: "uint256",
1625
+ internalType: "uint256"
1626
+ }
1627
+ ]
1628
+ }
1629
+ ]
1630
+ }
1631
+ ],
1632
+ outputs: [],
1633
+ stateMutability: "nonpayable"
1634
+ },
1635
+ {
1636
+ type: "function",
1637
+ name: "adminSetWithdrawalInfos",
1638
+ inputs: [
1639
+ {
1640
+ name: "idempotenceKeys",
1641
+ type: "bytes32[]",
1642
+ internalType: "bytes32[]"
1643
+ },
1644
+ {
1645
+ name: "withdrawalInfos",
1646
+ type: "tuple[]",
1647
+ internalType: "struct ISpicenetEscrow.WithdrawalInfo[]",
1648
+ components: [
1649
+ {
1650
+ name: "forUser",
1651
+ type: "string",
1652
+ internalType: "string"
1653
+ },
1654
+ {
1655
+ name: "blockNumber",
1656
+ type: "uint256",
1657
+ internalType: "uint256"
1658
+ },
1659
+ {
1660
+ name: "nbf",
1661
+ type: "uint256",
1662
+ internalType: "uint256"
1663
+ },
1664
+ {
1665
+ name: "exp",
1666
+ type: "uint256",
1667
+ internalType: "uint256"
1668
+ },
1669
+ {
1670
+ name: "metadata",
1671
+ type: "string",
1672
+ internalType: "string"
1673
+ }
1674
+ ]
1675
+ }
1676
+ ],
1677
+ outputs: [],
1678
+ stateMutability: "nonpayable"
1679
+ },
1680
+ {
1681
+ type: "function",
1682
+ name: "adminWithdraw",
1683
+ inputs: [
1684
+ {
1685
+ name: "transfers",
1686
+ type: "tuple[]",
1687
+ internalType: "struct ISpicenetEscrow.TokenTransfer[]",
1688
+ components: [
1689
+ {
1690
+ name: "token",
1691
+ type: "address",
1692
+ internalType: "address"
1693
+ },
1694
+ {
1695
+ name: "to",
1696
+ type: "address",
1697
+ internalType: "address"
1698
+ },
1699
+ {
1700
+ name: "amount",
1701
+ type: "uint256",
1702
+ internalType: "uint256"
1703
+ }
1704
+ ]
1705
+ }
1706
+ ],
1707
+ outputs: [],
1708
+ stateMutability: "nonpayable"
1709
+ },
1710
+ {
1711
+ type: "function",
1712
+ name: "getRoleAdmin",
1713
+ inputs: [
1714
+ {
1715
+ name: "role",
1716
+ type: "bytes32",
1717
+ internalType: "bytes32"
1718
+ }
1719
+ ],
1720
+ outputs: [
1721
+ {
1722
+ name: "",
1723
+ type: "bytes32",
1724
+ internalType: "bytes32"
1725
+ }
1726
+ ],
1727
+ stateMutability: "view"
1728
+ },
1729
+ {
1730
+ type: "function",
1731
+ name: "getRoleMember",
1732
+ inputs: [
1733
+ {
1734
+ name: "role",
1735
+ type: "bytes32",
1736
+ internalType: "bytes32"
1737
+ },
1738
+ {
1739
+ name: "index",
1740
+ type: "uint256",
1741
+ internalType: "uint256"
1742
+ }
1743
+ ],
1744
+ outputs: [
1745
+ {
1746
+ name: "",
1747
+ type: "address",
1748
+ internalType: "address"
1749
+ }
1750
+ ],
1751
+ stateMutability: "view"
1752
+ },
1753
+ {
1754
+ type: "function",
1755
+ name: "getRoleMemberCount",
1756
+ inputs: [
1757
+ {
1758
+ name: "role",
1759
+ type: "bytes32",
1760
+ internalType: "bytes32"
1761
+ }
1762
+ ],
1763
+ outputs: [
1764
+ {
1765
+ name: "",
1766
+ type: "uint256",
1767
+ internalType: "uint256"
1768
+ }
1769
+ ],
1770
+ stateMutability: "view"
1771
+ },
1772
+ {
1773
+ type: "function",
1774
+ name: "getRoleMembers",
1775
+ inputs: [
1776
+ {
1777
+ name: "role",
1778
+ type: "bytes32",
1779
+ internalType: "bytes32"
1780
+ }
1781
+ ],
1782
+ outputs: [
1783
+ {
1784
+ name: "",
1785
+ type: "address[]",
1786
+ internalType: "address[]"
1787
+ }
1788
+ ],
1789
+ stateMutability: "view"
1790
+ },
1791
+ {
1792
+ type: "function",
1793
+ name: "getWithdrawalInfo",
1794
+ inputs: [
1795
+ {
1796
+ name: "idempotenceKey",
1797
+ type: "bytes32",
1798
+ internalType: "bytes32"
1799
+ }
1800
+ ],
1801
+ outputs: [
1802
+ {
1803
+ name: "",
1804
+ type: "tuple",
1805
+ internalType: "struct ISpicenetEscrow.WithdrawalInfo",
1806
+ components: [
1807
+ {
1808
+ name: "forUser",
1809
+ type: "string",
1810
+ internalType: "string"
1811
+ },
1812
+ {
1813
+ name: "blockNumber",
1814
+ type: "uint256",
1815
+ internalType: "uint256"
1816
+ },
1817
+ {
1818
+ name: "nbf",
1819
+ type: "uint256",
1820
+ internalType: "uint256"
1821
+ },
1822
+ {
1823
+ name: "exp",
1824
+ type: "uint256",
1825
+ internalType: "uint256"
1826
+ },
1827
+ {
1828
+ name: "metadata",
1829
+ type: "string",
1830
+ internalType: "string"
1831
+ }
1832
+ ]
1833
+ }
1834
+ ],
1835
+ stateMutability: "view"
1836
+ },
1837
+ {
1838
+ type: "function",
1839
+ name: "grantRole",
1840
+ inputs: [
1841
+ {
1842
+ name: "role",
1843
+ type: "bytes32",
1844
+ internalType: "bytes32"
1845
+ },
1846
+ {
1847
+ name: "account",
1848
+ type: "address",
1849
+ internalType: "address"
1850
+ }
1851
+ ],
1852
+ outputs: [],
1853
+ stateMutability: "nonpayable"
1854
+ },
1855
+ {
1856
+ type: "function",
1857
+ name: "hasRole",
1858
+ inputs: [
1859
+ {
1860
+ name: "role",
1861
+ type: "bytes32",
1862
+ internalType: "bytes32"
1863
+ },
1864
+ {
1865
+ name: "account",
1866
+ type: "address",
1867
+ internalType: "address"
1868
+ }
1869
+ ],
1870
+ outputs: [
1871
+ {
1872
+ name: "",
1873
+ type: "bool",
1874
+ internalType: "bool"
1875
+ }
1876
+ ],
1877
+ stateMutability: "view"
1878
+ },
1879
+ {
1880
+ type: "function",
1881
+ name: "initialize",
1882
+ inputs: [
1883
+ {
1884
+ name: "defaultAdmin",
1885
+ type: "address",
1886
+ internalType: "address"
1887
+ }
1888
+ ],
1889
+ outputs: [],
1890
+ stateMutability: "nonpayable"
1891
+ },
1892
+ {
1893
+ type: "function",
1894
+ name: "pause",
1895
+ inputs: [],
1896
+ outputs: [],
1897
+ stateMutability: "nonpayable"
1898
+ },
1899
+ {
1900
+ type: "function",
1901
+ name: "paused",
1902
+ inputs: [],
1903
+ outputs: [
1904
+ {
1905
+ name: "",
1906
+ type: "bool",
1907
+ internalType: "bool"
1908
+ }
1909
+ ],
1910
+ stateMutability: "view"
1911
+ },
1912
+ {
1913
+ type: "function",
1914
+ name: "processWithdrawal",
1915
+ inputs: [
1916
+ {
1917
+ name: "request",
1918
+ type: "tuple",
1919
+ internalType: "struct ISpicenetEscrow.WithdrawalRequest",
1920
+ components: [
1921
+ {
1922
+ name: "idempotenceKey",
1923
+ type: "bytes32",
1924
+ internalType: "bytes32"
1925
+ },
1926
+ {
1927
+ name: "forUser",
1928
+ type: "string",
1929
+ internalType: "string"
1930
+ },
1931
+ {
1932
+ name: "nbf",
1933
+ type: "uint256",
1934
+ internalType: "uint256"
1935
+ },
1936
+ {
1937
+ name: "exp",
1938
+ type: "uint256",
1939
+ internalType: "uint256"
1940
+ },
1941
+ {
1942
+ name: "metadata",
1943
+ type: "string",
1944
+ internalType: "string"
1945
+ },
1946
+ {
1947
+ name: "transfers",
1948
+ type: "tuple[]",
1949
+ internalType: "struct ISpicenetEscrow.TokenTransfer[]",
1950
+ components: [
1951
+ {
1952
+ name: "token",
1953
+ type: "address",
1954
+ internalType: "address"
1955
+ },
1956
+ {
1957
+ name: "to",
1958
+ type: "address",
1959
+ internalType: "address"
1960
+ },
1961
+ {
1962
+ name: "amount",
1963
+ type: "uint256",
1964
+ internalType: "uint256"
1965
+ }
1966
+ ]
1967
+ }
1968
+ ]
1969
+ }
1970
+ ],
1971
+ outputs: [],
1972
+ stateMutability: "nonpayable"
1973
+ },
1974
+ {
1975
+ type: "function",
1976
+ name: "proxiableUUID",
1977
+ inputs: [],
1978
+ outputs: [
1979
+ {
1980
+ name: "",
1981
+ type: "bytes32",
1982
+ internalType: "bytes32"
1983
+ }
1984
+ ],
1985
+ stateMutability: "view"
1986
+ },
1987
+ {
1988
+ type: "function",
1989
+ name: "renounceRole",
1990
+ inputs: [
1991
+ {
1992
+ name: "role",
1993
+ type: "bytes32",
1994
+ internalType: "bytes32"
1995
+ },
1996
+ {
1997
+ name: "callerConfirmation",
1998
+ type: "address",
1999
+ internalType: "address"
2000
+ }
2001
+ ],
2002
+ outputs: [],
2003
+ stateMutability: "nonpayable"
2004
+ },
2005
+ {
2006
+ type: "function",
2007
+ name: "revokeRole",
2008
+ inputs: [
2009
+ {
2010
+ name: "role",
2011
+ type: "bytes32",
2012
+ internalType: "bytes32"
2013
+ },
2014
+ {
2015
+ name: "account",
2016
+ type: "address",
2017
+ internalType: "address"
2018
+ }
2019
+ ],
2020
+ outputs: [],
2021
+ stateMutability: "nonpayable"
2022
+ },
2023
+ {
2024
+ type: "function",
2025
+ name: "supportsInterface",
2026
+ inputs: [
2027
+ {
2028
+ name: "interfaceId",
2029
+ type: "bytes4",
2030
+ internalType: "bytes4"
2031
+ }
2032
+ ],
2033
+ outputs: [
2034
+ {
2035
+ name: "",
2036
+ type: "bool",
2037
+ internalType: "bool"
2038
+ }
2039
+ ],
2040
+ stateMutability: "view"
2041
+ },
2042
+ {
2043
+ type: "function",
2044
+ name: "unpause",
2045
+ inputs: [],
2046
+ outputs: [],
2047
+ stateMutability: "nonpayable"
2048
+ },
2049
+ {
2050
+ type: "function",
2051
+ name: "upgradeToAndCall",
2052
+ inputs: [
2053
+ {
2054
+ name: "newImplementation",
2055
+ type: "address",
2056
+ internalType: "address"
2057
+ },
2058
+ {
2059
+ name: "data",
2060
+ type: "bytes",
2061
+ internalType: "bytes"
2062
+ }
2063
+ ],
2064
+ outputs: [],
2065
+ stateMutability: "payable"
2066
+ },
2067
+ {
2068
+ type: "event",
2069
+ name: "Initialized",
2070
+ inputs: [
2071
+ {
2072
+ name: "version",
2073
+ type: "uint64",
2074
+ indexed: false,
2075
+ internalType: "uint64"
2076
+ }
2077
+ ],
2078
+ anonymous: false
2079
+ },
2080
+ {
2081
+ type: "event",
2082
+ name: "NativeTransfer",
2083
+ inputs: [
2084
+ {
2085
+ name: "from",
2086
+ type: "address",
2087
+ indexed: true,
2088
+ internalType: "address"
2089
+ },
2090
+ {
2091
+ name: "to",
2092
+ type: "address",
2093
+ indexed: true,
2094
+ internalType: "address"
2095
+ },
2096
+ {
2097
+ name: "value",
2098
+ type: "uint256",
2099
+ indexed: false,
2100
+ internalType: "uint256"
2101
+ }
2102
+ ],
2103
+ anonymous: false
2104
+ },
2105
+ {
2106
+ type: "event",
2107
+ name: "Paused",
2108
+ inputs: [
2109
+ {
2110
+ name: "account",
2111
+ type: "address",
2112
+ indexed: false,
2113
+ internalType: "address"
2114
+ }
2115
+ ],
2116
+ anonymous: false
2117
+ },
2118
+ {
2119
+ type: "event",
2120
+ name: "RoleAdminChanged",
2121
+ inputs: [
2122
+ {
2123
+ name: "role",
2124
+ type: "bytes32",
2125
+ indexed: true,
2126
+ internalType: "bytes32"
2127
+ },
2128
+ {
2129
+ name: "previousAdminRole",
2130
+ type: "bytes32",
2131
+ indexed: true,
2132
+ internalType: "bytes32"
2133
+ },
2134
+ {
2135
+ name: "newAdminRole",
2136
+ type: "bytes32",
2137
+ indexed: true,
2138
+ internalType: "bytes32"
2139
+ }
2140
+ ],
2141
+ anonymous: false
2142
+ },
2143
+ {
2144
+ type: "event",
2145
+ name: "RoleGranted",
2146
+ inputs: [
2147
+ {
2148
+ name: "role",
2149
+ type: "bytes32",
2150
+ indexed: true,
2151
+ internalType: "bytes32"
2152
+ },
2153
+ {
2154
+ name: "account",
2155
+ type: "address",
2156
+ indexed: true,
2157
+ internalType: "address"
2158
+ },
2159
+ {
2160
+ name: "sender",
2161
+ type: "address",
2162
+ indexed: true,
2163
+ internalType: "address"
2164
+ }
2165
+ ],
2166
+ anonymous: false
2167
+ },
2168
+ {
2169
+ type: "event",
2170
+ name: "RoleRevoked",
2171
+ inputs: [
2172
+ {
2173
+ name: "role",
2174
+ type: "bytes32",
2175
+ indexed: true,
2176
+ internalType: "bytes32"
2177
+ },
2178
+ {
2179
+ name: "account",
2180
+ type: "address",
2181
+ indexed: true,
2182
+ internalType: "address"
2183
+ },
2184
+ {
2185
+ name: "sender",
2186
+ type: "address",
2187
+ indexed: true,
2188
+ internalType: "address"
2189
+ }
2190
+ ],
2191
+ anonymous: false
2192
+ },
2193
+ {
2194
+ type: "event",
2195
+ name: "Unpaused",
2196
+ inputs: [
2197
+ {
2198
+ name: "account",
2199
+ type: "address",
2200
+ indexed: false,
2201
+ internalType: "address"
2202
+ }
2203
+ ],
2204
+ anonymous: false
2205
+ },
2206
+ {
2207
+ type: "event",
2208
+ name: "Upgraded",
2209
+ inputs: [
2210
+ {
2211
+ name: "implementation",
2212
+ type: "address",
2213
+ indexed: true,
2214
+ internalType: "address"
2215
+ }
2216
+ ],
2217
+ anonymous: false
2218
+ },
2219
+ {
2220
+ type: "event",
2221
+ name: "WithdrawalProcessed",
2222
+ inputs: [
2223
+ {
2224
+ name: "idempotenceKey",
2225
+ type: "bytes32",
2226
+ indexed: true,
2227
+ internalType: "bytes32"
2228
+ },
2229
+ {
2230
+ name: "forUser",
2231
+ type: "string",
2232
+ indexed: true,
2233
+ internalType: "string"
2234
+ },
2235
+ {
2236
+ name: "request",
2237
+ type: "tuple",
2238
+ indexed: false,
2239
+ internalType: "struct ISpicenetEscrow.WithdrawalRequest",
2240
+ components: [
2241
+ {
2242
+ name: "idempotenceKey",
2243
+ type: "bytes32",
2244
+ internalType: "bytes32"
2245
+ },
2246
+ {
2247
+ name: "forUser",
2248
+ type: "string",
2249
+ internalType: "string"
2250
+ },
2251
+ {
2252
+ name: "nbf",
2253
+ type: "uint256",
2254
+ internalType: "uint256"
2255
+ },
2256
+ {
2257
+ name: "exp",
2258
+ type: "uint256",
2259
+ internalType: "uint256"
2260
+ },
2261
+ {
2262
+ name: "metadata",
2263
+ type: "string",
2264
+ internalType: "string"
2265
+ },
2266
+ {
2267
+ name: "transfers",
2268
+ type: "tuple[]",
2269
+ internalType: "struct ISpicenetEscrow.TokenTransfer[]",
2270
+ components: [
2271
+ {
2272
+ name: "token",
2273
+ type: "address",
2274
+ internalType: "address"
2275
+ },
2276
+ {
2277
+ name: "to",
2278
+ type: "address",
2279
+ internalType: "address"
2280
+ },
2281
+ {
2282
+ name: "amount",
2283
+ type: "uint256",
2284
+ internalType: "uint256"
2285
+ }
2286
+ ]
2287
+ }
2288
+ ]
2289
+ }
2290
+ ],
2291
+ anonymous: false
2292
+ },
2293
+ {
2294
+ type: "error",
2295
+ name: "AccessControlBadConfirmation",
2296
+ inputs: []
2297
+ },
2298
+ {
2299
+ type: "error",
2300
+ name: "AccessControlUnauthorizedAccount",
2301
+ inputs: [
2302
+ {
2303
+ name: "account",
2304
+ type: "address",
2305
+ internalType: "address"
2306
+ },
2307
+ {
2308
+ name: "neededRole",
2309
+ type: "bytes32",
2310
+ internalType: "bytes32"
2311
+ }
2312
+ ]
2313
+ },
2314
+ {
2315
+ type: "error",
2316
+ name: "AddressEmptyCode",
2317
+ inputs: [
2318
+ {
2319
+ name: "target",
2320
+ type: "address",
2321
+ internalType: "address"
2322
+ }
2323
+ ]
2324
+ },
2325
+ {
2326
+ type: "error",
2327
+ name: "ERC1967InvalidImplementation",
2328
+ inputs: [
2329
+ {
2330
+ name: "implementation",
2331
+ type: "address",
2332
+ internalType: "address"
2333
+ }
2334
+ ]
2335
+ },
2336
+ {
2337
+ type: "error",
2338
+ name: "ERC1967NonPayable",
2339
+ inputs: []
2340
+ },
2341
+ {
2342
+ type: "error",
2343
+ name: "EnforcedPause",
2344
+ inputs: []
2345
+ },
2346
+ {
2347
+ type: "error",
2348
+ name: "ExpectedPause",
2349
+ inputs: []
2350
+ },
2351
+ {
2352
+ type: "error",
2353
+ name: "FailedCall",
2354
+ inputs: []
2355
+ },
2356
+ {
2357
+ type: "error",
2358
+ name: "InsufficientBalance",
2359
+ inputs: [
2360
+ {
2361
+ name: "balance",
2362
+ type: "uint256",
2363
+ internalType: "uint256"
2364
+ },
2365
+ {
2366
+ name: "needed",
2367
+ type: "uint256",
2368
+ internalType: "uint256"
2369
+ }
2370
+ ]
2371
+ },
2372
+ {
2373
+ type: "error",
2374
+ name: "InvalidInitialization",
2375
+ inputs: []
2376
+ },
2377
+ {
2378
+ type: "error",
2379
+ name: "NotInitializing",
2380
+ inputs: []
2381
+ },
2382
+ {
2383
+ type: "error",
2384
+ name: "SafeERC20FailedOperation",
2385
+ inputs: [
2386
+ {
2387
+ name: "token",
2388
+ type: "address",
2389
+ internalType: "address"
2390
+ }
2391
+ ]
2392
+ },
2393
+ {
2394
+ type: "error",
2395
+ name: "UUPSUnauthorizedCallContext",
2396
+ inputs: []
2397
+ },
2398
+ {
2399
+ type: "error",
2400
+ name: "UUPSUnsupportedProxiableUUID",
2401
+ inputs: [
2402
+ {
2403
+ name: "slot",
2404
+ type: "bytes32",
2405
+ internalType: "bytes32"
2406
+ }
2407
+ ]
2408
+ },
2409
+ {
2410
+ type: "error",
2411
+ name: "WithdrawalAlreadyProcessed",
2412
+ inputs: [
2413
+ {
2414
+ name: "idempotenceKey",
2415
+ type: "bytes32",
2416
+ internalType: "bytes32"
2417
+ },
2418
+ {
2419
+ name: "withdrawalInfo",
2420
+ type: "tuple",
2421
+ internalType: "struct ISpicenetEscrow.WithdrawalInfo",
2422
+ components: [
2423
+ {
2424
+ name: "forUser",
2425
+ type: "string",
2426
+ internalType: "string"
2427
+ },
2428
+ {
2429
+ name: "blockNumber",
2430
+ type: "uint256",
2431
+ internalType: "uint256"
2432
+ },
2433
+ {
2434
+ name: "nbf",
2435
+ type: "uint256",
2436
+ internalType: "uint256"
2437
+ },
2438
+ {
2439
+ name: "exp",
2440
+ type: "uint256",
2441
+ internalType: "uint256"
2442
+ },
2443
+ {
2444
+ name: "metadata",
2445
+ type: "string",
2446
+ internalType: "string"
2447
+ }
2448
+ ]
2449
+ }
2450
+ ]
2451
+ },
2452
+ {
2453
+ type: "error",
2454
+ name: "WithdrawalRequestExpired",
2455
+ inputs: [
2456
+ {
2457
+ name: "currentTime",
2458
+ type: "uint256",
2459
+ internalType: "uint256"
2460
+ },
2461
+ {
2462
+ name: "exp",
2463
+ type: "uint256",
2464
+ internalType: "uint256"
2465
+ }
2466
+ ]
2467
+ },
2468
+ {
2469
+ type: "error",
2470
+ name: "WithdrawalRequestTooEarly",
2471
+ inputs: [
2472
+ {
2473
+ name: "currentTime",
2474
+ type: "uint256",
2475
+ internalType: "uint256"
2476
+ },
2477
+ {
2478
+ name: "nbf",
2479
+ type: "uint256",
2480
+ internalType: "uint256"
2481
+ }
2482
+ ]
2483
+ }
2484
+ ];
2485
+
1333
2486
  // src/swap.ts
1334
2487
  import { encodeFunctionData, erc20Abi } from "viem";
1335
2488
  function applySlippage(amount, slippage = 0.03) {
@@ -1429,6 +2582,8 @@ export {
1429
2582
  requireTokenBySymbol,
1430
2583
  requireViemChain,
1431
2584
  resolveTokenRef,
2585
+ spicenetAbi,
2586
+ spicenetWalletManagerAbi,
1432
2587
  submitTransaction,
1433
2588
  truncateAddress,
1434
2589
  uniV3QuoterV2Abi,