@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.cjs
CHANGED
|
@@ -1570,6 +1570,10 @@ var spicenetWalletManagerAbi = [
|
|
|
1570
1570
|
inputs: [],
|
|
1571
1571
|
stateMutability: "nonpayable"
|
|
1572
1572
|
},
|
|
1573
|
+
{
|
|
1574
|
+
type: "receive",
|
|
1575
|
+
stateMutability: "payable"
|
|
1576
|
+
},
|
|
1573
1577
|
{
|
|
1574
1578
|
type: "function",
|
|
1575
1579
|
name: "DEFAULT_ADMIN_ROLE",
|
|
@@ -1583,6 +1587,45 @@ var spicenetWalletManagerAbi = [
|
|
|
1583
1587
|
],
|
|
1584
1588
|
stateMutability: "view"
|
|
1585
1589
|
},
|
|
1590
|
+
{
|
|
1591
|
+
type: "function",
|
|
1592
|
+
name: "PAUSER_ROLE",
|
|
1593
|
+
inputs: [],
|
|
1594
|
+
outputs: [
|
|
1595
|
+
{
|
|
1596
|
+
name: "",
|
|
1597
|
+
type: "bytes32",
|
|
1598
|
+
internalType: "bytes32"
|
|
1599
|
+
}
|
|
1600
|
+
],
|
|
1601
|
+
stateMutability: "view"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
type: "function",
|
|
1605
|
+
name: "RELAYER_ROLE",
|
|
1606
|
+
inputs: [],
|
|
1607
|
+
outputs: [
|
|
1608
|
+
{
|
|
1609
|
+
name: "",
|
|
1610
|
+
type: "bytes32",
|
|
1611
|
+
internalType: "bytes32"
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
stateMutability: "view"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
type: "function",
|
|
1618
|
+
name: "UNPAUSER_ROLE",
|
|
1619
|
+
inputs: [],
|
|
1620
|
+
outputs: [
|
|
1621
|
+
{
|
|
1622
|
+
name: "",
|
|
1623
|
+
type: "bytes32",
|
|
1624
|
+
internalType: "bytes32"
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
stateMutability: "view"
|
|
1628
|
+
},
|
|
1586
1629
|
{
|
|
1587
1630
|
type: "function",
|
|
1588
1631
|
name: "UPGRADER_ROLE",
|
|
@@ -1609,6 +1652,143 @@ var spicenetWalletManagerAbi = [
|
|
|
1609
1652
|
],
|
|
1610
1653
|
stateMutability: "view"
|
|
1611
1654
|
},
|
|
1655
|
+
{
|
|
1656
|
+
type: "function",
|
|
1657
|
+
name: "adminProcessWithdrawalRequestEvents",
|
|
1658
|
+
inputs: [
|
|
1659
|
+
{
|
|
1660
|
+
name: "requests",
|
|
1661
|
+
type: "tuple[]",
|
|
1662
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest[]",
|
|
1663
|
+
components: [
|
|
1664
|
+
{
|
|
1665
|
+
name: "idempotenceKey",
|
|
1666
|
+
type: "bytes32",
|
|
1667
|
+
internalType: "bytes32"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
name: "forUser",
|
|
1671
|
+
type: "string",
|
|
1672
|
+
internalType: "string"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
name: "nbf",
|
|
1676
|
+
type: "uint256",
|
|
1677
|
+
internalType: "uint256"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
name: "exp",
|
|
1681
|
+
type: "uint256",
|
|
1682
|
+
internalType: "uint256"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
name: "metadata",
|
|
1686
|
+
type: "string",
|
|
1687
|
+
internalType: "string"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
name: "transfers",
|
|
1691
|
+
type: "tuple[]",
|
|
1692
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1693
|
+
components: [
|
|
1694
|
+
{
|
|
1695
|
+
name: "token",
|
|
1696
|
+
type: "address",
|
|
1697
|
+
internalType: "address"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: "to",
|
|
1701
|
+
type: "address",
|
|
1702
|
+
internalType: "address"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
name: "amount",
|
|
1706
|
+
type: "uint256",
|
|
1707
|
+
internalType: "uint256"
|
|
1708
|
+
}
|
|
1709
|
+
]
|
|
1710
|
+
}
|
|
1711
|
+
]
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
outputs: [],
|
|
1715
|
+
stateMutability: "nonpayable"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
type: "function",
|
|
1719
|
+
name: "adminSetWithdrawalInfos",
|
|
1720
|
+
inputs: [
|
|
1721
|
+
{
|
|
1722
|
+
name: "idempotenceKeys",
|
|
1723
|
+
type: "bytes32[]",
|
|
1724
|
+
internalType: "bytes32[]"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
name: "withdrawalInfos",
|
|
1728
|
+
type: "tuple[]",
|
|
1729
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo[]",
|
|
1730
|
+
components: [
|
|
1731
|
+
{
|
|
1732
|
+
name: "forUser",
|
|
1733
|
+
type: "string",
|
|
1734
|
+
internalType: "string"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: "blockNumber",
|
|
1738
|
+
type: "uint256",
|
|
1739
|
+
internalType: "uint256"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
name: "nbf",
|
|
1743
|
+
type: "uint256",
|
|
1744
|
+
internalType: "uint256"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
name: "exp",
|
|
1748
|
+
type: "uint256",
|
|
1749
|
+
internalType: "uint256"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
name: "metadata",
|
|
1753
|
+
type: "string",
|
|
1754
|
+
internalType: "string"
|
|
1755
|
+
}
|
|
1756
|
+
]
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
outputs: [],
|
|
1760
|
+
stateMutability: "nonpayable"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
type: "function",
|
|
1764
|
+
name: "adminWithdraw",
|
|
1765
|
+
inputs: [
|
|
1766
|
+
{
|
|
1767
|
+
name: "transfers",
|
|
1768
|
+
type: "tuple[]",
|
|
1769
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1770
|
+
components: [
|
|
1771
|
+
{
|
|
1772
|
+
name: "token",
|
|
1773
|
+
type: "address",
|
|
1774
|
+
internalType: "address"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
name: "to",
|
|
1778
|
+
type: "address",
|
|
1779
|
+
internalType: "address"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
name: "amount",
|
|
1783
|
+
type: "uint256",
|
|
1784
|
+
internalType: "uint256"
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1787
|
+
}
|
|
1788
|
+
],
|
|
1789
|
+
outputs: [],
|
|
1790
|
+
stateMutability: "nonpayable"
|
|
1791
|
+
},
|
|
1612
1792
|
{
|
|
1613
1793
|
type: "function",
|
|
1614
1794
|
name: "getRoleAdmin",
|
|
@@ -1704,12 +1884,12 @@ var spicenetWalletManagerAbi = [
|
|
|
1704
1884
|
{
|
|
1705
1885
|
name: "",
|
|
1706
1886
|
type: "tuple",
|
|
1707
|
-
internalType: "struct
|
|
1887
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
1708
1888
|
components: [
|
|
1709
1889
|
{
|
|
1710
|
-
name: "
|
|
1711
|
-
type: "
|
|
1712
|
-
internalType: "
|
|
1890
|
+
name: "forUser",
|
|
1891
|
+
type: "string",
|
|
1892
|
+
internalType: "string"
|
|
1713
1893
|
},
|
|
1714
1894
|
{
|
|
1715
1895
|
name: "blockNumber",
|
|
@@ -1791,6 +1971,26 @@ var spicenetWalletManagerAbi = [
|
|
|
1791
1971
|
outputs: [],
|
|
1792
1972
|
stateMutability: "nonpayable"
|
|
1793
1973
|
},
|
|
1974
|
+
{
|
|
1975
|
+
type: "function",
|
|
1976
|
+
name: "pause",
|
|
1977
|
+
inputs: [],
|
|
1978
|
+
outputs: [],
|
|
1979
|
+
stateMutability: "nonpayable"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
type: "function",
|
|
1983
|
+
name: "paused",
|
|
1984
|
+
inputs: [],
|
|
1985
|
+
outputs: [
|
|
1986
|
+
{
|
|
1987
|
+
name: "",
|
|
1988
|
+
type: "bool",
|
|
1989
|
+
internalType: "bool"
|
|
1990
|
+
}
|
|
1991
|
+
],
|
|
1992
|
+
stateMutability: "view"
|
|
1993
|
+
},
|
|
1794
1994
|
{
|
|
1795
1995
|
type: "function",
|
|
1796
1996
|
name: "processWithdrawal",
|
|
@@ -1798,13 +1998,18 @@ var spicenetWalletManagerAbi = [
|
|
|
1798
1998
|
{
|
|
1799
1999
|
name: "request",
|
|
1800
2000
|
type: "tuple",
|
|
1801
|
-
internalType: "struct
|
|
2001
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
1802
2002
|
components: [
|
|
1803
2003
|
{
|
|
1804
2004
|
name: "idempotenceKey",
|
|
1805
2005
|
type: "bytes32",
|
|
1806
2006
|
internalType: "bytes32"
|
|
1807
2007
|
},
|
|
2008
|
+
{
|
|
2009
|
+
name: "forUser",
|
|
2010
|
+
type: "string",
|
|
2011
|
+
internalType: "string"
|
|
2012
|
+
},
|
|
1808
2013
|
{
|
|
1809
2014
|
name: "nbf",
|
|
1810
2015
|
type: "uint256",
|
|
@@ -1823,7 +2028,7 @@ var spicenetWalletManagerAbi = [
|
|
|
1823
2028
|
{
|
|
1824
2029
|
name: "transfers",
|
|
1825
2030
|
type: "tuple[]",
|
|
1826
|
-
internalType: "struct
|
|
2031
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
1827
2032
|
components: [
|
|
1828
2033
|
{
|
|
1829
2034
|
name: "token",
|
|
@@ -1897,51 +2102,6 @@ var spicenetWalletManagerAbi = [
|
|
|
1897
2102
|
outputs: [],
|
|
1898
2103
|
stateMutability: "nonpayable"
|
|
1899
2104
|
},
|
|
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
2105
|
{
|
|
1946
2106
|
type: "function",
|
|
1947
2107
|
name: "supportsInterface",
|
|
@@ -1961,6 +2121,13 @@ var spicenetWalletManagerAbi = [
|
|
|
1961
2121
|
],
|
|
1962
2122
|
stateMutability: "view"
|
|
1963
2123
|
},
|
|
2124
|
+
{
|
|
2125
|
+
type: "function",
|
|
2126
|
+
name: "unpause",
|
|
2127
|
+
inputs: [],
|
|
2128
|
+
outputs: [],
|
|
2129
|
+
stateMutability: "nonpayable"
|
|
2130
|
+
},
|
|
1964
2131
|
{
|
|
1965
2132
|
type: "function",
|
|
1966
2133
|
name: "upgradeToAndCall",
|
|
@@ -1992,6 +2159,44 @@ var spicenetWalletManagerAbi = [
|
|
|
1992
2159
|
],
|
|
1993
2160
|
anonymous: false
|
|
1994
2161
|
},
|
|
2162
|
+
{
|
|
2163
|
+
type: "event",
|
|
2164
|
+
name: "NativeTransfer",
|
|
2165
|
+
inputs: [
|
|
2166
|
+
{
|
|
2167
|
+
name: "from",
|
|
2168
|
+
type: "address",
|
|
2169
|
+
indexed: true,
|
|
2170
|
+
internalType: "address"
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
name: "to",
|
|
2174
|
+
type: "address",
|
|
2175
|
+
indexed: true,
|
|
2176
|
+
internalType: "address"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
name: "value",
|
|
2180
|
+
type: "uint256",
|
|
2181
|
+
indexed: false,
|
|
2182
|
+
internalType: "uint256"
|
|
2183
|
+
}
|
|
2184
|
+
],
|
|
2185
|
+
anonymous: false
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
type: "event",
|
|
2189
|
+
name: "Paused",
|
|
2190
|
+
inputs: [
|
|
2191
|
+
{
|
|
2192
|
+
name: "account",
|
|
2193
|
+
type: "address",
|
|
2194
|
+
indexed: false,
|
|
2195
|
+
internalType: "address"
|
|
2196
|
+
}
|
|
2197
|
+
],
|
|
2198
|
+
anonymous: false
|
|
2199
|
+
},
|
|
1995
2200
|
{
|
|
1996
2201
|
type: "event",
|
|
1997
2202
|
name: "RoleAdminChanged",
|
|
@@ -2067,6 +2272,19 @@ var spicenetWalletManagerAbi = [
|
|
|
2067
2272
|
],
|
|
2068
2273
|
anonymous: false
|
|
2069
2274
|
},
|
|
2275
|
+
{
|
|
2276
|
+
type: "event",
|
|
2277
|
+
name: "Unpaused",
|
|
2278
|
+
inputs: [
|
|
2279
|
+
{
|
|
2280
|
+
name: "account",
|
|
2281
|
+
type: "address",
|
|
2282
|
+
indexed: false,
|
|
2283
|
+
internalType: "address"
|
|
2284
|
+
}
|
|
2285
|
+
],
|
|
2286
|
+
anonymous: false
|
|
2287
|
+
},
|
|
2070
2288
|
{
|
|
2071
2289
|
type: "event",
|
|
2072
2290
|
name: "Upgraded",
|
|
@@ -2084,17 +2302,34 @@ var spicenetWalletManagerAbi = [
|
|
|
2084
2302
|
type: "event",
|
|
2085
2303
|
name: "WithdrawalProcessed",
|
|
2086
2304
|
inputs: [
|
|
2305
|
+
{
|
|
2306
|
+
name: "idempotenceKey",
|
|
2307
|
+
type: "bytes32",
|
|
2308
|
+
indexed: true,
|
|
2309
|
+
internalType: "bytes32"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
name: "forUser",
|
|
2313
|
+
type: "string",
|
|
2314
|
+
indexed: true,
|
|
2315
|
+
internalType: "string"
|
|
2316
|
+
},
|
|
2087
2317
|
{
|
|
2088
2318
|
name: "request",
|
|
2089
2319
|
type: "tuple",
|
|
2090
2320
|
indexed: false,
|
|
2091
|
-
internalType: "struct
|
|
2321
|
+
internalType: "struct ISpicenetEscrow.WithdrawalRequest",
|
|
2092
2322
|
components: [
|
|
2093
2323
|
{
|
|
2094
2324
|
name: "idempotenceKey",
|
|
2095
2325
|
type: "bytes32",
|
|
2096
2326
|
internalType: "bytes32"
|
|
2097
2327
|
},
|
|
2328
|
+
{
|
|
2329
|
+
name: "forUser",
|
|
2330
|
+
type: "string",
|
|
2331
|
+
internalType: "string"
|
|
2332
|
+
},
|
|
2098
2333
|
{
|
|
2099
2334
|
name: "nbf",
|
|
2100
2335
|
type: "uint256",
|
|
@@ -2113,7 +2348,7 @@ var spicenetWalletManagerAbi = [
|
|
|
2113
2348
|
{
|
|
2114
2349
|
name: "transfers",
|
|
2115
2350
|
type: "tuple[]",
|
|
2116
|
-
internalType: "struct
|
|
2351
|
+
internalType: "struct ISpicenetEscrow.TokenTransfer[]",
|
|
2117
2352
|
components: [
|
|
2118
2353
|
{
|
|
2119
2354
|
name: "token",
|
|
@@ -2185,11 +2420,37 @@ var spicenetWalletManagerAbi = [
|
|
|
2185
2420
|
name: "ERC1967NonPayable",
|
|
2186
2421
|
inputs: []
|
|
2187
2422
|
},
|
|
2423
|
+
{
|
|
2424
|
+
type: "error",
|
|
2425
|
+
name: "EnforcedPause",
|
|
2426
|
+
inputs: []
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
type: "error",
|
|
2430
|
+
name: "ExpectedPause",
|
|
2431
|
+
inputs: []
|
|
2432
|
+
},
|
|
2188
2433
|
{
|
|
2189
2434
|
type: "error",
|
|
2190
2435
|
name: "FailedCall",
|
|
2191
2436
|
inputs: []
|
|
2192
2437
|
},
|
|
2438
|
+
{
|
|
2439
|
+
type: "error",
|
|
2440
|
+
name: "InsufficientBalance",
|
|
2441
|
+
inputs: [
|
|
2442
|
+
{
|
|
2443
|
+
name: "balance",
|
|
2444
|
+
type: "uint256",
|
|
2445
|
+
internalType: "uint256"
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
name: "needed",
|
|
2449
|
+
type: "uint256",
|
|
2450
|
+
internalType: "uint256"
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
},
|
|
2193
2454
|
{
|
|
2194
2455
|
type: "error",
|
|
2195
2456
|
name: "InvalidInitialization",
|
|
@@ -2239,12 +2500,12 @@ var spicenetWalletManagerAbi = [
|
|
|
2239
2500
|
{
|
|
2240
2501
|
name: "withdrawalInfo",
|
|
2241
2502
|
type: "tuple",
|
|
2242
|
-
internalType: "struct
|
|
2503
|
+
internalType: "struct ISpicenetEscrow.WithdrawalInfo",
|
|
2243
2504
|
components: [
|
|
2244
2505
|
{
|
|
2245
|
-
name: "
|
|
2246
|
-
type: "
|
|
2247
|
-
internalType: "
|
|
2506
|
+
name: "forUser",
|
|
2507
|
+
type: "string",
|
|
2508
|
+
internalType: "string"
|
|
2248
2509
|
},
|
|
2249
2510
|
{
|
|
2250
2511
|
name: "blockNumber",
|