-
Notifications
You must be signed in to change notification settings - Fork 0
/
plutus.ts
271 lines (267 loc) · 29.2 KB
/
plutus.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
// deno-lint-ignore-file
import {
applyParamsToScript,
Data,
Validator,
} from "https://deno.land/x/lucid@0.10.4/mod.ts";
export interface CardanoLoansBeaconPolicy {
new (): Validator;
redeemer: { MintAskToken: [string] } | { MintOfferToken: [string] } | {
MintActiveToken: [string, string];
} | "BurnBeaconToken";
}
export const CardanoLoansBeaconPolicy = Object.assign(
function () {
return {
type: "PlutusV2",
script:
"590eae0100003332323232323232323232322322322232323232533300f32323232323232323232323232323232323232323232323232323232323232323253330303370e9000007099191919299981a299981a001099980280f25122323232323232533303c3370e66601e0060389110341736b00480084c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc1354ccc1354ccc13406040045280991919191919191919191918171982e19982c19b8f00a0384c0103d87a80004c0103d87980003305c3330583371e01004e980103d87a80004c0103d87980003305c333058337109000002a6103d87a80004c0103d87980003305c333058337109000001a6103d87a80004c0103d87980003305c333058333058533305b00114a22941282514c0103d87a80004c0103d87980004bd701bab305c001305c002375a60b400260b40046eb4c160004c160004c15c008dd7182a800982a8011bae3053001304b533304d3370e9000182600208020b0a5013371e03800c2940cdc78058221824a99982599b8748000c128008400858c090004c138004c1194ccc120cdc3a4008608e01a201a2c6eb8c130004c1114ccc118cdc3a4000608a00220022c60940026084a66608866e1d200030430011001163048001304053330423370e9000182080188018b1bae3046001303e53330403370e9001181f80188018b182200098220011821000981d299981e19b8748000c0ec014401458401cc100004c100008dd5981f000981f001181e000981a0010a50100114a06601602a00466ebcdd30089ba64bd6f7b63081044341736b00010101001bae3036001302e025153330303370e900100709919191919299981aa99981a80188010a50100114a0660186eb0cc0c0c0c80912010003333332323232222233300c0044a244646464646464a66608666e1cccc05800c0292201054f66666572004800854ccc10ccdc399980b001805005a40042646464646464646464646464646464646464646464646464a6660b6a6660b6a6660b603e201a29404c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c100cc1b8ccc1a8cdc7807018a60103d87a80004c0103d87980003306e33306a3371e018064980103d87a80004c0103d87980003306e33306a337109000004a6103d87a80004c0103d87980003306e33306a337109000003a6103d87a80004c0103d87980003306e33306a0024c0103d87a80004c0103d87980003306e33306a33306a533306d00314a22941282514c0103d87a80004c0103d87980003306e33306a0014c0103d87a80004c0103d87980004bd70198198011191919981c0009119b880010024c0106d8799f0001ff003038001306c001323330350012233710002004980106d8799f0001ff003035003375660d800260d800460d400260d40046eb4c1a0004c1a0008dd69833000983300098328011bae30630013063002375c60c200260b2a6660b666e1d2002305a00b100b1614a0200229414ccc1694ccc168cdc780124410013371e0029110014a0266e24cdc0001a410137dc0466605a0349110048810013371200666605a0340040026eb8c16c010dd7182c8019bad305c001305c00232323376060b800460b800260b80026eb0c168004c168004c164004c1414ccc148cdc3a400460a200420042c605600260aa002609aa66609e66e1d2004304e00d100d163371e00c0286096a66609a66e1d2000304c00110011630510013049533304b3370e9000182500088008b18278009823a99982499b8748000c12000c400c58dd718268009822a99982399b8748008c11800c400c58c12c004c12c008c124004c1054ccc10ccdc3a4000608400a200a2c2c200e608e002608e0046eacc114004c114008c10c004c0ec008c0040048894ccc0ec00852889919299981d180180109998028028008018a50303f003303d00222232323232323232323300a3370400e00266e0800c014dd6982180098218011bad30410013039005375a607e002607e0046eb4c0f4004c0d400c8c8c8c8c8c8c0f8004c0d8c94ccc0e4cdc3a4000607000220022ca66607066e1c005200014c103d87a800015333038337100029000099ba548000cc0f0cdd2a4000660786ea0cdc0a4000006660786ea0cdc0a400000297ae04bd70099ba548000cc0f0cdd2a4000660786ea000ccc0f0dd4000a5eb812f5c06eb4c0f0004c0f0008dd6981d000981900080e801009815991919299981c181d801099191919299981c99b8f004489054f66666572001533303953330393370e0069001099b8f00200814a0266e1c005200214a02a66607266e3c0092201054f66666572001533303953330393370e0029001099b8f00400814a0266e1c00d200214a02c6eb4c0e8010dd7181c0019bad3038004375c606c0062c60720026072024606e0226eb8c0d8004c0b809454ccc0c0cdc3a400801c2646464646464a66606c00420022940ccc01807d289119191919299981d99b8733300e00101b488106416374697665004800854ccc0eccdc399980700080d805240042a66607666e1cccc03800406c021200213232323232323232323232323253330485333048012100114a0266e3c05c00852819b8f00703f375c60960026086a66608a66e1d200030440011001163049001304153330433370e9000182100088008b1823800981fa99982099b8748000c10000c400c58dd71822800981ea99981f99b8748008c0f800c400c58c10c004c10c008c104004c0e54ccc0eccdc3a4000607400620062c2c2c200a6eacc0fc004c0fc008c0f4004c0d4008ccc8c8c8c888c040cc0f8ccc0e8cdc398028012401098103d87a80004c0103d87980003303e33303a330030024bded8c01044341736b00010120004c0103d87a80004c0103d87980003303e33303a330030024bded8c0106454f6666657200010120004c0103d87a80004c0103d87980003303e33303a330030024bded8c01074641637469766500010101004c0103d87a80004c0103d87980003303e33303a33003002337606ea4004dd42400498103d87a80004c0103d87980004bd701800800911299981e0010a5013232533303b3375e6e98cc0fc0092f5bded8c06e98cc0fc00d2f5bded8c029444ccc01401400400cc10000cc0f8008c004004894ccc0e40045200013233700900119801801800981e0008098019bae30380013038002375c606c002605c04a266646002002444a66606c00429444c8c94ccc0d4c00c0084ccc01401400400c528181d001981c001007919b88375a6066002900018008009111299981a801880109919199980300300099801801002001981c802181b801911191919299981999b874800800452000132375a60720026062004606200264a66606466e1d200200114c0103d87a800013232330080010053756607000260600046060002660440060046002002444a666062004298103d87a800013232323253330323371e00a002266e95200033036375000497ae01333007007003005375c60640066eb4c0c8008c0d400cc0cc008c004004894ccc0b80045288991929998168010998020020008a5030320023370e900118161baa30300013001001222533302d00214a026464a66605866e3c00800c528899980280280080198188019bae302f00223253330283370e90000008991919191919191919191919299981b981d001099191924c6602400646464931bae303a002375c60700026eb8c0dc020dd7181a8038b1bab30380013038002375a606c002606c0046eb4c0d0004c0d0008c8c8cdd8181a001181a000981a0009bac30320013032002375c606000260600046eb8c0b8004c09800854ccc0a0cdc3a400400226464646464646464646464646464a6660726078004264646464931980a8021191919191924c60320066eb8c0fc00cdd7181e801181e801191919bb030410023041001304100137586076002602600a6eb8c0e4028dd7181b8048b1bab303a001303a00230380013038002375a606c002606c0046eb4c0d0004c0d0008c8c8cdd8181a001181a000981a0009bac30320013032002375c606000260600046eb8c0b8004c09800854ccc0a0cdc3a400800226464646464646464646464646464646464646464a66607e60840042646464646493180d8029980d8041191919191924c603e0066eb8c11400cdd718218011821801191919bb03047002304700130470013758608200260320126eb8c0fc038dd7181e8068b182000098200011bad303e001303e002375660780026078004607400260740046eb4c0e0004c0e0008dd6981b000981b001191919bb03036002303600130360013758606800260680046eb8c0c8004c0c8008dd7181800098180011bae302e001302600216302600123253330273370e9000000899191919299981718188010a4c2c6eb4c0bc004c0bc008dd6981680098128010b1812800980080091129998148010a4c264666008008605a00600460026056004604202e646464a66604866e1d200200114bd6f7b6300991bab302a001302200230220013301400100233232233002001489003001001222533302700214bd6f7b630099191919299981419b8f005001100313302c337606ea4004dd30011998038038018029bae302800337566050004605600660520040106eb8c094004c0754ccc07ccdc3a4000603c01a201a2c6eb0c08c004c08c004c088004c084004c080008dd5980f000980f000980e8011bac301b001301b001301a0013011003301700130170023015001300d00514985888cc00c008004c0040048894ccc048008530103d87a800013232323253330133371e00a002266e95200033017374c00497ae01333007007003005375c60260066eacc04c008c05800cc050008c800cc94ccc030cdc3a400000226464a66602260280042930b1bae3012001300a0031533300c3370e9001000899192999808980a0010a4c2c6eb8c048004c02800c54ccc030cdc3a4008002264646464a666026602c0042930b1bae30140013014002375c602400260140062a66601866e1d20060011533300f300a00314985858c028008dd70009bae00133001001480008888cccc01ccdc38008018061199980280299b8000448008c0380040080088c014dd5000918019baa0015734aae7555cf2ab9f5740ae855d126010948616e797468696e67004c011e581cddac8ca134614aef72f054fa2b810d66ddb9b16183de9dd85e189d8c0001",
};
},
{
redeemer: {
"title": "BeaconRedeemer",
"anyOf": [{
"title": "MintAskToken",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "bytes" }],
}, {
"title": "MintOfferToken",
"dataType": "constructor",
"index": 1,
"fields": [{ "dataType": "bytes" }],
}, {
"title": "MintActiveToken",
"dataType": "constructor",
"index": 2,
"fields": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
}, {
"title": "BurnBeaconToken",
"dataType": "constructor",
"index": 3,
"fields": [],
}],
},
},
) as unknown as CardanoLoansBeaconPolicy;
export interface CardanoLoansLoan {
new (): Validator;
datum: {
AskDatum: {
loanBeacon: string;
borrowerId: string;
loanAsset: [string, string];
principle: bigint;
term: bigint;
collateral: Map<string, string>;
};
} | {
OfferDatum: {
loanBeacon: string;
lenderId: string;
loanAsset: [string, string];
principle: bigint;
term: bigint;
interest: { numerator: bigint; denominator: bigint };
collateralization: Map<
[string, string],
{ numerator: bigint; denominator: bigint }
>;
};
} | {
ActiveDatum: {
loanBeacon: string;
lenderId: string;
borrowerId: string;
loanAsset: [string, string];
principle: bigint;
term: bigint;
interest: { numerator: bigint; denominator: bigint };
collateralization: Map<
[string, string],
{ numerator: bigint; denominator: bigint }
>;
expirationSlot: bigint;
balanceOwed: { numerator: bigint; denominator: bigint };
};
};
redeemer: "CloseAsk" | "CloseOffer" | "AcceptOffer" | "RepayLoan" | "Claim";
}
export const CardanoLoansLoan = Object.assign(
function () {
return {
type: "PlutusV2",
script:
"591cd00100003232323232323232323232323232322223232533300e3232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323253330543370e900000389919299982b19980181601a01c09999803020819800a450341736b0016375c60b400260a4a6660a866e1d20003053047104716153330543370e9001003899191919299982c19b8733301302c003489054f66666572004800854ccc160cc0500d800454ccc160cccc02010c0d400d2201054f6666657200133330080430350030011616133300502e03603a375c60b800260b80046eb8c168004c1494ccc150cdc3a400460a608e208e2c2646464646464646464a6660ba66e1d20040101533305d33300a03303b03f132323232323232323232533306a306d00213232323232323232533306f3370e6660540220029110341736b004800854ccc1bccdc3999815006800a45054f66666572004800854ccc1bcccc8c888c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c13ccc23804ccc22804cdc780b005a60103d87a80004c0103d87980003308e0133308a013375e6e98cc2380404d2f5bded8c06e98cc238040212f5bded8c0980103d87a80004c0103d87980003308e0133308a013370e02200c980103d87a80004c0103d87980003308e0133308a013370e01e008980103d87a80004c0103d87980003308e0133308a013375e6e98034dd31980d0009191919bb03092010023092010013092010013758611802002980103d87a80004c0103d87980004bd701bab308e01001308e01001308d01002375a6116020026116020046eb4c22404004c22404008c8c8cdd81844808011844808009844808009bac308701001308701001308601002375c61080200260f8a6660fc66e1d2002307d00c100c1637566104020026104020046eb4c20004004c20004008dd6983f000983f001191919bb0307e002307e001307e001375860f800260f800260f60046eb8c1e4004c1c54ccc1cccdc3a400060e400420042c6002002444a6660ea004297adef6c60132323307830030023330050050010033079003307700200f00b1533306f323035330743330703375e660640029110341736b004c0105d8799f01ff004c0103d87a80004c0103d8798000330743330703375e660640029101054f66666572004c0105d8799f01ff004c0103d87a80004c0103d8798000330743330703375e66064002910106416374697665004c0103d87a80004c0103d87a80004c0103d87980004bd701981b02d0008992999838191919191919191919191919191919191919191919191919191919191919191919191919191919191919182f9984f0099984d00800a60103d87a80004c0103d87980003309e0133309a013371e028050980103d87a80004c0103d87980003309e0133309a013371e02403a980103d87a80004c0103d87980003309e0133309a013371e02004c980103d87a80004c0103d87980003309e0133309a013375e6e98cc278040392f5bded8c06e98cc278040912f5bded8c0980103d87a80004c0103d87980003309e0133309a013370e018044980103d87a80004c0103d87980003309e0133309a013370e014040980103d87a80004c0103d87980003309e0133309a013375e010030980103d87a80004c0103d87980003309e0133309a013375e6e98018dd300b26103d87a80004c0103d87980003309e0133309a013370e00866e000a8081300103d87a80004c0103d87980004bd7019191919982d0009119b87002001305b0043304100130420233303f001304148008c16005cc27404004c27404008dd6984d80800984d808011bab309901001309901002309701001309701002375a612a02002612a020046eb4c24c04004c24c04008c8c8cdd81849808011849808009849808009bac309101001309101002375c611e02002611e020046eb8c23404004c23404008dd7184580800984180a9998428099b8748010c21004060406058dd59844808009844808011843808009843808009843008009842808009842008011bae3082010013082010013079533307b3370e9001183d00b880b8b1bad307f001307f002375a60fa00260fa004646466ec0c1f4008c1f4004c1f4004dd6183d800983d8011bae30790013079002375c60ee00260dea6660e266e1d20003070011101116303005013232323232323232325333079323330380012233712002004604200c6603a0020202607c660fa6660f266e1cccc0d015802d22106416374697665004800930103d87a80004c0103d87980003307d3330793370e666068020016910106416374697665004800930103d87a80004c0103d87980004bd700b1bab307d001307d001307c001307b002375a60f200260f200260f000260ee00260dca6660e066e1d2002306f00c100c161630670021616161632533306f3370e90000008991bae3075001306d0621533306f3370e90010008991bae3075001306d06216306d0613072001306a533306c3370e9002183580088008b183800098380011bab306e001306e001306553330673370e9000183300088008b0b183580099808026919baf330623064001480000f0c1a4004c1a4008dd598338009833801183280098328011bab3063001323232325333064306700213232323232323232323232323232323232323232323232323232533307b3370e9000183d001099299983e19b8748008c1ec0104c8cc20404dd300b998408080999840809ba600d33081010094bd70183d002001183c801000899299983d99b8748008c1e80084c94ccc1f0cdc3a400060f600826466102026e98034cc20404024cc20404dd300b9984080809a5eb80c1e8010008c1e400800458c1e8008c1e8004cdd800680198370011836805983c8009838a99983999b8748010c1c8004400458c1dc004c1dc008dd5983a800983a8009836299983719b8748000c1b4004400458c1c8004c1c8004c1a54ccc1accdc3a400060d401620162c60de00260cea6660d266e1d20043068001100116306d001306d002375660d600260d600260c4a6660c866e1d2000306300110011630680013068001305f53330613370e9000183000188018b0b183280098328011831800998038240198b0a99982e99b87480180404c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc1c4ccc07811c13c14c54ccc1c4cdc3999816022809a450641637469766500480084c8c94ccc1d8c1e40084c8c8c8c8c8c8c8c8c8c8c8c94ccc1fccdd78030010a99983f99b873323001001225333084010011480004c8cdc02400466006006002610e02002660520d40aa90010a99983f99b8932325333081013370e90020008b0a9998408099b87480080044c8c8cdc199b810014820343179abd8120d00f375a610e0200260fe0042c60fe002660f660fa660f660fa0be9001240000222a6660fe660800d40422a6660fe66607a0064466e24008005300106d8799f0001ff001533307f3370e6660740b804203a90008a99983f99b873038303305c480084c110cc20c04ccc1fccdc399981d00501080fa400498103d87a80004c0103d8798000330830133307f3370e666074014042910106416374697665004800930103d87a80004c0103d87980004bd700b0b0a99983f991919191998208009119b89002001008323232323374a900019845009ba833702900000199845009ba80014bd701bad308a01001308a01002375a6110020026100020026604e0026604a02a00e6604a002604e9001181f00a899182299842009998400099baf330420010204c105d8799f01ff004c0103d87a80004c0103d87980003308401333080013375e6608400203c98105d8799f01ff004c0103d87a80004c0103d87980003308401333080013375e66084002910106416374697665004c0105d8799f01ff004c0103d87a80004c0103d87980004bd70198240050108b0b0b0b0b183b00299ba548010cc20404dd480f99840809ba901d3308101375203666102026e9ccc20404c1f8064cc20404c1fc0652f5c066102026ea005ccc20404dd400a998408080999840809ba60113308101375001e661020266e952000330810133079307b00148000cc20404cc1e4c1ec00520024bd7025eb80c8c8cc8c88c8c8c8c8c8cdd2a400066114026ea0cdc180200099845009ba83370600400297ae032533308601337100029000099b81480000044004cc01800c004dd69844808009844808011bad308701001307f00130010012225333081013370e90000008801099980180180099b8600200100132323232323232323374a900019844809ba83370266e0801c004cdc100180299844809ba83370400a00297ae0375a6112020026112020046eb4c21c04004c1fc018dd69842808009842808011bad308301001307b001303b00c323023001333036001375c60f802e6eb8c1f405cc8ccc8c8c8c888cccc00c008004888c94ccc214054ccc220040045288a5014c103d87a800013374a900019844809ba60014bd7019998288010009111929998440099b87001480005300103d87a800013374a900019846009ba80014bd7019b8000200104c0493001001222225333085010041003132323232333330090090033333300a007001002006005006005375c610c020066eacc21804008c22404014c21c04010c0040048888894ccc210040144cc21404cdd81ba9004374c00697adef6c601323232325333085013375e6600a01000298103d879800013308901337606ea4020dd30038048a9998428099b8f008001132325333087013370e900000089919198468099bb037520186e9800401cdd598468080098428080108029842808009998030040038010998448099bb037520026e98008cccccc02802800c02001c018014dd71842808019bab30850100230880100630860100500100633232323223300400122330040012233702900000098008009112999841008010a5eb7bdb1804c8c8c8c8cc21c04cdd81ba900137506600a00200466600e00e00600a6eb8c20c0400cdd698418080118430080198420080118008009112999840008010a5eb7bdb1804c8c8c8c8cc21404cdd81ba9001374c6600a00200466600e00e00600a6eb8c2040400cdd5984080801184200801984100801027183f000983b299983c19b8748010c1dc004400458c1f0004c1f0008dd5983d000983d0009838a99983999b8748000c1c800440045858c1dc004cc0701648cdd7998371838000a4000090294458c1d4004c1d4008dd6983980098398011bab30710013071002306f001306f002375a60da00260da0046eb4c1ac004c1ac008c8c8cdd81835801183580098358009bac30690013069002375c60ce00260ce0046eb8c194004c194008dd71831800982da99982e99b8748010c1701404140584c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc1b0cdc399981382000724506416374697665004800854ccc1b0cc0b415c0384c8c94ccc1b94ccc1b800852888008a99983719b8733302904b010488106416374697665004800454ccc1b8cdc3999814825808007240022a6660dc6605409801c2a6660dc66e1cccc0a410804003120021533306e3370e6660520960200189000899b873027302204b48018584cdc398139811025a40082c2c2c2c646660580024466e2400800530106d8799f0001ff00302c0023371000660580982c2c60e000260e00046eb4c1b8004c1b8004c1b4004c1b0004c1ac004c1a8004c1a4008dd7183380098338011bae30650013065002375c60c600260b6a6660ba66e1d2004305c050105016223330060024c106d8799f0001ff002232323232323300a0010063300a001003300a00133301d005375c60c6646466ec0c1a4008c1a4004c1a4004dd618318021bae306432323376060d200460d200260d20026eb0c18c010c198004c178c94ccc184cdc3a400060c000220022c646464646464a6660cc66e2000d200013374a90001983519ba548000cc1a8dd419b8148000004cc1a8dd419b814800000d2f5c097ae015333066337109000001899ba548000cc1a8cdd2a4000660d46ea0004cc1a8dd4001a5eb812f5c0298103d87a8000375a60d400260d40046eb4c1a0004c180004c080004c18800888c8c8c8c8c8c8c8c8cdd2a4000660d26ea0cdc019b820070013370400600a660d26ea0cdc1002800a5eb80dd6983480098348011bad3067001305f005375a60ca00260ca0046eb4c18c004c16c00888c8c8c8c8c8c8c8c8cdd2a4000660d06ea0cdc1003801998341ba83370400a00297ae0375a60d000260d00046eb4c198004c178014dd6983200098320011bad3062001305a00223374a90001982f1ba80013305e3750900125eb80c00400488894ccc17800c40084c8c8cc00c008cccc01801800401000cc188010c18000c88cc00c0088cdd79982a982b9982a982b800a400490000011800800911299982d0010a5eb804c8c94ccc164c00c0084cc174008ccc01401400400c4ccc01401400400cc17800cc170008888c8c94ccc160cdc3a400400229444c8c8c94ccc16ccdc3a40000022646464a6660bc66e1d2000001132323301c00c001375c60c800260b80042646601a01400c60b800460b800260c200260b20042c60b200260bc00260ac00460ac002660a460a800690011800800911299982b8010a50132323253330573375e00800229444ccc018018008010c15c008c16c00cc1640088888c8cdc380099b8148000ccc04001000c008ccc014011200022337006660226eaccc148c150cc148c15000920024800801000c004c00400488894ccc15400c40084c8c8cc00c008cccc01801800401000cc164010c15c00cc1301048ccc0100052f5c044466600a004002444660ae6e9ccc15cdd48031982b9ba900333057375000497ae000130010012222533305100310021323232323330050010023333008008003006005375c60a40066eb4c148008c154010c14c00cc00400488894ccc13c00c40084c8c8c8c8ccc014004008cccc02002000c018014dd718280019bab305000230530043051003300100122533304b0011480004c8cdc02400466006006002609c002444646464a66609666e1d20020011480004c8dd698288009824801182480099299982519b87480080045300103d87a8000132323300e001005375660a000260900046090002660240060046002002444a66609200429404c8c94ccc120cdc78010018a511333005005001003304d003375c609600444464646464646464646601466e0801c004cdc10018029bad30510013051002375a609e002608e00a6eb4c134004c134008dd698258009821801919191919191826000982219299982399b8748000c1180044004594ccc118cdc3800a40002980103d87a800015333046337100029000099ba548000cc128cdd2a4000660946ea0cdc0a4000006660946ea0cdc0a400000297ae04bd70099ba548000cc128cdd2a4000660946ea000ccc128dd4000a5eb812f5c06eb4c128004c128008dd69824000982000091919299982199b87480000045854ccc10ccdc3a40040022646466e0ccdc0800a4101a18bcd5ec09068079bad304900130410021630410013303d303f3303d303f00148001200022323007330463330423375e660080029110341736b004c0103d87a80004c0103d87a80004c0103d8798000330463330423375e660080029101054f66666572004c0103d87a80004c0103d87a80004c0103d8798000330463330423375e66008002910106416374697665004c0105d8799f01ff004c0103d87a80004c0103d87980004bd70198040010009119801801000980080091129998210010a60103d87a800013232323253330433371e00a002266e95200033047375000497ae01333007007003005375c60860066eb4c10c008c11800cc110008c004004894ccc0fc00452889919299981f0010998020020008a5030430023370e9001181e9baa30410012233300d0024bd6f7b630111999805198031bab33039303b33039303b0024800920020030012223374a9000198221ba83370000400297ae000522533303a337200040022980103d87980001533303a3371e0040022980103d87a800014c103d87b8000223232533303b3370e90010008a5eb7bdb1804c8dd59820800981c801181c8009980180100091198018010009800800911299981d0010a6103d87a8000132323232533303b3371e00a002266e9520003303f374c00497ae01333007007003005375c60760066eacc0ec008c0f800cc0f00088888cccc01401000c008004c004004888894ccc0e4010400c4c8c8c8c8ccccc02402400cccccc02801c004008018014018014dd7181d0019bad303a002303d005303b00430010012222225333038005133039337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc0e4cdd799802804000a6103d879800013303d337606ea4020dd40038048a99981c99b8f00800113232533303b3370e9000000899191982099bb037520186ea000401cdd69820800981c8010802981c80099980300400380109981e99bb037520026ea0008cccccc02802800c02001c018014dd7181c8019bad3039002303c006303a00530010012222533303400310021323233003002333300600600100400330380043036003375660620026062004605e002604ea66605266e1d20003028001100116302d001302d001302453330263370e9000181280088008b1815000981119299981299b8748000c090004400458ccc8c888cc00c0088cdd7998129813800a40000046002002444a666054004298103d87a8000132325333029300300213374a90001981680125eb804ccc01401400400cc0b800cc0b000803c044cc8c88cc008005221003001001222533302900214bd6f7b630099191919299981519b8f005001100313302e337606ea4004dd30011998038038018029bae302a00337566054004605a00660560040106eb0c09c004c09c008c094004c094008dd59811800981180098110011bab30200013020001301f0023758603a002603a00260380046eb0c068004c048014c060004c0414ccc048cdc3a4004602200220022c602c002602c004602800260180062930b1900298028021900199299980699b874800000454ccc040c02c00c526161533300d3370e90010008a99980818058018a4c2c2a66601a66e1d200400115333010300b00314985854ccc034cdc3a400c0022a66602060160062930b0a99980699b874802000454ccc040c02c00c5261616300b002232533300a3370e90000008991919191919191919191919299980c980e001099191924c6602400646464931bae301c002375c60340026eb8c064020dd7180b8038b1bab301a001301a002375a603000260300046eb4c058004c058008c8c8cdd8180b001180b000980b0009bac30140013014002375c602400260240046eb8c040004c02000854ccc028cdc3a400400226464646464646464646464646464a666036603c004264646464931980a8021191919191924c60320066eb8c08400cdd7180f801180f801191919bb03023002302300130230013758603a002602600a6eb8c06c028dd7180c8048b1bab301c001301c002301a001301a002375a603000260300046eb4c058004c058008c8c8cdd8180b001180b000980b0009bac30140013014002375c602400260240046eb8c040004c02000854ccc028cdc3a400800226464646464646464646464646464646464646464a66604260480042646464646493180d8029980d8041191919191924c603e0066eb8c09c00cdd718128011812801191919bb03029002302900130290013758604600260320126eb8c084038dd7180f8068b181100098110011bad302000130200023756603c002603c004603800260380046eb4c068004c068008dd6980c000980c001191919bb03018002301800130180013758602c002602c0046eb8c050004c050008dd7180900098090011bae3010001300800216300800123253330093370e9000000899191919299980818098010a4c2c6eb4c044004c044008dd6980780098038010b1803800980080091129998058010a4c264666008008601e0060046002601a0046600200290001111199980399b8700100300c233330050053370000890011807000801001118029baa001230033754002ae6955ceaab9e5573eae815d0aba21",
};
},
{
datum: {
"title": "LoanDatum",
"anyOf": [{
"title": "AskDatum",
"dataType": "constructor",
"index": 0,
"fields": [
{ "dataType": "bytes", "title": "loanBeacon" },
{ "dataType": "bytes", "title": "borrowerId" },
{
"title": "loanAsset",
"dataType": "list",
"items": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
},
{ "dataType": "integer", "title": "principle" },
{ "dataType": "integer", "title": "term" },
{
"dataType": "map",
"keys": { "dataType": "bytes" },
"values": { "dataType": "bytes" },
"title": "collateral",
},
],
}, {
"title": "OfferDatum",
"dataType": "constructor",
"index": 1,
"fields": [
{ "dataType": "bytes", "title": "loanBeacon" },
{ "dataType": "bytes", "title": "lenderId" },
{
"title": "loanAsset",
"dataType": "list",
"items": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
},
{ "dataType": "integer", "title": "principle" },
{ "dataType": "integer", "title": "term" },
{
"title": "interest",
"anyOf": [{
"title": "Ratio",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "integer", "title": "numerator" }, {
"dataType": "integer",
"title": "denominator",
}],
}],
},
{
"dataType": "map",
"keys": {
"title": "Tuple",
"dataType": "list",
"items": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
},
"values": {
"title": "Ratio",
"anyOf": [{
"title": "Ratio",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "integer", "title": "numerator" }, {
"dataType": "integer",
"title": "denominator",
}],
}],
},
"title": "collateralization",
},
],
}, {
"title": "ActiveDatum",
"dataType": "constructor",
"index": 2,
"fields": [
{ "dataType": "bytes", "title": "loanBeacon" },
{ "dataType": "bytes", "title": "lenderId" },
{ "dataType": "bytes", "title": "borrowerId" },
{
"title": "loanAsset",
"dataType": "list",
"items": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
},
{ "dataType": "integer", "title": "principle" },
{ "dataType": "integer", "title": "term" },
{
"title": "interest",
"anyOf": [{
"title": "Ratio",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "integer", "title": "numerator" }, {
"dataType": "integer",
"title": "denominator",
}],
}],
},
{
"dataType": "map",
"keys": {
"title": "Tuple",
"dataType": "list",
"items": [{ "dataType": "bytes" }, { "dataType": "bytes" }],
},
"values": {
"title": "Ratio",
"anyOf": [{
"title": "Ratio",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "integer", "title": "numerator" }, {
"dataType": "integer",
"title": "denominator",
}],
}],
},
"title": "collateralization",
},
{ "dataType": "integer", "title": "expirationSlot" },
{
"title": "balanceOwed",
"anyOf": [{
"title": "Ratio",
"dataType": "constructor",
"index": 0,
"fields": [{ "dataType": "integer", "title": "numerator" }, {
"dataType": "integer",
"title": "denominator",
}],
}],
},
],
}],
},
},
{
redeemer: {
"title": "LoanRedeemer",
"anyOf": [{
"title": "CloseAsk",
"dataType": "constructor",
"index": 0,
"fields": [],
}, {
"title": "CloseOffer",
"dataType": "constructor",
"index": 1,
"fields": [],
}, {
"title": "AcceptOffer",
"dataType": "constructor",
"index": 2,
"fields": [],
}, {
"title": "RepayLoan",
"dataType": "constructor",
"index": 3,
"fields": [],
}, {
"title": "Claim",
"dataType": "constructor",
"index": 4,
"fields": [],
}],
},
},
) as unknown as CardanoLoansLoan;