@ton-agent-kit/plugin-identity 1.0.1 → 1.1.0

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.
@@ -0,0 +1,2583 @@
1
+ import {
2
+ Cell,
3
+ Slice,
4
+ Address,
5
+ Builder,
6
+ beginCell,
7
+ ComputeError,
8
+ TupleItem,
9
+ TupleReader,
10
+ Dictionary,
11
+ contractAddress,
12
+ address,
13
+ ContractProvider,
14
+ Sender,
15
+ Contract,
16
+ ContractABI,
17
+ ABIType,
18
+ ABIGetter,
19
+ ABIReceiver,
20
+ TupleBuilder,
21
+ DictionaryValue
22
+ } from '@ton/core';
23
+
24
+ export type DataSize = {
25
+ $$type: 'DataSize';
26
+ cells: bigint;
27
+ bits: bigint;
28
+ refs: bigint;
29
+ }
30
+
31
+ export function storeDataSize(src: DataSize) {
32
+ return (builder: Builder) => {
33
+ const b_0 = builder;
34
+ b_0.storeInt(src.cells, 257);
35
+ b_0.storeInt(src.bits, 257);
36
+ b_0.storeInt(src.refs, 257);
37
+ };
38
+ }
39
+
40
+ export function loadDataSize(slice: Slice) {
41
+ const sc_0 = slice;
42
+ const _cells = sc_0.loadIntBig(257);
43
+ const _bits = sc_0.loadIntBig(257);
44
+ const _refs = sc_0.loadIntBig(257);
45
+ return { $$type: 'DataSize' as const, cells: _cells, bits: _bits, refs: _refs };
46
+ }
47
+
48
+ export function loadTupleDataSize(source: TupleReader) {
49
+ const _cells = source.readBigNumber();
50
+ const _bits = source.readBigNumber();
51
+ const _refs = source.readBigNumber();
52
+ return { $$type: 'DataSize' as const, cells: _cells, bits: _bits, refs: _refs };
53
+ }
54
+
55
+ export function loadGetterTupleDataSize(source: TupleReader) {
56
+ const _cells = source.readBigNumber();
57
+ const _bits = source.readBigNumber();
58
+ const _refs = source.readBigNumber();
59
+ return { $$type: 'DataSize' as const, cells: _cells, bits: _bits, refs: _refs };
60
+ }
61
+
62
+ export function storeTupleDataSize(source: DataSize) {
63
+ const builder = new TupleBuilder();
64
+ builder.writeNumber(source.cells);
65
+ builder.writeNumber(source.bits);
66
+ builder.writeNumber(source.refs);
67
+ return builder.build();
68
+ }
69
+
70
+ export function dictValueParserDataSize(): DictionaryValue<DataSize> {
71
+ return {
72
+ serialize: (src, builder) => {
73
+ builder.storeRef(beginCell().store(storeDataSize(src)).endCell());
74
+ },
75
+ parse: (src) => {
76
+ return loadDataSize(src.loadRef().beginParse());
77
+ }
78
+ }
79
+ }
80
+
81
+ export type SignedBundle = {
82
+ $$type: 'SignedBundle';
83
+ signature: Buffer;
84
+ signedData: Slice;
85
+ }
86
+
87
+ export function storeSignedBundle(src: SignedBundle) {
88
+ return (builder: Builder) => {
89
+ const b_0 = builder;
90
+ b_0.storeBuffer(src.signature);
91
+ b_0.storeBuilder(src.signedData.asBuilder());
92
+ };
93
+ }
94
+
95
+ export function loadSignedBundle(slice: Slice) {
96
+ const sc_0 = slice;
97
+ const _signature = sc_0.loadBuffer(64);
98
+ const _signedData = sc_0;
99
+ return { $$type: 'SignedBundle' as const, signature: _signature, signedData: _signedData };
100
+ }
101
+
102
+ export function loadTupleSignedBundle(source: TupleReader) {
103
+ const _signature = source.readBuffer();
104
+ const _signedData = source.readCell().asSlice();
105
+ return { $$type: 'SignedBundle' as const, signature: _signature, signedData: _signedData };
106
+ }
107
+
108
+ export function loadGetterTupleSignedBundle(source: TupleReader) {
109
+ const _signature = source.readBuffer();
110
+ const _signedData = source.readCell().asSlice();
111
+ return { $$type: 'SignedBundle' as const, signature: _signature, signedData: _signedData };
112
+ }
113
+
114
+ export function storeTupleSignedBundle(source: SignedBundle) {
115
+ const builder = new TupleBuilder();
116
+ builder.writeBuffer(source.signature);
117
+ builder.writeSlice(source.signedData.asCell());
118
+ return builder.build();
119
+ }
120
+
121
+ export function dictValueParserSignedBundle(): DictionaryValue<SignedBundle> {
122
+ return {
123
+ serialize: (src, builder) => {
124
+ builder.storeRef(beginCell().store(storeSignedBundle(src)).endCell());
125
+ },
126
+ parse: (src) => {
127
+ return loadSignedBundle(src.loadRef().beginParse());
128
+ }
129
+ }
130
+ }
131
+
132
+ export type StateInit = {
133
+ $$type: 'StateInit';
134
+ code: Cell;
135
+ data: Cell;
136
+ }
137
+
138
+ export function storeStateInit(src: StateInit) {
139
+ return (builder: Builder) => {
140
+ const b_0 = builder;
141
+ b_0.storeRef(src.code);
142
+ b_0.storeRef(src.data);
143
+ };
144
+ }
145
+
146
+ export function loadStateInit(slice: Slice) {
147
+ const sc_0 = slice;
148
+ const _code = sc_0.loadRef();
149
+ const _data = sc_0.loadRef();
150
+ return { $$type: 'StateInit' as const, code: _code, data: _data };
151
+ }
152
+
153
+ export function loadTupleStateInit(source: TupleReader) {
154
+ const _code = source.readCell();
155
+ const _data = source.readCell();
156
+ return { $$type: 'StateInit' as const, code: _code, data: _data };
157
+ }
158
+
159
+ export function loadGetterTupleStateInit(source: TupleReader) {
160
+ const _code = source.readCell();
161
+ const _data = source.readCell();
162
+ return { $$type: 'StateInit' as const, code: _code, data: _data };
163
+ }
164
+
165
+ export function storeTupleStateInit(source: StateInit) {
166
+ const builder = new TupleBuilder();
167
+ builder.writeCell(source.code);
168
+ builder.writeCell(source.data);
169
+ return builder.build();
170
+ }
171
+
172
+ export function dictValueParserStateInit(): DictionaryValue<StateInit> {
173
+ return {
174
+ serialize: (src, builder) => {
175
+ builder.storeRef(beginCell().store(storeStateInit(src)).endCell());
176
+ },
177
+ parse: (src) => {
178
+ return loadStateInit(src.loadRef().beginParse());
179
+ }
180
+ }
181
+ }
182
+
183
+ export type Context = {
184
+ $$type: 'Context';
185
+ bounceable: boolean;
186
+ sender: Address;
187
+ value: bigint;
188
+ raw: Slice;
189
+ }
190
+
191
+ export function storeContext(src: Context) {
192
+ return (builder: Builder) => {
193
+ const b_0 = builder;
194
+ b_0.storeBit(src.bounceable);
195
+ b_0.storeAddress(src.sender);
196
+ b_0.storeInt(src.value, 257);
197
+ b_0.storeRef(src.raw.asCell());
198
+ };
199
+ }
200
+
201
+ export function loadContext(slice: Slice) {
202
+ const sc_0 = slice;
203
+ const _bounceable = sc_0.loadBit();
204
+ const _sender = sc_0.loadAddress();
205
+ const _value = sc_0.loadIntBig(257);
206
+ const _raw = sc_0.loadRef().asSlice();
207
+ return { $$type: 'Context' as const, bounceable: _bounceable, sender: _sender, value: _value, raw: _raw };
208
+ }
209
+
210
+ export function loadTupleContext(source: TupleReader) {
211
+ const _bounceable = source.readBoolean();
212
+ const _sender = source.readAddress();
213
+ const _value = source.readBigNumber();
214
+ const _raw = source.readCell().asSlice();
215
+ return { $$type: 'Context' as const, bounceable: _bounceable, sender: _sender, value: _value, raw: _raw };
216
+ }
217
+
218
+ export function loadGetterTupleContext(source: TupleReader) {
219
+ const _bounceable = source.readBoolean();
220
+ const _sender = source.readAddress();
221
+ const _value = source.readBigNumber();
222
+ const _raw = source.readCell().asSlice();
223
+ return { $$type: 'Context' as const, bounceable: _bounceable, sender: _sender, value: _value, raw: _raw };
224
+ }
225
+
226
+ export function storeTupleContext(source: Context) {
227
+ const builder = new TupleBuilder();
228
+ builder.writeBoolean(source.bounceable);
229
+ builder.writeAddress(source.sender);
230
+ builder.writeNumber(source.value);
231
+ builder.writeSlice(source.raw.asCell());
232
+ return builder.build();
233
+ }
234
+
235
+ export function dictValueParserContext(): DictionaryValue<Context> {
236
+ return {
237
+ serialize: (src, builder) => {
238
+ builder.storeRef(beginCell().store(storeContext(src)).endCell());
239
+ },
240
+ parse: (src) => {
241
+ return loadContext(src.loadRef().beginParse());
242
+ }
243
+ }
244
+ }
245
+
246
+ export type SendParameters = {
247
+ $$type: 'SendParameters';
248
+ mode: bigint;
249
+ body: Cell | null;
250
+ code: Cell | null;
251
+ data: Cell | null;
252
+ value: bigint;
253
+ to: Address;
254
+ bounce: boolean;
255
+ }
256
+
257
+ export function storeSendParameters(src: SendParameters) {
258
+ return (builder: Builder) => {
259
+ const b_0 = builder;
260
+ b_0.storeInt(src.mode, 257);
261
+ if (src.body !== null && src.body !== undefined) { b_0.storeBit(true).storeRef(src.body); } else { b_0.storeBit(false); }
262
+ if (src.code !== null && src.code !== undefined) { b_0.storeBit(true).storeRef(src.code); } else { b_0.storeBit(false); }
263
+ if (src.data !== null && src.data !== undefined) { b_0.storeBit(true).storeRef(src.data); } else { b_0.storeBit(false); }
264
+ b_0.storeInt(src.value, 257);
265
+ b_0.storeAddress(src.to);
266
+ b_0.storeBit(src.bounce);
267
+ };
268
+ }
269
+
270
+ export function loadSendParameters(slice: Slice) {
271
+ const sc_0 = slice;
272
+ const _mode = sc_0.loadIntBig(257);
273
+ const _body = sc_0.loadBit() ? sc_0.loadRef() : null;
274
+ const _code = sc_0.loadBit() ? sc_0.loadRef() : null;
275
+ const _data = sc_0.loadBit() ? sc_0.loadRef() : null;
276
+ const _value = sc_0.loadIntBig(257);
277
+ const _to = sc_0.loadAddress();
278
+ const _bounce = sc_0.loadBit();
279
+ return { $$type: 'SendParameters' as const, mode: _mode, body: _body, code: _code, data: _data, value: _value, to: _to, bounce: _bounce };
280
+ }
281
+
282
+ export function loadTupleSendParameters(source: TupleReader) {
283
+ const _mode = source.readBigNumber();
284
+ const _body = source.readCellOpt();
285
+ const _code = source.readCellOpt();
286
+ const _data = source.readCellOpt();
287
+ const _value = source.readBigNumber();
288
+ const _to = source.readAddress();
289
+ const _bounce = source.readBoolean();
290
+ return { $$type: 'SendParameters' as const, mode: _mode, body: _body, code: _code, data: _data, value: _value, to: _to, bounce: _bounce };
291
+ }
292
+
293
+ export function loadGetterTupleSendParameters(source: TupleReader) {
294
+ const _mode = source.readBigNumber();
295
+ const _body = source.readCellOpt();
296
+ const _code = source.readCellOpt();
297
+ const _data = source.readCellOpt();
298
+ const _value = source.readBigNumber();
299
+ const _to = source.readAddress();
300
+ const _bounce = source.readBoolean();
301
+ return { $$type: 'SendParameters' as const, mode: _mode, body: _body, code: _code, data: _data, value: _value, to: _to, bounce: _bounce };
302
+ }
303
+
304
+ export function storeTupleSendParameters(source: SendParameters) {
305
+ const builder = new TupleBuilder();
306
+ builder.writeNumber(source.mode);
307
+ builder.writeCell(source.body);
308
+ builder.writeCell(source.code);
309
+ builder.writeCell(source.data);
310
+ builder.writeNumber(source.value);
311
+ builder.writeAddress(source.to);
312
+ builder.writeBoolean(source.bounce);
313
+ return builder.build();
314
+ }
315
+
316
+ export function dictValueParserSendParameters(): DictionaryValue<SendParameters> {
317
+ return {
318
+ serialize: (src, builder) => {
319
+ builder.storeRef(beginCell().store(storeSendParameters(src)).endCell());
320
+ },
321
+ parse: (src) => {
322
+ return loadSendParameters(src.loadRef().beginParse());
323
+ }
324
+ }
325
+ }
326
+
327
+ export type MessageParameters = {
328
+ $$type: 'MessageParameters';
329
+ mode: bigint;
330
+ body: Cell | null;
331
+ value: bigint;
332
+ to: Address;
333
+ bounce: boolean;
334
+ }
335
+
336
+ export function storeMessageParameters(src: MessageParameters) {
337
+ return (builder: Builder) => {
338
+ const b_0 = builder;
339
+ b_0.storeInt(src.mode, 257);
340
+ if (src.body !== null && src.body !== undefined) { b_0.storeBit(true).storeRef(src.body); } else { b_0.storeBit(false); }
341
+ b_0.storeInt(src.value, 257);
342
+ b_0.storeAddress(src.to);
343
+ b_0.storeBit(src.bounce);
344
+ };
345
+ }
346
+
347
+ export function loadMessageParameters(slice: Slice) {
348
+ const sc_0 = slice;
349
+ const _mode = sc_0.loadIntBig(257);
350
+ const _body = sc_0.loadBit() ? sc_0.loadRef() : null;
351
+ const _value = sc_0.loadIntBig(257);
352
+ const _to = sc_0.loadAddress();
353
+ const _bounce = sc_0.loadBit();
354
+ return { $$type: 'MessageParameters' as const, mode: _mode, body: _body, value: _value, to: _to, bounce: _bounce };
355
+ }
356
+
357
+ export function loadTupleMessageParameters(source: TupleReader) {
358
+ const _mode = source.readBigNumber();
359
+ const _body = source.readCellOpt();
360
+ const _value = source.readBigNumber();
361
+ const _to = source.readAddress();
362
+ const _bounce = source.readBoolean();
363
+ return { $$type: 'MessageParameters' as const, mode: _mode, body: _body, value: _value, to: _to, bounce: _bounce };
364
+ }
365
+
366
+ export function loadGetterTupleMessageParameters(source: TupleReader) {
367
+ const _mode = source.readBigNumber();
368
+ const _body = source.readCellOpt();
369
+ const _value = source.readBigNumber();
370
+ const _to = source.readAddress();
371
+ const _bounce = source.readBoolean();
372
+ return { $$type: 'MessageParameters' as const, mode: _mode, body: _body, value: _value, to: _to, bounce: _bounce };
373
+ }
374
+
375
+ export function storeTupleMessageParameters(source: MessageParameters) {
376
+ const builder = new TupleBuilder();
377
+ builder.writeNumber(source.mode);
378
+ builder.writeCell(source.body);
379
+ builder.writeNumber(source.value);
380
+ builder.writeAddress(source.to);
381
+ builder.writeBoolean(source.bounce);
382
+ return builder.build();
383
+ }
384
+
385
+ export function dictValueParserMessageParameters(): DictionaryValue<MessageParameters> {
386
+ return {
387
+ serialize: (src, builder) => {
388
+ builder.storeRef(beginCell().store(storeMessageParameters(src)).endCell());
389
+ },
390
+ parse: (src) => {
391
+ return loadMessageParameters(src.loadRef().beginParse());
392
+ }
393
+ }
394
+ }
395
+
396
+ export type DeployParameters = {
397
+ $$type: 'DeployParameters';
398
+ mode: bigint;
399
+ body: Cell | null;
400
+ value: bigint;
401
+ bounce: boolean;
402
+ init: StateInit;
403
+ }
404
+
405
+ export function storeDeployParameters(src: DeployParameters) {
406
+ return (builder: Builder) => {
407
+ const b_0 = builder;
408
+ b_0.storeInt(src.mode, 257);
409
+ if (src.body !== null && src.body !== undefined) { b_0.storeBit(true).storeRef(src.body); } else { b_0.storeBit(false); }
410
+ b_0.storeInt(src.value, 257);
411
+ b_0.storeBit(src.bounce);
412
+ b_0.store(storeStateInit(src.init));
413
+ };
414
+ }
415
+
416
+ export function loadDeployParameters(slice: Slice) {
417
+ const sc_0 = slice;
418
+ const _mode = sc_0.loadIntBig(257);
419
+ const _body = sc_0.loadBit() ? sc_0.loadRef() : null;
420
+ const _value = sc_0.loadIntBig(257);
421
+ const _bounce = sc_0.loadBit();
422
+ const _init = loadStateInit(sc_0);
423
+ return { $$type: 'DeployParameters' as const, mode: _mode, body: _body, value: _value, bounce: _bounce, init: _init };
424
+ }
425
+
426
+ export function loadTupleDeployParameters(source: TupleReader) {
427
+ const _mode = source.readBigNumber();
428
+ const _body = source.readCellOpt();
429
+ const _value = source.readBigNumber();
430
+ const _bounce = source.readBoolean();
431
+ const _init = loadTupleStateInit(source);
432
+ return { $$type: 'DeployParameters' as const, mode: _mode, body: _body, value: _value, bounce: _bounce, init: _init };
433
+ }
434
+
435
+ export function loadGetterTupleDeployParameters(source: TupleReader) {
436
+ const _mode = source.readBigNumber();
437
+ const _body = source.readCellOpt();
438
+ const _value = source.readBigNumber();
439
+ const _bounce = source.readBoolean();
440
+ const _init = loadGetterTupleStateInit(source);
441
+ return { $$type: 'DeployParameters' as const, mode: _mode, body: _body, value: _value, bounce: _bounce, init: _init };
442
+ }
443
+
444
+ export function storeTupleDeployParameters(source: DeployParameters) {
445
+ const builder = new TupleBuilder();
446
+ builder.writeNumber(source.mode);
447
+ builder.writeCell(source.body);
448
+ builder.writeNumber(source.value);
449
+ builder.writeBoolean(source.bounce);
450
+ builder.writeTuple(storeTupleStateInit(source.init));
451
+ return builder.build();
452
+ }
453
+
454
+ export function dictValueParserDeployParameters(): DictionaryValue<DeployParameters> {
455
+ return {
456
+ serialize: (src, builder) => {
457
+ builder.storeRef(beginCell().store(storeDeployParameters(src)).endCell());
458
+ },
459
+ parse: (src) => {
460
+ return loadDeployParameters(src.loadRef().beginParse());
461
+ }
462
+ }
463
+ }
464
+
465
+ export type StdAddress = {
466
+ $$type: 'StdAddress';
467
+ workchain: bigint;
468
+ address: bigint;
469
+ }
470
+
471
+ export function storeStdAddress(src: StdAddress) {
472
+ return (builder: Builder) => {
473
+ const b_0 = builder;
474
+ b_0.storeInt(src.workchain, 8);
475
+ b_0.storeUint(src.address, 256);
476
+ };
477
+ }
478
+
479
+ export function loadStdAddress(slice: Slice) {
480
+ const sc_0 = slice;
481
+ const _workchain = sc_0.loadIntBig(8);
482
+ const _address = sc_0.loadUintBig(256);
483
+ return { $$type: 'StdAddress' as const, workchain: _workchain, address: _address };
484
+ }
485
+
486
+ export function loadTupleStdAddress(source: TupleReader) {
487
+ const _workchain = source.readBigNumber();
488
+ const _address = source.readBigNumber();
489
+ return { $$type: 'StdAddress' as const, workchain: _workchain, address: _address };
490
+ }
491
+
492
+ export function loadGetterTupleStdAddress(source: TupleReader) {
493
+ const _workchain = source.readBigNumber();
494
+ const _address = source.readBigNumber();
495
+ return { $$type: 'StdAddress' as const, workchain: _workchain, address: _address };
496
+ }
497
+
498
+ export function storeTupleStdAddress(source: StdAddress) {
499
+ const builder = new TupleBuilder();
500
+ builder.writeNumber(source.workchain);
501
+ builder.writeNumber(source.address);
502
+ return builder.build();
503
+ }
504
+
505
+ export function dictValueParserStdAddress(): DictionaryValue<StdAddress> {
506
+ return {
507
+ serialize: (src, builder) => {
508
+ builder.storeRef(beginCell().store(storeStdAddress(src)).endCell());
509
+ },
510
+ parse: (src) => {
511
+ return loadStdAddress(src.loadRef().beginParse());
512
+ }
513
+ }
514
+ }
515
+
516
+ export type VarAddress = {
517
+ $$type: 'VarAddress';
518
+ workchain: bigint;
519
+ address: Slice;
520
+ }
521
+
522
+ export function storeVarAddress(src: VarAddress) {
523
+ return (builder: Builder) => {
524
+ const b_0 = builder;
525
+ b_0.storeInt(src.workchain, 32);
526
+ b_0.storeRef(src.address.asCell());
527
+ };
528
+ }
529
+
530
+ export function loadVarAddress(slice: Slice) {
531
+ const sc_0 = slice;
532
+ const _workchain = sc_0.loadIntBig(32);
533
+ const _address = sc_0.loadRef().asSlice();
534
+ return { $$type: 'VarAddress' as const, workchain: _workchain, address: _address };
535
+ }
536
+
537
+ export function loadTupleVarAddress(source: TupleReader) {
538
+ const _workchain = source.readBigNumber();
539
+ const _address = source.readCell().asSlice();
540
+ return { $$type: 'VarAddress' as const, workchain: _workchain, address: _address };
541
+ }
542
+
543
+ export function loadGetterTupleVarAddress(source: TupleReader) {
544
+ const _workchain = source.readBigNumber();
545
+ const _address = source.readCell().asSlice();
546
+ return { $$type: 'VarAddress' as const, workchain: _workchain, address: _address };
547
+ }
548
+
549
+ export function storeTupleVarAddress(source: VarAddress) {
550
+ const builder = new TupleBuilder();
551
+ builder.writeNumber(source.workchain);
552
+ builder.writeSlice(source.address.asCell());
553
+ return builder.build();
554
+ }
555
+
556
+ export function dictValueParserVarAddress(): DictionaryValue<VarAddress> {
557
+ return {
558
+ serialize: (src, builder) => {
559
+ builder.storeRef(beginCell().store(storeVarAddress(src)).endCell());
560
+ },
561
+ parse: (src) => {
562
+ return loadVarAddress(src.loadRef().beginParse());
563
+ }
564
+ }
565
+ }
566
+
567
+ export type BasechainAddress = {
568
+ $$type: 'BasechainAddress';
569
+ hash: bigint | null;
570
+ }
571
+
572
+ export function storeBasechainAddress(src: BasechainAddress) {
573
+ return (builder: Builder) => {
574
+ const b_0 = builder;
575
+ if (src.hash !== null && src.hash !== undefined) { b_0.storeBit(true).storeInt(src.hash, 257); } else { b_0.storeBit(false); }
576
+ };
577
+ }
578
+
579
+ export function loadBasechainAddress(slice: Slice) {
580
+ const sc_0 = slice;
581
+ const _hash = sc_0.loadBit() ? sc_0.loadIntBig(257) : null;
582
+ return { $$type: 'BasechainAddress' as const, hash: _hash };
583
+ }
584
+
585
+ export function loadTupleBasechainAddress(source: TupleReader) {
586
+ const _hash = source.readBigNumberOpt();
587
+ return { $$type: 'BasechainAddress' as const, hash: _hash };
588
+ }
589
+
590
+ export function loadGetterTupleBasechainAddress(source: TupleReader) {
591
+ const _hash = source.readBigNumberOpt();
592
+ return { $$type: 'BasechainAddress' as const, hash: _hash };
593
+ }
594
+
595
+ export function storeTupleBasechainAddress(source: BasechainAddress) {
596
+ const builder = new TupleBuilder();
597
+ builder.writeNumber(source.hash);
598
+ return builder.build();
599
+ }
600
+
601
+ export function dictValueParserBasechainAddress(): DictionaryValue<BasechainAddress> {
602
+ return {
603
+ serialize: (src, builder) => {
604
+ builder.storeRef(beginCell().store(storeBasechainAddress(src)).endCell());
605
+ },
606
+ parse: (src) => {
607
+ return loadBasechainAddress(src.loadRef().beginParse());
608
+ }
609
+ }
610
+ }
611
+
612
+ export type Deploy = {
613
+ $$type: 'Deploy';
614
+ queryId: bigint;
615
+ }
616
+
617
+ export function storeDeploy(src: Deploy) {
618
+ return (builder: Builder) => {
619
+ const b_0 = builder;
620
+ b_0.storeUint(2490013878, 32);
621
+ b_0.storeUint(src.queryId, 64);
622
+ };
623
+ }
624
+
625
+ export function loadDeploy(slice: Slice) {
626
+ const sc_0 = slice;
627
+ if (sc_0.loadUint(32) !== 2490013878) { throw Error('Invalid prefix'); }
628
+ const _queryId = sc_0.loadUintBig(64);
629
+ return { $$type: 'Deploy' as const, queryId: _queryId };
630
+ }
631
+
632
+ export function loadTupleDeploy(source: TupleReader) {
633
+ const _queryId = source.readBigNumber();
634
+ return { $$type: 'Deploy' as const, queryId: _queryId };
635
+ }
636
+
637
+ export function loadGetterTupleDeploy(source: TupleReader) {
638
+ const _queryId = source.readBigNumber();
639
+ return { $$type: 'Deploy' as const, queryId: _queryId };
640
+ }
641
+
642
+ export function storeTupleDeploy(source: Deploy) {
643
+ const builder = new TupleBuilder();
644
+ builder.writeNumber(source.queryId);
645
+ return builder.build();
646
+ }
647
+
648
+ export function dictValueParserDeploy(): DictionaryValue<Deploy> {
649
+ return {
650
+ serialize: (src, builder) => {
651
+ builder.storeRef(beginCell().store(storeDeploy(src)).endCell());
652
+ },
653
+ parse: (src) => {
654
+ return loadDeploy(src.loadRef().beginParse());
655
+ }
656
+ }
657
+ }
658
+
659
+ export type DeployOk = {
660
+ $$type: 'DeployOk';
661
+ queryId: bigint;
662
+ }
663
+
664
+ export function storeDeployOk(src: DeployOk) {
665
+ return (builder: Builder) => {
666
+ const b_0 = builder;
667
+ b_0.storeUint(2952335191, 32);
668
+ b_0.storeUint(src.queryId, 64);
669
+ };
670
+ }
671
+
672
+ export function loadDeployOk(slice: Slice) {
673
+ const sc_0 = slice;
674
+ if (sc_0.loadUint(32) !== 2952335191) { throw Error('Invalid prefix'); }
675
+ const _queryId = sc_0.loadUintBig(64);
676
+ return { $$type: 'DeployOk' as const, queryId: _queryId };
677
+ }
678
+
679
+ export function loadTupleDeployOk(source: TupleReader) {
680
+ const _queryId = source.readBigNumber();
681
+ return { $$type: 'DeployOk' as const, queryId: _queryId };
682
+ }
683
+
684
+ export function loadGetterTupleDeployOk(source: TupleReader) {
685
+ const _queryId = source.readBigNumber();
686
+ return { $$type: 'DeployOk' as const, queryId: _queryId };
687
+ }
688
+
689
+ export function storeTupleDeployOk(source: DeployOk) {
690
+ const builder = new TupleBuilder();
691
+ builder.writeNumber(source.queryId);
692
+ return builder.build();
693
+ }
694
+
695
+ export function dictValueParserDeployOk(): DictionaryValue<DeployOk> {
696
+ return {
697
+ serialize: (src, builder) => {
698
+ builder.storeRef(beginCell().store(storeDeployOk(src)).endCell());
699
+ },
700
+ parse: (src) => {
701
+ return loadDeployOk(src.loadRef().beginParse());
702
+ }
703
+ }
704
+ }
705
+
706
+ export type FactoryDeploy = {
707
+ $$type: 'FactoryDeploy';
708
+ queryId: bigint;
709
+ cashback: Address;
710
+ }
711
+
712
+ export function storeFactoryDeploy(src: FactoryDeploy) {
713
+ return (builder: Builder) => {
714
+ const b_0 = builder;
715
+ b_0.storeUint(1829761339, 32);
716
+ b_0.storeUint(src.queryId, 64);
717
+ b_0.storeAddress(src.cashback);
718
+ };
719
+ }
720
+
721
+ export function loadFactoryDeploy(slice: Slice) {
722
+ const sc_0 = slice;
723
+ if (sc_0.loadUint(32) !== 1829761339) { throw Error('Invalid prefix'); }
724
+ const _queryId = sc_0.loadUintBig(64);
725
+ const _cashback = sc_0.loadAddress();
726
+ return { $$type: 'FactoryDeploy' as const, queryId: _queryId, cashback: _cashback };
727
+ }
728
+
729
+ export function loadTupleFactoryDeploy(source: TupleReader) {
730
+ const _queryId = source.readBigNumber();
731
+ const _cashback = source.readAddress();
732
+ return { $$type: 'FactoryDeploy' as const, queryId: _queryId, cashback: _cashback };
733
+ }
734
+
735
+ export function loadGetterTupleFactoryDeploy(source: TupleReader) {
736
+ const _queryId = source.readBigNumber();
737
+ const _cashback = source.readAddress();
738
+ return { $$type: 'FactoryDeploy' as const, queryId: _queryId, cashback: _cashback };
739
+ }
740
+
741
+ export function storeTupleFactoryDeploy(source: FactoryDeploy) {
742
+ const builder = new TupleBuilder();
743
+ builder.writeNumber(source.queryId);
744
+ builder.writeAddress(source.cashback);
745
+ return builder.build();
746
+ }
747
+
748
+ export function dictValueParserFactoryDeploy(): DictionaryValue<FactoryDeploy> {
749
+ return {
750
+ serialize: (src, builder) => {
751
+ builder.storeRef(beginCell().store(storeFactoryDeploy(src)).endCell());
752
+ },
753
+ parse: (src) => {
754
+ return loadFactoryDeploy(src.loadRef().beginParse());
755
+ }
756
+ }
757
+ }
758
+
759
+ export type Register = {
760
+ $$type: 'Register';
761
+ name: string;
762
+ capabilities: string;
763
+ available: boolean;
764
+ }
765
+
766
+ export function storeRegister(src: Register) {
767
+ return (builder: Builder) => {
768
+ const b_0 = builder;
769
+ b_0.storeUint(950051591, 32);
770
+ b_0.storeStringRefTail(src.name);
771
+ b_0.storeStringRefTail(src.capabilities);
772
+ b_0.storeBit(src.available);
773
+ };
774
+ }
775
+
776
+ export function loadRegister(slice: Slice) {
777
+ const sc_0 = slice;
778
+ if (sc_0.loadUint(32) !== 950051591) { throw Error('Invalid prefix'); }
779
+ const _name = sc_0.loadStringRefTail();
780
+ const _capabilities = sc_0.loadStringRefTail();
781
+ const _available = sc_0.loadBit();
782
+ return { $$type: 'Register' as const, name: _name, capabilities: _capabilities, available: _available };
783
+ }
784
+
785
+ export function loadTupleRegister(source: TupleReader) {
786
+ const _name = source.readString();
787
+ const _capabilities = source.readString();
788
+ const _available = source.readBoolean();
789
+ return { $$type: 'Register' as const, name: _name, capabilities: _capabilities, available: _available };
790
+ }
791
+
792
+ export function loadGetterTupleRegister(source: TupleReader) {
793
+ const _name = source.readString();
794
+ const _capabilities = source.readString();
795
+ const _available = source.readBoolean();
796
+ return { $$type: 'Register' as const, name: _name, capabilities: _capabilities, available: _available };
797
+ }
798
+
799
+ export function storeTupleRegister(source: Register) {
800
+ const builder = new TupleBuilder();
801
+ builder.writeString(source.name);
802
+ builder.writeString(source.capabilities);
803
+ builder.writeBoolean(source.available);
804
+ return builder.build();
805
+ }
806
+
807
+ export function dictValueParserRegister(): DictionaryValue<Register> {
808
+ return {
809
+ serialize: (src, builder) => {
810
+ builder.storeRef(beginCell().store(storeRegister(src)).endCell());
811
+ },
812
+ parse: (src) => {
813
+ return loadRegister(src.loadRef().beginParse());
814
+ }
815
+ }
816
+ }
817
+
818
+ export type Rate = {
819
+ $$type: 'Rate';
820
+ agentName: string;
821
+ success: boolean;
822
+ }
823
+
824
+ export function storeRate(src: Rate) {
825
+ return (builder: Builder) => {
826
+ const b_0 = builder;
827
+ b_0.storeUint(2804297358, 32);
828
+ b_0.storeStringRefTail(src.agentName);
829
+ b_0.storeBit(src.success);
830
+ };
831
+ }
832
+
833
+ export function loadRate(slice: Slice) {
834
+ const sc_0 = slice;
835
+ if (sc_0.loadUint(32) !== 2804297358) { throw Error('Invalid prefix'); }
836
+ const _agentName = sc_0.loadStringRefTail();
837
+ const _success = sc_0.loadBit();
838
+ return { $$type: 'Rate' as const, agentName: _agentName, success: _success };
839
+ }
840
+
841
+ export function loadTupleRate(source: TupleReader) {
842
+ const _agentName = source.readString();
843
+ const _success = source.readBoolean();
844
+ return { $$type: 'Rate' as const, agentName: _agentName, success: _success };
845
+ }
846
+
847
+ export function loadGetterTupleRate(source: TupleReader) {
848
+ const _agentName = source.readString();
849
+ const _success = source.readBoolean();
850
+ return { $$type: 'Rate' as const, agentName: _agentName, success: _success };
851
+ }
852
+
853
+ export function storeTupleRate(source: Rate) {
854
+ const builder = new TupleBuilder();
855
+ builder.writeString(source.agentName);
856
+ builder.writeBoolean(source.success);
857
+ return builder.build();
858
+ }
859
+
860
+ export function dictValueParserRate(): DictionaryValue<Rate> {
861
+ return {
862
+ serialize: (src, builder) => {
863
+ builder.storeRef(beginCell().store(storeRate(src)).endCell());
864
+ },
865
+ parse: (src) => {
866
+ return loadRate(src.loadRef().beginParse());
867
+ }
868
+ }
869
+ }
870
+
871
+ export type UpdateAvailability = {
872
+ $$type: 'UpdateAvailability';
873
+ name: string;
874
+ available: boolean;
875
+ }
876
+
877
+ export function storeUpdateAvailability(src: UpdateAvailability) {
878
+ return (builder: Builder) => {
879
+ const b_0 = builder;
880
+ b_0.storeUint(1424124491, 32);
881
+ b_0.storeStringRefTail(src.name);
882
+ b_0.storeBit(src.available);
883
+ };
884
+ }
885
+
886
+ export function loadUpdateAvailability(slice: Slice) {
887
+ const sc_0 = slice;
888
+ if (sc_0.loadUint(32) !== 1424124491) { throw Error('Invalid prefix'); }
889
+ const _name = sc_0.loadStringRefTail();
890
+ const _available = sc_0.loadBit();
891
+ return { $$type: 'UpdateAvailability' as const, name: _name, available: _available };
892
+ }
893
+
894
+ export function loadTupleUpdateAvailability(source: TupleReader) {
895
+ const _name = source.readString();
896
+ const _available = source.readBoolean();
897
+ return { $$type: 'UpdateAvailability' as const, name: _name, available: _available };
898
+ }
899
+
900
+ export function loadGetterTupleUpdateAvailability(source: TupleReader) {
901
+ const _name = source.readString();
902
+ const _available = source.readBoolean();
903
+ return { $$type: 'UpdateAvailability' as const, name: _name, available: _available };
904
+ }
905
+
906
+ export function storeTupleUpdateAvailability(source: UpdateAvailability) {
907
+ const builder = new TupleBuilder();
908
+ builder.writeString(source.name);
909
+ builder.writeBoolean(source.available);
910
+ return builder.build();
911
+ }
912
+
913
+ export function dictValueParserUpdateAvailability(): DictionaryValue<UpdateAvailability> {
914
+ return {
915
+ serialize: (src, builder) => {
916
+ builder.storeRef(beginCell().store(storeUpdateAvailability(src)).endCell());
917
+ },
918
+ parse: (src) => {
919
+ return loadUpdateAvailability(src.loadRef().beginParse());
920
+ }
921
+ }
922
+ }
923
+
924
+ export type Withdraw = {
925
+ $$type: 'Withdraw';
926
+ }
927
+
928
+ export function storeWithdraw(src: Withdraw) {
929
+ return (builder: Builder) => {
930
+ const b_0 = builder;
931
+ b_0.storeUint(593874976, 32);
932
+ };
933
+ }
934
+
935
+ export function loadWithdraw(slice: Slice) {
936
+ const sc_0 = slice;
937
+ if (sc_0.loadUint(32) !== 593874976) { throw Error('Invalid prefix'); }
938
+ return { $$type: 'Withdraw' as const };
939
+ }
940
+
941
+ export function loadTupleWithdraw(source: TupleReader) {
942
+ return { $$type: 'Withdraw' as const };
943
+ }
944
+
945
+ export function loadGetterTupleWithdraw(source: TupleReader) {
946
+ return { $$type: 'Withdraw' as const };
947
+ }
948
+
949
+ export function storeTupleWithdraw(source: Withdraw) {
950
+ const builder = new TupleBuilder();
951
+ return builder.build();
952
+ }
953
+
954
+ export function dictValueParserWithdraw(): DictionaryValue<Withdraw> {
955
+ return {
956
+ serialize: (src, builder) => {
957
+ builder.storeRef(beginCell().store(storeWithdraw(src)).endCell());
958
+ },
959
+ parse: (src) => {
960
+ return loadWithdraw(src.loadRef().beginParse());
961
+ }
962
+ }
963
+ }
964
+
965
+ export type IndexCapability = {
966
+ $$type: 'IndexCapability';
967
+ agentIndex: bigint;
968
+ capabilityHash: bigint;
969
+ }
970
+
971
+ export function storeIndexCapability(src: IndexCapability) {
972
+ return (builder: Builder) => {
973
+ const b_0 = builder;
974
+ b_0.storeUint(344274104, 32);
975
+ b_0.storeUint(src.agentIndex, 32);
976
+ b_0.storeUint(src.capabilityHash, 256);
977
+ };
978
+ }
979
+
980
+ export function loadIndexCapability(slice: Slice) {
981
+ const sc_0 = slice;
982
+ if (sc_0.loadUint(32) !== 344274104) { throw Error('Invalid prefix'); }
983
+ const _agentIndex = sc_0.loadUintBig(32);
984
+ const _capabilityHash = sc_0.loadUintBig(256);
985
+ return { $$type: 'IndexCapability' as const, agentIndex: _agentIndex, capabilityHash: _capabilityHash };
986
+ }
987
+
988
+ export function loadTupleIndexCapability(source: TupleReader) {
989
+ const _agentIndex = source.readBigNumber();
990
+ const _capabilityHash = source.readBigNumber();
991
+ return { $$type: 'IndexCapability' as const, agentIndex: _agentIndex, capabilityHash: _capabilityHash };
992
+ }
993
+
994
+ export function loadGetterTupleIndexCapability(source: TupleReader) {
995
+ const _agentIndex = source.readBigNumber();
996
+ const _capabilityHash = source.readBigNumber();
997
+ return { $$type: 'IndexCapability' as const, agentIndex: _agentIndex, capabilityHash: _capabilityHash };
998
+ }
999
+
1000
+ export function storeTupleIndexCapability(source: IndexCapability) {
1001
+ const builder = new TupleBuilder();
1002
+ builder.writeNumber(source.agentIndex);
1003
+ builder.writeNumber(source.capabilityHash);
1004
+ return builder.build();
1005
+ }
1006
+
1007
+ export function dictValueParserIndexCapability(): DictionaryValue<IndexCapability> {
1008
+ return {
1009
+ serialize: (src, builder) => {
1010
+ builder.storeRef(beginCell().store(storeIndexCapability(src)).endCell());
1011
+ },
1012
+ parse: (src) => {
1013
+ return loadIndexCapability(src.loadRef().beginParse());
1014
+ }
1015
+ }
1016
+ }
1017
+
1018
+ export type TriggerCleanup = {
1019
+ $$type: 'TriggerCleanup';
1020
+ maxClean: bigint;
1021
+ }
1022
+
1023
+ export function storeTriggerCleanup(src: TriggerCleanup) {
1024
+ return (builder: Builder) => {
1025
+ const b_0 = builder;
1026
+ b_0.storeUint(2266087279, 32);
1027
+ b_0.storeUint(src.maxClean, 8);
1028
+ };
1029
+ }
1030
+
1031
+ export function loadTriggerCleanup(slice: Slice) {
1032
+ const sc_0 = slice;
1033
+ if (sc_0.loadUint(32) !== 2266087279) { throw Error('Invalid prefix'); }
1034
+ const _maxClean = sc_0.loadUintBig(8);
1035
+ return { $$type: 'TriggerCleanup' as const, maxClean: _maxClean };
1036
+ }
1037
+
1038
+ export function loadTupleTriggerCleanup(source: TupleReader) {
1039
+ const _maxClean = source.readBigNumber();
1040
+ return { $$type: 'TriggerCleanup' as const, maxClean: _maxClean };
1041
+ }
1042
+
1043
+ export function loadGetterTupleTriggerCleanup(source: TupleReader) {
1044
+ const _maxClean = source.readBigNumber();
1045
+ return { $$type: 'TriggerCleanup' as const, maxClean: _maxClean };
1046
+ }
1047
+
1048
+ export function storeTupleTriggerCleanup(source: TriggerCleanup) {
1049
+ const builder = new TupleBuilder();
1050
+ builder.writeNumber(source.maxClean);
1051
+ return builder.build();
1052
+ }
1053
+
1054
+ export function dictValueParserTriggerCleanup(): DictionaryValue<TriggerCleanup> {
1055
+ return {
1056
+ serialize: (src, builder) => {
1057
+ builder.storeRef(beginCell().store(storeTriggerCleanup(src)).endCell());
1058
+ },
1059
+ parse: (src) => {
1060
+ return loadTriggerCleanup(src.loadRef().beginParse());
1061
+ }
1062
+ }
1063
+ }
1064
+
1065
+ export type NotifyDisputeOpened = {
1066
+ $$type: 'NotifyDisputeOpened';
1067
+ escrowAddress: Address;
1068
+ depositor: Address;
1069
+ beneficiary: Address;
1070
+ amount: bigint;
1071
+ votingDeadline: bigint;
1072
+ }
1073
+
1074
+ export function storeNotifyDisputeOpened(src: NotifyDisputeOpened) {
1075
+ return (builder: Builder) => {
1076
+ const b_0 = builder;
1077
+ b_0.storeUint(796807257, 32);
1078
+ b_0.storeAddress(src.escrowAddress);
1079
+ b_0.storeAddress(src.depositor);
1080
+ b_0.storeAddress(src.beneficiary);
1081
+ b_0.storeCoins(src.amount);
1082
+ b_0.storeUint(src.votingDeadline, 32);
1083
+ };
1084
+ }
1085
+
1086
+ export function loadNotifyDisputeOpened(slice: Slice) {
1087
+ const sc_0 = slice;
1088
+ if (sc_0.loadUint(32) !== 796807257) { throw Error('Invalid prefix'); }
1089
+ const _escrowAddress = sc_0.loadAddress();
1090
+ const _depositor = sc_0.loadAddress();
1091
+ const _beneficiary = sc_0.loadAddress();
1092
+ const _amount = sc_0.loadCoins();
1093
+ const _votingDeadline = sc_0.loadUintBig(32);
1094
+ return { $$type: 'NotifyDisputeOpened' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline };
1095
+ }
1096
+
1097
+ export function loadTupleNotifyDisputeOpened(source: TupleReader) {
1098
+ const _escrowAddress = source.readAddress();
1099
+ const _depositor = source.readAddress();
1100
+ const _beneficiary = source.readAddress();
1101
+ const _amount = source.readBigNumber();
1102
+ const _votingDeadline = source.readBigNumber();
1103
+ return { $$type: 'NotifyDisputeOpened' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline };
1104
+ }
1105
+
1106
+ export function loadGetterTupleNotifyDisputeOpened(source: TupleReader) {
1107
+ const _escrowAddress = source.readAddress();
1108
+ const _depositor = source.readAddress();
1109
+ const _beneficiary = source.readAddress();
1110
+ const _amount = source.readBigNumber();
1111
+ const _votingDeadline = source.readBigNumber();
1112
+ return { $$type: 'NotifyDisputeOpened' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline };
1113
+ }
1114
+
1115
+ export function storeTupleNotifyDisputeOpened(source: NotifyDisputeOpened) {
1116
+ const builder = new TupleBuilder();
1117
+ builder.writeAddress(source.escrowAddress);
1118
+ builder.writeAddress(source.depositor);
1119
+ builder.writeAddress(source.beneficiary);
1120
+ builder.writeNumber(source.amount);
1121
+ builder.writeNumber(source.votingDeadline);
1122
+ return builder.build();
1123
+ }
1124
+
1125
+ export function dictValueParserNotifyDisputeOpened(): DictionaryValue<NotifyDisputeOpened> {
1126
+ return {
1127
+ serialize: (src, builder) => {
1128
+ builder.storeRef(beginCell().store(storeNotifyDisputeOpened(src)).endCell());
1129
+ },
1130
+ parse: (src) => {
1131
+ return loadNotifyDisputeOpened(src.loadRef().beginParse());
1132
+ }
1133
+ }
1134
+ }
1135
+
1136
+ export type NotifyDisputeSettled = {
1137
+ $$type: 'NotifyDisputeSettled';
1138
+ escrowAddress: Address;
1139
+ released: boolean;
1140
+ refunded: boolean;
1141
+ }
1142
+
1143
+ export function storeNotifyDisputeSettled(src: NotifyDisputeSettled) {
1144
+ return (builder: Builder) => {
1145
+ const b_0 = builder;
1146
+ b_0.storeUint(3214956934, 32);
1147
+ b_0.storeAddress(src.escrowAddress);
1148
+ b_0.storeBit(src.released);
1149
+ b_0.storeBit(src.refunded);
1150
+ };
1151
+ }
1152
+
1153
+ export function loadNotifyDisputeSettled(slice: Slice) {
1154
+ const sc_0 = slice;
1155
+ if (sc_0.loadUint(32) !== 3214956934) { throw Error('Invalid prefix'); }
1156
+ const _escrowAddress = sc_0.loadAddress();
1157
+ const _released = sc_0.loadBit();
1158
+ const _refunded = sc_0.loadBit();
1159
+ return { $$type: 'NotifyDisputeSettled' as const, escrowAddress: _escrowAddress, released: _released, refunded: _refunded };
1160
+ }
1161
+
1162
+ export function loadTupleNotifyDisputeSettled(source: TupleReader) {
1163
+ const _escrowAddress = source.readAddress();
1164
+ const _released = source.readBoolean();
1165
+ const _refunded = source.readBoolean();
1166
+ return { $$type: 'NotifyDisputeSettled' as const, escrowAddress: _escrowAddress, released: _released, refunded: _refunded };
1167
+ }
1168
+
1169
+ export function loadGetterTupleNotifyDisputeSettled(source: TupleReader) {
1170
+ const _escrowAddress = source.readAddress();
1171
+ const _released = source.readBoolean();
1172
+ const _refunded = source.readBoolean();
1173
+ return { $$type: 'NotifyDisputeSettled' as const, escrowAddress: _escrowAddress, released: _released, refunded: _refunded };
1174
+ }
1175
+
1176
+ export function storeTupleNotifyDisputeSettled(source: NotifyDisputeSettled) {
1177
+ const builder = new TupleBuilder();
1178
+ builder.writeAddress(source.escrowAddress);
1179
+ builder.writeBoolean(source.released);
1180
+ builder.writeBoolean(source.refunded);
1181
+ return builder.build();
1182
+ }
1183
+
1184
+ export function dictValueParserNotifyDisputeSettled(): DictionaryValue<NotifyDisputeSettled> {
1185
+ return {
1186
+ serialize: (src, builder) => {
1187
+ builder.storeRef(beginCell().store(storeNotifyDisputeSettled(src)).endCell());
1188
+ },
1189
+ parse: (src) => {
1190
+ return loadNotifyDisputeSettled(src.loadRef().beginParse());
1191
+ }
1192
+ }
1193
+ }
1194
+
1195
+ export type BroadcastIntent = {
1196
+ $$type: 'BroadcastIntent';
1197
+ serviceHash: bigint;
1198
+ budget: bigint;
1199
+ deadline: bigint;
1200
+ }
1201
+
1202
+ export function storeBroadcastIntent(src: BroadcastIntent) {
1203
+ return (builder: Builder) => {
1204
+ const b_0 = builder;
1205
+ b_0.storeUint(2523776749, 32);
1206
+ b_0.storeUint(src.serviceHash, 256);
1207
+ b_0.storeCoins(src.budget);
1208
+ b_0.storeUint(src.deadline, 32);
1209
+ };
1210
+ }
1211
+
1212
+ export function loadBroadcastIntent(slice: Slice) {
1213
+ const sc_0 = slice;
1214
+ if (sc_0.loadUint(32) !== 2523776749) { throw Error('Invalid prefix'); }
1215
+ const _serviceHash = sc_0.loadUintBig(256);
1216
+ const _budget = sc_0.loadCoins();
1217
+ const _deadline = sc_0.loadUintBig(32);
1218
+ return { $$type: 'BroadcastIntent' as const, serviceHash: _serviceHash, budget: _budget, deadline: _deadline };
1219
+ }
1220
+
1221
+ export function loadTupleBroadcastIntent(source: TupleReader) {
1222
+ const _serviceHash = source.readBigNumber();
1223
+ const _budget = source.readBigNumber();
1224
+ const _deadline = source.readBigNumber();
1225
+ return { $$type: 'BroadcastIntent' as const, serviceHash: _serviceHash, budget: _budget, deadline: _deadline };
1226
+ }
1227
+
1228
+ export function loadGetterTupleBroadcastIntent(source: TupleReader) {
1229
+ const _serviceHash = source.readBigNumber();
1230
+ const _budget = source.readBigNumber();
1231
+ const _deadline = source.readBigNumber();
1232
+ return { $$type: 'BroadcastIntent' as const, serviceHash: _serviceHash, budget: _budget, deadline: _deadline };
1233
+ }
1234
+
1235
+ export function storeTupleBroadcastIntent(source: BroadcastIntent) {
1236
+ const builder = new TupleBuilder();
1237
+ builder.writeNumber(source.serviceHash);
1238
+ builder.writeNumber(source.budget);
1239
+ builder.writeNumber(source.deadline);
1240
+ return builder.build();
1241
+ }
1242
+
1243
+ export function dictValueParserBroadcastIntent(): DictionaryValue<BroadcastIntent> {
1244
+ return {
1245
+ serialize: (src, builder) => {
1246
+ builder.storeRef(beginCell().store(storeBroadcastIntent(src)).endCell());
1247
+ },
1248
+ parse: (src) => {
1249
+ return loadBroadcastIntent(src.loadRef().beginParse());
1250
+ }
1251
+ }
1252
+ }
1253
+
1254
+ export type SendOffer = {
1255
+ $$type: 'SendOffer';
1256
+ intentIndex: bigint;
1257
+ price: bigint;
1258
+ deliveryTime: bigint;
1259
+ }
1260
+
1261
+ export function storeSendOffer(src: SendOffer) {
1262
+ return (builder: Builder) => {
1263
+ const b_0 = builder;
1264
+ b_0.storeUint(1834677927, 32);
1265
+ b_0.storeUint(src.intentIndex, 32);
1266
+ b_0.storeCoins(src.price);
1267
+ b_0.storeUint(src.deliveryTime, 32);
1268
+ };
1269
+ }
1270
+
1271
+ export function loadSendOffer(slice: Slice) {
1272
+ const sc_0 = slice;
1273
+ if (sc_0.loadUint(32) !== 1834677927) { throw Error('Invalid prefix'); }
1274
+ const _intentIndex = sc_0.loadUintBig(32);
1275
+ const _price = sc_0.loadCoins();
1276
+ const _deliveryTime = sc_0.loadUintBig(32);
1277
+ return { $$type: 'SendOffer' as const, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime };
1278
+ }
1279
+
1280
+ export function loadTupleSendOffer(source: TupleReader) {
1281
+ const _intentIndex = source.readBigNumber();
1282
+ const _price = source.readBigNumber();
1283
+ const _deliveryTime = source.readBigNumber();
1284
+ return { $$type: 'SendOffer' as const, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime };
1285
+ }
1286
+
1287
+ export function loadGetterTupleSendOffer(source: TupleReader) {
1288
+ const _intentIndex = source.readBigNumber();
1289
+ const _price = source.readBigNumber();
1290
+ const _deliveryTime = source.readBigNumber();
1291
+ return { $$type: 'SendOffer' as const, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime };
1292
+ }
1293
+
1294
+ export function storeTupleSendOffer(source: SendOffer) {
1295
+ const builder = new TupleBuilder();
1296
+ builder.writeNumber(source.intentIndex);
1297
+ builder.writeNumber(source.price);
1298
+ builder.writeNumber(source.deliveryTime);
1299
+ return builder.build();
1300
+ }
1301
+
1302
+ export function dictValueParserSendOffer(): DictionaryValue<SendOffer> {
1303
+ return {
1304
+ serialize: (src, builder) => {
1305
+ builder.storeRef(beginCell().store(storeSendOffer(src)).endCell());
1306
+ },
1307
+ parse: (src) => {
1308
+ return loadSendOffer(src.loadRef().beginParse());
1309
+ }
1310
+ }
1311
+ }
1312
+
1313
+ export type AcceptOffer = {
1314
+ $$type: 'AcceptOffer';
1315
+ offerIndex: bigint;
1316
+ }
1317
+
1318
+ export function storeAcceptOffer(src: AcceptOffer) {
1319
+ return (builder: Builder) => {
1320
+ const b_0 = builder;
1321
+ b_0.storeUint(931468685, 32);
1322
+ b_0.storeUint(src.offerIndex, 32);
1323
+ };
1324
+ }
1325
+
1326
+ export function loadAcceptOffer(slice: Slice) {
1327
+ const sc_0 = slice;
1328
+ if (sc_0.loadUint(32) !== 931468685) { throw Error('Invalid prefix'); }
1329
+ const _offerIndex = sc_0.loadUintBig(32);
1330
+ return { $$type: 'AcceptOffer' as const, offerIndex: _offerIndex };
1331
+ }
1332
+
1333
+ export function loadTupleAcceptOffer(source: TupleReader) {
1334
+ const _offerIndex = source.readBigNumber();
1335
+ return { $$type: 'AcceptOffer' as const, offerIndex: _offerIndex };
1336
+ }
1337
+
1338
+ export function loadGetterTupleAcceptOffer(source: TupleReader) {
1339
+ const _offerIndex = source.readBigNumber();
1340
+ return { $$type: 'AcceptOffer' as const, offerIndex: _offerIndex };
1341
+ }
1342
+
1343
+ export function storeTupleAcceptOffer(source: AcceptOffer) {
1344
+ const builder = new TupleBuilder();
1345
+ builder.writeNumber(source.offerIndex);
1346
+ return builder.build();
1347
+ }
1348
+
1349
+ export function dictValueParserAcceptOffer(): DictionaryValue<AcceptOffer> {
1350
+ return {
1351
+ serialize: (src, builder) => {
1352
+ builder.storeRef(beginCell().store(storeAcceptOffer(src)).endCell());
1353
+ },
1354
+ parse: (src) => {
1355
+ return loadAcceptOffer(src.loadRef().beginParse());
1356
+ }
1357
+ }
1358
+ }
1359
+
1360
+ export type CancelIntent = {
1361
+ $$type: 'CancelIntent';
1362
+ intentIndex: bigint;
1363
+ }
1364
+
1365
+ export function storeCancelIntent(src: CancelIntent) {
1366
+ return (builder: Builder) => {
1367
+ const b_0 = builder;
1368
+ b_0.storeUint(1000023198, 32);
1369
+ b_0.storeUint(src.intentIndex, 32);
1370
+ };
1371
+ }
1372
+
1373
+ export function loadCancelIntent(slice: Slice) {
1374
+ const sc_0 = slice;
1375
+ if (sc_0.loadUint(32) !== 1000023198) { throw Error('Invalid prefix'); }
1376
+ const _intentIndex = sc_0.loadUintBig(32);
1377
+ return { $$type: 'CancelIntent' as const, intentIndex: _intentIndex };
1378
+ }
1379
+
1380
+ export function loadTupleCancelIntent(source: TupleReader) {
1381
+ const _intentIndex = source.readBigNumber();
1382
+ return { $$type: 'CancelIntent' as const, intentIndex: _intentIndex };
1383
+ }
1384
+
1385
+ export function loadGetterTupleCancelIntent(source: TupleReader) {
1386
+ const _intentIndex = source.readBigNumber();
1387
+ return { $$type: 'CancelIntent' as const, intentIndex: _intentIndex };
1388
+ }
1389
+
1390
+ export function storeTupleCancelIntent(source: CancelIntent) {
1391
+ const builder = new TupleBuilder();
1392
+ builder.writeNumber(source.intentIndex);
1393
+ return builder.build();
1394
+ }
1395
+
1396
+ export function dictValueParserCancelIntent(): DictionaryValue<CancelIntent> {
1397
+ return {
1398
+ serialize: (src, builder) => {
1399
+ builder.storeRef(beginCell().store(storeCancelIntent(src)).endCell());
1400
+ },
1401
+ parse: (src) => {
1402
+ return loadCancelIntent(src.loadRef().beginParse());
1403
+ }
1404
+ }
1405
+ }
1406
+
1407
+ export type SettleDeal = {
1408
+ $$type: 'SettleDeal';
1409
+ intentIndex: bigint;
1410
+ rating: bigint;
1411
+ }
1412
+
1413
+ export function storeSettleDeal(src: SettleDeal) {
1414
+ return (builder: Builder) => {
1415
+ const b_0 = builder;
1416
+ b_0.storeUint(484654478, 32);
1417
+ b_0.storeUint(src.intentIndex, 32);
1418
+ b_0.storeUint(src.rating, 8);
1419
+ };
1420
+ }
1421
+
1422
+ export function loadSettleDeal(slice: Slice) {
1423
+ const sc_0 = slice;
1424
+ if (sc_0.loadUint(32) !== 484654478) { throw Error('Invalid prefix'); }
1425
+ const _intentIndex = sc_0.loadUintBig(32);
1426
+ const _rating = sc_0.loadUintBig(8);
1427
+ return { $$type: 'SettleDeal' as const, intentIndex: _intentIndex, rating: _rating };
1428
+ }
1429
+
1430
+ export function loadTupleSettleDeal(source: TupleReader) {
1431
+ const _intentIndex = source.readBigNumber();
1432
+ const _rating = source.readBigNumber();
1433
+ return { $$type: 'SettleDeal' as const, intentIndex: _intentIndex, rating: _rating };
1434
+ }
1435
+
1436
+ export function loadGetterTupleSettleDeal(source: TupleReader) {
1437
+ const _intentIndex = source.readBigNumber();
1438
+ const _rating = source.readBigNumber();
1439
+ return { $$type: 'SettleDeal' as const, intentIndex: _intentIndex, rating: _rating };
1440
+ }
1441
+
1442
+ export function storeTupleSettleDeal(source: SettleDeal) {
1443
+ const builder = new TupleBuilder();
1444
+ builder.writeNumber(source.intentIndex);
1445
+ builder.writeNumber(source.rating);
1446
+ return builder.build();
1447
+ }
1448
+
1449
+ export function dictValueParserSettleDeal(): DictionaryValue<SettleDeal> {
1450
+ return {
1451
+ serialize: (src, builder) => {
1452
+ builder.storeRef(beginCell().store(storeSettleDeal(src)).endCell());
1453
+ },
1454
+ parse: (src) => {
1455
+ return loadSettleDeal(src.loadRef().beginParse());
1456
+ }
1457
+ }
1458
+ }
1459
+
1460
+ export type AgentData = {
1461
+ $$type: 'AgentData';
1462
+ owner: Address;
1463
+ available: boolean;
1464
+ totalTasks: bigint;
1465
+ successes: bigint;
1466
+ registeredAt: bigint;
1467
+ }
1468
+
1469
+ export function storeAgentData(src: AgentData) {
1470
+ return (builder: Builder) => {
1471
+ const b_0 = builder;
1472
+ b_0.storeAddress(src.owner);
1473
+ b_0.storeBit(src.available);
1474
+ b_0.storeUint(src.totalTasks, 32);
1475
+ b_0.storeUint(src.successes, 32);
1476
+ b_0.storeUint(src.registeredAt, 32);
1477
+ };
1478
+ }
1479
+
1480
+ export function loadAgentData(slice: Slice) {
1481
+ const sc_0 = slice;
1482
+ const _owner = sc_0.loadAddress();
1483
+ const _available = sc_0.loadBit();
1484
+ const _totalTasks = sc_0.loadUintBig(32);
1485
+ const _successes = sc_0.loadUintBig(32);
1486
+ const _registeredAt = sc_0.loadUintBig(32);
1487
+ return { $$type: 'AgentData' as const, owner: _owner, available: _available, totalTasks: _totalTasks, successes: _successes, registeredAt: _registeredAt };
1488
+ }
1489
+
1490
+ export function loadTupleAgentData(source: TupleReader) {
1491
+ const _owner = source.readAddress();
1492
+ const _available = source.readBoolean();
1493
+ const _totalTasks = source.readBigNumber();
1494
+ const _successes = source.readBigNumber();
1495
+ const _registeredAt = source.readBigNumber();
1496
+ return { $$type: 'AgentData' as const, owner: _owner, available: _available, totalTasks: _totalTasks, successes: _successes, registeredAt: _registeredAt };
1497
+ }
1498
+
1499
+ export function loadGetterTupleAgentData(source: TupleReader) {
1500
+ const _owner = source.readAddress();
1501
+ const _available = source.readBoolean();
1502
+ const _totalTasks = source.readBigNumber();
1503
+ const _successes = source.readBigNumber();
1504
+ const _registeredAt = source.readBigNumber();
1505
+ return { $$type: 'AgentData' as const, owner: _owner, available: _available, totalTasks: _totalTasks, successes: _successes, registeredAt: _registeredAt };
1506
+ }
1507
+
1508
+ export function storeTupleAgentData(source: AgentData) {
1509
+ const builder = new TupleBuilder();
1510
+ builder.writeAddress(source.owner);
1511
+ builder.writeBoolean(source.available);
1512
+ builder.writeNumber(source.totalTasks);
1513
+ builder.writeNumber(source.successes);
1514
+ builder.writeNumber(source.registeredAt);
1515
+ return builder.build();
1516
+ }
1517
+
1518
+ export function dictValueParserAgentData(): DictionaryValue<AgentData> {
1519
+ return {
1520
+ serialize: (src, builder) => {
1521
+ builder.storeRef(beginCell().store(storeAgentData(src)).endCell());
1522
+ },
1523
+ parse: (src) => {
1524
+ return loadAgentData(src.loadRef().beginParse());
1525
+ }
1526
+ }
1527
+ }
1528
+
1529
+ export type DisputeInfo = {
1530
+ $$type: 'DisputeInfo';
1531
+ escrowAddress: Address;
1532
+ depositor: Address;
1533
+ beneficiary: Address;
1534
+ amount: bigint;
1535
+ votingDeadline: bigint;
1536
+ settled: boolean;
1537
+ }
1538
+
1539
+ export function storeDisputeInfo(src: DisputeInfo) {
1540
+ return (builder: Builder) => {
1541
+ const b_0 = builder;
1542
+ b_0.storeAddress(src.escrowAddress);
1543
+ b_0.storeAddress(src.depositor);
1544
+ b_0.storeAddress(src.beneficiary);
1545
+ b_0.storeCoins(src.amount);
1546
+ b_0.storeUint(src.votingDeadline, 32);
1547
+ b_0.storeBit(src.settled);
1548
+ };
1549
+ }
1550
+
1551
+ export function loadDisputeInfo(slice: Slice) {
1552
+ const sc_0 = slice;
1553
+ const _escrowAddress = sc_0.loadAddress();
1554
+ const _depositor = sc_0.loadAddress();
1555
+ const _beneficiary = sc_0.loadAddress();
1556
+ const _amount = sc_0.loadCoins();
1557
+ const _votingDeadline = sc_0.loadUintBig(32);
1558
+ const _settled = sc_0.loadBit();
1559
+ return { $$type: 'DisputeInfo' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline, settled: _settled };
1560
+ }
1561
+
1562
+ export function loadTupleDisputeInfo(source: TupleReader) {
1563
+ const _escrowAddress = source.readAddress();
1564
+ const _depositor = source.readAddress();
1565
+ const _beneficiary = source.readAddress();
1566
+ const _amount = source.readBigNumber();
1567
+ const _votingDeadline = source.readBigNumber();
1568
+ const _settled = source.readBoolean();
1569
+ return { $$type: 'DisputeInfo' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline, settled: _settled };
1570
+ }
1571
+
1572
+ export function loadGetterTupleDisputeInfo(source: TupleReader) {
1573
+ const _escrowAddress = source.readAddress();
1574
+ const _depositor = source.readAddress();
1575
+ const _beneficiary = source.readAddress();
1576
+ const _amount = source.readBigNumber();
1577
+ const _votingDeadline = source.readBigNumber();
1578
+ const _settled = source.readBoolean();
1579
+ return { $$type: 'DisputeInfo' as const, escrowAddress: _escrowAddress, depositor: _depositor, beneficiary: _beneficiary, amount: _amount, votingDeadline: _votingDeadline, settled: _settled };
1580
+ }
1581
+
1582
+ export function storeTupleDisputeInfo(source: DisputeInfo) {
1583
+ const builder = new TupleBuilder();
1584
+ builder.writeAddress(source.escrowAddress);
1585
+ builder.writeAddress(source.depositor);
1586
+ builder.writeAddress(source.beneficiary);
1587
+ builder.writeNumber(source.amount);
1588
+ builder.writeNumber(source.votingDeadline);
1589
+ builder.writeBoolean(source.settled);
1590
+ return builder.build();
1591
+ }
1592
+
1593
+ export function dictValueParserDisputeInfo(): DictionaryValue<DisputeInfo> {
1594
+ return {
1595
+ serialize: (src, builder) => {
1596
+ builder.storeRef(beginCell().store(storeDisputeInfo(src)).endCell());
1597
+ },
1598
+ parse: (src) => {
1599
+ return loadDisputeInfo(src.loadRef().beginParse());
1600
+ }
1601
+ }
1602
+ }
1603
+
1604
+ export type AgentCleanupInfo = {
1605
+ $$type: 'AgentCleanupInfo';
1606
+ index: bigint;
1607
+ exists: boolean;
1608
+ score: bigint;
1609
+ totalRatings: bigint;
1610
+ registeredAt: bigint;
1611
+ lastActive: bigint;
1612
+ daysSinceActive: bigint;
1613
+ daysSinceRegistered: bigint;
1614
+ eligibleForCleanup: boolean;
1615
+ cleanupReason: bigint;
1616
+ }
1617
+
1618
+ export function storeAgentCleanupInfo(src: AgentCleanupInfo) {
1619
+ return (builder: Builder) => {
1620
+ const b_0 = builder;
1621
+ b_0.storeUint(src.index, 32);
1622
+ b_0.storeBit(src.exists);
1623
+ b_0.storeUint(src.score, 16);
1624
+ b_0.storeUint(src.totalRatings, 32);
1625
+ b_0.storeUint(src.registeredAt, 32);
1626
+ b_0.storeUint(src.lastActive, 32);
1627
+ b_0.storeUint(src.daysSinceActive, 32);
1628
+ b_0.storeUint(src.daysSinceRegistered, 32);
1629
+ b_0.storeBit(src.eligibleForCleanup);
1630
+ b_0.storeUint(src.cleanupReason, 8);
1631
+ };
1632
+ }
1633
+
1634
+ export function loadAgentCleanupInfo(slice: Slice) {
1635
+ const sc_0 = slice;
1636
+ const _index = sc_0.loadUintBig(32);
1637
+ const _exists = sc_0.loadBit();
1638
+ const _score = sc_0.loadUintBig(16);
1639
+ const _totalRatings = sc_0.loadUintBig(32);
1640
+ const _registeredAt = sc_0.loadUintBig(32);
1641
+ const _lastActive = sc_0.loadUintBig(32);
1642
+ const _daysSinceActive = sc_0.loadUintBig(32);
1643
+ const _daysSinceRegistered = sc_0.loadUintBig(32);
1644
+ const _eligibleForCleanup = sc_0.loadBit();
1645
+ const _cleanupReason = sc_0.loadUintBig(8);
1646
+ return { $$type: 'AgentCleanupInfo' as const, index: _index, exists: _exists, score: _score, totalRatings: _totalRatings, registeredAt: _registeredAt, lastActive: _lastActive, daysSinceActive: _daysSinceActive, daysSinceRegistered: _daysSinceRegistered, eligibleForCleanup: _eligibleForCleanup, cleanupReason: _cleanupReason };
1647
+ }
1648
+
1649
+ export function loadTupleAgentCleanupInfo(source: TupleReader) {
1650
+ const _index = source.readBigNumber();
1651
+ const _exists = source.readBoolean();
1652
+ const _score = source.readBigNumber();
1653
+ const _totalRatings = source.readBigNumber();
1654
+ const _registeredAt = source.readBigNumber();
1655
+ const _lastActive = source.readBigNumber();
1656
+ const _daysSinceActive = source.readBigNumber();
1657
+ const _daysSinceRegistered = source.readBigNumber();
1658
+ const _eligibleForCleanup = source.readBoolean();
1659
+ const _cleanupReason = source.readBigNumber();
1660
+ return { $$type: 'AgentCleanupInfo' as const, index: _index, exists: _exists, score: _score, totalRatings: _totalRatings, registeredAt: _registeredAt, lastActive: _lastActive, daysSinceActive: _daysSinceActive, daysSinceRegistered: _daysSinceRegistered, eligibleForCleanup: _eligibleForCleanup, cleanupReason: _cleanupReason };
1661
+ }
1662
+
1663
+ export function loadGetterTupleAgentCleanupInfo(source: TupleReader) {
1664
+ const _index = source.readBigNumber();
1665
+ const _exists = source.readBoolean();
1666
+ const _score = source.readBigNumber();
1667
+ const _totalRatings = source.readBigNumber();
1668
+ const _registeredAt = source.readBigNumber();
1669
+ const _lastActive = source.readBigNumber();
1670
+ const _daysSinceActive = source.readBigNumber();
1671
+ const _daysSinceRegistered = source.readBigNumber();
1672
+ const _eligibleForCleanup = source.readBoolean();
1673
+ const _cleanupReason = source.readBigNumber();
1674
+ return { $$type: 'AgentCleanupInfo' as const, index: _index, exists: _exists, score: _score, totalRatings: _totalRatings, registeredAt: _registeredAt, lastActive: _lastActive, daysSinceActive: _daysSinceActive, daysSinceRegistered: _daysSinceRegistered, eligibleForCleanup: _eligibleForCleanup, cleanupReason: _cleanupReason };
1675
+ }
1676
+
1677
+ export function storeTupleAgentCleanupInfo(source: AgentCleanupInfo) {
1678
+ const builder = new TupleBuilder();
1679
+ builder.writeNumber(source.index);
1680
+ builder.writeBoolean(source.exists);
1681
+ builder.writeNumber(source.score);
1682
+ builder.writeNumber(source.totalRatings);
1683
+ builder.writeNumber(source.registeredAt);
1684
+ builder.writeNumber(source.lastActive);
1685
+ builder.writeNumber(source.daysSinceActive);
1686
+ builder.writeNumber(source.daysSinceRegistered);
1687
+ builder.writeBoolean(source.eligibleForCleanup);
1688
+ builder.writeNumber(source.cleanupReason);
1689
+ return builder.build();
1690
+ }
1691
+
1692
+ export function dictValueParserAgentCleanupInfo(): DictionaryValue<AgentCleanupInfo> {
1693
+ return {
1694
+ serialize: (src, builder) => {
1695
+ builder.storeRef(beginCell().store(storeAgentCleanupInfo(src)).endCell());
1696
+ },
1697
+ parse: (src) => {
1698
+ return loadAgentCleanupInfo(src.loadRef().beginParse());
1699
+ }
1700
+ }
1701
+ }
1702
+
1703
+ export type IntentData = {
1704
+ $$type: 'IntentData';
1705
+ buyer: Address;
1706
+ serviceHash: bigint;
1707
+ budget: bigint;
1708
+ deadline: bigint;
1709
+ status: bigint;
1710
+ acceptedOffer: bigint;
1711
+ isExpired: boolean;
1712
+ }
1713
+
1714
+ export function storeIntentData(src: IntentData) {
1715
+ return (builder: Builder) => {
1716
+ const b_0 = builder;
1717
+ b_0.storeAddress(src.buyer);
1718
+ b_0.storeUint(src.serviceHash, 256);
1719
+ b_0.storeCoins(src.budget);
1720
+ b_0.storeUint(src.deadline, 32);
1721
+ b_0.storeUint(src.status, 8);
1722
+ b_0.storeUint(src.acceptedOffer, 32);
1723
+ b_0.storeBit(src.isExpired);
1724
+ };
1725
+ }
1726
+
1727
+ export function loadIntentData(slice: Slice) {
1728
+ const sc_0 = slice;
1729
+ const _buyer = sc_0.loadAddress();
1730
+ const _serviceHash = sc_0.loadUintBig(256);
1731
+ const _budget = sc_0.loadCoins();
1732
+ const _deadline = sc_0.loadUintBig(32);
1733
+ const _status = sc_0.loadUintBig(8);
1734
+ const _acceptedOffer = sc_0.loadUintBig(32);
1735
+ const _isExpired = sc_0.loadBit();
1736
+ return { $$type: 'IntentData' as const, buyer: _buyer, serviceHash: _serviceHash, budget: _budget, deadline: _deadline, status: _status, acceptedOffer: _acceptedOffer, isExpired: _isExpired };
1737
+ }
1738
+
1739
+ export function loadTupleIntentData(source: TupleReader) {
1740
+ const _buyer = source.readAddress();
1741
+ const _serviceHash = source.readBigNumber();
1742
+ const _budget = source.readBigNumber();
1743
+ const _deadline = source.readBigNumber();
1744
+ const _status = source.readBigNumber();
1745
+ const _acceptedOffer = source.readBigNumber();
1746
+ const _isExpired = source.readBoolean();
1747
+ return { $$type: 'IntentData' as const, buyer: _buyer, serviceHash: _serviceHash, budget: _budget, deadline: _deadline, status: _status, acceptedOffer: _acceptedOffer, isExpired: _isExpired };
1748
+ }
1749
+
1750
+ export function loadGetterTupleIntentData(source: TupleReader) {
1751
+ const _buyer = source.readAddress();
1752
+ const _serviceHash = source.readBigNumber();
1753
+ const _budget = source.readBigNumber();
1754
+ const _deadline = source.readBigNumber();
1755
+ const _status = source.readBigNumber();
1756
+ const _acceptedOffer = source.readBigNumber();
1757
+ const _isExpired = source.readBoolean();
1758
+ return { $$type: 'IntentData' as const, buyer: _buyer, serviceHash: _serviceHash, budget: _budget, deadline: _deadline, status: _status, acceptedOffer: _acceptedOffer, isExpired: _isExpired };
1759
+ }
1760
+
1761
+ export function storeTupleIntentData(source: IntentData) {
1762
+ const builder = new TupleBuilder();
1763
+ builder.writeAddress(source.buyer);
1764
+ builder.writeNumber(source.serviceHash);
1765
+ builder.writeNumber(source.budget);
1766
+ builder.writeNumber(source.deadline);
1767
+ builder.writeNumber(source.status);
1768
+ builder.writeNumber(source.acceptedOffer);
1769
+ builder.writeBoolean(source.isExpired);
1770
+ return builder.build();
1771
+ }
1772
+
1773
+ export function dictValueParserIntentData(): DictionaryValue<IntentData> {
1774
+ return {
1775
+ serialize: (src, builder) => {
1776
+ builder.storeRef(beginCell().store(storeIntentData(src)).endCell());
1777
+ },
1778
+ parse: (src) => {
1779
+ return loadIntentData(src.loadRef().beginParse());
1780
+ }
1781
+ }
1782
+ }
1783
+
1784
+ export type OfferData = {
1785
+ $$type: 'OfferData';
1786
+ seller: Address;
1787
+ intentIndex: bigint;
1788
+ price: bigint;
1789
+ deliveryTime: bigint;
1790
+ status: bigint;
1791
+ }
1792
+
1793
+ export function storeOfferData(src: OfferData) {
1794
+ return (builder: Builder) => {
1795
+ const b_0 = builder;
1796
+ b_0.storeAddress(src.seller);
1797
+ b_0.storeUint(src.intentIndex, 32);
1798
+ b_0.storeCoins(src.price);
1799
+ b_0.storeUint(src.deliveryTime, 32);
1800
+ b_0.storeUint(src.status, 8);
1801
+ };
1802
+ }
1803
+
1804
+ export function loadOfferData(slice: Slice) {
1805
+ const sc_0 = slice;
1806
+ const _seller = sc_0.loadAddress();
1807
+ const _intentIndex = sc_0.loadUintBig(32);
1808
+ const _price = sc_0.loadCoins();
1809
+ const _deliveryTime = sc_0.loadUintBig(32);
1810
+ const _status = sc_0.loadUintBig(8);
1811
+ return { $$type: 'OfferData' as const, seller: _seller, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime, status: _status };
1812
+ }
1813
+
1814
+ export function loadTupleOfferData(source: TupleReader) {
1815
+ const _seller = source.readAddress();
1816
+ const _intentIndex = source.readBigNumber();
1817
+ const _price = source.readBigNumber();
1818
+ const _deliveryTime = source.readBigNumber();
1819
+ const _status = source.readBigNumber();
1820
+ return { $$type: 'OfferData' as const, seller: _seller, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime, status: _status };
1821
+ }
1822
+
1823
+ export function loadGetterTupleOfferData(source: TupleReader) {
1824
+ const _seller = source.readAddress();
1825
+ const _intentIndex = source.readBigNumber();
1826
+ const _price = source.readBigNumber();
1827
+ const _deliveryTime = source.readBigNumber();
1828
+ const _status = source.readBigNumber();
1829
+ return { $$type: 'OfferData' as const, seller: _seller, intentIndex: _intentIndex, price: _price, deliveryTime: _deliveryTime, status: _status };
1830
+ }
1831
+
1832
+ export function storeTupleOfferData(source: OfferData) {
1833
+ const builder = new TupleBuilder();
1834
+ builder.writeAddress(source.seller);
1835
+ builder.writeNumber(source.intentIndex);
1836
+ builder.writeNumber(source.price);
1837
+ builder.writeNumber(source.deliveryTime);
1838
+ builder.writeNumber(source.status);
1839
+ return builder.build();
1840
+ }
1841
+
1842
+ export function dictValueParserOfferData(): DictionaryValue<OfferData> {
1843
+ return {
1844
+ serialize: (src, builder) => {
1845
+ builder.storeRef(beginCell().store(storeOfferData(src)).endCell());
1846
+ },
1847
+ parse: (src) => {
1848
+ return loadOfferData(src.loadRef().beginParse());
1849
+ }
1850
+ }
1851
+ }
1852
+
1853
+ export type Reputation$Data = {
1854
+ $$type: 'Reputation$Data';
1855
+ owner: Address;
1856
+ fee: bigint;
1857
+ agentCount: bigint;
1858
+ agentOwners: Dictionary<number, Address>;
1859
+ agentAvailable: Dictionary<number, boolean>;
1860
+ agentTotalTasks: Dictionary<number, number>;
1861
+ agentSuccesses: Dictionary<number, number>;
1862
+ agentRegisteredAt: Dictionary<number, number>;
1863
+ agentLastActive: Dictionary<number, number>;
1864
+ nameToIndex: Dictionary<bigint, number>;
1865
+ capabilityIndex: Dictionary<bigint, Cell>;
1866
+ openDisputes: Dictionary<number, Address>;
1867
+ disputeDepositors: Dictionary<number, Address>;
1868
+ disputeBeneficiaries: Dictionary<number, Address>;
1869
+ disputeAmounts: Dictionary<number, bigint>;
1870
+ disputeDeadlines: Dictionary<number, number>;
1871
+ disputeSettled: Dictionary<number, boolean>;
1872
+ disputeCount: bigint;
1873
+ cleanupCursor: bigint;
1874
+ intents: Dictionary<number, Address>;
1875
+ intentServiceHashes: Dictionary<number, bigint>;
1876
+ intentBudgets: Dictionary<number, bigint>;
1877
+ intentDeadlines: Dictionary<number, number>;
1878
+ intentStatuses: Dictionary<number, number>;
1879
+ intentAcceptedOffer: Dictionary<number, number>;
1880
+ intentCount: bigint;
1881
+ intentsByService: Dictionary<bigint, Cell>;
1882
+ offers: Dictionary<number, Address>;
1883
+ offerIntents: Dictionary<number, number>;
1884
+ offerPrices: Dictionary<number, bigint>;
1885
+ offerDeliveryTimes: Dictionary<number, number>;
1886
+ offerStatuses: Dictionary<number, number>;
1887
+ offerCount: bigint;
1888
+ intentCleanupCursor: bigint;
1889
+ agentActiveIntents: Dictionary<Address, bigint>;
1890
+ maxIntentsPerAgent: bigint;
1891
+ }
1892
+
1893
+ export function storeReputation$Data(src: Reputation$Data) {
1894
+ return (builder: Builder) => {
1895
+ const b_0 = builder;
1896
+ b_0.storeAddress(src.owner);
1897
+ b_0.storeCoins(src.fee);
1898
+ b_0.storeUint(src.agentCount, 32);
1899
+ b_0.storeDict(src.agentOwners, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1900
+ b_0.storeDict(src.agentAvailable, Dictionary.Keys.Uint(32), Dictionary.Values.Bool());
1901
+ const b_1 = new Builder();
1902
+ b_1.storeDict(src.agentTotalTasks, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1903
+ b_1.storeDict(src.agentSuccesses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1904
+ b_1.storeDict(src.agentRegisteredAt, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1905
+ const b_2 = new Builder();
1906
+ b_2.storeDict(src.agentLastActive, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1907
+ b_2.storeDict(src.nameToIndex, Dictionary.Keys.BigUint(256), Dictionary.Values.Uint(32));
1908
+ b_2.storeDict(src.capabilityIndex, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell());
1909
+ const b_3 = new Builder();
1910
+ b_3.storeDict(src.openDisputes, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1911
+ b_3.storeDict(src.disputeDepositors, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1912
+ b_3.storeDict(src.disputeBeneficiaries, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1913
+ const b_4 = new Builder();
1914
+ b_4.storeDict(src.disputeAmounts, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257));
1915
+ b_4.storeDict(src.disputeDeadlines, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1916
+ b_4.storeDict(src.disputeSettled, Dictionary.Keys.Uint(32), Dictionary.Values.Bool());
1917
+ b_4.storeUint(src.disputeCount, 32);
1918
+ b_4.storeUint(src.cleanupCursor, 32);
1919
+ const b_5 = new Builder();
1920
+ b_5.storeDict(src.intents, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1921
+ b_5.storeDict(src.intentServiceHashes, Dictionary.Keys.Uint(32), Dictionary.Values.BigUint(256));
1922
+ b_5.storeDict(src.intentBudgets, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257));
1923
+ const b_6 = new Builder();
1924
+ b_6.storeDict(src.intentDeadlines, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1925
+ b_6.storeDict(src.intentStatuses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8));
1926
+ b_6.storeDict(src.intentAcceptedOffer, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1927
+ b_6.storeUint(src.intentCount, 32);
1928
+ const b_7 = new Builder();
1929
+ b_7.storeDict(src.intentsByService, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell());
1930
+ b_7.storeDict(src.offers, Dictionary.Keys.Uint(32), Dictionary.Values.Address());
1931
+ b_7.storeDict(src.offerIntents, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1932
+ const b_8 = new Builder();
1933
+ b_8.storeDict(src.offerPrices, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257));
1934
+ b_8.storeDict(src.offerDeliveryTimes, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32));
1935
+ b_8.storeDict(src.offerStatuses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8));
1936
+ b_8.storeUint(src.offerCount, 32);
1937
+ b_8.storeUint(src.intentCleanupCursor, 32);
1938
+ b_8.storeDict(src.agentActiveIntents, Dictionary.Keys.Address(), Dictionary.Values.BigInt(257));
1939
+ b_8.storeUint(src.maxIntentsPerAgent, 8);
1940
+ b_7.storeRef(b_8.endCell());
1941
+ b_6.storeRef(b_7.endCell());
1942
+ b_5.storeRef(b_6.endCell());
1943
+ b_4.storeRef(b_5.endCell());
1944
+ b_3.storeRef(b_4.endCell());
1945
+ b_2.storeRef(b_3.endCell());
1946
+ b_1.storeRef(b_2.endCell());
1947
+ b_0.storeRef(b_1.endCell());
1948
+ };
1949
+ }
1950
+
1951
+ export function loadReputation$Data(slice: Slice) {
1952
+ const sc_0 = slice;
1953
+ const _owner = sc_0.loadAddress();
1954
+ const _fee = sc_0.loadCoins();
1955
+ const _agentCount = sc_0.loadUintBig(32);
1956
+ const _agentOwners = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_0);
1957
+ const _agentAvailable = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), sc_0);
1958
+ const sc_1 = sc_0.loadRef().beginParse();
1959
+ const _agentTotalTasks = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_1);
1960
+ const _agentSuccesses = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_1);
1961
+ const _agentRegisteredAt = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_1);
1962
+ const sc_2 = sc_1.loadRef().beginParse();
1963
+ const _agentLastActive = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_2);
1964
+ const _nameToIndex = Dictionary.load(Dictionary.Keys.BigUint(256), Dictionary.Values.Uint(32), sc_2);
1965
+ const _capabilityIndex = Dictionary.load(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), sc_2);
1966
+ const sc_3 = sc_2.loadRef().beginParse();
1967
+ const _openDisputes = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_3);
1968
+ const _disputeDepositors = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_3);
1969
+ const _disputeBeneficiaries = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_3);
1970
+ const sc_4 = sc_3.loadRef().beginParse();
1971
+ const _disputeAmounts = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), sc_4);
1972
+ const _disputeDeadlines = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_4);
1973
+ const _disputeSettled = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), sc_4);
1974
+ const _disputeCount = sc_4.loadUintBig(32);
1975
+ const _cleanupCursor = sc_4.loadUintBig(32);
1976
+ const sc_5 = sc_4.loadRef().beginParse();
1977
+ const _intents = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_5);
1978
+ const _intentServiceHashes = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.BigUint(256), sc_5);
1979
+ const _intentBudgets = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), sc_5);
1980
+ const sc_6 = sc_5.loadRef().beginParse();
1981
+ const _intentDeadlines = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_6);
1982
+ const _intentStatuses = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), sc_6);
1983
+ const _intentAcceptedOffer = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_6);
1984
+ const _intentCount = sc_6.loadUintBig(32);
1985
+ const sc_7 = sc_6.loadRef().beginParse();
1986
+ const _intentsByService = Dictionary.load(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), sc_7);
1987
+ const _offers = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), sc_7);
1988
+ const _offerIntents = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_7);
1989
+ const sc_8 = sc_7.loadRef().beginParse();
1990
+ const _offerPrices = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), sc_8);
1991
+ const _offerDeliveryTimes = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), sc_8);
1992
+ const _offerStatuses = Dictionary.load(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), sc_8);
1993
+ const _offerCount = sc_8.loadUintBig(32);
1994
+ const _intentCleanupCursor = sc_8.loadUintBig(32);
1995
+ const _agentActiveIntents = Dictionary.load(Dictionary.Keys.Address(), Dictionary.Values.BigInt(257), sc_8);
1996
+ const _maxIntentsPerAgent = sc_8.loadUintBig(8);
1997
+ return { $$type: 'Reputation$Data' as const, owner: _owner, fee: _fee, agentCount: _agentCount, agentOwners: _agentOwners, agentAvailable: _agentAvailable, agentTotalTasks: _agentTotalTasks, agentSuccesses: _agentSuccesses, agentRegisteredAt: _agentRegisteredAt, agentLastActive: _agentLastActive, nameToIndex: _nameToIndex, capabilityIndex: _capabilityIndex, openDisputes: _openDisputes, disputeDepositors: _disputeDepositors, disputeBeneficiaries: _disputeBeneficiaries, disputeAmounts: _disputeAmounts, disputeDeadlines: _disputeDeadlines, disputeSettled: _disputeSettled, disputeCount: _disputeCount, cleanupCursor: _cleanupCursor, intents: _intents, intentServiceHashes: _intentServiceHashes, intentBudgets: _intentBudgets, intentDeadlines: _intentDeadlines, intentStatuses: _intentStatuses, intentAcceptedOffer: _intentAcceptedOffer, intentCount: _intentCount, intentsByService: _intentsByService, offers: _offers, offerIntents: _offerIntents, offerPrices: _offerPrices, offerDeliveryTimes: _offerDeliveryTimes, offerStatuses: _offerStatuses, offerCount: _offerCount, intentCleanupCursor: _intentCleanupCursor, agentActiveIntents: _agentActiveIntents, maxIntentsPerAgent: _maxIntentsPerAgent };
1998
+ }
1999
+
2000
+ export function loadTupleReputation$Data(source: TupleReader) {
2001
+ const _owner = source.readAddress();
2002
+ const _fee = source.readBigNumber();
2003
+ const _agentCount = source.readBigNumber();
2004
+ const _agentOwners = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2005
+ const _agentAvailable = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), source.readCellOpt());
2006
+ const _agentTotalTasks = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2007
+ const _agentSuccesses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2008
+ const _agentRegisteredAt = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2009
+ const _agentLastActive = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2010
+ const _nameToIndex = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Uint(32), source.readCellOpt());
2011
+ const _capabilityIndex = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), source.readCellOpt());
2012
+ const _openDisputes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2013
+ const _disputeDepositors = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2014
+ const _disputeBeneficiaries = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2015
+ source = source.readTuple();
2016
+ const _disputeAmounts = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2017
+ const _disputeDeadlines = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2018
+ const _disputeSettled = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), source.readCellOpt());
2019
+ const _disputeCount = source.readBigNumber();
2020
+ const _cleanupCursor = source.readBigNumber();
2021
+ const _intents = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2022
+ const _intentServiceHashes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigUint(256), source.readCellOpt());
2023
+ const _intentBudgets = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2024
+ const _intentDeadlines = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2025
+ const _intentStatuses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), source.readCellOpt());
2026
+ const _intentAcceptedOffer = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2027
+ const _intentCount = source.readBigNumber();
2028
+ const _intentsByService = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), source.readCellOpt());
2029
+ const _offers = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2030
+ source = source.readTuple();
2031
+ const _offerIntents = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2032
+ const _offerPrices = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2033
+ const _offerDeliveryTimes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2034
+ const _offerStatuses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), source.readCellOpt());
2035
+ const _offerCount = source.readBigNumber();
2036
+ const _intentCleanupCursor = source.readBigNumber();
2037
+ const _agentActiveIntents = Dictionary.loadDirect(Dictionary.Keys.Address(), Dictionary.Values.BigInt(257), source.readCellOpt());
2038
+ const _maxIntentsPerAgent = source.readBigNumber();
2039
+ return { $$type: 'Reputation$Data' as const, owner: _owner, fee: _fee, agentCount: _agentCount, agentOwners: _agentOwners, agentAvailable: _agentAvailable, agentTotalTasks: _agentTotalTasks, agentSuccesses: _agentSuccesses, agentRegisteredAt: _agentRegisteredAt, agentLastActive: _agentLastActive, nameToIndex: _nameToIndex, capabilityIndex: _capabilityIndex, openDisputes: _openDisputes, disputeDepositors: _disputeDepositors, disputeBeneficiaries: _disputeBeneficiaries, disputeAmounts: _disputeAmounts, disputeDeadlines: _disputeDeadlines, disputeSettled: _disputeSettled, disputeCount: _disputeCount, cleanupCursor: _cleanupCursor, intents: _intents, intentServiceHashes: _intentServiceHashes, intentBudgets: _intentBudgets, intentDeadlines: _intentDeadlines, intentStatuses: _intentStatuses, intentAcceptedOffer: _intentAcceptedOffer, intentCount: _intentCount, intentsByService: _intentsByService, offers: _offers, offerIntents: _offerIntents, offerPrices: _offerPrices, offerDeliveryTimes: _offerDeliveryTimes, offerStatuses: _offerStatuses, offerCount: _offerCount, intentCleanupCursor: _intentCleanupCursor, agentActiveIntents: _agentActiveIntents, maxIntentsPerAgent: _maxIntentsPerAgent };
2040
+ }
2041
+
2042
+ export function loadGetterTupleReputation$Data(source: TupleReader) {
2043
+ const _owner = source.readAddress();
2044
+ const _fee = source.readBigNumber();
2045
+ const _agentCount = source.readBigNumber();
2046
+ const _agentOwners = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2047
+ const _agentAvailable = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), source.readCellOpt());
2048
+ const _agentTotalTasks = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2049
+ const _agentSuccesses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2050
+ const _agentRegisteredAt = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2051
+ const _agentLastActive = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2052
+ const _nameToIndex = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Uint(32), source.readCellOpt());
2053
+ const _capabilityIndex = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), source.readCellOpt());
2054
+ const _openDisputes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2055
+ const _disputeDepositors = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2056
+ const _disputeBeneficiaries = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2057
+ const _disputeAmounts = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2058
+ const _disputeDeadlines = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2059
+ const _disputeSettled = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Bool(), source.readCellOpt());
2060
+ const _disputeCount = source.readBigNumber();
2061
+ const _cleanupCursor = source.readBigNumber();
2062
+ const _intents = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2063
+ const _intentServiceHashes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigUint(256), source.readCellOpt());
2064
+ const _intentBudgets = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2065
+ const _intentDeadlines = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2066
+ const _intentStatuses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), source.readCellOpt());
2067
+ const _intentAcceptedOffer = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2068
+ const _intentCount = source.readBigNumber();
2069
+ const _intentsByService = Dictionary.loadDirect(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell(), source.readCellOpt());
2070
+ const _offers = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Address(), source.readCellOpt());
2071
+ const _offerIntents = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2072
+ const _offerPrices = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257), source.readCellOpt());
2073
+ const _offerDeliveryTimes = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32), source.readCellOpt());
2074
+ const _offerStatuses = Dictionary.loadDirect(Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8), source.readCellOpt());
2075
+ const _offerCount = source.readBigNumber();
2076
+ const _intentCleanupCursor = source.readBigNumber();
2077
+ const _agentActiveIntents = Dictionary.loadDirect(Dictionary.Keys.Address(), Dictionary.Values.BigInt(257), source.readCellOpt());
2078
+ const _maxIntentsPerAgent = source.readBigNumber();
2079
+ return { $$type: 'Reputation$Data' as const, owner: _owner, fee: _fee, agentCount: _agentCount, agentOwners: _agentOwners, agentAvailable: _agentAvailable, agentTotalTasks: _agentTotalTasks, agentSuccesses: _agentSuccesses, agentRegisteredAt: _agentRegisteredAt, agentLastActive: _agentLastActive, nameToIndex: _nameToIndex, capabilityIndex: _capabilityIndex, openDisputes: _openDisputes, disputeDepositors: _disputeDepositors, disputeBeneficiaries: _disputeBeneficiaries, disputeAmounts: _disputeAmounts, disputeDeadlines: _disputeDeadlines, disputeSettled: _disputeSettled, disputeCount: _disputeCount, cleanupCursor: _cleanupCursor, intents: _intents, intentServiceHashes: _intentServiceHashes, intentBudgets: _intentBudgets, intentDeadlines: _intentDeadlines, intentStatuses: _intentStatuses, intentAcceptedOffer: _intentAcceptedOffer, intentCount: _intentCount, intentsByService: _intentsByService, offers: _offers, offerIntents: _offerIntents, offerPrices: _offerPrices, offerDeliveryTimes: _offerDeliveryTimes, offerStatuses: _offerStatuses, offerCount: _offerCount, intentCleanupCursor: _intentCleanupCursor, agentActiveIntents: _agentActiveIntents, maxIntentsPerAgent: _maxIntentsPerAgent };
2080
+ }
2081
+
2082
+ export function storeTupleReputation$Data(source: Reputation$Data) {
2083
+ const builder = new TupleBuilder();
2084
+ builder.writeAddress(source.owner);
2085
+ builder.writeNumber(source.fee);
2086
+ builder.writeNumber(source.agentCount);
2087
+ builder.writeCell(source.agentOwners.size > 0 ? beginCell().storeDictDirect(source.agentOwners, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2088
+ builder.writeCell(source.agentAvailable.size > 0 ? beginCell().storeDictDirect(source.agentAvailable, Dictionary.Keys.Uint(32), Dictionary.Values.Bool()).endCell() : null);
2089
+ builder.writeCell(source.agentTotalTasks.size > 0 ? beginCell().storeDictDirect(source.agentTotalTasks, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2090
+ builder.writeCell(source.agentSuccesses.size > 0 ? beginCell().storeDictDirect(source.agentSuccesses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2091
+ builder.writeCell(source.agentRegisteredAt.size > 0 ? beginCell().storeDictDirect(source.agentRegisteredAt, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2092
+ builder.writeCell(source.agentLastActive.size > 0 ? beginCell().storeDictDirect(source.agentLastActive, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2093
+ builder.writeCell(source.nameToIndex.size > 0 ? beginCell().storeDictDirect(source.nameToIndex, Dictionary.Keys.BigUint(256), Dictionary.Values.Uint(32)).endCell() : null);
2094
+ builder.writeCell(source.capabilityIndex.size > 0 ? beginCell().storeDictDirect(source.capabilityIndex, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell()).endCell() : null);
2095
+ builder.writeCell(source.openDisputes.size > 0 ? beginCell().storeDictDirect(source.openDisputes, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2096
+ builder.writeCell(source.disputeDepositors.size > 0 ? beginCell().storeDictDirect(source.disputeDepositors, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2097
+ builder.writeCell(source.disputeBeneficiaries.size > 0 ? beginCell().storeDictDirect(source.disputeBeneficiaries, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2098
+ builder.writeCell(source.disputeAmounts.size > 0 ? beginCell().storeDictDirect(source.disputeAmounts, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257)).endCell() : null);
2099
+ builder.writeCell(source.disputeDeadlines.size > 0 ? beginCell().storeDictDirect(source.disputeDeadlines, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2100
+ builder.writeCell(source.disputeSettled.size > 0 ? beginCell().storeDictDirect(source.disputeSettled, Dictionary.Keys.Uint(32), Dictionary.Values.Bool()).endCell() : null);
2101
+ builder.writeNumber(source.disputeCount);
2102
+ builder.writeNumber(source.cleanupCursor);
2103
+ builder.writeCell(source.intents.size > 0 ? beginCell().storeDictDirect(source.intents, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2104
+ builder.writeCell(source.intentServiceHashes.size > 0 ? beginCell().storeDictDirect(source.intentServiceHashes, Dictionary.Keys.Uint(32), Dictionary.Values.BigUint(256)).endCell() : null);
2105
+ builder.writeCell(source.intentBudgets.size > 0 ? beginCell().storeDictDirect(source.intentBudgets, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257)).endCell() : null);
2106
+ builder.writeCell(source.intentDeadlines.size > 0 ? beginCell().storeDictDirect(source.intentDeadlines, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2107
+ builder.writeCell(source.intentStatuses.size > 0 ? beginCell().storeDictDirect(source.intentStatuses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8)).endCell() : null);
2108
+ builder.writeCell(source.intentAcceptedOffer.size > 0 ? beginCell().storeDictDirect(source.intentAcceptedOffer, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2109
+ builder.writeNumber(source.intentCount);
2110
+ builder.writeCell(source.intentsByService.size > 0 ? beginCell().storeDictDirect(source.intentsByService, Dictionary.Keys.BigUint(256), Dictionary.Values.Cell()).endCell() : null);
2111
+ builder.writeCell(source.offers.size > 0 ? beginCell().storeDictDirect(source.offers, Dictionary.Keys.Uint(32), Dictionary.Values.Address()).endCell() : null);
2112
+ builder.writeCell(source.offerIntents.size > 0 ? beginCell().storeDictDirect(source.offerIntents, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2113
+ builder.writeCell(source.offerPrices.size > 0 ? beginCell().storeDictDirect(source.offerPrices, Dictionary.Keys.Uint(32), Dictionary.Values.BigInt(257)).endCell() : null);
2114
+ builder.writeCell(source.offerDeliveryTimes.size > 0 ? beginCell().storeDictDirect(source.offerDeliveryTimes, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(32)).endCell() : null);
2115
+ builder.writeCell(source.offerStatuses.size > 0 ? beginCell().storeDictDirect(source.offerStatuses, Dictionary.Keys.Uint(32), Dictionary.Values.Uint(8)).endCell() : null);
2116
+ builder.writeNumber(source.offerCount);
2117
+ builder.writeNumber(source.intentCleanupCursor);
2118
+ builder.writeCell(source.agentActiveIntents.size > 0 ? beginCell().storeDictDirect(source.agentActiveIntents, Dictionary.Keys.Address(), Dictionary.Values.BigInt(257)).endCell() : null);
2119
+ builder.writeNumber(source.maxIntentsPerAgent);
2120
+ return builder.build();
2121
+ }
2122
+
2123
+ export function dictValueParserReputation$Data(): DictionaryValue<Reputation$Data> {
2124
+ return {
2125
+ serialize: (src, builder) => {
2126
+ builder.storeRef(beginCell().store(storeReputation$Data(src)).endCell());
2127
+ },
2128
+ parse: (src) => {
2129
+ return loadReputation$Data(src.loadRef().beginParse());
2130
+ }
2131
+ }
2132
+ }
2133
+
2134
+ type Reputation_init_args = {
2135
+ $$type: 'Reputation_init_args';
2136
+ owner: Address;
2137
+ }
2138
+
2139
+ function initReputation_init_args(src: Reputation_init_args) {
2140
+ return (builder: Builder) => {
2141
+ const b_0 = builder;
2142
+ b_0.storeAddress(src.owner);
2143
+ };
2144
+ }
2145
+
2146
+ async function Reputation_init(owner: Address) {
2147
+ const __code = Cell.fromHex('b5ee9c724102ac010035cc00022cff008e88f4a413f4bcf2c80bed53208e8130e1ed43d9013d020271021902012003080201200406033fb731bda89a1a400031d0ff4800203a3b679c61bb678ae20be1eae20be1ed88303e400500045612033fb7a7bda89a1a400031d0ff4800203a3b679c61bb678ae20be1eae20be1ed88303e400700045621020120090c03f3b7431da89a1a400031d0ff4800203a3b679c61a224622482246224422462244224222442242224022422240223e2240223e223c223e223c223a223c223a2238223a2238223622382236223422362234223222342232223022322230222e2230222e222c222e222c222a222c222a2228222a222822262228222703e400a01481112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c410b002c8307561c0280204133f40e6fa19401d70130925b6de20201480d1003f3ad98f6a268690000c743fd200080e8ed9e7186889188920891889108918891089088910890889008908890088f8890088f888f088f888f088e888f088e888e088e888e088d888e088d888d088d888d088c888d088c888c088c888c088b888c088b888b088b888b088a888b088a888a088a888a0889888a0889c03e400e01481112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c410f001c8307561b0259f40f6fa192306ddf020148111503f1a419da89a1a400031d0ff4800203a3b679c61a224622482246224422462244224222442242224022422240223e2240223e223c223e223c223a223c223a2238223a2238223622382236223422362234223222342232223022322230222e2230222e222c222e222c222a222c222a2228222a22282226222822273e401201741112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c41206e92306d99206ef2d0806f256f05e2206e92306dde1301de20c100917f94205623bee292306de0562180202259f40e6fa192306ddf206e925b6de080202056225422434133f40e6fa19401d70130925b6de280202056225422534133f40e6fa19401d70130925b6de280202056225422634133f40e6fa19401d70130925b6de2802056254016711400a64133f40e6fa19401d70030925b6de203206ef2d080236eb39603206ef2d080923370e2226eb39602206ef2d080923270e2216eb39601206ef2d080923170e2246eb39604206ef2d080923470e2103441306f0503f1a701da89a1a400031d0ff4800203a3b679c61a224622482246224422462244224222442242224022422240223e2240223e223c223e223c223a223c223a2238223a2238223622382236223422362234223222342232223022322230222e2230222e222c222e222c222a222c222a2228222a22282226222822273e401601401112111311121111111211111110111111100f11100f550edb3c6ce76ce76c871701e8561180202259f40e6fa192306ddf206ef2d0802e802023784133f40e6fa19401d70130925b6de2206ef2d08080202056125422534133f40e6fa19401d70130925b6de2206ef2d0807080202056125422734133f40e6fa19401d70130925b6de2206eb39631206ef2d0809130e2561480202683071800804133f40e6fa19401d70130925b6de2206ef2d0808020561540178101014133f40e6fa19401d70030925b6de2206ef2d08023c00094f82323be9170e2105644400201201a320201201b2c0201201c290201201d1f033facaf76a268690000c743fd200080e8ed9e7186ed9e2b882f87ab882f87b620c03e401e00022a020148202503f1a785da89a1a400031d0ff4800203a3b679c61a224622482246224422462244224222442242224022422240223e2240223e223c223e223c223a223c223a2238223a2238223622382236223422362234223222342232223022322230222e2230222e222c222e222c222a222c222a2228222a22282226222822273e402101441112111311121111111211111110111111100f11100f550edb3c6caa6caa6caa6c6a2201f6562180202259f40e6fa192306ddf6e99707054700053007021e07080202056225422434133f40e6fa19401d70130925b6de2206eb39631206ef2d0809130e27080202056225422534133f40e6fa19401d70130925b6de2206eb39631206ef2d0809130e27022c2009630a76421a9049131e27080202056225422632301f84133f40e6fa19401d70130925b6de2206eb39631206ef2d0809130e27080202056225422734133f40e6fa19401d70130925b6de2206eb39631206ef2d0809130e27021c2009b30f82321a182015180a904de7023c2009b30f82323a182015180a904de7026c2639325c1149170e2923071de20c0009323c2009170e22400809af82324a18208278d00bc9170e2923072de20c0009326c0009170e29324c2009170e29af82325a18208093a80bc9170e2923073de7f21c2001850060504431303f1a41bda89a1a400031d0ff4800203a3b679c61a224622482246224422462244224222442242224022422240223e2240223e223c223e223c223a223c223a2238223a2238223622382236223422362234223222342232223022322230222e2230222e222c222e222c222a222c222a2228222a22282226222822273e402601401112111311121111111211111110111111100f11100f550edb3c6cf56cf56c652701f02980202259f40e6fa192306ddf206ef2d0808020545a0052404133f40e6fa19401d70130925b6de2206ef2d080298020248101014133f40e6fa19401d70030925b6de2206ef2d0808020545a0052604133f40e6fa19401d70130925b6de2206ef2d0808020544a16784133f40e6fa19401d70130925b6de2280012206ef2d0801034413003f3b30dbb513434800063a1fe9000407476cf38c34448c4490448c4488448c4488448444884484448044844480447c4480447c4478447c4478447444784474447044744470446c4470446c4468446c4468446444684464446044644460445c4460445c4458445c4458445444584454445044544450444c4450444e03e402a01481112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c412b001a83072b0259f40f6fa192306ddf0201202d2f033fb3a37b513434800063a1fe9000407476cf38c376cf15c417c3d5c417c3db10603e402e0008f8276f1003f3b0357b513434800063a1fe9000407476cf38c34448c4490448c4488448c4488448444884484448044844480447c4480447c4478447c4478447444784474447044744470446c4470446c4468446c4468446444684464446044644460445c4460445c4458445c4458445444584454445044544450444c4450444e03e403001481112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c413100c820c100917f94205623bee2923070e080202056215422334133f40e6fa19401d70130925b6de2206e917f9820206ef2d080c000e2925b70e080202056210350444133f40e6fa19401d70130925b6de2206e925b70e0206ef2d080a76401206ef2d080a904020120333b02016a343803f2ab3eed44d0d200018e87fa400101d1db3ce30d112311241123112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a11191118111911181117111811171116111711161115111611151114111511141113111411133e403501741112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c41206e92306d99206ef2d0806f266f06e2206e92306dde3601f620c100917f94205614bee292306de0561980202259f40e6fa192306ddf206e925b6de05615802023714133f40e6fa19401d70030925b6de201206ef2d080561a80202459f40e6fa192306ddf206ef2d080561a80202559f40e6fa192306ddf206ef2d080561a8020268101014133f40e6fa19401d70030925b6de237006c206ef2d080802020561c0350884133f40e6fa19401d70130925b6de2206ef2d080246eb39604206ef2d080923470e210354430126f0603f2a9b4ed44d0d200018e87fa400101d1db3ce30d112311241123112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a11191118111911181117111811171116111711161115111611151114111511141113111411133e403901481112111311121111111211111110111111100f11100f550edb3c57105f0f57105f0f6c413a004681010b23028101014133f40a6fa19401d70030925b6de2206eb395206ef2d080e03070033fb42a3da89a1a400031d0ff4800203a3b679c61bb678ae20be1eae20be1ed88303e403c00022304a0eda2edfb01d072d721d200d200fa4021103450666f04f86102f862ed44d0d200018e87fa400101d1db3ce30d1125965f0f5f0f5f07e01123d70d1ff2e08221821038a0a307bae302218210a7262e8eba3e40434a01f46d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d8208989680705470005300061121060511200506111f0605111e0506111d0605111c0506111b0605111a0506111906051118050611170605111605061115060511140506111306051112050411110403111003106f105e104d103c106b105a3f00141029104810374104037a01f8db3c5724112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a11191118111911181117111811171116111711161115111611151114111511141113111411131112111311121111111211111110111111100f11100f550e4101ecfa40fa00d31ff404d401d0f404f404f404d430d0f404f404f404d430d0f404f404f404d430d0f404f404f404d430d0f404d31fd31ff404f404d430d0f404f404f404d430d0f404d31ff404f404d430d0f404f404f404d430d0f404d31fd31ff404d3073011201124112011201123112011201122112042000c11201121112003f631d401d001d431d200308160adf8416f24135f035624bef2f4019b9320d74a91d5e868f90400da11561a83072280204133f40e6fa19401d70130925b6de2206eb3e30f112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a111b1118111a111844454700d431206ef2d080562080202259f40e6fa192306ddf817b16216eb39bf84202206ef2d08012c705923170e2f2f401111f0180205110112171216e955b59f45b3098c801cf004133f443e28020f8232104111d04102302112102216e955b59f45b3098c801cf014133f443e201fe3056218020f84202112302562301206e953059f45b30944133f416e2011120018020015622500471216e955b59f45b3098c801cf004133f443e28020702103112103562359216e955b59f45b3098c801cf014133f443e28020702103112003562359216e955b59f45b3098c801cf014133f443e28020f8232103111f0356234600e659216e955b59f45b3098c801cf014133f443e28020f8232103111e03562359216e955b59f45b3098c801cf014133f443e202111a028307020111200111218020216e955b59f45b3098c801cf014133f443e2111fa4111f111c111d111c111b111c111b111a111b111a1119111a11191118111904fe1117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd10ac109b108a1079106810571046103544301272db3cf842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf818ae276488f490028000000004167656e7420726567697374657265640178f400c901fb00c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a902fc8efa31d401d001d200308160adf8416f24135f035624bef2f4019b9320d74a91d5e868f90400da118307561b0280204133f40e6fa19401d70130925b6de2816cce216eb3f2f4206ef2d08080202056205422334133f40e6fa19401d70130925b6de2206e95816ccef2f0de802001206ef2d080a42103112103562159e0214b4f01fc216e955b59f45b3098c801cf014133f443e2018e3b80205300561f595621014133f40e6fa19401d70130925b6de2206ef2d080a42103111f03562059216e955b59f45b3098c801cf014133f443e2111cde8020f8232104111d04102302112002216e955b59f45b3098c801cf014133f443e21121112311211120112211204c01fc111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a111b1118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012714d03ecdb3cf842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54764ea9002600000000526174696e67207265636f72646564044a821054e26a4bbae302218210148534b8bae3022182108711bf6fbae3022182102f7e5059ba5054585b01fc31d401d001d20030019b9320d74a91d5e868f90400da118307561b0280204133f40e6fa19401d70130925b6de2816cce216eb3f2f4206ef2d080562080202259f40e6fa192306ddf820097a4216eb39bf84202206ef2d08012c705923170e2f2f401111f0180205110112171216e955b59f45b3098c801cf004133f443e25102fa8020f8232104111d04102302112102216e955b59f45b3098c801cf014133f443e2f842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112111231121112011221120111f1121111f111e1120111e111d111f111d5253003000000000417661696c6162696c697479207570646174656401d6111c111e111c111b111d111b111a111c111a111b1118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012a801f831d31fd3ff30562080202359f40e6fa192306ddf816cce216eb3f2f4811bd6f84202206ef2d08012c705f2f48020f8232103111e032459216e955b59f45b3098c801cf014133f443e256198307561d59f40f6fa192306ddfc813cb1f226eb39c7101cb0002206ef2d08058cc95327058cb00e2830701c903111a03125502f401111c01206e953059f45b30944133f417e2f842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b5657002c000000004361706162696c69747920696e646578656401be111a111c111a1119111b11191118111a111811191116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012a801fe31d3073020c23293308032de20c101923071de112211241122112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311115903ce1110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012db3cf842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00765aa8002a00000000436c65616e757020636f6d706c6574656402fe8efc31fa40fa40fa40fa00d31f3001111b0180200156165006206e953059f45b30944133f416e20111190180200156155004206e953059f45b30944133f416e201111701802001561401111a206e953059f45b30944133f416e201111501802001561301111a810101216e955b59f45b3098c801cf004133f443e2802020e05c5e01f80311150312561302111701216e955b59f45b3098c801cf014133f443e21111802056117071216e955b59f45b3098c801cf004133f443e21110a4112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911175d01c011141118111411151117111511131115111311111114111111101113111011120f11110f0e11100e551dc87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a9044c218210bfa05986bae3022182102365d020bae302218210966dc6edbae3022182106d5af6a7ba5f63668b02fa31fa40307094205613b98ea1561880202259f40e6fa192306ddf206eb398206ef2d08022c705923070e2e302a4e85b112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a1118111711191117111611181116111511171115606201fc31011112018020017f71216e955b59f45b3098c801cf004133f443e2112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a111811171119111711161118111611151117111511141116111411131115111311121114111211136101be1110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54db31a901c01114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df551cc87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a902fa5b8168c9f8425623c705f2f47081008270885625553010246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a6465002400000000466565732077697468647261776e01fc1119111b11191118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df551cc87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a902fc31d3fffa00d31f30811127f8235220bcf2f48159c222c200f2f47081010bf8425628598101014133f40a6fa19401d70030925b6de2206eb39631206ef2d0809130e2205628bee3008020f8420211140252e0206e953059f45b30944133f416e21111802053d48307216e955b59f45b3098c801cf014133f443e201111001676e01f4f842112411261124112311251123112211261122112111251121112011261120111f1125111f111e1126111e111d1125111d111c1126111c111b1125111b111a1126111a1119112511191118112611181117112511171116112611161115112511151114112611141113112511131112112611121111112511116802f81110112611100f11250f0e11260e0d11250d0c11260c0b11250b0a11260a091125090811260807112507061126060511250504112604031125030211270201112801db3c8e2a572781010bf84222598101014133f40a6fa19401d70030925b6de2206eb395206ef2d080923070e21127de811d38562822b9f2f41127696c012ceda2edfb70209a21c13293530db99170e28ae85f03706a02fe561380202259f40e6fa192306ddf5610802023784133f40e6fa19401d70130925b6de2216eb39901206ef2d08024c705923170e293206eb39170e297206ef2d080c000923070e28eb280202056125422334133f40e6fa19401d70130925b6de2206eb399f82301206ef2d080be923070e28e876c21db3c7fdb31e0dea401a4806b00020101f801112601112311251123112211241122112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211106d00400f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035102401fe80205420d4810101216e955b59f45b3098c801cf004133f443e280202003111003544d13111201216e955b59f45b3098c801cf014133f443e20c80202b7078216e955b59f45b3098c801cf014133f443e22aa481010bf8421113a4031127031201111301810101216e955b59f4593098c801cf004133f441e21123112511236f01fc112211241122112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311110f11120f5e3d10cf10ce10bd109b108a10797004301068105710461035441302db3cdb3c71db3cf8427080427071727689007a2b83072359f40f6fa192306ddfc812cb1f216eb39c7101cb0001206ef2d08001cc947032cb00e2830701c9103c12206e953059f45b30944133f417e20901e8eda2edfb22709a20c10593531cb99170e28ed42e802023784133f40e6fa19401d70130925b6de2206eb397206ef2d080c000923070e28eaa80202056115422434133f40e6fa19401d70130925b6de2206eb399f82301206ef2d080be923070e2e302de01a401a4e83033532abe9232709102e2027301fa30112311241123112211241122112111241121112011241120111f1124111f111e1124111e111d1124111d111c1124111c111b1124111b111a1124111a1119112411191118112411181117112411171116112411161115112411151114112411141113112411131112112411121111112411111110112411100f11240f7402f60e11240e0d11240d0c11240c0b11240b0a11240a09112409112408070655405624db3c321123a4112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a11191118111911181117111811171116111711161115111611158075007c1114111511141113111411131112111311121111111211111110111111100f11100f10ef10de10cd10bc10ab109a1089107810671056104510344033db310188702056148e1221c10a94205626b99170e2935323b99170e28e96562480202259f40e6fa192306ddf6eb3e300a401a401e857155f0356115622be93571170921111e211117701fc7080202056255422434133f40e6fa19401d70130925b6de280202056255422534133f40e6fa19401d70130925b6de280202056245422634133f40e6fa19401d70130925b6de280202056265422734133f40e6fa19401d70130925b6de270246eb3983003206ef2d080039134e270236eb3983002206ef2d080029133e2237801ecc2639c02a76423a904c114927f34de9132e223b393206eb39170e29820206ef2d080c2009170e28e13f82301206ef2d080a18208278d00bc927f33de9130e222b39301c000923170e293206eb39170e29820206ef2d080c2009170e28e13f82301206ef2d080a18208093a80bc92307fde9130e2e3007901f8112311271123112211261122112111251121112011241120111f1127111f111e1126111e111d1125111d111c1124111c111b1127111b111a1126111a1119112511191118112411181117112711171116112611161115112511151114112411141113112711131112112611121111112511111110112411100f11270f7a02fa0e11260e0d11250d0c11240c0b11270b0a11260a09112509081124080711270706112606051125050411240403112703021126020111250111245624db3c1126a4112311271123112211261122112111251121112011241120111f1123111f111e1122111e111d1121111d111c1120111c111b111f111b111a111e111a7b8801f6562180202259f40e6fa192306ddf11228020226d206e953059f45b30944133f416e211218020226d71216e955b59f45b3098c801cf004133f443e280206d21031123032459216e955b59f45b3098c801cf014133f443e280206d21031122032459216e955b59f45b3098c801cf014133f443e280206d21031121037c01b62459216e955b59f45b3098c801cf014133f443e280206d2104112004102302112002216e955b59f45b3098c801cf014133f443e256216eb3925721e30d111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b7d03fe70209a531db99320c1149170e28ed2561380202359f40e6fa192306ddf5610802024784133f40e6fa19401d70130925b6de2216eb39f01206ef2d0805625206ef2d080c705923170e293206eb39170e297206ef2d080c000923070e2e30001a401e85b70209a5316b99320c11e9170e28ae85b81010b1122206ef2d08010237e868701f8112311261123112211251122112111241121112011251120111f1124111f111e1125111e111d1124111d111c1125111c02111b02111a1124111a111911251119021118021117112411171116112511160211150211141124111411131125111302111202111111241111111011251110102f0e11240e0d11250d102c7f02fa0b11240b0a11250a10290811240807112507102605112405041125041023021124020111250111245625db3c1124a4112311261123112211251122112111241121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111a111d111a1119111c11191118111b11181117111a1117111611191116808502c62d802022784133f40e6fa19401d70130925b6de2206e92307f97206ef2d080c300e29130e0561180202259f40e6fa192306ddf0e8020227478216e955b59f45b3098c801cf014133f443e22e6eb3913ee30d70209a5316b99320c1149170e28ae85f03818401fc0e206ef2d080112411251124112311251123112211251122112111251121112011251120111f1125111f111e1125111e111d1125111d111c1125111c111b1125111b111a1125111a1119112511191118112511181117112511171116112511161115112511151114112511141113112511131112112511121111112511118202f41110112511100f11250f0e11250e0d11250d0c11250c0b11250b0a11250a091125090811250807112507061125060511250504112504031125030211250201112501db3c112311241123112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111ba2830090111a111b111a1119111a11191118111911181117111811171116111711161115111611151114111511141113111411131112111311121111111211111110111111100f11100f550e00da8020545b0052404133f40e6fa19401d70130925b6de228802024784133f40e6fa19401d70130925b6de2216eb39801206ef2d08024ba923170e293206eb39170e297206ef2d080c000923070e28e1a078020227378216e955b59f45b3098c801cf014133f443e207a4de01a40100901115111811151114111711141113111611131112111511121111111411111110111311100f11120f0e11110e0d11100d10cf10be10ad109c108b107a10691058104710364540102300d62b80202359f40e6fa192306ddf28802024784133f40e6fa19401d70130925b6de2216eb39f01206ef2d0805625206ef2d080c705923170e293206eb39170e297206ef2d080c000923070e28e1a078020227378216e955b59f45b3098c801cf014133f443e207a4de01a4010036011122016d810101216e955b59f4593098c801cf004133f441e20100c41119111d11191118111c11181117111b11171116111a11161115111911151114111811141113111711131112111611121111111511111110111411100f11130f0e11120e0d11110d0c11100c10bf10ae109d108c107b106a1059104810374016505402dc8810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed548aa9002800000000496e74656e742062726f61646361737402fe8efc31d31ffa00d31f302d802024784133f40e6fa19401d70130925b6de2813404216eb3f2f481680001206ef2d080c000f2f48020545f0052504133f40e6fa19401d70130925b6de28200bc90216eb39af82302206ef2d08012b9923170e2f2f42f8020248101014133f40e6fa19401d70030925b6de282008b73216eb3e08c9201e69901206ef2d0805230bb923170e2f2f4561180202459f40e6fa192306ddf820087fa216eb39cf84202206ef2d08012c705b3923170e2f2f48020f84226103c01206e953059f45b30944133f416e2802020103a5446135055216e955b59f45b3098c801cf014133f443e21680205420498101018d03fe216e955b59f45b3098c801cf004133f443e2802020103654441350aa216e955b59f45b3098c801cf014133f443e2028020227078216e955b59f45b3098c801cf014133f443e201a4f842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf818ae2f400c901fb001121112311218e8f90001c000000004f666665722073656e74001a58cf8680cf8480f400f400cf8101fc112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611141113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd10ac109b108a10795e3491017445135042c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a9044c2182103785158dbae3022182101ce33d8ebae3022182103b9b249ebae302018210946a98b6ba939a9fa601f631d31f3023802022784133f40e6fa19401d70130925b6de28200c723216eb3f2f48200b1bf01206ef2d080c000f2f4802054570052304133f40e6fa19401d70130925b6de282009d3e216eb3f2f4802021206ef2d08056125959f40e6fa192306ddf815730216eb39af84222206ef2d080c7059170e2f2f48020229401f6206ef2d0802f59784133f40e6fa19401d70130925b6de2816800216eb39801206ef2d080c000923170e2f2f4802022206ef2d08021561155204133f40e6fa19401d70130925b6de28200bc90216eb39af82302206ef2d08012b9923170e2f2f4058020237178216e955b59f45b3098c801cf014133f443e28020229504fa206ef2d080102f7178216e955b59f45b3098c801cf014133f443e2802022206ef2d08021103f5250216e955b59f45b3098c801cf014133f443e2256eb38e9e05206ef2d08010cd105c0211250201112601db3c112501112401104c104b9135e270935304b98ae85f03f842708042708810246d50436d03c8cf8580ca00a296979800ea5302bd8e6e802054590052304133f40e6fa19401d70130925b6de22e802023784133f40e6fa19401d70130925b6de2216eb39d01206ef2d08023206ef2d080ba923170e293206eb39170e297206ef2d080c000923070e28e190d80202e7278216e955b59f45b3098c801cf014133f443e20ddedea40024000000004f6666657220616363657074656402fc89cf16ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611149d9901d81113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd109c102b108a10791068105710465a15c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a902fe31d31f302b802022784133f40e6fa19401d70130925b6de2813404216eb3f2f482009b6f01206ef2d080c001f2f42f80202259f40e6fa192306ddf815730216eb39bf84202206ef2d08012c705923170e2f2f41b8020017278216e955b59f45b3098c801cf014133f443e2f842708042708810246d50436d03c8cf8580ca009b9c0020000000004465616c20736574746c656402fc89cf16ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a11181117111911171116111811161115111711151114111611149d9e00011001da1113111511131112111411121111111311111110111211100f11110f0e11100e10df10ce10bd0c109b108a107910681057104610354403c87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a901fe31d31f302b802022784133f40e6fa19401d70130925b6de2813404216eb3f2f48200cd2501206ef2d080c000f2f42f80202259f40e6fa192306ddf815730216eb39bf84202206ef2d08012c705923170e2f2f40b80202c7378216e955b59f45b3098c801cf014133f443e2f842112311241123112211231122112111221121a001fc112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a11191118111911181117111811171116111711161115111611151114111511141113111411131112111311121111111211111110111111100f11100f10ef1d1e10bc10ab109a10891078106710561045a102fc1034413001112501db3c70935304b98e6b802054590052304133f40e6fa19401d70130925b6de226802023784133f40e6fa19401d70130925b6de2216eb39901206ef2d0805627ba923170e293206eb39170e297206ef2d080c000923070e28e19058020267278216e955b59f45b3098c801cf014133f443e205dea4e830a2a3009c2281010b228101014133f40a6fa19401d70030925b6de2206eb39820206ef2d080c2009170e28e2381010b01206ef2d080a5103412810101216e955b59f4593098c801cf004133f441e201915be202f85724f842708042708810246d50436d03c8cf8580ca00cf8440ce01fa028069cf40025c6e016eb0935bcf819d58cf8680cf8480f400f400cf81e2f400c901fb00112211231122112111221121112011211120111f1120111f111e111f111e111d111e111d111c111d111c111b111c111b111a111b111a1119111a1119a4a5002800000000496e74656e742063616e63656c6c656401e41118111911181117111811171116111711161115111611151114111511141113111411131112111311121111111211111110111111100f11100f550ec87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a902fe8efdd33f30c8018210aff90f5758cb1fcb3fc9112211241122112111231121112011221120111f1121111f111e1120111e111d111f111d111c111e111c111b111d111b111a111c111a1119111b11191118111a1118111711191117111611181116111511171115111411161114111311151113111211141112111111131111a7ab01941110111211100f11110f0e11100e10df10ce10bd10ac109b108a10791068105710461035443012f84270705003804201503304c8cf8580ca00cf8440ce01fa02806acf40f400c901fb00a8016cc87f01ca0011241123112211211120111f111e111d111c111b111a111911181117111611151114111311121111111055e0db3cc9ed54a901f4011123011124ce011121fa0201111f01cb1f01111d01f400111bc8f40001111a01f40001111801f4001116c8f40001111501f40001111301f4001111c8f40001111001f4001ef4000cc8f4001bf40019f40007c8f40016cb1f14cb1f12f400f40001c8f40012f40013f40003c8f40015cb1f15f40016f40006c8aa004ef40018f40018f40009c8f4001acb1f1acb1f1af4001acb0715cd18cd16cd13cd14cd14cdcdcdcd0014e05f0f5f0f5f07f2c082682c47a5');
2148
+ const builder = beginCell();
2149
+ builder.storeUint(0, 1);
2150
+ initReputation_init_args({ $$type: 'Reputation_init_args', owner })(builder);
2151
+ const __data = builder.endCell();
2152
+ return { code: __code, data: __data };
2153
+ }
2154
+
2155
+ export const Reputation_errors = {
2156
+ 2: { message: "Stack underflow" },
2157
+ 3: { message: "Stack overflow" },
2158
+ 4: { message: "Integer overflow" },
2159
+ 5: { message: "Integer out of expected range" },
2160
+ 6: { message: "Invalid opcode" },
2161
+ 7: { message: "Type check error" },
2162
+ 8: { message: "Cell overflow" },
2163
+ 9: { message: "Cell underflow" },
2164
+ 10: { message: "Dictionary error" },
2165
+ 11: { message: "'Unknown' error" },
2166
+ 12: { message: "Fatal error" },
2167
+ 13: { message: "Out of gas error" },
2168
+ 14: { message: "Virtualization error" },
2169
+ 32: { message: "Action list is invalid" },
2170
+ 33: { message: "Action list is too long" },
2171
+ 34: { message: "Action is invalid or not supported" },
2172
+ 35: { message: "Invalid source address in outbound message" },
2173
+ 36: { message: "Invalid destination address in outbound message" },
2174
+ 37: { message: "Not enough Toncoin" },
2175
+ 38: { message: "Not enough extra currencies" },
2176
+ 39: { message: "Outbound message does not fit into a cell after rewriting" },
2177
+ 40: { message: "Cannot process a message" },
2178
+ 41: { message: "Library reference is null" },
2179
+ 42: { message: "Library change action error" },
2180
+ 43: { message: "Exceeded maximum number of cells in the library or the maximum depth of the Merkle tree" },
2181
+ 50: { message: "Account state size exceeded limits" },
2182
+ 128: { message: "Null reference exception" },
2183
+ 129: { message: "Invalid serialization prefix" },
2184
+ 130: { message: "Invalid incoming message" },
2185
+ 131: { message: "Constraints error" },
2186
+ 132: { message: "Access denied" },
2187
+ 133: { message: "Contract stopped" },
2188
+ 134: { message: "Invalid argument" },
2189
+ 135: { message: "Code of a contract was not found" },
2190
+ 136: { message: "Invalid standard address" },
2191
+ 138: { message: "Not a basechain address" },
2192
+ 4391: { message: "Deadline must be in the future" },
2193
+ 7126: { message: "Not the agent owner" },
2194
+ 7480: { message: "Max intents reached. Cancel or wait for expiration." },
2195
+ 13316: { message: "Intent not found" },
2196
+ 22320: { message: "Not the intent owner" },
2197
+ 22978: { message: "Budget must be positive" },
2198
+ 24749: { message: "Insufficient fee. Send at least 0.01 TON." },
2199
+ 26624: { message: "Intent not open" },
2200
+ 26825: { message: "Only owner can withdraw" },
2201
+ 27854: { message: "Agent not found" },
2202
+ 31510: { message: "Only the agent owner can update" },
2203
+ 34810: { message: "Cannot offer on own intent" },
2204
+ 35699: { message: "Price exceeds budget" },
2205
+ 38820: { message: "Only the agent owner can update availability" },
2206
+ 39791: { message: "Intent not in accepted state" },
2207
+ 40254: { message: "Offer has no intent" },
2208
+ 45503: { message: "Offer not pending" },
2209
+ 48272: { message: "Intent expired" },
2210
+ 50979: { message: "Offer not found" },
2211
+ 52517: { message: "Can only cancel open intents" },
2212
+ } as const
2213
+
2214
+ export const Reputation_errors_backward = {
2215
+ "Stack underflow": 2,
2216
+ "Stack overflow": 3,
2217
+ "Integer overflow": 4,
2218
+ "Integer out of expected range": 5,
2219
+ "Invalid opcode": 6,
2220
+ "Type check error": 7,
2221
+ "Cell overflow": 8,
2222
+ "Cell underflow": 9,
2223
+ "Dictionary error": 10,
2224
+ "'Unknown' error": 11,
2225
+ "Fatal error": 12,
2226
+ "Out of gas error": 13,
2227
+ "Virtualization error": 14,
2228
+ "Action list is invalid": 32,
2229
+ "Action list is too long": 33,
2230
+ "Action is invalid or not supported": 34,
2231
+ "Invalid source address in outbound message": 35,
2232
+ "Invalid destination address in outbound message": 36,
2233
+ "Not enough Toncoin": 37,
2234
+ "Not enough extra currencies": 38,
2235
+ "Outbound message does not fit into a cell after rewriting": 39,
2236
+ "Cannot process a message": 40,
2237
+ "Library reference is null": 41,
2238
+ "Library change action error": 42,
2239
+ "Exceeded maximum number of cells in the library or the maximum depth of the Merkle tree": 43,
2240
+ "Account state size exceeded limits": 50,
2241
+ "Null reference exception": 128,
2242
+ "Invalid serialization prefix": 129,
2243
+ "Invalid incoming message": 130,
2244
+ "Constraints error": 131,
2245
+ "Access denied": 132,
2246
+ "Contract stopped": 133,
2247
+ "Invalid argument": 134,
2248
+ "Code of a contract was not found": 135,
2249
+ "Invalid standard address": 136,
2250
+ "Not a basechain address": 138,
2251
+ "Deadline must be in the future": 4391,
2252
+ "Not the agent owner": 7126,
2253
+ "Max intents reached. Cancel or wait for expiration.": 7480,
2254
+ "Intent not found": 13316,
2255
+ "Not the intent owner": 22320,
2256
+ "Budget must be positive": 22978,
2257
+ "Insufficient fee. Send at least 0.01 TON.": 24749,
2258
+ "Intent not open": 26624,
2259
+ "Only owner can withdraw": 26825,
2260
+ "Agent not found": 27854,
2261
+ "Only the agent owner can update": 31510,
2262
+ "Cannot offer on own intent": 34810,
2263
+ "Price exceeds budget": 35699,
2264
+ "Only the agent owner can update availability": 38820,
2265
+ "Intent not in accepted state": 39791,
2266
+ "Offer has no intent": 40254,
2267
+ "Offer not pending": 45503,
2268
+ "Intent expired": 48272,
2269
+ "Offer not found": 50979,
2270
+ "Can only cancel open intents": 52517,
2271
+ } as const
2272
+
2273
+ const Reputation_types: ABIType[] = [
2274
+ {"name":"DataSize","header":null,"fields":[{"name":"cells","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"bits","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"refs","type":{"kind":"simple","type":"int","optional":false,"format":257}}]},
2275
+ {"name":"SignedBundle","header":null,"fields":[{"name":"signature","type":{"kind":"simple","type":"fixed-bytes","optional":false,"format":64}},{"name":"signedData","type":{"kind":"simple","type":"slice","optional":false,"format":"remainder"}}]},
2276
+ {"name":"StateInit","header":null,"fields":[{"name":"code","type":{"kind":"simple","type":"cell","optional":false}},{"name":"data","type":{"kind":"simple","type":"cell","optional":false}}]},
2277
+ {"name":"Context","header":null,"fields":[{"name":"bounceable","type":{"kind":"simple","type":"bool","optional":false}},{"name":"sender","type":{"kind":"simple","type":"address","optional":false}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"raw","type":{"kind":"simple","type":"slice","optional":false}}]},
2278
+ {"name":"SendParameters","header":null,"fields":[{"name":"mode","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"body","type":{"kind":"simple","type":"cell","optional":true}},{"name":"code","type":{"kind":"simple","type":"cell","optional":true}},{"name":"data","type":{"kind":"simple","type":"cell","optional":true}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"to","type":{"kind":"simple","type":"address","optional":false}},{"name":"bounce","type":{"kind":"simple","type":"bool","optional":false}}]},
2279
+ {"name":"MessageParameters","header":null,"fields":[{"name":"mode","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"body","type":{"kind":"simple","type":"cell","optional":true}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"to","type":{"kind":"simple","type":"address","optional":false}},{"name":"bounce","type":{"kind":"simple","type":"bool","optional":false}}]},
2280
+ {"name":"DeployParameters","header":null,"fields":[{"name":"mode","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"body","type":{"kind":"simple","type":"cell","optional":true}},{"name":"value","type":{"kind":"simple","type":"int","optional":false,"format":257}},{"name":"bounce","type":{"kind":"simple","type":"bool","optional":false}},{"name":"init","type":{"kind":"simple","type":"StateInit","optional":false}}]},
2281
+ {"name":"StdAddress","header":null,"fields":[{"name":"workchain","type":{"kind":"simple","type":"int","optional":false,"format":8}},{"name":"address","type":{"kind":"simple","type":"uint","optional":false,"format":256}}]},
2282
+ {"name":"VarAddress","header":null,"fields":[{"name":"workchain","type":{"kind":"simple","type":"int","optional":false,"format":32}},{"name":"address","type":{"kind":"simple","type":"slice","optional":false}}]},
2283
+ {"name":"BasechainAddress","header":null,"fields":[{"name":"hash","type":{"kind":"simple","type":"int","optional":true,"format":257}}]},
2284
+ {"name":"Deploy","header":2490013878,"fields":[{"name":"queryId","type":{"kind":"simple","type":"uint","optional":false,"format":64}}]},
2285
+ {"name":"DeployOk","header":2952335191,"fields":[{"name":"queryId","type":{"kind":"simple","type":"uint","optional":false,"format":64}}]},
2286
+ {"name":"FactoryDeploy","header":1829761339,"fields":[{"name":"queryId","type":{"kind":"simple","type":"uint","optional":false,"format":64}},{"name":"cashback","type":{"kind":"simple","type":"address","optional":false}}]},
2287
+ {"name":"Register","header":950051591,"fields":[{"name":"name","type":{"kind":"simple","type":"string","optional":false}},{"name":"capabilities","type":{"kind":"simple","type":"string","optional":false}},{"name":"available","type":{"kind":"simple","type":"bool","optional":false}}]},
2288
+ {"name":"Rate","header":2804297358,"fields":[{"name":"agentName","type":{"kind":"simple","type":"string","optional":false}},{"name":"success","type":{"kind":"simple","type":"bool","optional":false}}]},
2289
+ {"name":"UpdateAvailability","header":1424124491,"fields":[{"name":"name","type":{"kind":"simple","type":"string","optional":false}},{"name":"available","type":{"kind":"simple","type":"bool","optional":false}}]},
2290
+ {"name":"Withdraw","header":593874976,"fields":[]},
2291
+ {"name":"IndexCapability","header":344274104,"fields":[{"name":"agentIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"capabilityHash","type":{"kind":"simple","type":"uint","optional":false,"format":256}}]},
2292
+ {"name":"TriggerCleanup","header":2266087279,"fields":[{"name":"maxClean","type":{"kind":"simple","type":"uint","optional":false,"format":8}}]},
2293
+ {"name":"NotifyDisputeOpened","header":796807257,"fields":[{"name":"escrowAddress","type":{"kind":"simple","type":"address","optional":false}},{"name":"depositor","type":{"kind":"simple","type":"address","optional":false}},{"name":"beneficiary","type":{"kind":"simple","type":"address","optional":false}},{"name":"amount","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"votingDeadline","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2294
+ {"name":"NotifyDisputeSettled","header":3214956934,"fields":[{"name":"escrowAddress","type":{"kind":"simple","type":"address","optional":false}},{"name":"released","type":{"kind":"simple","type":"bool","optional":false}},{"name":"refunded","type":{"kind":"simple","type":"bool","optional":false}}]},
2295
+ {"name":"BroadcastIntent","header":2523776749,"fields":[{"name":"serviceHash","type":{"kind":"simple","type":"uint","optional":false,"format":256}},{"name":"budget","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"deadline","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2296
+ {"name":"SendOffer","header":1834677927,"fields":[{"name":"intentIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"price","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"deliveryTime","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2297
+ {"name":"AcceptOffer","header":931468685,"fields":[{"name":"offerIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2298
+ {"name":"CancelIntent","header":1000023198,"fields":[{"name":"intentIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2299
+ {"name":"SettleDeal","header":484654478,"fields":[{"name":"intentIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"rating","type":{"kind":"simple","type":"uint","optional":false,"format":8}}]},
2300
+ {"name":"AgentData","header":null,"fields":[{"name":"owner","type":{"kind":"simple","type":"address","optional":false}},{"name":"available","type":{"kind":"simple","type":"bool","optional":false}},{"name":"totalTasks","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"successes","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"registeredAt","type":{"kind":"simple","type":"uint","optional":false,"format":32}}]},
2301
+ {"name":"DisputeInfo","header":null,"fields":[{"name":"escrowAddress","type":{"kind":"simple","type":"address","optional":false}},{"name":"depositor","type":{"kind":"simple","type":"address","optional":false}},{"name":"beneficiary","type":{"kind":"simple","type":"address","optional":false}},{"name":"amount","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"votingDeadline","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"settled","type":{"kind":"simple","type":"bool","optional":false}}]},
2302
+ {"name":"AgentCleanupInfo","header":null,"fields":[{"name":"index","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"exists","type":{"kind":"simple","type":"bool","optional":false}},{"name":"score","type":{"kind":"simple","type":"uint","optional":false,"format":16}},{"name":"totalRatings","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"registeredAt","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"lastActive","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"daysSinceActive","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"daysSinceRegistered","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"eligibleForCleanup","type":{"kind":"simple","type":"bool","optional":false}},{"name":"cleanupReason","type":{"kind":"simple","type":"uint","optional":false,"format":8}}]},
2303
+ {"name":"IntentData","header":null,"fields":[{"name":"buyer","type":{"kind":"simple","type":"address","optional":false}},{"name":"serviceHash","type":{"kind":"simple","type":"uint","optional":false,"format":256}},{"name":"budget","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"deadline","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"status","type":{"kind":"simple","type":"uint","optional":false,"format":8}},{"name":"acceptedOffer","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"isExpired","type":{"kind":"simple","type":"bool","optional":false}}]},
2304
+ {"name":"OfferData","header":null,"fields":[{"name":"seller","type":{"kind":"simple","type":"address","optional":false}},{"name":"intentIndex","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"price","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"deliveryTime","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"status","type":{"kind":"simple","type":"uint","optional":false,"format":8}}]},
2305
+ {"name":"Reputation$Data","header":null,"fields":[{"name":"owner","type":{"kind":"simple","type":"address","optional":false}},{"name":"fee","type":{"kind":"simple","type":"uint","optional":false,"format":"coins"}},{"name":"agentCount","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"agentOwners","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"agentAvailable","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"bool"}},{"name":"agentTotalTasks","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"agentSuccesses","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"agentRegisteredAt","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"agentLastActive","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"nameToIndex","type":{"kind":"dict","key":"uint","keyFormat":256,"value":"uint","valueFormat":32}},{"name":"capabilityIndex","type":{"kind":"dict","key":"uint","keyFormat":256,"value":"cell","valueFormat":"ref"}},{"name":"openDisputes","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"disputeDepositors","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"disputeBeneficiaries","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"disputeAmounts","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"int"}},{"name":"disputeDeadlines","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"disputeSettled","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"bool"}},{"name":"disputeCount","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"cleanupCursor","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"intents","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"intentServiceHashes","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":256}},{"name":"intentBudgets","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"int"}},{"name":"intentDeadlines","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"intentStatuses","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":8}},{"name":"intentAcceptedOffer","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"intentCount","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"intentsByService","type":{"kind":"dict","key":"uint","keyFormat":256,"value":"cell","valueFormat":"ref"}},{"name":"offers","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"address"}},{"name":"offerIntents","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"offerPrices","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"int"}},{"name":"offerDeliveryTimes","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":32}},{"name":"offerStatuses","type":{"kind":"dict","key":"uint","keyFormat":32,"value":"uint","valueFormat":8}},{"name":"offerCount","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"intentCleanupCursor","type":{"kind":"simple","type":"uint","optional":false,"format":32}},{"name":"agentActiveIntents","type":{"kind":"dict","key":"address","value":"int"}},{"name":"maxIntentsPerAgent","type":{"kind":"simple","type":"uint","optional":false,"format":8}}]},
2306
+ ]
2307
+
2308
+ const Reputation_opcodes = {
2309
+ "Deploy": 2490013878,
2310
+ "DeployOk": 2952335191,
2311
+ "FactoryDeploy": 1829761339,
2312
+ "Register": 950051591,
2313
+ "Rate": 2804297358,
2314
+ "UpdateAvailability": 1424124491,
2315
+ "Withdraw": 593874976,
2316
+ "IndexCapability": 344274104,
2317
+ "TriggerCleanup": 2266087279,
2318
+ "NotifyDisputeOpened": 796807257,
2319
+ "NotifyDisputeSettled": 3214956934,
2320
+ "BroadcastIntent": 2523776749,
2321
+ "SendOffer": 1834677927,
2322
+ "AcceptOffer": 931468685,
2323
+ "CancelIntent": 1000023198,
2324
+ "SettleDeal": 484654478,
2325
+ }
2326
+
2327
+ const Reputation_getters: ABIGetter[] = [
2328
+ {"name":"agentData","methodId":92172,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"AgentData","optional":true}},
2329
+ {"name":"agentIndexByNameHash","methodId":88600,"arguments":[{"name":"nameHash","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"int","optional":true,"format":257}},
2330
+ {"name":"agentReputation","methodId":110805,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2331
+ {"name":"agentCount","methodId":81213,"arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2332
+ {"name":"contractBalance","methodId":110221,"arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2333
+ {"name":"agentsByCapability","methodId":90929,"arguments":[{"name":"capHash","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"cell","optional":true}},
2334
+ {"name":"disputeCount","methodId":72077,"arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2335
+ {"name":"disputeData","methodId":119614,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"DisputeInfo","optional":true}},
2336
+ {"name":"agentCleanupInfo","methodId":100802,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"AgentCleanupInfo","optional":false}},
2337
+ {"name":"intentsByServiceHash","methodId":105526,"arguments":[{"name":"serviceHash","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"cell","optional":true}},
2338
+ {"name":"intentCount","methodId":98654,"arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2339
+ {"name":"offerCount","methodId":123217,"arguments":[],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2340
+ {"name":"agentIntentQuota","methodId":120244,"arguments":[{"name":"agent","type":{"kind":"simple","type":"address","optional":false}}],"returnType":{"kind":"simple","type":"int","optional":false,"format":257}},
2341
+ {"name":"intentData","methodId":93056,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"IntentData","optional":false}},
2342
+ {"name":"offerData","methodId":100877,"arguments":[{"name":"index","type":{"kind":"simple","type":"int","optional":false,"format":257}}],"returnType":{"kind":"simple","type":"OfferData","optional":false}},
2343
+ ]
2344
+
2345
+ export const Reputation_getterMapping: { [key: string]: string } = {
2346
+ 'agentData': 'getAgentData',
2347
+ 'agentIndexByNameHash': 'getAgentIndexByNameHash',
2348
+ 'agentReputation': 'getAgentReputation',
2349
+ 'agentCount': 'getAgentCount',
2350
+ 'contractBalance': 'getContractBalance',
2351
+ 'agentsByCapability': 'getAgentsByCapability',
2352
+ 'disputeCount': 'getDisputeCount',
2353
+ 'disputeData': 'getDisputeData',
2354
+ 'agentCleanupInfo': 'getAgentCleanupInfo',
2355
+ 'intentsByServiceHash': 'getIntentsByServiceHash',
2356
+ 'intentCount': 'getIntentCount',
2357
+ 'offerCount': 'getOfferCount',
2358
+ 'agentIntentQuota': 'getAgentIntentQuota',
2359
+ 'intentData': 'getIntentData',
2360
+ 'offerData': 'getOfferData',
2361
+ }
2362
+
2363
+ const Reputation_receivers: ABIReceiver[] = [
2364
+ {"receiver":"internal","message":{"kind":"typed","type":"Register"}},
2365
+ {"receiver":"internal","message":{"kind":"typed","type":"Rate"}},
2366
+ {"receiver":"internal","message":{"kind":"typed","type":"UpdateAvailability"}},
2367
+ {"receiver":"internal","message":{"kind":"typed","type":"IndexCapability"}},
2368
+ {"receiver":"internal","message":{"kind":"typed","type":"TriggerCleanup"}},
2369
+ {"receiver":"internal","message":{"kind":"typed","type":"NotifyDisputeOpened"}},
2370
+ {"receiver":"internal","message":{"kind":"typed","type":"NotifyDisputeSettled"}},
2371
+ {"receiver":"internal","message":{"kind":"typed","type":"Withdraw"}},
2372
+ {"receiver":"internal","message":{"kind":"typed","type":"BroadcastIntent"}},
2373
+ {"receiver":"internal","message":{"kind":"typed","type":"SendOffer"}},
2374
+ {"receiver":"internal","message":{"kind":"typed","type":"AcceptOffer"}},
2375
+ {"receiver":"internal","message":{"kind":"typed","type":"SettleDeal"}},
2376
+ {"receiver":"internal","message":{"kind":"typed","type":"CancelIntent"}},
2377
+ {"receiver":"internal","message":{"kind":"typed","type":"Deploy"}},
2378
+ ]
2379
+
2380
+
2381
+ export class Reputation implements Contract {
2382
+
2383
+ public static readonly storageReserve = 0n;
2384
+ public static readonly errors = Reputation_errors_backward;
2385
+ public static readonly opcodes = Reputation_opcodes;
2386
+
2387
+ static async init(owner: Address) {
2388
+ return await Reputation_init(owner);
2389
+ }
2390
+
2391
+ static async fromInit(owner: Address) {
2392
+ const __gen_init = await Reputation_init(owner);
2393
+ const address = contractAddress(0, __gen_init);
2394
+ return new Reputation(address, __gen_init);
2395
+ }
2396
+
2397
+ static fromAddress(address: Address) {
2398
+ return new Reputation(address);
2399
+ }
2400
+
2401
+ readonly address: Address;
2402
+ readonly init?: { code: Cell, data: Cell };
2403
+ readonly abi: ContractABI = {
2404
+ types: Reputation_types,
2405
+ getters: Reputation_getters,
2406
+ receivers: Reputation_receivers,
2407
+ errors: Reputation_errors,
2408
+ };
2409
+
2410
+ constructor(address: Address, init?: { code: Cell, data: Cell }) {
2411
+ this.address = address;
2412
+ this.init = init;
2413
+ }
2414
+
2415
+ async send(provider: ContractProvider, via: Sender, args: { value: bigint, bounce?: boolean| null | undefined }, message: Register | Rate | UpdateAvailability | IndexCapability | TriggerCleanup | NotifyDisputeOpened | NotifyDisputeSettled | Withdraw | BroadcastIntent | SendOffer | AcceptOffer | SettleDeal | CancelIntent | Deploy) {
2416
+
2417
+ let body: Cell | null = null;
2418
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'Register') {
2419
+ body = beginCell().store(storeRegister(message)).endCell();
2420
+ }
2421
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'Rate') {
2422
+ body = beginCell().store(storeRate(message)).endCell();
2423
+ }
2424
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'UpdateAvailability') {
2425
+ body = beginCell().store(storeUpdateAvailability(message)).endCell();
2426
+ }
2427
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'IndexCapability') {
2428
+ body = beginCell().store(storeIndexCapability(message)).endCell();
2429
+ }
2430
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'TriggerCleanup') {
2431
+ body = beginCell().store(storeTriggerCleanup(message)).endCell();
2432
+ }
2433
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'NotifyDisputeOpened') {
2434
+ body = beginCell().store(storeNotifyDisputeOpened(message)).endCell();
2435
+ }
2436
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'NotifyDisputeSettled') {
2437
+ body = beginCell().store(storeNotifyDisputeSettled(message)).endCell();
2438
+ }
2439
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'Withdraw') {
2440
+ body = beginCell().store(storeWithdraw(message)).endCell();
2441
+ }
2442
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'BroadcastIntent') {
2443
+ body = beginCell().store(storeBroadcastIntent(message)).endCell();
2444
+ }
2445
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'SendOffer') {
2446
+ body = beginCell().store(storeSendOffer(message)).endCell();
2447
+ }
2448
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'AcceptOffer') {
2449
+ body = beginCell().store(storeAcceptOffer(message)).endCell();
2450
+ }
2451
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'SettleDeal') {
2452
+ body = beginCell().store(storeSettleDeal(message)).endCell();
2453
+ }
2454
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'CancelIntent') {
2455
+ body = beginCell().store(storeCancelIntent(message)).endCell();
2456
+ }
2457
+ if (message && typeof message === 'object' && !(message instanceof Slice) && message.$$type === 'Deploy') {
2458
+ body = beginCell().store(storeDeploy(message)).endCell();
2459
+ }
2460
+ if (body === null) { throw new Error('Invalid message type'); }
2461
+
2462
+ await provider.internal(via, { ...args, body: body });
2463
+
2464
+ }
2465
+
2466
+ async getAgentData(provider: ContractProvider, index: bigint) {
2467
+ const builder = new TupleBuilder();
2468
+ builder.writeNumber(index);
2469
+ const source = (await provider.get('agentData', builder.build())).stack;
2470
+ const result_p = source.readTupleOpt();
2471
+ const result = result_p ? loadTupleAgentData(result_p) : null;
2472
+ return result;
2473
+ }
2474
+
2475
+ async getAgentIndexByNameHash(provider: ContractProvider, nameHash: bigint) {
2476
+ const builder = new TupleBuilder();
2477
+ builder.writeNumber(nameHash);
2478
+ const source = (await provider.get('agentIndexByNameHash', builder.build())).stack;
2479
+ const result = source.readBigNumberOpt();
2480
+ return result;
2481
+ }
2482
+
2483
+ async getAgentReputation(provider: ContractProvider, index: bigint) {
2484
+ const builder = new TupleBuilder();
2485
+ builder.writeNumber(index);
2486
+ const source = (await provider.get('agentReputation', builder.build())).stack;
2487
+ const result = source.readBigNumber();
2488
+ return result;
2489
+ }
2490
+
2491
+ async getAgentCount(provider: ContractProvider) {
2492
+ const builder = new TupleBuilder();
2493
+ const source = (await provider.get('agentCount', builder.build())).stack;
2494
+ const result = source.readBigNumber();
2495
+ return result;
2496
+ }
2497
+
2498
+ async getContractBalance(provider: ContractProvider) {
2499
+ const builder = new TupleBuilder();
2500
+ const source = (await provider.get('contractBalance', builder.build())).stack;
2501
+ const result = source.readBigNumber();
2502
+ return result;
2503
+ }
2504
+
2505
+ async getAgentsByCapability(provider: ContractProvider, capHash: bigint) {
2506
+ const builder = new TupleBuilder();
2507
+ builder.writeNumber(capHash);
2508
+ const source = (await provider.get('agentsByCapability', builder.build())).stack;
2509
+ const result = source.readCellOpt();
2510
+ return result;
2511
+ }
2512
+
2513
+ async getDisputeCount(provider: ContractProvider) {
2514
+ const builder = new TupleBuilder();
2515
+ const source = (await provider.get('disputeCount', builder.build())).stack;
2516
+ const result = source.readBigNumber();
2517
+ return result;
2518
+ }
2519
+
2520
+ async getDisputeData(provider: ContractProvider, index: bigint) {
2521
+ const builder = new TupleBuilder();
2522
+ builder.writeNumber(index);
2523
+ const source = (await provider.get('disputeData', builder.build())).stack;
2524
+ const result_p = source.readTupleOpt();
2525
+ const result = result_p ? loadTupleDisputeInfo(result_p) : null;
2526
+ return result;
2527
+ }
2528
+
2529
+ async getAgentCleanupInfo(provider: ContractProvider, index: bigint) {
2530
+ const builder = new TupleBuilder();
2531
+ builder.writeNumber(index);
2532
+ const source = (await provider.get('agentCleanupInfo', builder.build())).stack;
2533
+ const result = loadGetterTupleAgentCleanupInfo(source);
2534
+ return result;
2535
+ }
2536
+
2537
+ async getIntentsByServiceHash(provider: ContractProvider, serviceHash: bigint) {
2538
+ const builder = new TupleBuilder();
2539
+ builder.writeNumber(serviceHash);
2540
+ const source = (await provider.get('intentsByServiceHash', builder.build())).stack;
2541
+ const result = source.readCellOpt();
2542
+ return result;
2543
+ }
2544
+
2545
+ async getIntentCount(provider: ContractProvider) {
2546
+ const builder = new TupleBuilder();
2547
+ const source = (await provider.get('intentCount', builder.build())).stack;
2548
+ const result = source.readBigNumber();
2549
+ return result;
2550
+ }
2551
+
2552
+ async getOfferCount(provider: ContractProvider) {
2553
+ const builder = new TupleBuilder();
2554
+ const source = (await provider.get('offerCount', builder.build())).stack;
2555
+ const result = source.readBigNumber();
2556
+ return result;
2557
+ }
2558
+
2559
+ async getAgentIntentQuota(provider: ContractProvider, agent: Address) {
2560
+ const builder = new TupleBuilder();
2561
+ builder.writeAddress(agent);
2562
+ const source = (await provider.get('agentIntentQuota', builder.build())).stack;
2563
+ const result = source.readBigNumber();
2564
+ return result;
2565
+ }
2566
+
2567
+ async getIntentData(provider: ContractProvider, index: bigint) {
2568
+ const builder = new TupleBuilder();
2569
+ builder.writeNumber(index);
2570
+ const source = (await provider.get('intentData', builder.build())).stack;
2571
+ const result = loadGetterTupleIntentData(source);
2572
+ return result;
2573
+ }
2574
+
2575
+ async getOfferData(provider: ContractProvider, index: bigint) {
2576
+ const builder = new TupleBuilder();
2577
+ builder.writeNumber(index);
2578
+ const source = (await provider.get('offerData', builder.build())).stack;
2579
+ const result = loadGetterTupleOfferData(source);
2580
+ return result;
2581
+ }
2582
+
2583
+ }