@o2exchange/contracts 0.4.5-rc → 0.4.5-rc4

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.
Files changed (67) hide show
  1. package/dist/contracts/OrderBook.d.ts +1 -0
  2. package/dist/contracts/OrderBook.d.ts.map +1 -1
  3. package/dist/contracts/OrderBook.js +29 -23
  4. package/dist/contracts/OrderBook.js.map +1 -1
  5. package/dist/contracts/OrderBookFactory.js +1 -1
  6. package/dist/contracts/OrderBookFactory.js.map +1 -1
  7. package/dist/contracts/PropAccount.d.ts +398 -0
  8. package/dist/contracts/PropAccount.d.ts.map +1 -0
  9. package/dist/contracts/PropAccount.js +1301 -0
  10. package/dist/contracts/PropAccount.js.map +1 -0
  11. package/dist/contracts/PropAccountFactory.d.ts +9 -0
  12. package/dist/contracts/PropAccountFactory.d.ts.map +1 -0
  13. package/dist/contracts/PropAccountFactory.js +23 -0
  14. package/dist/contracts/PropAccountFactory.js.map +1 -0
  15. package/dist/contracts/PropAccountOracle.d.ts +190 -0
  16. package/dist/contracts/PropAccountOracle.d.ts.map +1 -0
  17. package/dist/contracts/PropAccountOracle.js +555 -0
  18. package/dist/contracts/PropAccountOracle.js.map +1 -0
  19. package/dist/contracts/PropAccountOracleFactory.d.ts +9 -0
  20. package/dist/contracts/PropAccountOracleFactory.d.ts.map +1 -0
  21. package/dist/contracts/PropAccountOracleFactory.js +23 -0
  22. package/dist/contracts/PropAccountOracleFactory.js.map +1 -0
  23. package/dist/contracts/PropAccountOracleProxy.d.ts +192 -0
  24. package/dist/contracts/PropAccountOracleProxy.d.ts.map +1 -0
  25. package/dist/contracts/PropAccountOracleProxy.js +432 -0
  26. package/dist/contracts/PropAccountOracleProxy.js.map +1 -0
  27. package/dist/contracts/PropAccountOracleProxyFactory.d.ts +9 -0
  28. package/dist/contracts/PropAccountOracleProxyFactory.d.ts.map +1 -0
  29. package/dist/contracts/PropAccountOracleProxyFactory.js +23 -0
  30. package/dist/contracts/PropAccountOracleProxyFactory.js.map +1 -0
  31. package/dist/contracts/PropAccountProxy.d.ts +191 -0
  32. package/dist/contracts/PropAccountProxy.d.ts.map +1 -0
  33. package/dist/contracts/PropAccountProxy.js +484 -0
  34. package/dist/contracts/PropAccountProxy.js.map +1 -0
  35. package/dist/contracts/PropAccountProxyFactory.d.ts +9 -0
  36. package/dist/contracts/PropAccountProxyFactory.d.ts.map +1 -0
  37. package/dist/contracts/PropAccountProxyFactory.js +23 -0
  38. package/dist/contracts/PropAccountProxyFactory.js.map +1 -0
  39. package/dist/contracts/PropMarginPool.d.ts +1216 -0
  40. package/dist/contracts/PropMarginPool.d.ts.map +1 -0
  41. package/dist/contracts/PropMarginPool.js +4057 -0
  42. package/dist/contracts/PropMarginPool.js.map +1 -0
  43. package/dist/contracts/PropMarginPoolFactory.d.ts +9 -0
  44. package/dist/contracts/PropMarginPoolFactory.d.ts.map +1 -0
  45. package/dist/contracts/PropMarginPoolFactory.js +23 -0
  46. package/dist/contracts/PropMarginPoolFactory.js.map +1 -0
  47. package/dist/contracts/PropMarginPoolMock.d.ts +1320 -0
  48. package/dist/contracts/PropMarginPoolMock.d.ts.map +1 -0
  49. package/dist/contracts/PropMarginPoolMock.js +4899 -0
  50. package/dist/contracts/PropMarginPoolMock.js.map +1 -0
  51. package/dist/contracts/PropMarginPoolMockFactory.d.ts +9 -0
  52. package/dist/contracts/PropMarginPoolMockFactory.d.ts.map +1 -0
  53. package/dist/contracts/PropMarginPoolMockFactory.js +23 -0
  54. package/dist/contracts/PropMarginPoolMockFactory.js.map +1 -0
  55. package/dist/contracts/PropMarginPoolProxy.d.ts +192 -0
  56. package/dist/contracts/PropMarginPoolProxy.d.ts.map +1 -0
  57. package/dist/contracts/PropMarginPoolProxy.js +432 -0
  58. package/dist/contracts/PropMarginPoolProxy.js.map +1 -0
  59. package/dist/contracts/PropMarginPoolProxyFactory.d.ts +9 -0
  60. package/dist/contracts/PropMarginPoolProxyFactory.d.ts.map +1 -0
  61. package/dist/contracts/PropMarginPoolProxyFactory.js +23 -0
  62. package/dist/contracts/PropMarginPoolProxyFactory.js.map +1 -0
  63. package/dist/contracts/index.d.ts +14 -0
  64. package/dist/contracts/index.d.ts.map +1 -1
  65. package/dist/contracts/index.js +14 -0
  66. package/dist/contracts/index.js.map +1 -1
  67. package/package.json +1 -1
