@fepvenancio/stela-sdk 0.8.0 → 0.8.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/dist/index.cjs CHANGED
@@ -1052,6 +1052,210 @@ var stela_default = [
1052
1052
  {
1053
1053
  name: "collateral_asset_count",
1054
1054
  type: "core::integer::u32"
1055
+ },
1056
+ {
1057
+ name: "auction_started",
1058
+ type: "core::bool"
1059
+ },
1060
+ {
1061
+ name: "auction_start_time",
1062
+ type: "core::integer::u64"
1063
+ }
1064
+ ]
1065
+ },
1066
+ {
1067
+ type: "struct",
1068
+ name: "stela::snip12::CollectionLendOffer",
1069
+ members: [
1070
+ {
1071
+ name: "lender",
1072
+ type: "core::starknet::contract_address::ContractAddress"
1073
+ },
1074
+ {
1075
+ name: "debt_hash",
1076
+ type: "core::felt252"
1077
+ },
1078
+ {
1079
+ name: "interest_hash",
1080
+ type: "core::felt252"
1081
+ },
1082
+ {
1083
+ name: "debt_count",
1084
+ type: "core::integer::u32"
1085
+ },
1086
+ {
1087
+ name: "interest_count",
1088
+ type: "core::integer::u32"
1089
+ },
1090
+ {
1091
+ name: "collection_address",
1092
+ type: "core::starknet::contract_address::ContractAddress"
1093
+ },
1094
+ {
1095
+ name: "duration",
1096
+ type: "core::integer::u64"
1097
+ },
1098
+ {
1099
+ name: "deadline",
1100
+ type: "core::integer::u64"
1101
+ },
1102
+ {
1103
+ name: "nonce",
1104
+ type: "core::felt252"
1105
+ }
1106
+ ]
1107
+ },
1108
+ {
1109
+ type: "struct",
1110
+ name: "stela::snip12::CollectionBorrowAcceptance",
1111
+ members: [
1112
+ {
1113
+ name: "offer_hash",
1114
+ type: "core::felt252"
1115
+ },
1116
+ {
1117
+ name: "borrower",
1118
+ type: "core::starknet::contract_address::ContractAddress"
1119
+ },
1120
+ {
1121
+ name: "token_id",
1122
+ type: "core::integer::u256"
1123
+ },
1124
+ {
1125
+ name: "nonce",
1126
+ type: "core::felt252"
1127
+ }
1128
+ ]
1129
+ },
1130
+ {
1131
+ type: "struct",
1132
+ name: "stela::snip12::RenegotiationProposal",
1133
+ members: [
1134
+ {
1135
+ name: "inscription_id",
1136
+ type: "core::integer::u256"
1137
+ },
1138
+ {
1139
+ name: "proposer",
1140
+ type: "core::starknet::contract_address::ContractAddress"
1141
+ },
1142
+ {
1143
+ name: "new_duration",
1144
+ type: "core::integer::u64"
1145
+ },
1146
+ {
1147
+ name: "new_interest_hash",
1148
+ type: "core::felt252"
1149
+ },
1150
+ {
1151
+ name: "new_interest_count",
1152
+ type: "core::integer::u32"
1153
+ },
1154
+ {
1155
+ name: "proposal_deadline",
1156
+ type: "core::integer::u64"
1157
+ },
1158
+ {
1159
+ name: "nonce",
1160
+ type: "core::felt252"
1161
+ }
1162
+ ]
1163
+ },
1164
+ {
1165
+ type: "struct",
1166
+ name: "stela::snip12::CollateralSaleOffer",
1167
+ members: [
1168
+ {
1169
+ name: "inscription_id",
1170
+ type: "core::integer::u256"
1171
+ },
1172
+ {
1173
+ name: "borrower",
1174
+ type: "core::starknet::contract_address::ContractAddress"
1175
+ },
1176
+ {
1177
+ name: "min_price",
1178
+ type: "core::integer::u256"
1179
+ },
1180
+ {
1181
+ name: "payment_token",
1182
+ type: "core::starknet::contract_address::ContractAddress"
1183
+ },
1184
+ {
1185
+ name: "allowed_buyer",
1186
+ type: "core::starknet::contract_address::ContractAddress"
1187
+ },
1188
+ {
1189
+ name: "deadline",
1190
+ type: "core::integer::u64"
1191
+ },
1192
+ {
1193
+ name: "nonce",
1194
+ type: "core::felt252"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ type: "struct",
1200
+ name: "stela::snip12::RefinanceOffer",
1201
+ members: [
1202
+ {
1203
+ name: "inscription_id",
1204
+ type: "core::integer::u256"
1205
+ },
1206
+ {
1207
+ name: "new_lender",
1208
+ type: "core::starknet::contract_address::ContractAddress"
1209
+ },
1210
+ {
1211
+ name: "new_debt_hash",
1212
+ type: "core::felt252"
1213
+ },
1214
+ {
1215
+ name: "new_interest_hash",
1216
+ type: "core::felt252"
1217
+ },
1218
+ {
1219
+ name: "new_debt_count",
1220
+ type: "core::integer::u32"
1221
+ },
1222
+ {
1223
+ name: "new_interest_count",
1224
+ type: "core::integer::u32"
1225
+ },
1226
+ {
1227
+ name: "new_duration",
1228
+ type: "core::integer::u64"
1229
+ },
1230
+ {
1231
+ name: "deadline",
1232
+ type: "core::integer::u64"
1233
+ },
1234
+ {
1235
+ name: "nonce",
1236
+ type: "core::felt252"
1237
+ }
1238
+ ]
1239
+ },
1240
+ {
1241
+ type: "struct",
1242
+ name: "stela::snip12::RefinanceApproval",
1243
+ members: [
1244
+ {
1245
+ name: "inscription_id",
1246
+ type: "core::integer::u256"
1247
+ },
1248
+ {
1249
+ name: "offer_hash",
1250
+ type: "core::felt252"
1251
+ },
1252
+ {
1253
+ name: "borrower",
1254
+ type: "core::starknet::contract_address::ContractAddress"
1255
+ },
1256
+ {
1257
+ name: "nonce",
1258
+ type: "core::felt252"
1055
1259
  }
1056
1260
  ]
1057
1261
  },
@@ -1604,6 +1808,206 @@ var stela_default = [
1604
1808
  ],
1605
1809
  outputs: [],
1606
1810
  state_mutability: "external"
1811
+ },
1812
+ {
1813
+ type: "function",
1814
+ name: "settle_collection",
1815
+ inputs: [
1816
+ {
1817
+ name: "offer",
1818
+ type: "stela::snip12::CollectionLendOffer"
1819
+ },
1820
+ {
1821
+ name: "acceptance",
1822
+ type: "stela::snip12::CollectionBorrowAcceptance"
1823
+ },
1824
+ {
1825
+ name: "debt_assets",
1826
+ type: "core::array::Array::<stela::types::asset::Asset>"
1827
+ },
1828
+ {
1829
+ name: "interest_assets",
1830
+ type: "core::array::Array::<stela::types::asset::Asset>"
1831
+ },
1832
+ {
1833
+ name: "lender_sig",
1834
+ type: "core::array::Array::<core::felt252>"
1835
+ },
1836
+ {
1837
+ name: "borrower_sig",
1838
+ type: "core::array::Array::<core::felt252>"
1839
+ }
1840
+ ],
1841
+ outputs: [],
1842
+ state_mutability: "external"
1843
+ },
1844
+ {
1845
+ type: "function",
1846
+ name: "commit_renegotiation",
1847
+ inputs: [
1848
+ {
1849
+ name: "inscription_id",
1850
+ type: "core::integer::u256"
1851
+ },
1852
+ {
1853
+ name: "proposal_hash",
1854
+ type: "core::felt252"
1855
+ }
1856
+ ],
1857
+ outputs: [],
1858
+ state_mutability: "external"
1859
+ },
1860
+ {
1861
+ type: "function",
1862
+ name: "execute_renegotiation",
1863
+ inputs: [
1864
+ {
1865
+ name: "inscription_id",
1866
+ type: "core::integer::u256"
1867
+ },
1868
+ {
1869
+ name: "proposal",
1870
+ type: "stela::snip12::RenegotiationProposal"
1871
+ },
1872
+ {
1873
+ name: "proposer_sig",
1874
+ type: "core::array::Array::<core::felt252>"
1875
+ },
1876
+ {
1877
+ name: "new_interest_assets",
1878
+ type: "core::array::Array::<stela::types::asset::Asset>"
1879
+ }
1880
+ ],
1881
+ outputs: [],
1882
+ state_mutability: "external"
1883
+ },
1884
+ {
1885
+ type: "function",
1886
+ name: "buy_collateral",
1887
+ inputs: [
1888
+ {
1889
+ name: "inscription_id",
1890
+ type: "core::integer::u256"
1891
+ },
1892
+ {
1893
+ name: "offer",
1894
+ type: "stela::snip12::CollateralSaleOffer"
1895
+ },
1896
+ {
1897
+ name: "borrower_sig",
1898
+ type: "core::array::Array::<core::felt252>"
1899
+ },
1900
+ {
1901
+ name: "sale_price",
1902
+ type: "core::integer::u256"
1903
+ }
1904
+ ],
1905
+ outputs: [],
1906
+ state_mutability: "external"
1907
+ },
1908
+ {
1909
+ type: "function",
1910
+ name: "refinance",
1911
+ inputs: [
1912
+ {
1913
+ name: "offer",
1914
+ type: "stela::snip12::RefinanceOffer"
1915
+ },
1916
+ {
1917
+ name: "new_debt_assets",
1918
+ type: "core::array::Array::<stela::types::asset::Asset>"
1919
+ },
1920
+ {
1921
+ name: "new_interest_assets",
1922
+ type: "core::array::Array::<stela::types::asset::Asset>"
1923
+ },
1924
+ {
1925
+ name: "new_lender_sig",
1926
+ type: "core::array::Array::<core::felt252>"
1927
+ },
1928
+ {
1929
+ name: "approval",
1930
+ type: "stela::snip12::RefinanceApproval"
1931
+ },
1932
+ {
1933
+ name: "borrower_sig",
1934
+ type: "core::array::Array::<core::felt252>"
1935
+ }
1936
+ ],
1937
+ outputs: [],
1938
+ state_mutability: "external"
1939
+ },
1940
+ {
1941
+ type: "function",
1942
+ name: "start_auction",
1943
+ inputs: [
1944
+ {
1945
+ name: "inscription_id",
1946
+ type: "core::integer::u256"
1947
+ }
1948
+ ],
1949
+ outputs: [],
1950
+ state_mutability: "external"
1951
+ },
1952
+ {
1953
+ type: "function",
1954
+ name: "bid",
1955
+ inputs: [
1956
+ {
1957
+ name: "inscription_id",
1958
+ type: "core::integer::u256"
1959
+ }
1960
+ ],
1961
+ outputs: [],
1962
+ state_mutability: "external"
1963
+ },
1964
+ {
1965
+ type: "function",
1966
+ name: "claim_collateral",
1967
+ inputs: [
1968
+ {
1969
+ name: "inscription_id",
1970
+ type: "core::integer::u256"
1971
+ }
1972
+ ],
1973
+ outputs: [],
1974
+ state_mutability: "external"
1975
+ },
1976
+ {
1977
+ type: "function",
1978
+ name: "get_auction_price",
1979
+ inputs: [
1980
+ {
1981
+ name: "inscription_id",
1982
+ type: "core::integer::u256"
1983
+ },
1984
+ {
1985
+ name: "debt_index",
1986
+ type: "core::integer::u32"
1987
+ }
1988
+ ],
1989
+ outputs: [
1990
+ {
1991
+ type: "core::integer::u256"
1992
+ }
1993
+ ],
1994
+ state_mutability: "view"
1995
+ },
1996
+ {
1997
+ type: "function",
1998
+ name: "get_auction_end_time",
1999
+ inputs: [
2000
+ {
2001
+ name: "inscription_id",
2002
+ type: "core::integer::u256"
2003
+ }
2004
+ ],
2005
+ outputs: [
2006
+ {
2007
+ type: "core::integer::u64"
2008
+ }
2009
+ ],
2010
+ state_mutability: "view"
1607
2011
  }
1608
2012
  ]
1609
2013
  },