@spicenet-io/spiceflow-core 0.3.11 → 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/abis/spicenetWalletManager.d.ts +251 -47
- package/dist/abis/spicenetWalletManager.d.ts.map +1 -1
- package/dist/index.cjs +318 -57
- package/dist/index.js +318 -57
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1488,6 +1488,10 @@ var spicenetWalletManagerAbi = [
|
|
|
1488
1488
|
inputs: [],
|
|
1489
1489
|
stateMutability: "nonpayable"
|
|
1490
1490
|
},
|
|
1491
|
+
{
|
|
1492
|
+
type: "receive",
|
|
1493
|
+
stateMutability: "payable"
|
|
1494
|
+
},
|
|
1491
1495
|
{
|
|
1492
1496
|
type: "function",
|
|
1493
1497
|
name: "DEFAULT_ADMIN_ROLE",
|
|
@@ -1501,6 +1505,45 @@ var spicenetWalletManagerAbi = [
|
|
|
1501
1505
|
],
|
|
1502
1506
|
stateMutability: "view"
|
|
1503
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
|
+
},
|
|
1504
1547
|
{
|
|
1505
1548
|
type: "function",
|
|
1506
1549
|
name: "UPGRADER_ROLE",
|
|
@@ -1527,6 +1570,143 @@ var spicenetWalletManagerAbi = [
|
|
|
1527
1570
|
],
|
|
1528
1571
|
stateMutability: "view"
|
|
1529
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
|
+
},
|
|
1530
1710
|
{
|
|
1531
1711
|
type: "function",
|
|
1532
1712
|
name: "getRoleAdmin",
|
|
@@ -1622,12 +1802,12 @@ var spicenetWalletManagerAbi = [
|
|
|
1622
1802
|
{
|
|
1623
1803
|
name: "",
|
|
1624
1804
|
type: "tuple",
|
|
1625
|
-
internalType: "struct
|
|
1805
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
1626
1806
|
components: [
|
|
1627
1807
|
{
|
|
1628
|
-
name: "
|
|
1629
|
-
type: "
|
|
1630
|
-
internalType: "
|
|
1808
|
+
name: "forUser",
|
|
1809
|
+
type: "string",
|
|
1810
|
+
internalType: "string"
|
|
1631
1811
|
},
|
|
1632
1812
|
{
|
|
1633
1813
|
name: "blockNumber",
|
|
@@ -1709,6 +1889,26 @@ var spicenetWalletManagerAbi = [
|
|
|
1709
1889
|
outputs: [],
|
|
1710
1890
|
stateMutability: "nonpayable"
|
|
1711
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
|
+
},
|
|
1712
1912
|
{
|
|
1713
1913
|
type: "function",
|
|
1714
1914
|
name: "processWithdrawal",
|
|
@@ -1716,13 +1916,18 @@ var spicenetWalletManagerAbi = [
|
|
|
1716
1916
|
{
|
|
1717
1917
|
name: "request",
|
|
1718
1918
|
type: "tuple",
|
|
1719
|
-
internalType: "struct
|
|
1919
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
1720
1920
|
components: [
|
|
1721
1921
|
{
|
|
1722
1922
|
name: "idempotenceKey",
|
|
1723
1923
|
type: "bytes32",
|
|
1724
1924
|
internalType: "bytes32"
|
|
1725
1925
|
},
|
|
1926
|
+
{
|
|
1927
|
+
name: "forUser",
|
|
1928
|
+
type: "string",
|
|
1929
|
+
internalType: "string"
|
|
1930
|
+
},
|
|
1726
1931
|
{
|
|
1727
1932
|
name: "nbf",
|
|
1728
1933
|
type: "uint256",
|
|
@@ -1741,7 +1946,7 @@ var spicenetWalletManagerAbi = [
|
|
|
1741
1946
|
{
|
|
1742
1947
|
name: "transfers",
|
|
1743
1948
|
type: "tuple[]",
|
|
1744
|
-
internalType: "struct
|
|
1949
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1745
1950
|
components: [
|
|
1746
1951
|
{
|
|
1747
1952
|
name: "token",
|
|
@@ -1815,51 +2020,6 @@ var spicenetWalletManagerAbi = [
|
|
|
1815
2020
|
outputs: [],
|
|
1816
2021
|
stateMutability: "nonpayable"
|
|
1817
2022
|
},
|
|
1818
|
-
{
|
|
1819
|
-
type: "function",
|
|
1820
|
-
name: "setWithdrawalInfo",
|
|
1821
|
-
inputs: [
|
|
1822
|
-
{
|
|
1823
|
-
name: "idempotenceKey",
|
|
1824
|
-
type: "bytes32",
|
|
1825
|
-
internalType: "bytes32"
|
|
1826
|
-
},
|
|
1827
|
-
{
|
|
1828
|
-
name: "withdrawalInfo",
|
|
1829
|
-
type: "tuple",
|
|
1830
|
-
internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalInfo",
|
|
1831
|
-
components: [
|
|
1832
|
-
{
|
|
1833
|
-
name: "processed",
|
|
1834
|
-
type: "bool",
|
|
1835
|
-
internalType: "bool"
|
|
1836
|
-
},
|
|
1837
|
-
{
|
|
1838
|
-
name: "blockNumber",
|
|
1839
|
-
type: "uint256",
|
|
1840
|
-
internalType: "uint256"
|
|
1841
|
-
},
|
|
1842
|
-
{
|
|
1843
|
-
name: "nbf",
|
|
1844
|
-
type: "uint256",
|
|
1845
|
-
internalType: "uint256"
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
name: "exp",
|
|
1849
|
-
type: "uint256",
|
|
1850
|
-
internalType: "uint256"
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
name: "metadata",
|
|
1854
|
-
type: "string",
|
|
1855
|
-
internalType: "string"
|
|
1856
|
-
}
|
|
1857
|
-
]
|
|
1858
|
-
}
|
|
1859
|
-
],
|
|
1860
|
-
outputs: [],
|
|
1861
|
-
stateMutability: "nonpayable"
|
|
1862
|
-
},
|
|
1863
2023
|
{
|
|
1864
2024
|
type: "function",
|
|
1865
2025
|
name: "supportsInterface",
|
|
@@ -1879,6 +2039,13 @@ var spicenetWalletManagerAbi = [
|
|
|
1879
2039
|
],
|
|
1880
2040
|
stateMutability: "view"
|
|
1881
2041
|
},
|
|
2042
|
+
{
|
|
2043
|
+
type: "function",
|
|
2044
|
+
name: "unpause",
|
|
2045
|
+
inputs: [],
|
|
2046
|
+
outputs: [],
|
|
2047
|
+
stateMutability: "nonpayable"
|
|
2048
|
+
},
|
|
1882
2049
|
{
|
|
1883
2050
|
type: "function",
|
|
1884
2051
|
name: "upgradeToAndCall",
|
|
@@ -1910,6 +2077,44 @@ var spicenetWalletManagerAbi = [
|
|
|
1910
2077
|
],
|
|
1911
2078
|
anonymous: false
|
|
1912
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
|
+
},
|
|
1913
2118
|
{
|
|
1914
2119
|
type: "event",
|
|
1915
2120
|
name: "RoleAdminChanged",
|
|
@@ -1985,6 +2190,19 @@ var spicenetWalletManagerAbi = [
|
|
|
1985
2190
|
],
|
|
1986
2191
|
anonymous: false
|
|
1987
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
|
+
},
|
|
1988
2206
|
{
|
|
1989
2207
|
type: "event",
|
|
1990
2208
|
name: "Upgraded",
|
|
@@ -2002,17 +2220,34 @@ var spicenetWalletManagerAbi = [
|
|
|
2002
2220
|
type: "event",
|
|
2003
2221
|
name: "WithdrawalProcessed",
|
|
2004
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
|
+
},
|
|
2005
2235
|
{
|
|
2006
2236
|
name: "request",
|
|
2007
2237
|
type: "tuple",
|
|
2008
2238
|
indexed: false,
|
|
2009
|
-
internalType: "struct
|
|
2239
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
2010
2240
|
components: [
|
|
2011
2241
|
{
|
|
2012
2242
|
name: "idempotenceKey",
|
|
2013
2243
|
type: "bytes32",
|
|
2014
2244
|
internalType: "bytes32"
|
|
2015
2245
|
},
|
|
2246
|
+
{
|
|
2247
|
+
name: "forUser",
|
|
2248
|
+
type: "string",
|
|
2249
|
+
internalType: "string"
|
|
2250
|
+
},
|
|
2016
2251
|
{
|
|
2017
2252
|
name: "nbf",
|
|
2018
2253
|
type: "uint256",
|
|
@@ -2031,7 +2266,7 @@ var spicenetWalletManagerAbi = [
|
|
|
2031
2266
|
{
|
|
2032
2267
|
name: "transfers",
|
|
2033
2268
|
type: "tuple[]",
|
|
2034
|
-
internalType: "struct
|
|
2269
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
2035
2270
|
components: [
|
|
2036
2271
|
{
|
|
2037
2272
|
name: "token",
|
|
@@ -2103,11 +2338,37 @@ var spicenetWalletManagerAbi = [
|
|
|
2103
2338
|
name: "ERC1967NonPayable",
|
|
2104
2339
|
inputs: []
|
|
2105
2340
|
},
|
|
2341
|
+
{
|
|
2342
|
+
type: "error",
|
|
2343
|
+
name: "EnforcedPause",
|
|
2344
|
+
inputs: []
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
type: "error",
|
|
2348
|
+
name: "ExpectedPause",
|
|
2349
|
+
inputs: []
|
|
2350
|
+
},
|
|
2106
2351
|
{
|
|
2107
2352
|
type: "error",
|
|
2108
2353
|
name: "FailedCall",
|
|
2109
2354
|
inputs: []
|
|
2110
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
|
+
},
|
|
2111
2372
|
{
|
|
2112
2373
|
type: "error",
|
|
2113
2374
|
name: "InvalidInitialization",
|
|
@@ -2157,12 +2418,12 @@ var spicenetWalletManagerAbi = [
|
|
|
2157
2418
|
{
|
|
2158
2419
|
name: "withdrawalInfo",
|
|
2159
2420
|
type: "tuple",
|
|
2160
|
-
internalType: "struct
|
|
2421
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
2161
2422
|
components: [
|
|
2162
2423
|
{
|
|
2163
|
-
name: "
|
|
2164
|
-
type: "
|
|
2165
|
-
internalType: "
|
|
2424
|
+
name: "forUser",
|
|
2425
|
+
type: "string",
|
|
2426
|
+
internalType: "string"
|
|
2166
2427
|
},
|
|
2167
2428
|
{
|
|
2168
2429
|
name: "blockNumber",
|