@@ -0,0 +1,4057 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* eslint-disable max-classes-per-file */
3
+ /* eslint-disable @typescript-eslint/no-unused-vars */
4
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
5
+ /*
6
+ Fuels version: 0.103.0
7
+ Forc version: 0.70.2
8
+ Fuel-Core version: 0.48.0
9
+ */
10
+ import { Contract as __Contract, Interface } from "fuels";
11
+ export var DiscountScopeInput;
12
+ (function (DiscountScopeInput) {
13
+ DiscountScopeInput["FirstPremium"] = "FirstPremium";
14
+ DiscountScopeInput["AllPremiums"] = "AllPremiums";
15
+ })(DiscountScopeInput || (DiscountScopeInput = {}));
16
+ ;
17
+ export var DiscountScopeOutput;
18
+ (function (DiscountScopeOutput) {
19
+ DiscountScopeOutput["FirstPremium"] = "FirstPremium";
20
+ DiscountScopeOutput["AllPremiums"] = "AllPremiums";
21
+ })(DiscountScopeOutput || (DiscountScopeOutput = {}));
22
+ ;
23
+ export var PauseErrorInput;
24
+ (function (PauseErrorInput) {
25
+ PauseErrorInput["Paused"] = "Paused";
26
+ PauseErrorInput["NotPaused"] = "NotPaused";
27
+ })(PauseErrorInput || (PauseErrorInput = {}));
28
+ ;
29
+ export var PauseErrorOutput;
30
+ (function (PauseErrorOutput) {
31
+ PauseErrorOutput["Paused"] = "Paused";
32
+ PauseErrorOutput["NotPaused"] = "NotPaused";
33
+ })(PauseErrorOutput || (PauseErrorOutput = {}));
34
+ ;
35
+ export var ProlongPeriodInput;
36
+ (function (ProlongPeriodInput) {
37
+ ProlongPeriodInput["SixHours"] = "SixHours";
38
+ ProlongPeriodInput["Day"] = "Day";
39
+ ProlongPeriodInput["Week"] = "Week";
40
+ ProlongPeriodInput["Month"] = "Month";
41
+ })(ProlongPeriodInput || (ProlongPeriodInput = {}));
42
+ ;
43
+ export var ProlongPeriodOutput;
44
+ (function (ProlongPeriodOutput) {
45
+ ProlongPeriodOutput["SixHours"] = "SixHours";
46
+ ProlongPeriodOutput["Day"] = "Day";
47
+ ProlongPeriodOutput["Week"] = "Week";
48
+ ProlongPeriodOutput["Month"] = "Month";
49
+ })(ProlongPeriodOutput || (ProlongPeriodOutput = {}));
50
+ ;
51
+ export var ProlongTriggerInput;
52
+ (function (ProlongTriggerInput) {
53
+ ProlongTriggerInput["User"] = "User";
54
+ ProlongTriggerInput["Auto"] = "Auto";
55
+ })(ProlongTriggerInput || (ProlongTriggerInput = {}));
56
+ ;
57
+ export var ProlongTriggerOutput;
58
+ (function (ProlongTriggerOutput) {
59
+ ProlongTriggerOutput["User"] = "User";
60
+ ProlongTriggerOutput["Auto"] = "Auto";
61
+ })(ProlongTriggerOutput || (ProlongTriggerOutput = {}));
62
+ ;
63
+ export var PropMarginPoolErrorInput;
64
+ (function (PropMarginPoolErrorInput) {
65
+ PropMarginPoolErrorInput["AlreadyInitialized"] = "AlreadyInitialized";
66
+ PropMarginPoolErrorInput["CallerNotContract"] = "CallerNotContract";
67
+ PropMarginPoolErrorInput["NotPropAccount"] = "NotPropAccount";
68
+ PropMarginPoolErrorInput["NoActiveSession"] = "NoActiveSession";
69
+ PropMarginPoolErrorInput["SessionActive"] = "SessionActive";
70
+ PropMarginPoolErrorInput["SessionEnded"] = "SessionEnded";
71
+ PropMarginPoolErrorInput["WrongAsset"] = "WrongAsset";
72
+ PropMarginPoolErrorInput["AmountIsZero"] = "AmountIsZero";
73
+ PropMarginPoolErrorInput["CollateralTooSmall"] = "CollateralTooSmall";
74
+ PropMarginPoolErrorInput["AccountNotEmpty"] = "AccountNotEmpty";
75
+ PropMarginPoolErrorInput["AssetNotInTier"] = "AssetNotInTier";
76
+ PropMarginPoolErrorInput["UseDraw"] = "UseDraw";
77
+ PropMarginPoolErrorInput["UseRepayQuote"] = "UseRepayQuote";
78
+ PropMarginPoolErrorInput["LoanCapExceeded"] = "LoanCapExceeded";
79
+ PropMarginPoolErrorInput["InsufficientInventory"] = "InsufficientInventory";
80
+ PropMarginPoolErrorInput["InsufficientBalance"] = "InsufficientBalance";
81
+ PropMarginPoolErrorInput["BelowTierCollateral"] = "BelowTierCollateral";
82
+ PropMarginPoolErrorInput["OverReturn"] = "OverReturn";
83
+ PropMarginPoolErrorInput["OverRepay"] = "OverRepay";
84
+ PropMarginPoolErrorInput["QuoteOutstanding"] = "QuoteOutstanding";
85
+ PropMarginPoolErrorInput["DebtsOutstanding"] = "DebtsOutstanding";
86
+ PropMarginPoolErrorInput["CashShortOfDrawn"] = "CashShortOfDrawn";
87
+ PropMarginPoolErrorInput["FundOtherAccount"] = "FundOtherAccount";
88
+ PropMarginPoolErrorInput["InvalidTier"] = "InvalidTier";
89
+ PropMarginPoolErrorInput["InvalidTierVersion"] = "InvalidTierVersion";
90
+ PropMarginPoolErrorInput["InvalidTierParams"] = "InvalidTierParams";
91
+ PropMarginPoolErrorInput["InvalidLeverage"] = "InvalidLeverage";
92
+ PropMarginPoolErrorInput["BufferBelowMaintenance"] = "BufferBelowMaintenance";
93
+ PropMarginPoolErrorInput["BufferAboveCap"] = "BufferAboveCap";
94
+ PropMarginPoolErrorInput["SessionUnusableAtOpen"] = "SessionUnusableAtOpen";
95
+ PropMarginPoolErrorInput["InvalidBook"] = "InvalidBook";
96
+ PropMarginPoolErrorInput["TooManyBooks"] = "TooManyBooks";
97
+ PropMarginPoolErrorInput["PriceMissing"] = "PriceMissing";
98
+ PropMarginPoolErrorInput["PriceStale"] = "PriceStale";
99
+ PropMarginPoolErrorInput["PriceInvalid"] = "PriceInvalid";
100
+ PropMarginPoolErrorInput["PriceDecimalsChanged"] = "PriceDecimalsChanged";
101
+ PropMarginPoolErrorInput["InvalidRegistry"] = "InvalidRegistry";
102
+ PropMarginPoolErrorInput["InvalidPriceFeed"] = "InvalidPriceFeed";
103
+ PropMarginPoolErrorInput["InvalidPlatformPayout"] = "InvalidPlatformPayout";
104
+ PropMarginPoolErrorInput["InvalidLiquidator"] = "InvalidLiquidator";
105
+ PropMarginPoolErrorInput["ValueOverflow"] = "ValueOverflow";
106
+ PropMarginPoolErrorInput["PeriodNotOffered"] = "PeriodNotOffered";
107
+ PropMarginPoolErrorInput["AutoProlongDisabled"] = "AutoProlongDisabled";
108
+ PropMarginPoolErrorInput["AutoProlongPeriodInvalid"] = "AutoProlongPeriodInvalid";
109
+ PropMarginPoolErrorInput["TimesIsZero"] = "TimesIsZero";
110
+ PropMarginPoolErrorInput["ProlongAfterExpiry"] = "ProlongAfterExpiry";
111
+ PropMarginPoolErrorInput["AutoProlongNotDue"] = "AutoProlongNotDue";
112
+ PropMarginPoolErrorInput["BookNotDrained"] = "BookNotDrained";
113
+ PropMarginPoolErrorInput["SweepIncomplete"] = "SweepIncomplete";
114
+ PropMarginPoolErrorInput["PositionsOutstanding"] = "PositionsOutstanding";
115
+ PropMarginPoolErrorInput["NotLiquidatable"] = "NotLiquidatable";
116
+ PropMarginPoolErrorInput["NotExpired"] = "NotExpired";
117
+ PropMarginPoolErrorInput["NoBestBid"] = "NoBestBid";
118
+ PropMarginPoolErrorInput["AssetNotSupported"] = "AssetNotSupported";
119
+ PropMarginPoolErrorInput["ProlongAboveCollateral"] = "ProlongAboveCollateral";
120
+ PropMarginPoolErrorInput["InvalidDiscount"] = "InvalidDiscount";
121
+ PropMarginPoolErrorInput["TierDisabled"] = "TierDisabled";
122
+ PropMarginPoolErrorInput["TopUpsDisabled"] = "TopUpsDisabled";
123
+ PropMarginPoolErrorInput["TurboEntryNotExact"] = "TurboEntryNotExact";
124
+ PropMarginPoolErrorInput["InvalidTurboTerms"] = "InvalidTurboTerms";
125
+ PropMarginPoolErrorInput["RolloverNotOffered"] = "RolloverNotOffered";
126
+ PropMarginPoolErrorInput["RolloverNotDue"] = "RolloverNotDue";
127
+ PropMarginPoolErrorInput["RolloverNotEarned"] = "RolloverNotEarned";
128
+ PropMarginPoolErrorInput["RolloverExhausted"] = "RolloverExhausted";
129
+ PropMarginPoolErrorInput["RolloverPending"] = "RolloverPending";
130
+ PropMarginPoolErrorInput["UseExpireOrRollover"] = "UseExpireOrRollover";
131
+ PropMarginPoolErrorInput["UsePermissionlessExpiry"] = "UsePermissionlessExpiry";
132
+ PropMarginPoolErrorInput["InvalidExpiryCosigner"] = "InvalidExpiryCosigner";
133
+ PropMarginPoolErrorInput["ExpiryCosignerNotSet"] = "ExpiryCosignerNotSet";
134
+ })(PropMarginPoolErrorInput || (PropMarginPoolErrorInput = {}));
135
+ ;
136
+ export var PropMarginPoolErrorOutput;
137
+ (function (PropMarginPoolErrorOutput) {
138
+ PropMarginPoolErrorOutput["AlreadyInitialized"] = "AlreadyInitialized";
139
+ PropMarginPoolErrorOutput["CallerNotContract"] = "CallerNotContract";
140
+ PropMarginPoolErrorOutput["NotPropAccount"] = "NotPropAccount";
141
+ PropMarginPoolErrorOutput["NoActiveSession"] = "NoActiveSession";
142
+ PropMarginPoolErrorOutput["SessionActive"] = "SessionActive";
143
+ PropMarginPoolErrorOutput["SessionEnded"] = "SessionEnded";
144
+ PropMarginPoolErrorOutput["WrongAsset"] = "WrongAsset";
145
+ PropMarginPoolErrorOutput["AmountIsZero"] = "AmountIsZero";
146
+ PropMarginPoolErrorOutput["CollateralTooSmall"] = "CollateralTooSmall";
147
+ PropMarginPoolErrorOutput["AccountNotEmpty"] = "AccountNotEmpty";
148
+ PropMarginPoolErrorOutput["AssetNotInTier"] = "AssetNotInTier";
149
+ PropMarginPoolErrorOutput["UseDraw"] = "UseDraw";
150
+ PropMarginPoolErrorOutput["UseRepayQuote"] = "UseRepayQuote";
151
+ PropMarginPoolErrorOutput["LoanCapExceeded"] = "LoanCapExceeded";
152
+ PropMarginPoolErrorOutput["InsufficientInventory"] = "InsufficientInventory";
153
+ PropMarginPoolErrorOutput["InsufficientBalance"] = "InsufficientBalance";
154
+ PropMarginPoolErrorOutput["BelowTierCollateral"] = "BelowTierCollateral";
155
+ PropMarginPoolErrorOutput["OverReturn"] = "OverReturn";
156
+ PropMarginPoolErrorOutput["OverRepay"] = "OverRepay";
157
+ PropMarginPoolErrorOutput["QuoteOutstanding"] = "QuoteOutstanding";
158
+ PropMarginPoolErrorOutput["DebtsOutstanding"] = "DebtsOutstanding";
159
+ PropMarginPoolErrorOutput["CashShortOfDrawn"] = "CashShortOfDrawn";
160
+ PropMarginPoolErrorOutput["FundOtherAccount"] = "FundOtherAccount";
161
+ PropMarginPoolErrorOutput["InvalidTier"] = "InvalidTier";
162
+ PropMarginPoolErrorOutput["InvalidTierVersion"] = "InvalidTierVersion";
163
+ PropMarginPoolErrorOutput["InvalidTierParams"] = "InvalidTierParams";
164
+ PropMarginPoolErrorOutput["InvalidLeverage"] = "InvalidLeverage";
165
+ PropMarginPoolErrorOutput["BufferBelowMaintenance"] = "BufferBelowMaintenance";
166
+ PropMarginPoolErrorOutput["BufferAboveCap"] = "BufferAboveCap";
167
+ PropMarginPoolErrorOutput["SessionUnusableAtOpen"] = "SessionUnusableAtOpen";
168
+ PropMarginPoolErrorOutput["InvalidBook"] = "InvalidBook";
169
+ PropMarginPoolErrorOutput["TooManyBooks"] = "TooManyBooks";
170
+ PropMarginPoolErrorOutput["PriceMissing"] = "PriceMissing";
171
+ PropMarginPoolErrorOutput["PriceStale"] = "PriceStale";
172
+ PropMarginPoolErrorOutput["PriceInvalid"] = "PriceInvalid";
173
+ PropMarginPoolErrorOutput["PriceDecimalsChanged"] = "PriceDecimalsChanged";
174
+ PropMarginPoolErrorOutput["InvalidRegistry"] = "InvalidRegistry";
175
+ PropMarginPoolErrorOutput["InvalidPriceFeed"] = "InvalidPriceFeed";
176
+ PropMarginPoolErrorOutput["InvalidPlatformPayout"] = "InvalidPlatformPayout";
177
+ PropMarginPoolErrorOutput["InvalidLiquidator"] = "InvalidLiquidator";
178
+ PropMarginPoolErrorOutput["ValueOverflow"] = "ValueOverflow";
179
+ PropMarginPoolErrorOutput["PeriodNotOffered"] = "PeriodNotOffered";
180
+ PropMarginPoolErrorOutput["AutoProlongDisabled"] = "AutoProlongDisabled";
181
+ PropMarginPoolErrorOutput["AutoProlongPeriodInvalid"] = "AutoProlongPeriodInvalid";
182
+ PropMarginPoolErrorOutput["TimesIsZero"] = "TimesIsZero";
183
+ PropMarginPoolErrorOutput["ProlongAfterExpiry"] = "ProlongAfterExpiry";
184
+ PropMarginPoolErrorOutput["AutoProlongNotDue"] = "AutoProlongNotDue";
185
+ PropMarginPoolErrorOutput["BookNotDrained"] = "BookNotDrained";
186
+ PropMarginPoolErrorOutput["SweepIncomplete"] = "SweepIncomplete";
187
+ PropMarginPoolErrorOutput["PositionsOutstanding"] = "PositionsOutstanding";
188
+ PropMarginPoolErrorOutput["NotLiquidatable"] = "NotLiquidatable";
189
+ PropMarginPoolErrorOutput["NotExpired"] = "NotExpired";
190
+ PropMarginPoolErrorOutput["NoBestBid"] = "NoBestBid";
191
+ PropMarginPoolErrorOutput["AssetNotSupported"] = "AssetNotSupported";
192
+ PropMarginPoolErrorOutput["ProlongAboveCollateral"] = "ProlongAboveCollateral";
193
+ PropMarginPoolErrorOutput["InvalidDiscount"] = "InvalidDiscount";
194
+ PropMarginPoolErrorOutput["TierDisabled"] = "TierDisabled";
195
+ PropMarginPoolErrorOutput["TopUpsDisabled"] = "TopUpsDisabled";
196
+ PropMarginPoolErrorOutput["TurboEntryNotExact"] = "TurboEntryNotExact";
197
+ PropMarginPoolErrorOutput["InvalidTurboTerms"] = "InvalidTurboTerms";
198
+ PropMarginPoolErrorOutput["RolloverNotOffered"] = "RolloverNotOffered";
199
+ PropMarginPoolErrorOutput["RolloverNotDue"] = "RolloverNotDue";
200
+ PropMarginPoolErrorOutput["RolloverNotEarned"] = "RolloverNotEarned";
201
+ PropMarginPoolErrorOutput["RolloverExhausted"] = "RolloverExhausted";
202
+ PropMarginPoolErrorOutput["RolloverPending"] = "RolloverPending";
203
+ PropMarginPoolErrorOutput["UseExpireOrRollover"] = "UseExpireOrRollover";
204
+ PropMarginPoolErrorOutput["UsePermissionlessExpiry"] = "UsePermissionlessExpiry";
205
+ PropMarginPoolErrorOutput["InvalidExpiryCosigner"] = "InvalidExpiryCosigner";
206
+ PropMarginPoolErrorOutput["ExpiryCosignerNotSet"] = "ExpiryCosignerNotSet";
207
+ })(PropMarginPoolErrorOutput || (PropMarginPoolErrorOutput = {}));
208
+ ;
209
+ export var SettlementReasonInput;
210
+ (function (SettlementReasonInput) {
211
+ SettlementReasonInput["UserClose"] = "UserClose";
212
+ SettlementReasonInput["Expiry"] = "Expiry";
213
+ SettlementReasonInput["Liquidation"] = "Liquidation";
214
+ })(SettlementReasonInput || (SettlementReasonInput = {}));
215
+ ;
216
+ export var SettlementReasonOutput;
217
+ (function (SettlementReasonOutput) {
218
+ SettlementReasonOutput["UserClose"] = "UserClose";
219
+ SettlementReasonOutput["Expiry"] = "Expiry";
220
+ SettlementReasonOutput["Liquidation"] = "Liquidation";
221
+ })(SettlementReasonOutput || (SettlementReasonOutput = {}));
222
+ ;
223
+ const abi = {
224
+ "programType": "contract",
225
+ "specVersion": "1.2",
226
+ "encodingVersion": "1",
227
+ "concreteTypes": [
228
+ {
229
+ "type": "()",
230
+ "concreteTypeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
231
+ },
232
+ {
233
+ "type": "bool",
234
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
235
+ },
236
+ {
237
+ "type": "enum contract_libs::access_control::AccessControlError",
238
+ "concreteTypeId": "2285ad920393160f43816bfa64a891b1956e2bbd066346d01638db4aaa81cfb9",
239
+ "metadataTypeId": 4
240
+ },
241
+ {
242
+ "type": "enum contract_schema::prop_margin_pool::PropMarginPoolError",
243
+ "concreteTypeId": "adab938d9a019e906a13864731c1cec8210724445341b91a6c7b194a74eed69f",
244
+ "metadataTypeId": 7
245
+ },
246
+ {
247
+ "type": "enum contract_schema::prop_period::ProlongPeriod",
248
+ "concreteTypeId": "b744420bc56bde6e28d903d531e72762ae850514fc19209fda130ddbe6a380a2",
249
+ "metadataTypeId": 9
250
+ },
251
+ {
252
+ "type": "enum pausable::errors::PauseError",
253
+ "concreteTypeId": "455b46a49016f5c03c18ce54b969ea3d0d33c9b00263b3dcc36aa8da27558b8a",
254
+ "metadataTypeId": 10
255
+ },
256
+ {
257
+ "type": "enum std::crypto::signature::Signature",
258
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39",
259
+ "metadataTypeId": 11
260
+ },
261
+ {
262
+ "type": "enum std::identity::Identity",
263
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
264
+ "metadataTypeId": 12
265
+ },
266
+ {
267
+ "type": "enum std::option::Option<enum contract_schema::prop_period::ProlongPeriod>",
268
+ "concreteTypeId": "3b9275f7d9b0bac2221651c432d1a3b3bb955376a54560c74f4b141eb3fb98c9",
269
+ "metadataTypeId": 13,
270
+ "typeArguments": [
271
+ "b744420bc56bde6e28d903d531e72762ae850514fc19209fda130ddbe6a380a2"
272
+ ]
273
+ },
274
+ {
275
+ "type": "enum std::option::Option<struct contract_schema::prop_margin_pool::RolloverView>",
276
+ "concreteTypeId": "a6854c8e9915d523bdcbd5cc374fe6fb04b9107f327d1472d43ef86e40062d58",
277
+ "metadataTypeId": 13,
278
+ "typeArguments": [
279
+ "48c9f4c48ad5c14a7d80ca385e43e10882a3f3ada6e29c9bbf71f9b74891d65d"
280
+ ]
281
+ },
282
+ {
283
+ "type": "enum std::option::Option<struct contract_schema::prop_margin_pool::SessionView>",
284
+ "concreteTypeId": "195f12aebd477c4d6feffbc37a5108db8c87f8860b5963983477413399ea2c1e",
285
+ "metadataTypeId": 13,
286
+ "typeArguments": [
287
+ "e9473ab389805fcf26e6d8b70f276edc61cf97ddb23e8e4b68541b259cbae3b8"
288
+ ]
289
+ },
290
+ {
291
+ "type": "enum std::option::Option<struct contract_schema::prop_margin_pool::TierParams>",
292
+ "concreteTypeId": "656e8386dfb03ba77d21a3068c40f0d5d52c13db62a52a5ceb2d2aa85f0ee0f5",
293
+ "metadataTypeId": 13,
294
+ "typeArguments": [
295
+ "4514d9f6a6dd0344fb8d6a573f8d4371decb78e70e2a907c9cc7b3c189080841"
296
+ ]
297
+ },
298
+ {
299
+ "type": "enum std::option::Option<struct contract_schema::prop_margin_pool::TurboTerms>",
300
+ "concreteTypeId": "8c6e5c2bbb6c5d82ce576c05c52e3996f825e3c37c761b81cf40ffc4602ad684",
301
+ "metadataTypeId": 13,
302
+ "typeArguments": [
303
+ "756ac75abc0547feed71f2a44098169495dc84d5fbdaef83d885b0cce5d580cc"
304
+ ]
305
+ },
306
+ {
307
+ "type": "enum std::option::Option<struct contract_schema::prop_margin_pool::UserDiscount>",
308
+ "concreteTypeId": "0b936e35080f26fd23fa0fbc9883d7080b504aaa824a8d69eb0217ddbf6176a4",
309
+ "metadataTypeId": 13,
310
+ "typeArguments": [
311
+ "f479d6fcd2767886d7910eea1d6b44a784595d50bf31fed3c0cc869da1f92806"
312
+ ]
313
+ },
314
+ {
315
+ "type": "enum std::option::Option<struct std::address::Address>",
316
+ "concreteTypeId": "8f44be37f59226eedaa8ba576d6674575f420f34a03f5d452cb9886ef9d38214",
317
+ "metadataTypeId": 13,
318
+ "typeArguments": [
319
+ "f597b637c3b0f588fb8d7086c6f4735caa3122b85f0423b82e489f9bb58e2308"
320
+ ]
321
+ },
322
+ {
323
+ "type": "enum std::option::Option<u32>",
324
+ "concreteTypeId": "97a75a6d6e892f11f5032fa516e39675b76377c3313d64f465a2c77c34a9e600",
325
+ "metadataTypeId": 13,
326
+ "typeArguments": [
327
+ "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
328
+ ]
329
+ },
330
+ {
331
+ "type": "enum std::option::Option<u64>",
332
+ "concreteTypeId": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d",
333
+ "metadataTypeId": 13,
334
+ "typeArguments": [
335
+ "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
336
+ ]
337
+ },
338
+ {
339
+ "type": "struct contract_libs::access_control::RoleGrantedEvent",
340
+ "concreteTypeId": "564661938244954c8836434b2cf26c3495e0538f78f281fc531f82003ef55d42",
341
+ "metadataTypeId": 16
342
+ },
343
+ {
344
+ "type": "struct contract_libs::access_control::RoleRevokedEvent",
345
+ "concreteTypeId": "e3693daf8fe6223e6a97667025b9fc906b02ca79ea87b1376058b0be52c7778d",
346
+ "metadataTypeId": 17
347
+ },
348
+ {
349
+ "type": "struct contract_schema::prop_account::PropOrderBookCleanup",
350
+ "concreteTypeId": "c150f7d4d1a7ba5ffc1f21eafb110037c5a3b107608e2652d35b7edc555ccde2",
351
+ "metadataTypeId": 18
352
+ },
353
+ {
354
+ "type": "struct contract_schema::prop_margin_pool::AssetBorrowed",
355
+ "concreteTypeId": "1431d9859308f8805c398656c37808f1e757e0b0b069aba1bc265a07da382c17",
356
+ "metadataTypeId": 19
357
+ },
358
+ {
359
+ "type": "struct contract_schema::prop_margin_pool::AssetRepaid",
360
+ "concreteTypeId": "d082548fb769148507c3eb36d4f039e87c91a6947dd3da299d9e4246d4aff634",
361
+ "metadataTypeId": 20
362
+ },
363
+ {
364
+ "type": "struct contract_schema::prop_margin_pool::AutoProlongChanged",
365
+ "concreteTypeId": "a71429860ed4d4d35c22389c7dfc759df9df29f0fd2f7e9a3995d9ba2b781b53",
366
+ "metadataTypeId": 21
367
+ },
368
+ {
369
+ "type": "struct contract_schema::prop_margin_pool::BaseDebtRepaidFromCollateral",
370
+ "concreteTypeId": "e6d4c74d0399c142f512c0821bc8c248c9d7b9f0d370d9b1eeac6dad489c0e75",
371
+ "metadataTypeId": 22
372
+ },
373
+ {
374
+ "type": "struct contract_schema::prop_margin_pool::CollateralAdded",
375
+ "concreteTypeId": "8e08bf4c13001c457482f0c101352759061dec92b19e63119adff05072f82f78",
376
+ "metadataTypeId": 23
377
+ },
378
+ {
379
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolLiquidatorChanged",
380
+ "concreteTypeId": "618e7c2bba5913f8756a2b64655023f57316dcf59752e837bd0cd2dbfae7f0f0",
381
+ "metadataTypeId": 24
382
+ },
383
+ {
384
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPauseChanged",
385
+ "concreteTypeId": "5147b54d46333ff70e73dcbb1dd2645b353ed91b3ee802589a064033720b8db6",
386
+ "metadataTypeId": 25
387
+ },
388
+ {
389
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPlatformPayoutChanged",
390
+ "concreteTypeId": "bd3532151a41784e9f20402e1f532a784483d642628fc0f4bd77316d236e076a",
391
+ "metadataTypeId": 26
392
+ },
393
+ {
394
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPriceFeedChanged",
395
+ "concreteTypeId": "e67ef99435be97bc9449c82c1b336087fb2229d27680e02e934dc0ac6ce38d86",
396
+ "metadataTypeId": 27
397
+ },
398
+ {
399
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolRegistryChanged",
400
+ "concreteTypeId": "3ddfdcaffa09121b072ff8f41a532d2156bb23e8309acd9aa56aac205a2b90b2",
401
+ "metadataTypeId": 28
402
+ },
403
+ {
404
+ "type": "struct contract_schema::prop_margin_pool::MarginWithdrawn",
405
+ "concreteTypeId": "fcf040889d4a874f96876407c70c5777ff94880dd884e10a90ad454ee2386e76",
406
+ "metadataTypeId": 29
407
+ },
408
+ {
409
+ "type": "struct contract_schema::prop_margin_pool::QuoteDrawn",
410
+ "concreteTypeId": "cef652777e5883399519b5f2ddeb264e106de9bca7b86f50bc64302a29451ba8",
411
+ "metadataTypeId": 30
412
+ },
413
+ {
414
+ "type": "struct contract_schema::prop_margin_pool::QuoteRepaidFromCollateral",
415
+ "concreteTypeId": "a07d395e4ed24d99e538ba7eaea20f99806a77c4bd9f4ac6c1488f9ccf349ef1",
416
+ "metadataTypeId": 31
417
+ },
418
+ {
419
+ "type": "struct contract_schema::prop_margin_pool::QuoteReturned",
420
+ "concreteTypeId": "2442d47c55be4962ca0763d3e24b3082641f3085e2be89002e423fbdac520a49",
421
+ "metadataTypeId": 32
422
+ },
423
+ {
424
+ "type": "struct contract_schema::prop_margin_pool::RolloverView",
425
+ "concreteTypeId": "48c9f4c48ad5c14a7d80ca385e43e10882a3f3ada6e29c9bbf71f9b74891d65d",
426
+ "metadataTypeId": 33
427
+ },
428
+ {
429
+ "type": "struct contract_schema::prop_margin_pool::RolloverWithdrawalRecorded",
430
+ "concreteTypeId": "532c88bac26c85742e65ccb7d37979e658775f3c621544ce2b8f206d584af8af",
431
+ "metadataTypeId": 34
432
+ },
433
+ {
434
+ "type": "struct contract_schema::prop_margin_pool::SessionClosed",
435
+ "concreteTypeId": "88ed44ff45a8906c6beefd3c81c9859ead9f36aac2e9b06912a7ae83cbb0628c",
436
+ "metadataTypeId": 35
437
+ },
438
+ {
439
+ "type": "struct contract_schema::prop_margin_pool::SessionLines",
440
+ "concreteTypeId": "a959a7a0807e375d81a61749a4dfd785b15566131fd25f7c81d2b756f748fe3d",
441
+ "metadataTypeId": 36
442
+ },
443
+ {
444
+ "type": "struct contract_schema::prop_margin_pool::SessionOpened",
445
+ "concreteTypeId": "85946d12004e9132da992025dfcf846ed2fa2d4e13b6cf0100466afa470cd67f",
446
+ "metadataTypeId": 37
447
+ },
448
+ {
449
+ "type": "struct contract_schema::prop_margin_pool::SessionProlonged",
450
+ "concreteTypeId": "93da234a5a59539605b94f98140ee3d7586ad3cbc4ce4693c2f71fadf8638318",
451
+ "metadataTypeId": 38
452
+ },
453
+ {
454
+ "type": "struct contract_schema::prop_margin_pool::SessionRolledOver",
455
+ "concreteTypeId": "f4feec76a5c2233e9e68afb7eb61f8ab3892b44014a18c6a25174917e7bf8810",
456
+ "metadataTypeId": 39
457
+ },
458
+ {
459
+ "type": "struct contract_schema::prop_margin_pool::SessionSeized",
460
+ "concreteTypeId": "d75508c0fe58a3bbf57a29d9387119c6238c8bf50f81b4a1f7a7d90b2b0b010a",
461
+ "metadataTypeId": 40
462
+ },
463
+ {
464
+ "type": "struct contract_schema::prop_margin_pool::SessionView",
465
+ "concreteTypeId": "e9473ab389805fcf26e6d8b70f276edc61cf97ddb23e8e4b68541b259cbae3b8",
466
+ "metadataTypeId": 41
467
+ },
468
+ {
469
+ "type": "struct contract_schema::prop_margin_pool::SettlementReceived",
470
+ "concreteTypeId": "839ed879b9fda2421ed22145534f8749aa9ffd32c4fe8d6f9d219b9de2fe0d48",
471
+ "metadataTypeId": 42
472
+ },
473
+ {
474
+ "type": "struct contract_schema::prop_margin_pool::TicketSettled",
475
+ "concreteTypeId": "5c852b3a7f63c0036b492e8bdfff446c35ab6392447eaceab832807a28c07abc",
476
+ "metadataTypeId": 43
477
+ },
478
+ {
479
+ "type": "struct contract_schema::prop_margin_pool::TierBooksAdded",
480
+ "concreteTypeId": "71f45659d1da847f7eedb0d56ee56e49eca1073a2b279dd5dcefd6233a5f8c8f",
481
+ "metadataTypeId": 44
482
+ },
483
+ {
484
+ "type": "struct contract_schema::prop_margin_pool::TierEnabledChanged",
485
+ "concreteTypeId": "460b33d171d0b146e78150be7a9a967e4a5bba2c93bfbb33cc4c20ce7196fa63",
486
+ "metadataTypeId": 45
487
+ },
488
+ {
489
+ "type": "struct contract_schema::prop_margin_pool::TierParams",
490
+ "concreteTypeId": "4514d9f6a6dd0344fb8d6a573f8d4371decb78e70e2a907c9cc7b3c189080841",
491
+ "metadataTypeId": 46
492
+ },
493
+ {
494
+ "type": "struct contract_schema::prop_margin_pool::TierVersionPublished",
495
+ "concreteTypeId": "aaf36b2924b051521d649c120bdfc7bdb461abfb6531a5c37823f2bfcc024174",
496
+ "metadataTypeId": 47
497
+ },
498
+ {
499
+ "type": "struct contract_schema::prop_margin_pool::TierVersionPublishedV2",
500
+ "concreteTypeId": "92f323400266b711dc630732cb484cabd5e5e0259d5027a3b8ad3fed4b2f9936",
501
+ "metadataTypeId": 48
502
+ },
503
+ {
504
+ "type": "struct contract_schema::prop_margin_pool::TurboTerms",
505
+ "concreteTypeId": "756ac75abc0547feed71f2a44098169495dc84d5fbdaef83d885b0cce5d580cc",
506
+ "metadataTypeId": 49
507
+ },
508
+ {
509
+ "type": "struct contract_schema::prop_margin_pool::UserDiscount",
510
+ "concreteTypeId": "f479d6fcd2767886d7910eea1d6b44a784595d50bf31fed3c0cc869da1f92806",
511
+ "metadataTypeId": 50
512
+ },
513
+ {
514
+ "type": "struct contract_schema::prop_margin_pool::UserDiscountChanged",
515
+ "concreteTypeId": "47fa186af0d359d9cc8a9d356bd1a3d0e9d5dabea8bae39bb44f6f0a7b71fc4c",
516
+ "metadataTypeId": 51
517
+ },
518
+ {
519
+ "type": "struct contract_schema::prop_margin_pool::UserDiscountsRemoved",
520
+ "concreteTypeId": "b783aec11322c063e9d012c4942055569ade8a9493c8f31dd93b030af966938c",
521
+ "metadataTypeId": 52
522
+ },
523
+ {
524
+ "type": "struct pausable::events::PauseEvent",
525
+ "concreteTypeId": "692983a9aba767e36b5014d3eb842447c736e341cc3b30fcb051b1f5a3d5f80a",
526
+ "metadataTypeId": 53
527
+ },
528
+ {
529
+ "type": "struct pausable::events::UnpauseEvent",
530
+ "concreteTypeId": "0026d386ad84e75b525bec3e7c8b6a63df3fcd108a8c4b26438c8a7a2e2c218b",
531
+ "metadataTypeId": 54
532
+ },
533
+ {
534
+ "type": "struct std::address::Address",
535
+ "concreteTypeId": "f597b637c3b0f588fb8d7086c6f4735caa3122b85f0423b82e489f9bb58e2308",
536
+ "metadataTypeId": 55
537
+ },
538
+ {
539
+ "type": "struct std::asset_id::AssetId",
540
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
541
+ "metadataTypeId": 56
542
+ },
543
+ {
544
+ "type": "struct std::contract_id::ContractId",
545
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
546
+ "metadataTypeId": 57
547
+ },
548
+ {
549
+ "type": "struct std::vec::Vec<struct contract_schema::prop_account::PropOrderBookCleanup>",
550
+ "concreteTypeId": "098b9de8dbe7e11fe1fc48274febeeb9eb46a1cabf8505ce43e75740a6becd44",
551
+ "metadataTypeId": 63,
552
+ "typeArguments": [
553
+ "c150f7d4d1a7ba5ffc1f21eafb110037c5a3b107608e2652d35b7edc555ccde2"
554
+ ]
555
+ },
556
+ {
557
+ "type": "struct std::vec::Vec<struct std::asset_id::AssetId>",
558
+ "concreteTypeId": "8b2275934873f381a769c82334e6f66595eeb350d8b2dd012eef4d9bb117942b",
559
+ "metadataTypeId": 63,
560
+ "typeArguments": [
561
+ "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
562
+ ]
563
+ },
564
+ {
565
+ "type": "struct std::vec::Vec<struct std::contract_id::ContractId>",
566
+ "concreteTypeId": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211",
567
+ "metadataTypeId": 63,
568
+ "typeArguments": [
569
+ "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
570
+ ]
571
+ },
572
+ {
573
+ "type": "u32",
574
+ "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
575
+ },
576
+ {
577
+ "type": "u64",
578
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
579
+ },
580
+ {
581
+ "type": "u8",
582
+ "concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b"
583
+ }
584
+ ],
585
+ "metadataTypes": [
586
+ {
587
+ "type": "(_, _)",
588
+ "metadataTypeId": 0,
589
+ "components": [
590
+ {
591
+ "name": "__tuple_element",
592
+ "typeId": 56
593
+ },
594
+ {
595
+ "name": "__tuple_element",
596
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "type": "[_; 4]",
602
+ "metadataTypeId": 1,
603
+ "components": [
604
+ {
605
+ "name": "__array_element",
606
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
607
+ }
608
+ ]
609
+ },
610
+ {
611
+ "type": "[_; 64]",
612
+ "metadataTypeId": 2,
613
+ "components": [
614
+ {
615
+ "name": "__array_element",
616
+ "typeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b"
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ "type": "b256",
622
+ "metadataTypeId": 3
623
+ },
624
+ {
625
+ "type": "enum contract_libs::access_control::AccessControlError",
626
+ "metadataTypeId": 4,
627
+ "components": [
628
+ {
629
+ "name": "AccessControlNotAuthorized",
630
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
631
+ },
632
+ {
633
+ "name": "AccessControlNoMsgSender",
634
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
635
+ },
636
+ {
637
+ "name": "AccessControlRoleOutOfBounds",
638
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
639
+ }
640
+ ]
641
+ },
642
+ {
643
+ "type": "enum contract_schema::prop_margin_pool::DiscountScope",
644
+ "metadataTypeId": 5,
645
+ "components": [
646
+ {
647
+ "name": "FirstPremium",
648
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
649
+ },
650
+ {
651
+ "name": "AllPremiums",
652
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
653
+ }
654
+ ]
655
+ },
656
+ {
657
+ "type": "enum contract_schema::prop_margin_pool::ProlongTrigger",
658
+ "metadataTypeId": 6,
659
+ "components": [
660
+ {
661
+ "name": "User",
662
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
663
+ },
664
+ {
665
+ "name": "Auto",
666
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ "type": "enum contract_schema::prop_margin_pool::PropMarginPoolError",
672
+ "metadataTypeId": 7,
673
+ "components": [
674
+ {
675
+ "name": "AlreadyInitialized",
676
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
677
+ },
678
+ {
679
+ "name": "CallerNotContract",
680
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
681
+ },
682
+ {
683
+ "name": "NotPropAccount",
684
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
685
+ },
686
+ {
687
+ "name": "NoActiveSession",
688
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
689
+ },
690
+ {
691
+ "name": "SessionActive",
692
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
693
+ },
694
+ {
695
+ "name": "SessionEnded",
696
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
697
+ },
698
+ {
699
+ "name": "WrongAsset",
700
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
701
+ },
702
+ {
703
+ "name": "AmountIsZero",
704
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
705
+ },
706
+ {
707
+ "name": "CollateralTooSmall",
708
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
709
+ },
710
+ {
711
+ "name": "AccountNotEmpty",
712
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
713
+ },
714
+ {
715
+ "name": "AssetNotInTier",
716
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
717
+ },
718
+ {
719
+ "name": "UseDraw",
720
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
721
+ },
722
+ {
723
+ "name": "UseRepayQuote",
724
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
725
+ },
726
+ {
727
+ "name": "LoanCapExceeded",
728
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
729
+ },
730
+ {
731
+ "name": "InsufficientInventory",
732
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
733
+ },
734
+ {
735
+ "name": "InsufficientBalance",
736
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
737
+ },
738
+ {
739
+ "name": "BelowTierCollateral",
740
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
741
+ },
742
+ {
743
+ "name": "OverReturn",
744
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
745
+ },
746
+ {
747
+ "name": "OverRepay",
748
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
749
+ },
750
+ {
751
+ "name": "QuoteOutstanding",
752
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
753
+ },
754
+ {
755
+ "name": "DebtsOutstanding",
756
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
757
+ },
758
+ {
759
+ "name": "CashShortOfDrawn",
760
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
761
+ },
762
+ {
763
+ "name": "FundOtherAccount",
764
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
765
+ },
766
+ {
767
+ "name": "InvalidTier",
768
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
769
+ },
770
+ {
771
+ "name": "InvalidTierVersion",
772
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
773
+ },
774
+ {
775
+ "name": "InvalidTierParams",
776
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
777
+ },
778
+ {
779
+ "name": "InvalidLeverage",
780
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
781
+ },
782
+ {
783
+ "name": "BufferBelowMaintenance",
784
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
785
+ },
786
+ {
787
+ "name": "BufferAboveCap",
788
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
789
+ },
790
+ {
791
+ "name": "SessionUnusableAtOpen",
792
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
793
+ },
794
+ {
795
+ "name": "InvalidBook",
796
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
797
+ },
798
+ {
799
+ "name": "TooManyBooks",
800
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
801
+ },
802
+ {
803
+ "name": "PriceMissing",
804
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
805
+ },
806
+ {
807
+ "name": "PriceStale",
808
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
809
+ },
810
+ {
811
+ "name": "PriceInvalid",
812
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
813
+ },
814
+ {
815
+ "name": "PriceDecimalsChanged",
816
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
817
+ },
818
+ {
819
+ "name": "InvalidRegistry",
820
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
821
+ },
822
+ {
823
+ "name": "InvalidPriceFeed",
824
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
825
+ },
826
+ {
827
+ "name": "InvalidPlatformPayout",
828
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
829
+ },
830
+ {
831
+ "name": "InvalidLiquidator",
832
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
833
+ },
834
+ {
835
+ "name": "ValueOverflow",
836
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
837
+ },
838
+ {
839
+ "name": "PeriodNotOffered",
840
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
841
+ },
842
+ {
843
+ "name": "AutoProlongDisabled",
844
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
845
+ },
846
+ {
847
+ "name": "AutoProlongPeriodInvalid",
848
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
849
+ },
850
+ {
851
+ "name": "TimesIsZero",
852
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
853
+ },
854
+ {
855
+ "name": "ProlongAfterExpiry",
856
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
857
+ },
858
+ {
859
+ "name": "AutoProlongNotDue",
860
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
861
+ },
862
+ {
863
+ "name": "BookNotDrained",
864
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
865
+ },
866
+ {
867
+ "name": "SweepIncomplete",
868
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
869
+ },
870
+ {
871
+ "name": "PositionsOutstanding",
872
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
873
+ },
874
+ {
875
+ "name": "NotLiquidatable",
876
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
877
+ },
878
+ {
879
+ "name": "NotExpired",
880
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
881
+ },
882
+ {
883
+ "name": "NoBestBid",
884
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
885
+ },
886
+ {
887
+ "name": "AssetNotSupported",
888
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
889
+ },
890
+ {
891
+ "name": "ProlongAboveCollateral",
892
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
893
+ },
894
+ {
895
+ "name": "InvalidDiscount",
896
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
897
+ },
898
+ {
899
+ "name": "TierDisabled",
900
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
901
+ },
902
+ {
903
+ "name": "TopUpsDisabled",
904
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
905
+ },
906
+ {
907
+ "name": "TurboEntryNotExact",
908
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
909
+ },
910
+ {
911
+ "name": "InvalidTurboTerms",
912
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
913
+ },
914
+ {
915
+ "name": "RolloverNotOffered",
916
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
917
+ },
918
+ {
919
+ "name": "RolloverNotDue",
920
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
921
+ },
922
+ {
923
+ "name": "RolloverNotEarned",
924
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
925
+ },
926
+ {
927
+ "name": "RolloverExhausted",
928
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
929
+ },
930
+ {
931
+ "name": "RolloverPending",
932
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
933
+ },
934
+ {
935
+ "name": "UseExpireOrRollover",
936
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
937
+ },
938
+ {
939
+ "name": "UsePermissionlessExpiry",
940
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
941
+ },
942
+ {
943
+ "name": "InvalidExpiryCosigner",
944
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
945
+ },
946
+ {
947
+ "name": "ExpiryCosignerNotSet",
948
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ "type": "enum contract_schema::prop_margin_pool::SettlementReason",
954
+ "metadataTypeId": 8,
955
+ "components": [
956
+ {
957
+ "name": "UserClose",
958
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
959
+ },
960
+ {
961
+ "name": "Expiry",
962
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
963
+ },
964
+ {
965
+ "name": "Liquidation",
966
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "type": "enum contract_schema::prop_period::ProlongPeriod",
972
+ "metadataTypeId": 9,
973
+ "components": [
974
+ {
975
+ "name": "SixHours",
976
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
977
+ },
978
+ {
979
+ "name": "Day",
980
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
981
+ },
982
+ {
983
+ "name": "Week",
984
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
985
+ },
986
+ {
987
+ "name": "Month",
988
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
989
+ }
990
+ ]
991
+ },
992
+ {
993
+ "type": "enum pausable::errors::PauseError",
994
+ "metadataTypeId": 10,
995
+ "components": [
996
+ {
997
+ "name": "Paused",
998
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
999
+ },
1000
+ {
1001
+ "name": "NotPaused",
1002
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
1003
+ }
1004
+ ]
1005
+ },
1006
+ {
1007
+ "type": "enum std::crypto::signature::Signature",
1008
+ "metadataTypeId": 11,
1009
+ "components": [
1010
+ {
1011
+ "name": "Secp256k1",
1012
+ "typeId": 59
1013
+ },
1014
+ {
1015
+ "name": "Secp256r1",
1016
+ "typeId": 60
1017
+ },
1018
+ {
1019
+ "name": "Ed25519",
1020
+ "typeId": 58
1021
+ }
1022
+ ]
1023
+ },
1024
+ {
1025
+ "type": "enum std::identity::Identity",
1026
+ "metadataTypeId": 12,
1027
+ "components": [
1028
+ {
1029
+ "name": "Address",
1030
+ "typeId": 55
1031
+ },
1032
+ {
1033
+ "name": "ContractId",
1034
+ "typeId": 57
1035
+ }
1036
+ ]
1037
+ },
1038
+ {
1039
+ "type": "enum std::option::Option",
1040
+ "metadataTypeId": 13,
1041
+ "components": [
1042
+ {
1043
+ "name": "None",
1044
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
1045
+ },
1046
+ {
1047
+ "name": "Some",
1048
+ "typeId": 14
1049
+ }
1050
+ ],
1051
+ "typeParameters": [
1052
+ 14
1053
+ ]
1054
+ },
1055
+ {
1056
+ "type": "generic T",
1057
+ "metadataTypeId": 14
1058
+ },
1059
+ {
1060
+ "type": "raw untyped ptr",
1061
+ "metadataTypeId": 15
1062
+ },
1063
+ {
1064
+ "type": "struct contract_libs::access_control::RoleGrantedEvent",
1065
+ "metadataTypeId": 16,
1066
+ "components": [
1067
+ {
1068
+ "name": "role",
1069
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1070
+ },
1071
+ {
1072
+ "name": "account",
1073
+ "typeId": 12
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "type": "struct contract_libs::access_control::RoleRevokedEvent",
1079
+ "metadataTypeId": 17,
1080
+ "components": [
1081
+ {
1082
+ "name": "role",
1083
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1084
+ },
1085
+ {
1086
+ "name": "account",
1087
+ "typeId": 12
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "type": "struct contract_schema::prop_account::PropOrderBookCleanup",
1093
+ "metadataTypeId": 18,
1094
+ "components": [
1095
+ {
1096
+ "name": "order_book",
1097
+ "typeId": 57
1098
+ },
1099
+ {
1100
+ "name": "order_ids",
1101
+ "typeId": 63,
1102
+ "typeArguments": [
1103
+ {
1104
+ "name": "",
1105
+ "typeId": 3
1106
+ }
1107
+ ]
1108
+ }
1109
+ ]
1110
+ },
1111
+ {
1112
+ "type": "struct contract_schema::prop_margin_pool::AssetBorrowed",
1113
+ "metadataTypeId": 19,
1114
+ "components": [
1115
+ {
1116
+ "name": "account",
1117
+ "typeId": 57
1118
+ },
1119
+ {
1120
+ "name": "session_id",
1121
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1122
+ },
1123
+ {
1124
+ "name": "asset_id",
1125
+ "typeId": 56
1126
+ },
1127
+ {
1128
+ "name": "amount",
1129
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1130
+ },
1131
+ {
1132
+ "name": "debt_total",
1133
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1134
+ },
1135
+ {
1136
+ "name": "timestamp",
1137
+ "typeId": 61
1138
+ }
1139
+ ]
1140
+ },
1141
+ {
1142
+ "type": "struct contract_schema::prop_margin_pool::AssetRepaid",
1143
+ "metadataTypeId": 20,
1144
+ "components": [
1145
+ {
1146
+ "name": "account",
1147
+ "typeId": 57
1148
+ },
1149
+ {
1150
+ "name": "session_id",
1151
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1152
+ },
1153
+ {
1154
+ "name": "asset_id",
1155
+ "typeId": 56
1156
+ },
1157
+ {
1158
+ "name": "amount",
1159
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1160
+ },
1161
+ {
1162
+ "name": "debt_total",
1163
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1164
+ },
1165
+ {
1166
+ "name": "timestamp",
1167
+ "typeId": 61
1168
+ }
1169
+ ]
1170
+ },
1171
+ {
1172
+ "type": "struct contract_schema::prop_margin_pool::AutoProlongChanged",
1173
+ "metadataTypeId": 21,
1174
+ "components": [
1175
+ {
1176
+ "name": "account",
1177
+ "typeId": 57
1178
+ },
1179
+ {
1180
+ "name": "session_id",
1181
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1182
+ },
1183
+ {
1184
+ "name": "period",
1185
+ "typeId": 13,
1186
+ "typeArguments": [
1187
+ {
1188
+ "name": "",
1189
+ "typeId": 9
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ "name": "expires_at",
1195
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1196
+ },
1197
+ {
1198
+ "name": "timestamp",
1199
+ "typeId": 61
1200
+ }
1201
+ ]
1202
+ },
1203
+ {
1204
+ "type": "struct contract_schema::prop_margin_pool::BaseDebtRepaidFromCollateral",
1205
+ "metadataTypeId": 22,
1206
+ "components": [
1207
+ {
1208
+ "name": "account",
1209
+ "typeId": 57
1210
+ },
1211
+ {
1212
+ "name": "session_id",
1213
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1214
+ },
1215
+ {
1216
+ "name": "asset_id",
1217
+ "typeId": 56
1218
+ },
1219
+ {
1220
+ "name": "amount",
1221
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1222
+ },
1223
+ {
1224
+ "name": "ask",
1225
+ "typeId": 64
1226
+ },
1227
+ {
1228
+ "name": "value",
1229
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1230
+ },
1231
+ {
1232
+ "name": "fee",
1233
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1234
+ },
1235
+ {
1236
+ "name": "debt_total",
1237
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1238
+ },
1239
+ {
1240
+ "name": "new_collateral",
1241
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1242
+ },
1243
+ {
1244
+ "name": "new_credit_line",
1245
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1246
+ },
1247
+ {
1248
+ "name": "fees_accrued",
1249
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1250
+ },
1251
+ {
1252
+ "name": "from_capitalised",
1253
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1254
+ },
1255
+ {
1256
+ "name": "capitalised_total",
1257
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1258
+ },
1259
+ {
1260
+ "name": "decapitalised_total",
1261
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1262
+ },
1263
+ {
1264
+ "name": "timestamp",
1265
+ "typeId": 61
1266
+ }
1267
+ ]
1268
+ },
1269
+ {
1270
+ "type": "struct contract_schema::prop_margin_pool::CollateralAdded",
1271
+ "metadataTypeId": 23,
1272
+ "components": [
1273
+ {
1274
+ "name": "account",
1275
+ "typeId": 57
1276
+ },
1277
+ {
1278
+ "name": "session_id",
1279
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1280
+ },
1281
+ {
1282
+ "name": "funder",
1283
+ "typeId": 12
1284
+ },
1285
+ {
1286
+ "name": "amount",
1287
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1288
+ },
1289
+ {
1290
+ "name": "new_collateral",
1291
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1292
+ },
1293
+ {
1294
+ "name": "new_credit_line",
1295
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1296
+ },
1297
+ {
1298
+ "name": "capitalised_total",
1299
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1300
+ },
1301
+ {
1302
+ "name": "cap",
1303
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1304
+ },
1305
+ {
1306
+ "name": "timestamp",
1307
+ "typeId": 61
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolLiquidatorChanged",
1313
+ "metadataTypeId": 24,
1314
+ "components": [
1315
+ {
1316
+ "name": "old_liquidator",
1317
+ "typeId": 12
1318
+ },
1319
+ {
1320
+ "name": "new_liquidator",
1321
+ "typeId": 12
1322
+ },
1323
+ {
1324
+ "name": "timestamp",
1325
+ "typeId": 61
1326
+ }
1327
+ ]
1328
+ },
1329
+ {
1330
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPauseChanged",
1331
+ "metadataTypeId": 25,
1332
+ "components": [
1333
+ {
1334
+ "name": "paused",
1335
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
1336
+ },
1337
+ {
1338
+ "name": "timestamp",
1339
+ "typeId": 61
1340
+ }
1341
+ ]
1342
+ },
1343
+ {
1344
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPlatformPayoutChanged",
1345
+ "metadataTypeId": 26,
1346
+ "components": [
1347
+ {
1348
+ "name": "old_platform_payout",
1349
+ "typeId": 12
1350
+ },
1351
+ {
1352
+ "name": "new_platform_payout",
1353
+ "typeId": 12
1354
+ },
1355
+ {
1356
+ "name": "timestamp",
1357
+ "typeId": 61
1358
+ }
1359
+ ]
1360
+ },
1361
+ {
1362
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolPriceFeedChanged",
1363
+ "metadataTypeId": 27,
1364
+ "components": [
1365
+ {
1366
+ "name": "old_price_feed",
1367
+ "typeId": 57
1368
+ },
1369
+ {
1370
+ "name": "new_price_feed",
1371
+ "typeId": 57
1372
+ },
1373
+ {
1374
+ "name": "timestamp",
1375
+ "typeId": 61
1376
+ }
1377
+ ]
1378
+ },
1379
+ {
1380
+ "type": "struct contract_schema::prop_margin_pool::MarginPoolRegistryChanged",
1381
+ "metadataTypeId": 28,
1382
+ "components": [
1383
+ {
1384
+ "name": "old_registry",
1385
+ "typeId": 57
1386
+ },
1387
+ {
1388
+ "name": "new_registry",
1389
+ "typeId": 57
1390
+ },
1391
+ {
1392
+ "name": "timestamp",
1393
+ "typeId": 61
1394
+ }
1395
+ ]
1396
+ },
1397
+ {
1398
+ "type": "struct contract_schema::prop_margin_pool::MarginWithdrawn",
1399
+ "metadataTypeId": 29,
1400
+ "components": [
1401
+ {
1402
+ "name": "account",
1403
+ "typeId": 57
1404
+ },
1405
+ {
1406
+ "name": "session_id",
1407
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1408
+ },
1409
+ {
1410
+ "name": "asset_id",
1411
+ "typeId": 56
1412
+ },
1413
+ {
1414
+ "name": "amount",
1415
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1416
+ },
1417
+ {
1418
+ "name": "from_account",
1419
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1420
+ },
1421
+ {
1422
+ "name": "from_pool",
1423
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1424
+ },
1425
+ {
1426
+ "name": "from_capitalised",
1427
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1428
+ },
1429
+ {
1430
+ "name": "share_qty",
1431
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1432
+ },
1433
+ {
1434
+ "name": "new_collateral",
1435
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1436
+ },
1437
+ {
1438
+ "name": "new_credit_line",
1439
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1440
+ },
1441
+ {
1442
+ "name": "capitalised_total",
1443
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1444
+ },
1445
+ {
1446
+ "name": "timestamp",
1447
+ "typeId": 61
1448
+ }
1449
+ ]
1450
+ },
1451
+ {
1452
+ "type": "struct contract_schema::prop_margin_pool::QuoteDrawn",
1453
+ "metadataTypeId": 30,
1454
+ "components": [
1455
+ {
1456
+ "name": "account",
1457
+ "typeId": 57
1458
+ },
1459
+ {
1460
+ "name": "session_id",
1461
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1462
+ },
1463
+ {
1464
+ "name": "amount",
1465
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1466
+ },
1467
+ {
1468
+ "name": "drawn_total",
1469
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1470
+ },
1471
+ {
1472
+ "name": "timestamp",
1473
+ "typeId": 61
1474
+ }
1475
+ ]
1476
+ },
1477
+ {
1478
+ "type": "struct contract_schema::prop_margin_pool::QuoteRepaidFromCollateral",
1479
+ "metadataTypeId": 31,
1480
+ "components": [
1481
+ {
1482
+ "name": "account",
1483
+ "typeId": 57
1484
+ },
1485
+ {
1486
+ "name": "session_id",
1487
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1488
+ },
1489
+ {
1490
+ "name": "amount",
1491
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1492
+ },
1493
+ {
1494
+ "name": "new_drawn_quote",
1495
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1496
+ },
1497
+ {
1498
+ "name": "new_collateral",
1499
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1500
+ },
1501
+ {
1502
+ "name": "new_credit_line",
1503
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1504
+ },
1505
+ {
1506
+ "name": "from_capitalised",
1507
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1508
+ },
1509
+ {
1510
+ "name": "capitalised_total",
1511
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1512
+ },
1513
+ {
1514
+ "name": "decapitalised_total",
1515
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1516
+ },
1517
+ {
1518
+ "name": "timestamp",
1519
+ "typeId": 61
1520
+ }
1521
+ ]
1522
+ },
1523
+ {
1524
+ "type": "struct contract_schema::prop_margin_pool::QuoteReturned",
1525
+ "metadataTypeId": 32,
1526
+ "components": [
1527
+ {
1528
+ "name": "account",
1529
+ "typeId": 57
1530
+ },
1531
+ {
1532
+ "name": "session_id",
1533
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1534
+ },
1535
+ {
1536
+ "name": "amount",
1537
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1538
+ },
1539
+ {
1540
+ "name": "drawn_total",
1541
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1542
+ },
1543
+ {
1544
+ "name": "timestamp",
1545
+ "typeId": 61
1546
+ }
1547
+ ]
1548
+ },
1549
+ {
1550
+ "type": "struct contract_schema::prop_margin_pool::RolloverView",
1551
+ "metadataTypeId": 33,
1552
+ "components": [
1553
+ {
1554
+ "name": "anchor",
1555
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1556
+ },
1557
+ {
1558
+ "name": "withdrawn",
1559
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1560
+ },
1561
+ {
1562
+ "name": "rollovers_used",
1563
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1564
+ },
1565
+ {
1566
+ "name": "max_rollovers",
1567
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1568
+ },
1569
+ {
1570
+ "name": "profit_required",
1571
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1572
+ }
1573
+ ]
1574
+ },
1575
+ {
1576
+ "type": "struct contract_schema::prop_margin_pool::RolloverWithdrawalRecorded",
1577
+ "metadataTypeId": 34,
1578
+ "components": [
1579
+ {
1580
+ "name": "account",
1581
+ "typeId": 57
1582
+ },
1583
+ {
1584
+ "name": "session_id",
1585
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1586
+ },
1587
+ {
1588
+ "name": "amount",
1589
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1590
+ },
1591
+ {
1592
+ "name": "withdrawn_total",
1593
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1594
+ },
1595
+ {
1596
+ "name": "timestamp",
1597
+ "typeId": 61
1598
+ }
1599
+ ]
1600
+ },
1601
+ {
1602
+ "type": "struct contract_schema::prop_margin_pool::SessionClosed",
1603
+ "metadataTypeId": 35,
1604
+ "components": [
1605
+ {
1606
+ "name": "account",
1607
+ "typeId": 57
1608
+ },
1609
+ {
1610
+ "name": "session_id",
1611
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1612
+ },
1613
+ {
1614
+ "name": "reason",
1615
+ "typeId": 8
1616
+ },
1617
+ {
1618
+ "name": "v",
1619
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1620
+ },
1621
+ {
1622
+ "name": "v_is_negative",
1623
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
1624
+ },
1625
+ {
1626
+ "name": "v_liq",
1627
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1628
+ },
1629
+ {
1630
+ "name": "v_liq_is_negative",
1631
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
1632
+ },
1633
+ {
1634
+ "name": "profit_abs",
1635
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1636
+ },
1637
+ {
1638
+ "name": "profit_is_negative",
1639
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
1640
+ },
1641
+ {
1642
+ "name": "fees_accrued",
1643
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1644
+ },
1645
+ {
1646
+ "name": "platform_total",
1647
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1648
+ },
1649
+ {
1650
+ "name": "user_net",
1651
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1652
+ },
1653
+ {
1654
+ "name": "bad_debt",
1655
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1656
+ },
1657
+ {
1658
+ "name": "cancelled_debt",
1659
+ "typeId": 63,
1660
+ "typeArguments": [
1661
+ {
1662
+ "name": "",
1663
+ "typeId": 0
1664
+ }
1665
+ ]
1666
+ },
1667
+ {
1668
+ "name": "payout_parent",
1669
+ "typeId": 63,
1670
+ "typeArguments": [
1671
+ {
1672
+ "name": "",
1673
+ "typeId": 0
1674
+ }
1675
+ ]
1676
+ },
1677
+ {
1678
+ "name": "payout_platform",
1679
+ "typeId": 63,
1680
+ "typeArguments": [
1681
+ {
1682
+ "name": "",
1683
+ "typeId": 0
1684
+ }
1685
+ ]
1686
+ },
1687
+ {
1688
+ "name": "timestamp",
1689
+ "typeId": 61
1690
+ }
1691
+ ]
1692
+ },
1693
+ {
1694
+ "type": "struct contract_schema::prop_margin_pool::SessionLines",
1695
+ "metadataTypeId": 36,
1696
+ "components": [
1697
+ {
1698
+ "name": "positive",
1699
+ "typeId": 64
1700
+ },
1701
+ {
1702
+ "name": "negative",
1703
+ "typeId": 64
1704
+ },
1705
+ {
1706
+ "name": "threshold",
1707
+ "typeId": 64
1708
+ },
1709
+ {
1710
+ "name": "freeze",
1711
+ "typeId": 64
1712
+ }
1713
+ ]
1714
+ },
1715
+ {
1716
+ "type": "struct contract_schema::prop_margin_pool::SessionOpened",
1717
+ "metadataTypeId": 37,
1718
+ "components": [
1719
+ {
1720
+ "name": "account",
1721
+ "typeId": 57
1722
+ },
1723
+ {
1724
+ "name": "session_id",
1725
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1726
+ },
1727
+ {
1728
+ "name": "tier_id",
1729
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1730
+ },
1731
+ {
1732
+ "name": "tier_version",
1733
+ "typeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
1734
+ },
1735
+ {
1736
+ "name": "parent",
1737
+ "typeId": 12
1738
+ },
1739
+ {
1740
+ "name": "collateral",
1741
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1742
+ },
1743
+ {
1744
+ "name": "credit_line",
1745
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1746
+ },
1747
+ {
1748
+ "name": "started_at",
1749
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1750
+ },
1751
+ {
1752
+ "name": "expires_at",
1753
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1754
+ },
1755
+ {
1756
+ "name": "open_fee",
1757
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1758
+ },
1759
+ {
1760
+ "name": "fees_accrued",
1761
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1762
+ },
1763
+ {
1764
+ "name": "timestamp",
1765
+ "typeId": 61
1766
+ }
1767
+ ]
1768
+ },
1769
+ {
1770
+ "type": "struct contract_schema::prop_margin_pool::SessionProlonged",
1771
+ "metadataTypeId": 38,
1772
+ "components": [
1773
+ {
1774
+ "name": "account",
1775
+ "typeId": 57
1776
+ },
1777
+ {
1778
+ "name": "session_id",
1779
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1780
+ },
1781
+ {
1782
+ "name": "period",
1783
+ "typeId": 9
1784
+ },
1785
+ {
1786
+ "name": "times",
1787
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1788
+ },
1789
+ {
1790
+ "name": "seconds",
1791
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1792
+ },
1793
+ {
1794
+ "name": "trigger",
1795
+ "typeId": 6
1796
+ },
1797
+ {
1798
+ "name": "new_expires_at",
1799
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1800
+ },
1801
+ {
1802
+ "name": "new_credit_line",
1803
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1804
+ },
1805
+ {
1806
+ "name": "fee",
1807
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1808
+ },
1809
+ {
1810
+ "name": "fees_accrued",
1811
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1812
+ },
1813
+ {
1814
+ "name": "timestamp",
1815
+ "typeId": 61
1816
+ }
1817
+ ]
1818
+ },
1819
+ {
1820
+ "type": "struct contract_schema::prop_margin_pool::SessionRolledOver",
1821
+ "metadataTypeId": 39,
1822
+ "components": [
1823
+ {
1824
+ "name": "account",
1825
+ "typeId": 57
1826
+ },
1827
+ {
1828
+ "name": "session_id",
1829
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1830
+ },
1831
+ {
1832
+ "name": "rollovers_used",
1833
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1834
+ },
1835
+ {
1836
+ "name": "max_rollovers",
1837
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1838
+ },
1839
+ {
1840
+ "name": "anchor",
1841
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1842
+ },
1843
+ {
1844
+ "name": "profit_required",
1845
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1846
+ },
1847
+ {
1848
+ "name": "new_expires_at",
1849
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1850
+ },
1851
+ {
1852
+ "name": "timestamp",
1853
+ "typeId": 61
1854
+ }
1855
+ ]
1856
+ },
1857
+ {
1858
+ "type": "struct contract_schema::prop_margin_pool::SessionSeized",
1859
+ "metadataTypeId": 40,
1860
+ "components": [
1861
+ {
1862
+ "name": "account",
1863
+ "typeId": 57
1864
+ },
1865
+ {
1866
+ "name": "session_id",
1867
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1868
+ },
1869
+ {
1870
+ "name": "reason",
1871
+ "typeId": 8
1872
+ },
1873
+ {
1874
+ "name": "liquidator",
1875
+ "typeId": 12
1876
+ },
1877
+ {
1878
+ "name": "holdings",
1879
+ "typeId": 63,
1880
+ "typeArguments": [
1881
+ {
1882
+ "name": "",
1883
+ "typeId": 0
1884
+ }
1885
+ ]
1886
+ },
1887
+ {
1888
+ "name": "debt",
1889
+ "typeId": 63,
1890
+ "typeArguments": [
1891
+ {
1892
+ "name": "",
1893
+ "typeId": 0
1894
+ }
1895
+ ]
1896
+ },
1897
+ {
1898
+ "name": "transferred",
1899
+ "typeId": 63,
1900
+ "typeArguments": [
1901
+ {
1902
+ "name": "",
1903
+ "typeId": 0
1904
+ }
1905
+ ]
1906
+ },
1907
+ {
1908
+ "name": "timestamp",
1909
+ "typeId": 61
1910
+ }
1911
+ ]
1912
+ },
1913
+ {
1914
+ "type": "struct contract_schema::prop_margin_pool::SessionView",
1915
+ "metadataTypeId": 41,
1916
+ "components": [
1917
+ {
1918
+ "name": "session_id",
1919
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1920
+ },
1921
+ {
1922
+ "name": "tier_id",
1923
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1924
+ },
1925
+ {
1926
+ "name": "tier_version",
1927
+ "typeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
1928
+ },
1929
+ {
1930
+ "name": "parent",
1931
+ "typeId": 12
1932
+ },
1933
+ {
1934
+ "name": "collateral",
1935
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1936
+ },
1937
+ {
1938
+ "name": "credit_line",
1939
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1940
+ },
1941
+ {
1942
+ "name": "started_at",
1943
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1944
+ },
1945
+ {
1946
+ "name": "expires_at",
1947
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1948
+ },
1949
+ {
1950
+ "name": "drawn_quote",
1951
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1952
+ },
1953
+ {
1954
+ "name": "fees_accrued",
1955
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1956
+ },
1957
+ {
1958
+ "name": "auto_prolong",
1959
+ "typeId": 13,
1960
+ "typeArguments": [
1961
+ {
1962
+ "name": "",
1963
+ "typeId": 9
1964
+ }
1965
+ ]
1966
+ },
1967
+ {
1968
+ "name": "capitalised",
1969
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1970
+ },
1971
+ {
1972
+ "name": "decapitalised",
1973
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1974
+ }
1975
+ ]
1976
+ },
1977
+ {
1978
+ "type": "struct contract_schema::prop_margin_pool::SettlementReceived",
1979
+ "metadataTypeId": 42,
1980
+ "components": [
1981
+ {
1982
+ "name": "account",
1983
+ "typeId": 57
1984
+ },
1985
+ {
1986
+ "name": "session_id",
1987
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1988
+ },
1989
+ {
1990
+ "name": "asset_id",
1991
+ "typeId": 56
1992
+ },
1993
+ {
1994
+ "name": "amount",
1995
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1996
+ },
1997
+ {
1998
+ "name": "received_total",
1999
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2000
+ },
2001
+ {
2002
+ "name": "timestamp",
2003
+ "typeId": 61
2004
+ }
2005
+ ]
2006
+ },
2007
+ {
2008
+ "type": "struct contract_schema::prop_margin_pool::TicketSettled",
2009
+ "metadataTypeId": 43,
2010
+ "components": [
2011
+ {
2012
+ "name": "account",
2013
+ "typeId": 57
2014
+ },
2015
+ {
2016
+ "name": "session_id",
2017
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2018
+ },
2019
+ {
2020
+ "name": "ticket",
2021
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2022
+ },
2023
+ {
2024
+ "name": "to_platform",
2025
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2026
+ },
2027
+ {
2028
+ "name": "absorbed_by_pool",
2029
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2030
+ },
2031
+ {
2032
+ "name": "timestamp",
2033
+ "typeId": 61
2034
+ }
2035
+ ]
2036
+ },
2037
+ {
2038
+ "type": "struct contract_schema::prop_margin_pool::TierBooksAdded",
2039
+ "metadataTypeId": 44,
2040
+ "components": [
2041
+ {
2042
+ "name": "tier_id",
2043
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2044
+ },
2045
+ {
2046
+ "name": "version",
2047
+ "typeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
2048
+ },
2049
+ {
2050
+ "name": "books",
2051
+ "typeId": 63,
2052
+ "typeArguments": [
2053
+ {
2054
+ "name": "",
2055
+ "typeId": 57
2056
+ }
2057
+ ]
2058
+ },
2059
+ {
2060
+ "name": "new_assets",
2061
+ "typeId": 63,
2062
+ "typeArguments": [
2063
+ {
2064
+ "name": "",
2065
+ "typeId": 56
2066
+ }
2067
+ ]
2068
+ },
2069
+ {
2070
+ "name": "timestamp",
2071
+ "typeId": 61
2072
+ }
2073
+ ]
2074
+ },
2075
+ {
2076
+ "type": "struct contract_schema::prop_margin_pool::TierEnabledChanged",
2077
+ "metadataTypeId": 45,
2078
+ "components": [
2079
+ {
2080
+ "name": "tier_id",
2081
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2082
+ },
2083
+ {
2084
+ "name": "enabled",
2085
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
2086
+ },
2087
+ {
2088
+ "name": "timestamp",
2089
+ "typeId": 61
2090
+ }
2091
+ ]
2092
+ },
2093
+ {
2094
+ "type": "struct contract_schema::prop_margin_pool::TierParams",
2095
+ "metadataTypeId": 46,
2096
+ "components": [
2097
+ {
2098
+ "name": "line",
2099
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2100
+ },
2101
+ {
2102
+ "name": "leverage",
2103
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2104
+ },
2105
+ {
2106
+ "name": "duration",
2107
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2108
+ },
2109
+ {
2110
+ "name": "maintenance_bps",
2111
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2112
+ },
2113
+ {
2114
+ "name": "open_buffer_bps",
2115
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2116
+ },
2117
+ {
2118
+ "name": "liq_price_factor",
2119
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2120
+ },
2121
+ {
2122
+ "name": "prolong_fee",
2123
+ "typeId": 1
2124
+ },
2125
+ {
2126
+ "name": "max_credit_line_bps",
2127
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2128
+ },
2129
+ {
2130
+ "name": "max_price_age",
2131
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2132
+ },
2133
+ {
2134
+ "name": "open_fee",
2135
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2136
+ },
2137
+ {
2138
+ "name": "profit_share_bps",
2139
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2140
+ },
2141
+ {
2142
+ "name": "price_band_bps",
2143
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2144
+ }
2145
+ ]
2146
+ },
2147
+ {
2148
+ "type": "struct contract_schema::prop_margin_pool::TierVersionPublished",
2149
+ "metadataTypeId": 47,
2150
+ "components": [
2151
+ {
2152
+ "name": "tier_id",
2153
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2154
+ },
2155
+ {
2156
+ "name": "version",
2157
+ "typeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
2158
+ },
2159
+ {
2160
+ "name": "params",
2161
+ "typeId": 46
2162
+ },
2163
+ {
2164
+ "name": "required_collateral",
2165
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2166
+ },
2167
+ {
2168
+ "name": "k",
2169
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2170
+ },
2171
+ {
2172
+ "name": "maintenance",
2173
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2174
+ },
2175
+ {
2176
+ "name": "open_buffer",
2177
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2178
+ },
2179
+ {
2180
+ "name": "threshold_floor",
2181
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2182
+ },
2183
+ {
2184
+ "name": "base_repay_fee_ppm",
2185
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2186
+ },
2187
+ {
2188
+ "name": "prolong_seconds",
2189
+ "typeId": 1
2190
+ },
2191
+ {
2192
+ "name": "auto_prolong_periods",
2193
+ "typeId": 63,
2194
+ "typeArguments": [
2195
+ {
2196
+ "name": "",
2197
+ "typeId": 9
2198
+ }
2199
+ ]
2200
+ },
2201
+ {
2202
+ "name": "books",
2203
+ "typeId": 63,
2204
+ "typeArguments": [
2205
+ {
2206
+ "name": "",
2207
+ "typeId": 57
2208
+ }
2209
+ ]
2210
+ },
2211
+ {
2212
+ "name": "assets",
2213
+ "typeId": 63,
2214
+ "typeArguments": [
2215
+ {
2216
+ "name": "",
2217
+ "typeId": 56
2218
+ }
2219
+ ]
2220
+ },
2221
+ {
2222
+ "name": "timestamp",
2223
+ "typeId": 61
2224
+ }
2225
+ ]
2226
+ },
2227
+ {
2228
+ "type": "struct contract_schema::prop_margin_pool::TierVersionPublishedV2",
2229
+ "metadataTypeId": 48,
2230
+ "components": [
2231
+ {
2232
+ "name": "tier_id",
2233
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2234
+ },
2235
+ {
2236
+ "name": "version",
2237
+ "typeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
2238
+ },
2239
+ {
2240
+ "name": "params",
2241
+ "typeId": 46
2242
+ },
2243
+ {
2244
+ "name": "terms",
2245
+ "typeId": 49
2246
+ },
2247
+ {
2248
+ "name": "required_collateral",
2249
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2250
+ },
2251
+ {
2252
+ "name": "k",
2253
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2254
+ },
2255
+ {
2256
+ "name": "maintenance",
2257
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2258
+ },
2259
+ {
2260
+ "name": "open_buffer",
2261
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2262
+ },
2263
+ {
2264
+ "name": "threshold_floor",
2265
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2266
+ },
2267
+ {
2268
+ "name": "base_repay_fee_ppm",
2269
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2270
+ },
2271
+ {
2272
+ "name": "term_seconds",
2273
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2274
+ },
2275
+ {
2276
+ "name": "rollover_window_seconds",
2277
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2278
+ },
2279
+ {
2280
+ "name": "books",
2281
+ "typeId": 63,
2282
+ "typeArguments": [
2283
+ {
2284
+ "name": "",
2285
+ "typeId": 57
2286
+ }
2287
+ ]
2288
+ },
2289
+ {
2290
+ "name": "assets",
2291
+ "typeId": 63,
2292
+ "typeArguments": [
2293
+ {
2294
+ "name": "",
2295
+ "typeId": 56
2296
+ }
2297
+ ]
2298
+ },
2299
+ {
2300
+ "name": "timestamp",
2301
+ "typeId": 61
2302
+ }
2303
+ ]
2304
+ },
2305
+ {
2306
+ "type": "struct contract_schema::prop_margin_pool::TurboTerms",
2307
+ "metadataTypeId": 49,
2308
+ "components": [
2309
+ {
2310
+ "name": "max_loss_bps",
2311
+ "typeId": 1
2312
+ },
2313
+ {
2314
+ "name": "rollover_profit_bps",
2315
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2316
+ },
2317
+ {
2318
+ "name": "max_rollovers",
2319
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2320
+ }
2321
+ ]
2322
+ },
2323
+ {
2324
+ "type": "struct contract_schema::prop_margin_pool::UserDiscount",
2325
+ "metadataTypeId": 50,
2326
+ "components": [
2327
+ {
2328
+ "name": "discount_bps",
2329
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2330
+ },
2331
+ {
2332
+ "name": "scope",
2333
+ "typeId": 5
2334
+ }
2335
+ ]
2336
+ },
2337
+ {
2338
+ "type": "struct contract_schema::prop_margin_pool::UserDiscountChanged",
2339
+ "metadataTypeId": 51,
2340
+ "components": [
2341
+ {
2342
+ "name": "user",
2343
+ "typeId": 12
2344
+ },
2345
+ {
2346
+ "name": "tier_id",
2347
+ "typeId": 13,
2348
+ "typeArguments": [
2349
+ {
2350
+ "name": "",
2351
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2352
+ }
2353
+ ]
2354
+ },
2355
+ {
2356
+ "name": "discount",
2357
+ "typeId": 13,
2358
+ "typeArguments": [
2359
+ {
2360
+ "name": "",
2361
+ "typeId": 50
2362
+ }
2363
+ ]
2364
+ },
2365
+ {
2366
+ "name": "timestamp",
2367
+ "typeId": 61
2368
+ }
2369
+ ]
2370
+ },
2371
+ {
2372
+ "type": "struct contract_schema::prop_margin_pool::UserDiscountsRemoved",
2373
+ "metadataTypeId": 52,
2374
+ "components": [
2375
+ {
2376
+ "name": "user",
2377
+ "typeId": 12
2378
+ },
2379
+ {
2380
+ "name": "tier_id",
2381
+ "typeId": 13,
2382
+ "typeArguments": [
2383
+ {
2384
+ "name": "",
2385
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2386
+ }
2387
+ ]
2388
+ },
2389
+ {
2390
+ "name": "removed",
2391
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
2392
+ },
2393
+ {
2394
+ "name": "timestamp",
2395
+ "typeId": 61
2396
+ }
2397
+ ]
2398
+ },
2399
+ {
2400
+ "type": "struct pausable::events::PauseEvent",
2401
+ "metadataTypeId": 53,
2402
+ "components": [
2403
+ {
2404
+ "name": "caller",
2405
+ "typeId": 12
2406
+ }
2407
+ ]
2408
+ },
2409
+ {
2410
+ "type": "struct pausable::events::UnpauseEvent",
2411
+ "metadataTypeId": 54,
2412
+ "components": [
2413
+ {
2414
+ "name": "caller",
2415
+ "typeId": 12
2416
+ }
2417
+ ]
2418
+ },
2419
+ {
2420
+ "type": "struct std::address::Address",
2421
+ "metadataTypeId": 55,
2422
+ "components": [
2423
+ {
2424
+ "name": "bits",
2425
+ "typeId": 3
2426
+ }
2427
+ ]
2428
+ },
2429
+ {
2430
+ "type": "struct std::asset_id::AssetId",
2431
+ "metadataTypeId": 56,
2432
+ "components": [
2433
+ {
2434
+ "name": "bits",
2435
+ "typeId": 3
2436
+ }
2437
+ ]
2438
+ },
2439
+ {
2440
+ "type": "struct std::contract_id::ContractId",
2441
+ "metadataTypeId": 57,
2442
+ "components": [
2443
+ {
2444
+ "name": "bits",
2445
+ "typeId": 3
2446
+ }
2447
+ ]
2448
+ },
2449
+ {
2450
+ "type": "struct std::crypto::ed25519::Ed25519",
2451
+ "metadataTypeId": 58,
2452
+ "components": [
2453
+ {
2454
+ "name": "bits",
2455
+ "typeId": 2
2456
+ }
2457
+ ]
2458
+ },
2459
+ {
2460
+ "type": "struct std::crypto::secp256k1::Secp256k1",
2461
+ "metadataTypeId": 59,
2462
+ "components": [
2463
+ {
2464
+ "name": "bits",
2465
+ "typeId": 2
2466
+ }
2467
+ ]
2468
+ },
2469
+ {
2470
+ "type": "struct std::crypto::secp256r1::Secp256r1",
2471
+ "metadataTypeId": 60,
2472
+ "components": [
2473
+ {
2474
+ "name": "bits",
2475
+ "typeId": 2
2476
+ }
2477
+ ]
2478
+ },
2479
+ {
2480
+ "type": "struct std::time::Time",
2481
+ "metadataTypeId": 61,
2482
+ "components": [
2483
+ {
2484
+ "name": "unix",
2485
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2486
+ }
2487
+ ]
2488
+ },
2489
+ {
2490
+ "type": "struct std::vec::RawVec",
2491
+ "metadataTypeId": 62,
2492
+ "components": [
2493
+ {
2494
+ "name": "ptr",
2495
+ "typeId": 15
2496
+ },
2497
+ {
2498
+ "name": "cap",
2499
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2500
+ }
2501
+ ],
2502
+ "typeParameters": [
2503
+ 14
2504
+ ]
2505
+ },
2506
+ {
2507
+ "type": "struct std::vec::Vec",
2508
+ "metadataTypeId": 63,
2509
+ "components": [
2510
+ {
2511
+ "name": "buf",
2512
+ "typeId": 62,
2513
+ "typeArguments": [
2514
+ {
2515
+ "name": "",
2516
+ "typeId": 14
2517
+ }
2518
+ ]
2519
+ },
2520
+ {
2521
+ "name": "len",
2522
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2523
+ }
2524
+ ],
2525
+ "typeParameters": [
2526
+ 14
2527
+ ]
2528
+ },
2529
+ {
2530
+ "type": "u256",
2531
+ "metadataTypeId": 64
2532
+ }
2533
+ ],
2534
+ "functions": [
2535
+ {
2536
+ "name": "add_books",
2537
+ "inputs": [
2538
+ {
2539
+ "name": "tier_id",
2540
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2541
+ },
2542
+ {
2543
+ "name": "books",
2544
+ "concreteTypeId": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211"
2545
+ }
2546
+ ],
2547
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2548
+ "attributes": [
2549
+ {
2550
+ "name": "storage",
2551
+ "arguments": [
2552
+ "read",
2553
+ "write"
2554
+ ]
2555
+ }
2556
+ ]
2557
+ },
2558
+ {
2559
+ "name": "add_collateral",
2560
+ "inputs": [
2561
+ {
2562
+ "name": "account",
2563
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2564
+ }
2565
+ ],
2566
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2567
+ "attributes": [
2568
+ {
2569
+ "name": "payable",
2570
+ "arguments": []
2571
+ },
2572
+ {
2573
+ "name": "storage",
2574
+ "arguments": [
2575
+ "read",
2576
+ "write"
2577
+ ]
2578
+ }
2579
+ ]
2580
+ },
2581
+ {
2582
+ "name": "auto_prolong_session",
2583
+ "inputs": [
2584
+ {
2585
+ "name": "account",
2586
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2587
+ }
2588
+ ],
2589
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2590
+ "attributes": [
2591
+ {
2592
+ "name": "storage",
2593
+ "arguments": [
2594
+ "read",
2595
+ "write"
2596
+ ]
2597
+ }
2598
+ ]
2599
+ },
2600
+ {
2601
+ "name": "borrow",
2602
+ "inputs": [
2603
+ {
2604
+ "name": "asset",
2605
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
2606
+ },
2607
+ {
2608
+ "name": "amount",
2609
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2610
+ }
2611
+ ],
2612
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2613
+ "attributes": [
2614
+ {
2615
+ "name": "storage",
2616
+ "arguments": [
2617
+ "read",
2618
+ "write"
2619
+ ]
2620
+ }
2621
+ ]
2622
+ },
2623
+ {
2624
+ "name": "collateral_asset",
2625
+ "inputs": [],
2626
+ "output": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
2627
+ "attributes": null
2628
+ },
2629
+ {
2630
+ "name": "collateral_decimals",
2631
+ "inputs": [],
2632
+ "output": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b",
2633
+ "attributes": null
2634
+ },
2635
+ {
2636
+ "name": "current_tier_version",
2637
+ "inputs": [
2638
+ {
2639
+ "name": "tier_id",
2640
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2641
+ }
2642
+ ],
2643
+ "output": "97a75a6d6e892f11f5032fa516e39675b76377c3313d64f465a2c77c34a9e600",
2644
+ "attributes": [
2645
+ {
2646
+ "name": "storage",
2647
+ "arguments": [
2648
+ "read"
2649
+ ]
2650
+ }
2651
+ ]
2652
+ },
2653
+ {
2654
+ "name": "draw",
2655
+ "inputs": [
2656
+ {
2657
+ "name": "amount",
2658
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2659
+ }
2660
+ ],
2661
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2662
+ "attributes": [
2663
+ {
2664
+ "name": "storage",
2665
+ "arguments": [
2666
+ "read",
2667
+ "write"
2668
+ ]
2669
+ }
2670
+ ]
2671
+ },
2672
+ {
2673
+ "name": "expire_or_rollover",
2674
+ "inputs": [
2675
+ {
2676
+ "name": "account",
2677
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2678
+ },
2679
+ {
2680
+ "name": "cleanups",
2681
+ "concreteTypeId": "098b9de8dbe7e11fe1fc48274febeeb9eb46a1cabf8505ce43e75740a6becd44"
2682
+ },
2683
+ {
2684
+ "name": "outside",
2685
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2686
+ },
2687
+ {
2688
+ "name": "roll",
2689
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
2690
+ },
2691
+ {
2692
+ "name": "cosigner_signature",
2693
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
2694
+ }
2695
+ ],
2696
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2697
+ "attributes": [
2698
+ {
2699
+ "name": "doc-comment",
2700
+ "arguments": [
2701
+ " The PREPAID deadline: roll it if it earned the week, absorb it if it"
2702
+ ]
2703
+ },
2704
+ {
2705
+ "name": "doc-comment",
2706
+ "arguments": [
2707
+ " did not. See the ABI for why this one is cosigned and `expire_session`"
2708
+ ]
2709
+ },
2710
+ {
2711
+ "name": "doc-comment",
2712
+ "arguments": [
2713
+ " is not."
2714
+ ]
2715
+ },
2716
+ {
2717
+ "name": "storage",
2718
+ "arguments": [
2719
+ "read",
2720
+ "write"
2721
+ ]
2722
+ }
2723
+ ]
2724
+ },
2725
+ {
2726
+ "name": "expire_session",
2727
+ "inputs": [
2728
+ {
2729
+ "name": "account",
2730
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2731
+ },
2732
+ {
2733
+ "name": "cleanups",
2734
+ "concreteTypeId": "098b9de8dbe7e11fe1fc48274febeeb9eb46a1cabf8505ce43e75740a6becd44"
2735
+ }
2736
+ ],
2737
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2738
+ "attributes": [
2739
+ {
2740
+ "name": "storage",
2741
+ "arguments": [
2742
+ "read",
2743
+ "write"
2744
+ ]
2745
+ }
2746
+ ]
2747
+ },
2748
+ {
2749
+ "name": "expiry_cosigner",
2750
+ "inputs": [],
2751
+ "output": "8f44be37f59226eedaa8ba576d6674575f420f34a03f5d452cb9886ef9d38214",
2752
+ "attributes": [
2753
+ {
2754
+ "name": "storage",
2755
+ "arguments": [
2756
+ "read"
2757
+ ]
2758
+ }
2759
+ ]
2760
+ },
2761
+ {
2762
+ "name": "get_bad_debt",
2763
+ "inputs": [],
2764
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2765
+ "attributes": [
2766
+ {
2767
+ "name": "storage",
2768
+ "arguments": [
2769
+ "read"
2770
+ ]
2771
+ }
2772
+ ]
2773
+ },
2774
+ {
2775
+ "name": "get_debt",
2776
+ "inputs": [
2777
+ {
2778
+ "name": "account",
2779
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2780
+ },
2781
+ {
2782
+ "name": "asset",
2783
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
2784
+ }
2785
+ ],
2786
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2787
+ "attributes": [
2788
+ {
2789
+ "name": "storage",
2790
+ "arguments": [
2791
+ "read"
2792
+ ]
2793
+ }
2794
+ ]
2795
+ },
2796
+ {
2797
+ "name": "get_rollover",
2798
+ "inputs": [
2799
+ {
2800
+ "name": "account",
2801
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2802
+ }
2803
+ ],
2804
+ "output": "a6854c8e9915d523bdcbd5cc374fe6fb04b9107f327d1472d43ef86e40062d58",
2805
+ "attributes": [
2806
+ {
2807
+ "name": "storage",
2808
+ "arguments": [
2809
+ "read"
2810
+ ]
2811
+ }
2812
+ ]
2813
+ },
2814
+ {
2815
+ "name": "get_session",
2816
+ "inputs": [
2817
+ {
2818
+ "name": "account",
2819
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2820
+ }
2821
+ ],
2822
+ "output": "195f12aebd477c4d6feffbc37a5108db8c87f8860b5963983477413399ea2c1e",
2823
+ "attributes": [
2824
+ {
2825
+ "name": "storage",
2826
+ "arguments": [
2827
+ "read"
2828
+ ]
2829
+ }
2830
+ ]
2831
+ },
2832
+ {
2833
+ "name": "get_session_lines",
2834
+ "inputs": [
2835
+ {
2836
+ "name": "account",
2837
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2838
+ }
2839
+ ],
2840
+ "output": "a959a7a0807e375d81a61749a4dfd785b15566131fd25f7c81d2b756f748fe3d",
2841
+ "attributes": [
2842
+ {
2843
+ "name": "storage",
2844
+ "arguments": [
2845
+ "read"
2846
+ ]
2847
+ }
2848
+ ]
2849
+ },
2850
+ {
2851
+ "name": "get_tier",
2852
+ "inputs": [
2853
+ {
2854
+ "name": "tier_id",
2855
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2856
+ },
2857
+ {
2858
+ "name": "version",
2859
+ "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
2860
+ }
2861
+ ],
2862
+ "output": "656e8386dfb03ba77d21a3068c40f0d5d52c13db62a52a5ceb2d2aa85f0ee0f5",
2863
+ "attributes": [
2864
+ {
2865
+ "name": "storage",
2866
+ "arguments": [
2867
+ "read"
2868
+ ]
2869
+ }
2870
+ ]
2871
+ },
2872
+ {
2873
+ "name": "get_turbo_terms",
2874
+ "inputs": [
2875
+ {
2876
+ "name": "tier_id",
2877
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2878
+ },
2879
+ {
2880
+ "name": "version",
2881
+ "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
2882
+ }
2883
+ ],
2884
+ "output": "8c6e5c2bbb6c5d82ce576c05c52e3996f825e3c37c761b81cf40ffc4602ad684",
2885
+ "attributes": [
2886
+ {
2887
+ "name": "storage",
2888
+ "arguments": [
2889
+ "read"
2890
+ ]
2891
+ }
2892
+ ]
2893
+ },
2894
+ {
2895
+ "name": "get_user_discount",
2896
+ "inputs": [
2897
+ {
2898
+ "name": "user",
2899
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2900
+ },
2901
+ {
2902
+ "name": "tier_id",
2903
+ "concreteTypeId": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d"
2904
+ }
2905
+ ],
2906
+ "output": "0b936e35080f26fd23fa0fbc9883d7080b504aaa824a8d69eb0217ddbf6176a4",
2907
+ "attributes": [
2908
+ {
2909
+ "name": "storage",
2910
+ "arguments": [
2911
+ "read"
2912
+ ]
2913
+ }
2914
+ ]
2915
+ },
2916
+ {
2917
+ "name": "has_debts",
2918
+ "inputs": [
2919
+ {
2920
+ "name": "account",
2921
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2922
+ }
2923
+ ],
2924
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
2925
+ "attributes": [
2926
+ {
2927
+ "name": "storage",
2928
+ "arguments": [
2929
+ "read"
2930
+ ]
2931
+ }
2932
+ ]
2933
+ },
2934
+ {
2935
+ "name": "has_session",
2936
+ "inputs": [
2937
+ {
2938
+ "name": "account",
2939
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2940
+ }
2941
+ ],
2942
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
2943
+ "attributes": [
2944
+ {
2945
+ "name": "storage",
2946
+ "arguments": [
2947
+ "read"
2948
+ ]
2949
+ }
2950
+ ]
2951
+ },
2952
+ {
2953
+ "name": "initialize",
2954
+ "inputs": [],
2955
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2956
+ "attributes": [
2957
+ {
2958
+ "name": "storage",
2959
+ "arguments": [
2960
+ "read",
2961
+ "write"
2962
+ ]
2963
+ }
2964
+ ]
2965
+ },
2966
+ {
2967
+ "name": "is_call_allowed",
2968
+ "inputs": [
2969
+ {
2970
+ "name": "account",
2971
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2972
+ },
2973
+ {
2974
+ "name": "target",
2975
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
2976
+ }
2977
+ ],
2978
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
2979
+ "attributes": [
2980
+ {
2981
+ "name": "storage",
2982
+ "arguments": [
2983
+ "read"
2984
+ ]
2985
+ }
2986
+ ]
2987
+ },
2988
+ {
2989
+ "name": "is_initialized",
2990
+ "inputs": [],
2991
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
2992
+ "attributes": [
2993
+ {
2994
+ "name": "storage",
2995
+ "arguments": [
2996
+ "read"
2997
+ ]
2998
+ }
2999
+ ]
3000
+ },
3001
+ {
3002
+ "name": "is_tier_enabled",
3003
+ "inputs": [
3004
+ {
3005
+ "name": "tier_id",
3006
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3007
+ }
3008
+ ],
3009
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
3010
+ "attributes": [
3011
+ {
3012
+ "name": "storage",
3013
+ "arguments": [
3014
+ "read"
3015
+ ]
3016
+ }
3017
+ ]
3018
+ },
3019
+ {
3020
+ "name": "liquidate",
3021
+ "inputs": [
3022
+ {
3023
+ "name": "account",
3024
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3025
+ },
3026
+ {
3027
+ "name": "cleanups",
3028
+ "concreteTypeId": "098b9de8dbe7e11fe1fc48274febeeb9eb46a1cabf8505ce43e75740a6becd44"
3029
+ }
3030
+ ],
3031
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3032
+ "attributes": [
3033
+ {
3034
+ "name": "storage",
3035
+ "arguments": [
3036
+ "read",
3037
+ "write"
3038
+ ]
3039
+ }
3040
+ ]
3041
+ },
3042
+ {
3043
+ "name": "liquidator",
3044
+ "inputs": [],
3045
+ "output": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
3046
+ "attributes": [
3047
+ {
3048
+ "name": "storage",
3049
+ "arguments": [
3050
+ "read"
3051
+ ]
3052
+ }
3053
+ ]
3054
+ },
3055
+ {
3056
+ "name": "max_tier_books",
3057
+ "inputs": [],
3058
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3059
+ "attributes": null
3060
+ },
3061
+ {
3062
+ "name": "min_sellable",
3063
+ "inputs": [
3064
+ {
3065
+ "name": "account",
3066
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3067
+ },
3068
+ {
3069
+ "name": "asset",
3070
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
3071
+ }
3072
+ ],
3073
+ "output": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d",
3074
+ "attributes": [
3075
+ {
3076
+ "name": "storage",
3077
+ "arguments": [
3078
+ "read"
3079
+ ]
3080
+ }
3081
+ ]
3082
+ },
3083
+ {
3084
+ "name": "open_session",
3085
+ "inputs": [
3086
+ {
3087
+ "name": "tier_id",
3088
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3089
+ },
3090
+ {
3091
+ "name": "period",
3092
+ "concreteTypeId": "b744420bc56bde6e28d903d531e72762ae850514fc19209fda130ddbe6a380a2"
3093
+ }
3094
+ ],
3095
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3096
+ "attributes": [
3097
+ {
3098
+ "name": "payable",
3099
+ "arguments": []
3100
+ },
3101
+ {
3102
+ "name": "storage",
3103
+ "arguments": [
3104
+ "read",
3105
+ "write"
3106
+ ]
3107
+ }
3108
+ ]
3109
+ },
3110
+ {
3111
+ "name": "platform_payout",
3112
+ "inputs": [],
3113
+ "output": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
3114
+ "attributes": [
3115
+ {
3116
+ "name": "storage",
3117
+ "arguments": [
3118
+ "read"
3119
+ ]
3120
+ }
3121
+ ]
3122
+ },
3123
+ {
3124
+ "name": "price_feed",
3125
+ "inputs": [],
3126
+ "output": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
3127
+ "attributes": [
3128
+ {
3129
+ "name": "storage",
3130
+ "arguments": [
3131
+ "read"
3132
+ ]
3133
+ }
3134
+ ]
3135
+ },
3136
+ {
3137
+ "name": "prolong_session",
3138
+ "inputs": [
3139
+ {
3140
+ "name": "period",
3141
+ "concreteTypeId": "b744420bc56bde6e28d903d531e72762ae850514fc19209fda130ddbe6a380a2"
3142
+ },
3143
+ {
3144
+ "name": "times",
3145
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3146
+ }
3147
+ ],
3148
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3149
+ "attributes": [
3150
+ {
3151
+ "name": "storage",
3152
+ "arguments": [
3153
+ "read",
3154
+ "write"
3155
+ ]
3156
+ }
3157
+ ]
3158
+ },
3159
+ {
3160
+ "name": "publish_tier_v2",
3161
+ "inputs": [
3162
+ {
3163
+ "name": "tier_id",
3164
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3165
+ },
3166
+ {
3167
+ "name": "params",
3168
+ "concreteTypeId": "4514d9f6a6dd0344fb8d6a573f8d4371decb78e70e2a907c9cc7b3c189080841"
3169
+ },
3170
+ {
3171
+ "name": "terms",
3172
+ "concreteTypeId": "756ac75abc0547feed71f2a44098169495dc84d5fbdaef83d885b0cce5d580cc"
3173
+ },
3174
+ {
3175
+ "name": "books",
3176
+ "concreteTypeId": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211"
3177
+ }
3178
+ ],
3179
+ "output": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc",
3180
+ "attributes": [
3181
+ {
3182
+ "name": "storage",
3183
+ "arguments": [
3184
+ "read",
3185
+ "write"
3186
+ ]
3187
+ }
3188
+ ]
3189
+ },
3190
+ {
3191
+ "name": "publish_tier_version",
3192
+ "inputs": [
3193
+ {
3194
+ "name": "tier_id",
3195
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3196
+ },
3197
+ {
3198
+ "name": "params",
3199
+ "concreteTypeId": "4514d9f6a6dd0344fb8d6a573f8d4371decb78e70e2a907c9cc7b3c189080841"
3200
+ },
3201
+ {
3202
+ "name": "books",
3203
+ "concreteTypeId": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211"
3204
+ }
3205
+ ],
3206
+ "output": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc",
3207
+ "attributes": [
3208
+ {
3209
+ "name": "storage",
3210
+ "arguments": [
3211
+ "read",
3212
+ "write"
3213
+ ]
3214
+ }
3215
+ ]
3216
+ },
3217
+ {
3218
+ "name": "receive_settlement",
3219
+ "inputs": [],
3220
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3221
+ "attributes": [
3222
+ {
3223
+ "name": "payable",
3224
+ "arguments": []
3225
+ },
3226
+ {
3227
+ "name": "storage",
3228
+ "arguments": [
3229
+ "read",
3230
+ "write"
3231
+ ]
3232
+ }
3233
+ ]
3234
+ },
3235
+ {
3236
+ "name": "registry",
3237
+ "inputs": [],
3238
+ "output": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
3239
+ "attributes": [
3240
+ {
3241
+ "name": "storage",
3242
+ "arguments": [
3243
+ "read"
3244
+ ]
3245
+ }
3246
+ ]
3247
+ },
3248
+ {
3249
+ "name": "remove_user_discount",
3250
+ "inputs": [
3251
+ {
3252
+ "name": "user",
3253
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3254
+ },
3255
+ {
3256
+ "name": "tier_id",
3257
+ "concreteTypeId": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d"
3258
+ }
3259
+ ],
3260
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3261
+ "attributes": [
3262
+ {
3263
+ "name": "storage",
3264
+ "arguments": [
3265
+ "read",
3266
+ "write"
3267
+ ]
3268
+ }
3269
+ ]
3270
+ },
3271
+ {
3272
+ "name": "repay",
3273
+ "inputs": [],
3274
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3275
+ "attributes": [
3276
+ {
3277
+ "name": "payable",
3278
+ "arguments": []
3279
+ },
3280
+ {
3281
+ "name": "storage",
3282
+ "arguments": [
3283
+ "read",
3284
+ "write"
3285
+ ]
3286
+ }
3287
+ ]
3288
+ },
3289
+ {
3290
+ "name": "repay_base_from_collateral",
3291
+ "inputs": [
3292
+ {
3293
+ "name": "asset",
3294
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
3295
+ },
3296
+ {
3297
+ "name": "amount",
3298
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3299
+ }
3300
+ ],
3301
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3302
+ "attributes": [
3303
+ {
3304
+ "name": "storage",
3305
+ "arguments": [
3306
+ "read",
3307
+ "write"
3308
+ ]
3309
+ }
3310
+ ]
3311
+ },
3312
+ {
3313
+ "name": "repay_from_collateral",
3314
+ "inputs": [
3315
+ {
3316
+ "name": "amount",
3317
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3318
+ }
3319
+ ],
3320
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3321
+ "attributes": [
3322
+ {
3323
+ "name": "storage",
3324
+ "arguments": [
3325
+ "read",
3326
+ "write"
3327
+ ]
3328
+ }
3329
+ ]
3330
+ },
3331
+ {
3332
+ "name": "resolve_user_discount",
3333
+ "inputs": [
3334
+ {
3335
+ "name": "user",
3336
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3337
+ },
3338
+ {
3339
+ "name": "tier_id",
3340
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3341
+ }
3342
+ ],
3343
+ "output": "0b936e35080f26fd23fa0fbc9883d7080b504aaa824a8d69eb0217ddbf6176a4",
3344
+ "attributes": [
3345
+ {
3346
+ "name": "storage",
3347
+ "arguments": [
3348
+ "read"
3349
+ ]
3350
+ }
3351
+ ]
3352
+ },
3353
+ {
3354
+ "name": "return_quote",
3355
+ "inputs": [],
3356
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3357
+ "attributes": [
3358
+ {
3359
+ "name": "payable",
3360
+ "arguments": []
3361
+ },
3362
+ {
3363
+ "name": "storage",
3364
+ "arguments": [
3365
+ "read",
3366
+ "write"
3367
+ ]
3368
+ }
3369
+ ]
3370
+ },
3371
+ {
3372
+ "name": "session_assets",
3373
+ "inputs": [
3374
+ {
3375
+ "name": "account",
3376
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3377
+ }
3378
+ ],
3379
+ "output": "8b2275934873f381a769c82334e6f66595eeb350d8b2dd012eef4d9bb117942b",
3380
+ "attributes": [
3381
+ {
3382
+ "name": "storage",
3383
+ "arguments": [
3384
+ "read"
3385
+ ]
3386
+ }
3387
+ ]
3388
+ },
3389
+ {
3390
+ "name": "session_books",
3391
+ "inputs": [
3392
+ {
3393
+ "name": "account",
3394
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3395
+ }
3396
+ ],
3397
+ "output": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211",
3398
+ "attributes": [
3399
+ {
3400
+ "name": "storage",
3401
+ "arguments": [
3402
+ "read"
3403
+ ]
3404
+ }
3405
+ ]
3406
+ },
3407
+ {
3408
+ "name": "session_turbo_terms",
3409
+ "inputs": [
3410
+ {
3411
+ "name": "account",
3412
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3413
+ }
3414
+ ],
3415
+ "output": "8c6e5c2bbb6c5d82ce576c05c52e3996f825e3c37c761b81cf40ffc4602ad684",
3416
+ "attributes": [
3417
+ {
3418
+ "name": "storage",
3419
+ "arguments": [
3420
+ "read"
3421
+ ]
3422
+ }
3423
+ ]
3424
+ },
3425
+ {
3426
+ "name": "set_auto_prolong",
3427
+ "inputs": [
3428
+ {
3429
+ "name": "period",
3430
+ "concreteTypeId": "3b9275f7d9b0bac2221651c432d1a3b3bb955376a54560c74f4b141eb3fb98c9"
3431
+ }
3432
+ ],
3433
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3434
+ "attributes": [
3435
+ {
3436
+ "name": "storage",
3437
+ "arguments": [
3438
+ "read",
3439
+ "write"
3440
+ ]
3441
+ }
3442
+ ]
3443
+ },
3444
+ {
3445
+ "name": "set_expiry_cosigner",
3446
+ "inputs": [
3447
+ {
3448
+ "name": "cosigner",
3449
+ "concreteTypeId": "f597b637c3b0f588fb8d7086c6f4735caa3122b85f0423b82e489f9bb58e2308"
3450
+ }
3451
+ ],
3452
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3453
+ "attributes": [
3454
+ {
3455
+ "name": "storage",
3456
+ "arguments": [
3457
+ "read",
3458
+ "write"
3459
+ ]
3460
+ }
3461
+ ]
3462
+ },
3463
+ {
3464
+ "name": "set_liquidator",
3465
+ "inputs": [
3466
+ {
3467
+ "name": "new_liquidator",
3468
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3469
+ }
3470
+ ],
3471
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3472
+ "attributes": [
3473
+ {
3474
+ "name": "storage",
3475
+ "arguments": [
3476
+ "read",
3477
+ "write"
3478
+ ]
3479
+ }
3480
+ ]
3481
+ },
3482
+ {
3483
+ "name": "set_platform_payout",
3484
+ "inputs": [
3485
+ {
3486
+ "name": "new_platform_payout",
3487
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3488
+ }
3489
+ ],
3490
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3491
+ "attributes": [
3492
+ {
3493
+ "name": "storage",
3494
+ "arguments": [
3495
+ "read",
3496
+ "write"
3497
+ ]
3498
+ }
3499
+ ]
3500
+ },
3501
+ {
3502
+ "name": "set_price_feed",
3503
+ "inputs": [
3504
+ {
3505
+ "name": "new_price_feed",
3506
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3507
+ }
3508
+ ],
3509
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3510
+ "attributes": [
3511
+ {
3512
+ "name": "storage",
3513
+ "arguments": [
3514
+ "read",
3515
+ "write"
3516
+ ]
3517
+ }
3518
+ ]
3519
+ },
3520
+ {
3521
+ "name": "set_registry",
3522
+ "inputs": [
3523
+ {
3524
+ "name": "new_registry",
3525
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
3526
+ }
3527
+ ],
3528
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3529
+ "attributes": [
3530
+ {
3531
+ "name": "storage",
3532
+ "arguments": [
3533
+ "read",
3534
+ "write"
3535
+ ]
3536
+ }
3537
+ ]
3538
+ },
3539
+ {
3540
+ "name": "set_tier_enabled",
3541
+ "inputs": [
3542
+ {
3543
+ "name": "tier_id",
3544
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3545
+ },
3546
+ {
3547
+ "name": "enabled",
3548
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
3549
+ }
3550
+ ],
3551
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3552
+ "attributes": [
3553
+ {
3554
+ "name": "storage",
3555
+ "arguments": [
3556
+ "read",
3557
+ "write"
3558
+ ]
3559
+ }
3560
+ ]
3561
+ },
3562
+ {
3563
+ "name": "set_user_discount",
3564
+ "inputs": [
3565
+ {
3566
+ "name": "user",
3567
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3568
+ },
3569
+ {
3570
+ "name": "tier_id",
3571
+ "concreteTypeId": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d"
3572
+ },
3573
+ {
3574
+ "name": "discount",
3575
+ "concreteTypeId": "0b936e35080f26fd23fa0fbc9883d7080b504aaa824a8d69eb0217ddbf6176a4"
3576
+ }
3577
+ ],
3578
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3579
+ "attributes": [
3580
+ {
3581
+ "name": "storage",
3582
+ "arguments": [
3583
+ "read",
3584
+ "write"
3585
+ ]
3586
+ }
3587
+ ]
3588
+ },
3589
+ {
3590
+ "name": "settle_session",
3591
+ "inputs": [
3592
+ {
3593
+ "name": "cleanups",
3594
+ "concreteTypeId": "098b9de8dbe7e11fe1fc48274febeeb9eb46a1cabf8505ce43e75740a6becd44"
3595
+ }
3596
+ ],
3597
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3598
+ "attributes": [
3599
+ {
3600
+ "name": "storage",
3601
+ "arguments": [
3602
+ "read",
3603
+ "write"
3604
+ ]
3605
+ }
3606
+ ]
3607
+ },
3608
+ {
3609
+ "name": "tier_assets",
3610
+ "inputs": [
3611
+ {
3612
+ "name": "tier_id",
3613
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3614
+ },
3615
+ {
3616
+ "name": "version",
3617
+ "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
3618
+ }
3619
+ ],
3620
+ "output": "8b2275934873f381a769c82334e6f66595eeb350d8b2dd012eef4d9bb117942b",
3621
+ "attributes": [
3622
+ {
3623
+ "name": "storage",
3624
+ "arguments": [
3625
+ "read"
3626
+ ]
3627
+ }
3628
+ ]
3629
+ },
3630
+ {
3631
+ "name": "tier_books",
3632
+ "inputs": [
3633
+ {
3634
+ "name": "tier_id",
3635
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3636
+ },
3637
+ {
3638
+ "name": "version",
3639
+ "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc"
3640
+ }
3641
+ ],
3642
+ "output": "b8ca7626a08e8fb93379b5d9d58d8a12eede8de9f087bfa21feccca44f92e211",
3643
+ "attributes": [
3644
+ {
3645
+ "name": "storage",
3646
+ "arguments": [
3647
+ "read"
3648
+ ]
3649
+ }
3650
+ ]
3651
+ },
3652
+ {
3653
+ "name": "withdraw",
3654
+ "inputs": [
3655
+ {
3656
+ "name": "asset",
3657
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
3658
+ },
3659
+ {
3660
+ "name": "amount",
3661
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3662
+ }
3663
+ ],
3664
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3665
+ "attributes": [
3666
+ {
3667
+ "name": "storage",
3668
+ "arguments": [
3669
+ "read",
3670
+ "write"
3671
+ ]
3672
+ }
3673
+ ]
3674
+ },
3675
+ {
3676
+ "name": "get_roles",
3677
+ "inputs": [
3678
+ {
3679
+ "name": "account",
3680
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3681
+ }
3682
+ ],
3683
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3684
+ "attributes": [
3685
+ {
3686
+ "name": "storage",
3687
+ "arguments": [
3688
+ "read"
3689
+ ]
3690
+ }
3691
+ ]
3692
+ },
3693
+ {
3694
+ "name": "grant_role",
3695
+ "inputs": [
3696
+ {
3697
+ "name": "role",
3698
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3699
+ },
3700
+ {
3701
+ "name": "account",
3702
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3703
+ }
3704
+ ],
3705
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3706
+ "attributes": [
3707
+ {
3708
+ "name": "storage",
3709
+ "arguments": [
3710
+ "read",
3711
+ "write"
3712
+ ]
3713
+ }
3714
+ ]
3715
+ },
3716
+ {
3717
+ "name": "has_role",
3718
+ "inputs": [
3719
+ {
3720
+ "name": "role",
3721
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3722
+ },
3723
+ {
3724
+ "name": "account",
3725
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3726
+ }
3727
+ ],
3728
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
3729
+ "attributes": [
3730
+ {
3731
+ "name": "storage",
3732
+ "arguments": [
3733
+ "read"
3734
+ ]
3735
+ }
3736
+ ]
3737
+ },
3738
+ {
3739
+ "name": "revoke_role",
3740
+ "inputs": [
3741
+ {
3742
+ "name": "role",
3743
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
3744
+ },
3745
+ {
3746
+ "name": "account",
3747
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3748
+ }
3749
+ ],
3750
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3751
+ "attributes": [
3752
+ {
3753
+ "name": "storage",
3754
+ "arguments": [
3755
+ "read",
3756
+ "write"
3757
+ ]
3758
+ }
3759
+ ]
3760
+ },
3761
+ {
3762
+ "name": "is_paused",
3763
+ "inputs": [],
3764
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
3765
+ "attributes": [
3766
+ {
3767
+ "name": "storage",
3768
+ "arguments": [
3769
+ "read"
3770
+ ]
3771
+ }
3772
+ ]
3773
+ },
3774
+ {
3775
+ "name": "pause",
3776
+ "inputs": [],
3777
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3778
+ "attributes": [
3779
+ {
3780
+ "name": "storage",
3781
+ "arguments": [
3782
+ "write"
3783
+ ]
3784
+ }
3785
+ ]
3786
+ },
3787
+ {
3788
+ "name": "unpause",
3789
+ "inputs": [],
3790
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3791
+ "attributes": [
3792
+ {
3793
+ "name": "storage",
3794
+ "arguments": [
3795
+ "write"
3796
+ ]
3797
+ }
3798
+ ]
3799
+ }
3800
+ ],
3801
+ "loggedTypes": [
3802
+ {
3803
+ "logId": "4997665884103701952",
3804
+ "concreteTypeId": "455b46a49016f5c03c18ce54b969ea3d0d33c9b00263b3dcc36aa8da27558b8a"
3805
+ },
3806
+ {
3807
+ "logId": "12514258225962524304",
3808
+ "concreteTypeId": "adab938d9a019e906a13864731c1cec8210724445341b91a6c7b194a74eed69f"
3809
+ },
3810
+ {
3811
+ "logId": "14913197889258292025",
3812
+ "concreteTypeId": "cef652777e5883399519b5f2ddeb264e106de9bca7b86f50bc64302a29451ba8"
3813
+ },
3814
+ {
3815
+ "logId": "15024664283095569541",
3816
+ "concreteTypeId": "d082548fb769148507c3eb36d4f039e87c91a6947dd3da299d9e4246d4aff634"
3817
+ },
3818
+ {
3819
+ "logId": "2487585211828868623",
3820
+ "concreteTypeId": "2285ad920393160f43816bfa64a891b1956e2bbd066346d01638db4aaa81cfb9"
3821
+ },
3822
+ {
3823
+ "logId": "7577732612780156899",
3824
+ "concreteTypeId": "692983a9aba767e36b5014d3eb842447c736e341cc3b30fcb051b1f5a3d5f80a"
3825
+ },
3826
+ {
3827
+ "logId": "5856849183913492471",
3828
+ "concreteTypeId": "5147b54d46333ff70e73dcbb1dd2645b353ed91b3ee802589a064033720b8db6"
3829
+ },
3830
+ {
3831
+ "logId": "1455183322338097280",
3832
+ "concreteTypeId": "1431d9859308f8805c398656c37808f1e757e0b0b069aba1bc265a07da382c17"
3833
+ },
3834
+ {
3835
+ "logId": "10928624505251675",
3836
+ "concreteTypeId": "0026d386ad84e75b525bec3e7c8b6a63df3fcd108a8c4b26438c8a7a2e2c218b"
3837
+ },
3838
+ {
3839
+ "logId": "5993315539830474100",
3840
+ "concreteTypeId": "532c88bac26c85742e65ccb7d37979e658775f3c621544ce2b8f206d584af8af"
3841
+ },
3842
+ {
3843
+ "logId": "18226138647467034447",
3844
+ "concreteTypeId": "fcf040889d4a874f96876407c70c5777ff94880dd884e10a90ad454ee2386e76"
3845
+ },
3846
+ {
3847
+ "logId": "8211282964376093823",
3848
+ "concreteTypeId": "71f45659d1da847f7eedb0d56ee56e49eca1073a2b279dd5dcefd6233a5f8c8f"
3849
+ },
3850
+ {
3851
+ "logId": "15516317716168876987",
3852
+ "concreteTypeId": "d75508c0fe58a3bbf57a29d9387119c6238c8bf50f81b4a1f7a7d90b2b0b010a"
3853
+ },
3854
+ {
3855
+ "logId": "6666782353637228547",
3856
+ "concreteTypeId": "5c852b3a7f63c0036b492e8bdfff446c35ab6392447eaceab832807a28c07abc"
3857
+ },
3858
+ {
3859
+ "logId": "9866618221814648940",
3860
+ "concreteTypeId": "88ed44ff45a8906c6beefd3c81c9859ead9f36aac2e9b06912a7ae83cbb0628c"
3861
+ },
3862
+ {
3863
+ "logId": "6216763621805167948",
3864
+ "concreteTypeId": "564661938244954c8836434b2cf26c3495e0538f78f281fc531f82003ef55d42"
3865
+ },
3866
+ {
3867
+ "logId": "16386696543407055422",
3868
+ "concreteTypeId": "e3693daf8fe6223e6a97667025b9fc906b02ca79ea87b1376058b0be52c7778d"
3869
+ },
3870
+ {
3871
+ "logId": "9625438227679580466",
3872
+ "concreteTypeId": "85946d12004e9132da992025dfcf846ed2fa2d4e13b6cf0100466afa470cd67f"
3873
+ },
3874
+ {
3875
+ "logId": "2612884364307876194",
3876
+ "concreteTypeId": "2442d47c55be4962ca0763d3e24b3082641f3085e2be89002e423fbdac520a49"
3877
+ },
3878
+ {
3879
+ "logId": "4458524804492366363",
3880
+ "concreteTypeId": "3ddfdcaffa09121b072ff8f41a532d2156bb23e8309acd9aa56aac205a2b90b2"
3881
+ },
3882
+ {
3883
+ "logId": "10234640486656646213",
3884
+ "concreteTypeId": "8e08bf4c13001c457482f0c101352759061dec92b19e63119adff05072f82f78"
3885
+ },
3886
+ {
3887
+ "logId": "10653866670748685206",
3888
+ "concreteTypeId": "93da234a5a59539605b94f98140ee3d7586ad3cbc4ce4693c2f71fadf8638318"
3889
+ },
3890
+ {
3891
+ "logId": "7029692595623760888",
3892
+ "concreteTypeId": "618e7c2bba5913f8756a2b64655023f57316dcf59752e837bd0cd2dbfae7f0f0"
3893
+ },
3894
+ {
3895
+ "logId": "16608986890741127100",
3896
+ "concreteTypeId": "e67ef99435be97bc9449c82c1b336087fb2229d27680e02e934dc0ac6ce38d86"
3897
+ },
3898
+ {
3899
+ "logId": "10588845906703333137",
3900
+ "concreteTypeId": "92f323400266b711dc630732cb484cabd5e5e0259d5027a3b8ad3fed4b2f9936"
3901
+ },
3902
+ {
3903
+ "logId": "12039293359619364051",
3904
+ "concreteTypeId": "a71429860ed4d4d35c22389c7dfc759df9df29f0fd2f7e9a3995d9ba2b781b53"
3905
+ },
3906
+ {
3907
+ "logId": "5047184782049456454",
3908
+ "concreteTypeId": "460b33d171d0b146e78150be7a9a967e4a5bba2c93bfbb33cc4c20ce7196fa63"
3909
+ },
3910
+ {
3911
+ "logId": "5186484768456530393",
3912
+ "concreteTypeId": "47fa186af0d359d9cc8a9d356bd1a3d0e9d5dabea8bae39bb44f6f0a7b71fc4c"
3913
+ },
3914
+ {
3915
+ "logId": "17653807583670182718",
3916
+ "concreteTypeId": "f4feec76a5c2233e9e68afb7eb61f8ab3892b44014a18c6a25174917e7bf8810"
3917
+ },
3918
+ {
3919
+ "logId": "9484255882611892802",
3920
+ "concreteTypeId": "839ed879b9fda2421ed22145534f8749aa9ffd32c4fe8d6f9d219b9de2fe0d48"
3921
+ },
3922
+ {
3923
+ "logId": "13633858513150244942",
3924
+ "concreteTypeId": "bd3532151a41784e9f20402e1f532a784483d642628fc0f4bd77316d236e076a"
3925
+ },
3926
+ {
3927
+ "logId": "12318307230241804626",
3928
+ "concreteTypeId": "aaf36b2924b051521d649c120bdfc7bdb461abfb6531a5c37823f2bfcc024174"
3929
+ },
3930
+ {
3931
+ "logId": "13223605075162873955",
3932
+ "concreteTypeId": "b783aec11322c063e9d012c4942055569ade8a9493c8f31dd93b030af966938c"
3933
+ },
3934
+ {
3935
+ "logId": "11564462495369416089",
3936
+ "concreteTypeId": "a07d395e4ed24d99e538ba7eaea20f99806a77c4bd9f4ac6c1488f9ccf349ef1"
3937
+ },
3938
+ {
3939
+ "logId": "16633138457372901698",
3940
+ "concreteTypeId": "e6d4c74d0399c142f512c0821bc8c248c9d7b9f0d370d9b1eeac6dad489c0e75"
3941
+ }
3942
+ ],
3943
+ "messagesTypes": [],
3944
+ "configurables": [
3945
+ {
3946
+ "name": "INITIAL_ADMIN",
3947
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
3948
+ "offset": 156344,
3949
+ "indirect": false
3950
+ },
3951
+ {
3952
+ "name": "INITIAL_REGISTRY",
3953
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
3954
+ "offset": 156496,
3955
+ "indirect": false
3956
+ },
3957
+ {
3958
+ "name": "INITIAL_PRICE_FEED",
3959
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
3960
+ "offset": 156464,
3961
+ "indirect": false
3962
+ },
3963
+ {
3964
+ "name": "INITIAL_PLATFORM_PAYOUT",
3965
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
3966
+ "offset": 156424,
3967
+ "indirect": false
3968
+ },
3969
+ {
3970
+ "name": "INITIAL_LIQUIDATOR",
3971
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
3972
+ "offset": 156384,
3973
+ "indirect": false
3974
+ },
3975
+ {
3976
+ "name": "COLLATERAL_ASSET",
3977
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
3978
+ "offset": 156304,
3979
+ "indirect": false
3980
+ },
3981
+ {
3982
+ "name": "COLLATERAL_DECIMALS",
3983
+ "concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b",
3984
+ "offset": 156336,
3985
+ "indirect": false
3986
+ },
3987
+ {
3988
+ "name": "MAX_TIER_BOOKS",
3989
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3990
+ "offset": 156528,
3991
+ "indirect": false
3992
+ },
3993
+ {
3994
+ "name": "BASE_REPAY_FEE_PPM",
3995
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3996
+ "offset": 156296,
3997
+ "indirect": false
3998
+ }
3999
+ ],
4000
+ "errorCodes": {},
4001
+ "panickingCalls": {}
4002
+ };
4003
+ const storageSlots = [
4004
+ {
4005
+ "key": "10e7cbf60d764b48f855b293d6b4ef1df3d6bcbf610ca3db9118d938021b541e",
4006
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4007
+ },
4008
+ {
4009
+ "key": "3e684369d3fb07194fde634a209db2db8a839c4a3bac3a721e27771755bfc695",
4010
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4011
+ },
4012
+ {
4013
+ "key": "3e684369d3fb07194fde634a209db2db8a839c4a3bac3a721e27771755bfc696",
4014
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4015
+ },
4016
+ {
4017
+ "key": "48952c4dcb85139280b31575f27623c4f3fcef69e545e0b7406f49b9def0d398",
4018
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4019
+ },
4020
+ {
4021
+ "key": "4cc709eb6156b3101cd56981482a3e83b12df6499ad14ee6e3b458981afacb4a",
4022
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4023
+ },
4024
+ {
4025
+ "key": "5c4892b4971f5f11cc3ced35e6c8d3409db1cb10482fbf4aefd82df53d98a0b5",
4026
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4027
+ },
4028
+ {
4029
+ "key": "8e3806335ed7969368f274f752a2492b6edba50827400c742ddefb139fd826d0",
4030
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4031
+ },
4032
+ {
4033
+ "key": "8e3806335ed7969368f274f752a2492b6edba50827400c742ddefb139fd826d1",
4034
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4035
+ },
4036
+ {
4037
+ "key": "c31ea37444e164f0df80072c31565d102b97cb0f0e8d52194ba756b8a88273fd",
4038
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4039
+ },
4040
+ {
4041
+ "key": "c31ea37444e164f0df80072c31565d102b97cb0f0e8d52194ba756b8a88273fe",
4042
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
4043
+ }
4044
+ ];
4045
+ export class PropMarginPoolInterface extends Interface {
4046
+ constructor() {
4047
+ super(abi);
4048
+ }
4049
+ }
4050
+ export class PropMarginPool extends __Contract {
4051
+ static abi = abi;
4052
+ static storageSlots = storageSlots;
4053
+ constructor(id, accountOrProvider) {
4054
+ super(id, abi, accountOrProvider);
4055
+ }
4056
+ }
4057
+ //# sourceMappingURL=PropMarginPool.js.map