-
Notifications
You must be signed in to change notification settings - Fork 0
/
lock.main.mjs
2138 lines (2071 loc) · 81.3 KB
/
lock.main.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Automatically generated with Reach 0.1.13 (88e48902)
/* eslint-disable */
export const _version = '0.1.13';
export const _versionHash = '0.1.13 (88e48902)';
export const _backendVersion = 27;
export function getExports(s) {
const stdlib = s.reachStdlib;
return {
};
};
export function _getEvents(s) {
const stdlib = s.reachStdlib;
return {
};
};
export function _getViews(s, viewlib) {
const stdlib = s.reachStdlib;
const ctc0 = stdlib.T_Address;
const ctc1 = stdlib.T_Token;
const ctc2 = stdlib.T_UInt;
const ctc3 = stdlib.T_Bool;
const ctc4 = stdlib.T_Tuple([ctc2, ctc2, ctc3]);
const ctc5 = stdlib.T_Array(ctc4, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc6 = stdlib.T_Array(ctc1, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const _bridgedTokens = async (i, svs, args) => {
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'))) {
const [v428, v429, v430, v431, v436, v437] = svs;
stdlib.assert(false, 'illegal view')
}
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'))) {
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = svs;
return (await ((async () => {
return v444;}))(...args));
}
stdlib.assert(false, 'illegal view')
};
const _sourceToken = async (i, svs, args) => {
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'))) {
const [v428, v429, v430, v431, v436, v437] = svs;
return (await ((async () => {
return v429;}))(...args));
}
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'))) {
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = svs;
return (await ((async () => {
return v429;}))(...args));
}
stdlib.assert(false, 'illegal view')
};
const _targetChainId = async (i, svs, args) => {
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'))) {
const [v428, v429, v430, v431, v436, v437] = svs;
return (await ((async () => {
return v430;}))(...args));
}
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'))) {
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = svs;
return (await ((async () => {
return v430;}))(...args));
}
stdlib.assert(false, 'illegal view')
};
const _targetTokenId = async (i, svs, args) => {
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'))) {
const [v428, v429, v430, v431, v436, v437] = svs;
return (await ((async () => {
return v431;}))(...args));
}
if (stdlib.eq(i, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'))) {
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = svs;
return (await ((async () => {
return v431;}))(...args));
}
stdlib.assert(false, 'illegal view')
};
return {
infos: {
bridgedTokens: {
decode: _bridgedTokens,
dom: [],
rng: ctc2
},
sourceToken: {
decode: _sourceToken,
dom: [],
rng: ctc1
},
targetChainId: {
decode: _targetChainId,
dom: [],
rng: ctc2
},
targetTokenId: {
decode: _targetTokenId,
dom: [],
rng: ctc2
}
},
views: {
1: [ctc0, ctc1, ctc2, ctc2, ctc5, ctc6],
4: [ctc0, ctc1, ctc2, ctc2, ctc6, ctc3, ctc2, ctc5, ctc2]
}
};
};
export function _getMaps(s) {
const stdlib = s.reachStdlib;
const ctc0 = stdlib.T_Tuple([]);
return {
mapDataTy: ctc0
};
};
export async function Deployer(ctcTop, interact) {
if (typeof(ctcTop) !== 'object' || ctcTop._initialize === undefined) {
return Promise.reject(new Error(`The backend for Deployer expects to receive a contract as its first argument.`));}
if (typeof(interact) !== 'object') {
return Promise.reject(new Error(`The backend for Deployer expects to receive an interact object as its second argument.`));}
const ctc = ctcTop._initialize();
const stdlib = ctc.stdlib;
const ctc0 = stdlib.T_UInt;
const ctc1 = stdlib.T_Token;
const ctc2 = stdlib.T_Object({
sourceChainId: ctc0,
sourceToken: ctc1,
targetChainId: ctc0,
targetTokenId: ctc0
});
const ctc3 = stdlib.T_Null;
const ctc4 = stdlib.T_Address;
const ctc5 = stdlib.T_Tuple([ctc0, ctc4]);
const ctc6 = stdlib.T_Bytes(stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '52'));
const ctc7 = stdlib.T_Tuple([ctc0, ctc4, ctc6, ctc0]);
const ctc8 = stdlib.T_Data({
UserAPI_bridgeToken0_60: ctc5,
UserAPI_unbridgeToken0_60: ctc7
});
const ctc9 = stdlib.T_Bool;
const ctc10 = stdlib.T_Tuple([ctc0, ctc0, ctc9]);
const ctc11 = stdlib.T_Array(ctc10, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc12 = stdlib.T_Array(ctc1, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const v413 = [stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0'), stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0'), false];
const v414 = [v413];
const v415 = [stdlib.Token_zero];
const v418 = stdlib.protect(ctc2, interact.parameters, 'for Deployer\'s interact field parameters');
const v420 = v418.sourceToken;
const v421 = v418.targetChainId;
const v422 = v418.targetTokenId;
const txn1 = await (ctc.sendrecv({
args: [v420, v421, v422],
evt_cnt: 3,
funcNum: 0,
lct: stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'),
onlyIf: true,
out_tys: [ctc1, ctc0, ctc0],
pay: [stdlib.checkedBigNumberify('./lock.rsh:33:12:decimal', stdlib.UInt_max, '0'), []],
sim_p: (async (txn1) => {
const sim_r = { txns: [], mapRefs: [], maps: [] };
let sim_txn_ctr = stdlib.UInt_max;
const getSimTokCtr = () => { sim_txn_ctr = sim_txn_ctr.sub(1); return sim_txn_ctr; };
const {data: [v429, v430, v431], secs: v433, time: v432, didSend: v36, from: v428 } = txn1;
const v434 = v414[stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0')];
const v435 = stdlib.Array_set(v434, '0', stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'));
const v436 = stdlib.Array_set(v414, stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'), v435);
const v437 = stdlib.Array_set(v415, stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'), v429);
sim_r.txns.push({
amt: stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0'),
kind: 'init',
tok: v429
});
;
sim_r.isHalt = false;
return sim_r;
}),
soloSend: true,
timeoutAt: undefined /* mto */,
tys: [ctc1, ctc0, ctc0],
waitIfNotPresent: false
}));
const {data: [v429, v430, v431], secs: v433, time: v432, didSend: v36, from: v428 } = txn1;
const v434 = v414[stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0')];
const v435 = stdlib.Array_set(v434, '0', stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'));
const v436 = stdlib.Array_set(v414, stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'), v435);
const v437 = stdlib.Array_set(v415, stdlib.checkedBigNumberify('./lock.rsh:33:12:dot', stdlib.UInt_max, '0'), v429);
;
;
stdlib.protect(ctc3, await interact.ready(), {
at: './lock.rsh:41:26:application',
fs: ['at ./lock.rsh:41:26:application call to [unknown function] (defined at: ./lock.rsh:41:26:function exp)', 'at ./lock.rsh:41:26:application call to "liftedInteract" (defined at: ./lock.rsh:41:26:application)'],
msg: 'ready',
who: 'Deployer'
});
const txn2 = await (ctc.sendrecv({
args: [v428, v429, v430, v431, v436, v437],
evt_cnt: 0,
funcNum: 1,
lct: v432,
onlyIf: true,
out_tys: [],
pay: [stdlib.checkedBigNumberify('./lock.rsh:42:12:decimal', stdlib.UInt_max, '0'), []],
sim_p: (async (txn2) => {
const sim_r = { txns: [], mapRefs: [], maps: [] };
let sim_txn_ctr = stdlib.UInt_max;
const getSimTokCtr = () => { sim_txn_ctr = sim_txn_ctr.sub(1); return sim_txn_ctr; };
const {data: [], secs: v441, time: v440, didSend: v45, from: v439 } = txn2;
;
const v443 = false;
const v444 = stdlib.checkedBigNumberify('./lock.rsh:44:55:decimal', stdlib.UInt_max, '0');
const v445 = v440;
const v451 = v436;
const v452 = stdlib.checkedBigNumberify('./lock.rsh:28:9:after expr stmt semicolon', stdlib.UInt_max, '0');
if (await (async () => {
const v458 = v443 ? false : true;
return v458;})()) {
sim_r.isHalt = false;
}
else {
const v743 = v451[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v744 = v743[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
sim_r.txns.push({
kind: 'from',
to: v428,
tok: undefined /* Nothing */
});
sim_r.txns.push({
kind: 'from',
to: v428,
tok: v429
});
sim_r.txns.push({
kind: 'halt',
tok: v429
})
sim_r.txns.push({
kind: 'halt',
tok: undefined /* Nothing */
})
sim_r.isHalt = true;
}
return sim_r;
}),
soloSend: true,
timeoutAt: undefined /* mto */,
tys: [ctc4, ctc1, ctc0, ctc0, ctc11, ctc12],
waitIfNotPresent: false
}));
const {data: [], secs: v441, time: v440, didSend: v45, from: v439 } = txn2;
;
const v442 = stdlib.addressEq(v428, v439);
stdlib.assert(v442, {
at: './lock.rsh:42:12:dot',
fs: [],
msg: 'sender correct',
who: 'Deployer'
});
let v443 = false;
let v444 = stdlib.checkedBigNumberify('./lock.rsh:44:55:decimal', stdlib.UInt_max, '0');
let v445 = v440;
let v451 = v436;
let v452 = stdlib.checkedBigNumberify('./lock.rsh:28:9:after expr stmt semicolon', stdlib.UInt_max, '0');
let txn3 = txn2;
while (await (async () => {
const v458 = v443 ? false : true;
return v458;})()) {
const txn4 = await (ctc.recv({
didSend: false,
evt_cnt: 1,
funcNum: 3,
out_tys: [ctc8],
timeoutAt: undefined /* mto */,
waitIfNotPresent: false
}));
const {data: [v519], secs: v521, time: v520, didSend: v251, from: v518 } = txn4;
switch (v519[0]) {
case 'UserAPI_bridgeToken0_60': {
const v522 = v519[1];
undefined /* setApiDetails */;
const v527 = v522[stdlib.checkedBigNumberify('./lock.rsh:51:9:spread', stdlib.UInt_max, '0')];
;
const v763 = v437[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v769 = stdlib.tokenEq(v763, v429);
const v772 = [false, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1')];
const v773 = [true, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0')];
const v774 = v769 ? v773 : v772;
const v565 = v774[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '1')];
const v567 = v451[v565];
const v568 = v567[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v569 = stdlib.add(v568, v527);
const v586 = stdlib.Array_set(v567, '0', v569);
const v587 = stdlib.Array_set(v451, v565, v586);
;
const v591 = stdlib.gt(v527, stdlib.checkedBigNumberify('./lock.rsh:58:23:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v591, {
at: './lock.rsh:58:16:application',
fs: ['at ./lock.rsh:57:19:application call to [unknown function] (defined at: ./lock.rsh:57:19:function exp)'],
msg: null,
who: 'Deployer'
});
const v592 = null;
await txn4.getOutput('UserAPI_bridgeToken', 'v592', ctc3, v592);
const v600 = stdlib.safeAdd(v444, v527);
const cv443 = v443;
const cv444 = v600;
const cv445 = v520;
const cv451 = v587;
const cv452 = v452;
v443 = cv443;
v444 = cv444;
v445 = cv445;
v451 = cv451;
v452 = cv452;
txn3 = txn4;
continue;
break;
}
case 'UserAPI_unbridgeToken0_60': {
const v632 = v519[1];
undefined /* setApiDetails */;
;
;
const v713 = v632[stdlib.checkedBigNumberify('./lock.rsh:64:9:spread', stdlib.UInt_max, '0')];
const v717 = stdlib.gt(v713, stdlib.checkedBigNumberify('./lock.rsh:74:25:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v717, {
at: './lock.rsh:74:18:application',
fs: ['at ./lock.rsh:73:25:application call to [unknown function] (defined at: ./lock.rsh:73:25:function exp)'],
msg: null,
who: 'Deployer'
});
const v718 = v451[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v719 = v718[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v720 = stdlib.ge(v719, v713);
stdlib.assert(v720, {
at: './lock.rsh:75:18:application',
fs: ['at ./lock.rsh:73:25:application call to [unknown function] (defined at: ./lock.rsh:73:25:function exp)'],
msg: null,
who: 'Deployer'
});
const v726 = stdlib.sub(v719, v713);
const v728 = stdlib.Array_set(v718, '0', v726);
const v729 = stdlib.Array_set(v451, stdlib.checkedBigNumberify('./lock.rsh:76:47:application', stdlib.UInt_max, '0'), v728);
;
const v730 = null;
await txn4.getOutput('UserAPI_unbridgeToken', 'v730', ctc3, v730);
const v740 = stdlib.safeSub(v444, v713);
const cv443 = v443;
const cv444 = v740;
const cv445 = v520;
const cv451 = v729;
const cv452 = v452;
v443 = cv443;
v444 = cv444;
v445 = cv445;
v451 = cv451;
v452 = cv452;
txn3 = txn4;
continue;
break;
}
}
}
const v743 = v451[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v744 = v743[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
;
;
return;
};
export async function _UserAPI_bridgeToken4(ctcTop, interact) {
if (typeof(ctcTop) !== 'object' || ctcTop._initialize === undefined) {
return Promise.reject(new Error(`The backend for _UserAPI_bridgeToken4 expects to receive a contract as its first argument.`));}
if (typeof(interact) !== 'object') {
return Promise.reject(new Error(`The backend for _UserAPI_bridgeToken4 expects to receive an interact object as its second argument.`));}
const ctc = ctcTop._initialize();
const stdlib = ctc.stdlib;
const ctc0 = stdlib.T_Address;
const ctc1 = stdlib.T_Token;
const ctc2 = stdlib.T_UInt;
const ctc3 = stdlib.T_Array(ctc1, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc4 = stdlib.T_Bool;
const ctc5 = stdlib.T_Tuple([ctc2, ctc2, ctc4]);
const ctc6 = stdlib.T_Array(ctc5, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc7 = stdlib.T_Tuple([ctc2, ctc0]);
const ctc8 = stdlib.T_Bytes(stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '52'));
const ctc9 = stdlib.T_Tuple([ctc2, ctc0, ctc8, ctc2]);
const ctc10 = stdlib.T_Data({
UserAPI_bridgeToken0_60: ctc7,
UserAPI_unbridgeToken0_60: ctc9
});
const ctc11 = stdlib.T_Null;
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = await ctc.getState(stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'), [ctc0, ctc1, ctc2, ctc2, ctc3, ctc4, ctc2, ctc6, ctc2]);
const v461 = stdlib.protect(ctc7, await interact.in(), {
at: './lock.rsh:1:23:application',
fs: ['at ./lock.rsh:53:16:application call to [unknown function] (defined at: ./lock.rsh:53:16:function exp)', 'at ./lock.rsh:44:46:application call to "runUserAPI_bridgeToken0_60" (defined at: ./lock.rsh:51:9:function exp)', 'at ./lock.rsh:44:46:application call to [unknown function] (defined at: ./lock.rsh:44:46:function exp)'],
msg: 'in',
who: 'UserAPI_bridgeToken'
});
const v462 = v461[stdlib.checkedBigNumberify('./lock.rsh:1:23:application', stdlib.UInt_max, '0')];
const v467 = stdlib.gt(v462, stdlib.checkedBigNumberify('./lock.rsh:54:22:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v467, {
at: './lock.rsh:54:15:application',
fs: ['at ./lock.rsh:53:16:application call to [unknown function] (defined at: ./lock.rsh:53:16:function exp)', 'at ./lock.rsh:53:16:application call to [unknown function] (defined at: ./lock.rsh:53:16:function exp)', 'at ./lock.rsh:44:46:application call to "runUserAPI_bridgeToken0_60" (defined at: ./lock.rsh:51:9:function exp)', 'at ./lock.rsh:44:46:application call to [unknown function] (defined at: ./lock.rsh:44:46:function exp)'],
msg: 'Amount of token bridged must be greater than zero',
who: 'UserAPI_bridgeToken'
});
const v472 = ['UserAPI_bridgeToken0_60', v461];
const txn1 = await (ctc.sendrecv({
args: [v428, v429, v430, v431, v437, v443, v444, v451, v452, v472],
evt_cnt: 1,
funcNum: 3,
lct: stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0'),
onlyIf: true,
out_tys: [ctc10],
pay: [stdlib.checkedBigNumberify('./lock.rsh:56:20:decimal', stdlib.UInt_max, '0'), [[v462, v429]]],
sim_p: (async (txn1) => {
const sim_r = { txns: [], mapRefs: [], maps: [] };
let sim_txn_ctr = stdlib.UInt_max;
const getSimTokCtr = () => { sim_txn_ctr = sim_txn_ctr.sub(1); return sim_txn_ctr; };
const {data: [v519], secs: v521, time: v520, didSend: v251, from: v518 } = txn1;
switch (v519[0]) {
case 'UserAPI_bridgeToken0_60': {
const v522 = v519[1];
sim_r.txns.push({
kind: 'api',
who: "UserAPI_bridgeToken"
});
const v527 = v522[stdlib.checkedBigNumberify('./lock.rsh:51:9:spread', stdlib.UInt_max, '0')];
;
const v763 = v437[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v769 = stdlib.tokenEq(v763, v429);
const v772 = [false, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1')];
const v773 = [true, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0')];
const v774 = v769 ? v773 : v772;
const v565 = v774[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '1')];
const v567 = v451[v565];
const v568 = v567[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v569 = stdlib.add(v568, v527);
const v586 = stdlib.Array_set(v567, '0', v569);
const v587 = stdlib.Array_set(v451, v565, v586);
sim_r.txns.push({
amt: v527,
kind: 'to',
tok: v429
});
const v592 = null;
const v593 = await txn1.getOutput('UserAPI_bridgeToken', 'v592', ctc11, v592);
const v600 = stdlib.safeAdd(v444, v527);
const v1087 = v443;
const v1088 = v600;
const v1090 = v587;
const v1091 = v452;
if (v443) {
const v1093 = v587[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v1094 = v1093[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
sim_r.txns.push({
kind: 'from',
to: v428,
tok: undefined /* Nothing */
});
sim_r.txns.push({
kind: 'from',
to: v428,
tok: v429
});
sim_r.txns.push({
kind: 'halt',
tok: v429
})
sim_r.txns.push({
kind: 'halt',
tok: undefined /* Nothing */
})
sim_r.isHalt = true;
}
else {
sim_r.isHalt = false;
}
break;
}
case 'UserAPI_unbridgeToken0_60': {
const v632 = v519[1];
break;
}
}
return sim_r;
}),
soloSend: false,
timeoutAt: undefined /* mto */,
tys: [ctc0, ctc1, ctc2, ctc2, ctc3, ctc4, ctc2, ctc6, ctc2, ctc10],
waitIfNotPresent: false
}));
const {data: [v519], secs: v521, time: v520, didSend: v251, from: v518 } = txn1;
switch (v519[0]) {
case 'UserAPI_bridgeToken0_60': {
const v522 = v519[1];
undefined /* setApiDetails */;
const v527 = v522[stdlib.checkedBigNumberify('./lock.rsh:51:9:spread', stdlib.UInt_max, '0')];
;
const v763 = v437[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v769 = stdlib.tokenEq(v763, v429);
const v772 = [false, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1')];
const v773 = [true, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0')];
const v774 = v769 ? v773 : v772;
const v565 = v774[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '1')];
const v567 = v451[v565];
const v568 = v567[stdlib.checkedBigNumberify('./lock.rsh:44:46:dot', stdlib.UInt_max, '0')];
const v569 = stdlib.add(v568, v527);
const v586 = stdlib.Array_set(v567, '0', v569);
const v587 = stdlib.Array_set(v451, v565, v586);
;
const v591 = stdlib.gt(v527, stdlib.checkedBigNumberify('./lock.rsh:58:23:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v591, {
at: './lock.rsh:58:16:application',
fs: ['at ./lock.rsh:57:19:application call to [unknown function] (defined at: ./lock.rsh:57:19:function exp)'],
msg: null,
who: 'UserAPI_bridgeToken'
});
const v592 = null;
const v593 = await txn1.getOutput('UserAPI_bridgeToken', 'v592', ctc11, v592);
if (v251) {
stdlib.protect(ctc11, await interact.out(v522, v593), {
at: './lock.rsh:52:7:application',
fs: ['at ./lock.rsh:52:7:application call to [unknown function] (defined at: ./lock.rsh:52:7:function exp)', 'at ./lock.rsh:60:10:application call to "k" (defined at: ./lock.rsh:57:19:function exp)', 'at ./lock.rsh:57:19:application call to [unknown function] (defined at: ./lock.rsh:57:19:function exp)'],
msg: 'out',
who: 'UserAPI_bridgeToken'
});
}
else {
}
const v600 = stdlib.safeAdd(v444, v527);
const v1087 = v443;
const v1088 = v600;
const v1090 = v587;
const v1091 = v452;
if (v443) {
const v1093 = v587[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v1094 = v1093[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
;
;
return;
}
else {
return;
}
break;
}
case 'UserAPI_unbridgeToken0_60': {
const v632 = v519[1];
return;
break;
}
}
};
export async function _UserAPI_unbridgeToken4(ctcTop, interact) {
if (typeof(ctcTop) !== 'object' || ctcTop._initialize === undefined) {
return Promise.reject(new Error(`The backend for _UserAPI_unbridgeToken4 expects to receive a contract as its first argument.`));}
if (typeof(interact) !== 'object') {
return Promise.reject(new Error(`The backend for _UserAPI_unbridgeToken4 expects to receive an interact object as its second argument.`));}
const ctc = ctcTop._initialize();
const stdlib = ctc.stdlib;
const ctc0 = stdlib.T_Address;
const ctc1 = stdlib.T_Token;
const ctc2 = stdlib.T_UInt;
const ctc3 = stdlib.T_Array(ctc1, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc4 = stdlib.T_Bool;
const ctc5 = stdlib.T_Tuple([ctc2, ctc2, ctc4]);
const ctc6 = stdlib.T_Array(ctc5, stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '1'));
const ctc7 = stdlib.T_Bytes(stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '52'));
const ctc8 = stdlib.T_Tuple([ctc2, ctc0, ctc7, ctc2]);
const ctc9 = stdlib.T_Tuple([ctc2, ctc0]);
const ctc10 = stdlib.T_Data({
UserAPI_bridgeToken0_60: ctc9,
UserAPI_unbridgeToken0_60: ctc8
});
const ctc11 = stdlib.T_Null;
const [v428, v429, v430, v431, v437, v443, v444, v451, v452] = await ctc.getState(stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4'), [ctc0, ctc1, ctc2, ctc2, ctc3, ctc4, ctc2, ctc6, ctc2]);
const v476 = stdlib.protect(ctc8, await interact.in(), {
at: './lock.rsh:1:23:application',
fs: ['at ./lock.rsh:66:22:application call to [unknown function] (defined at: ./lock.rsh:66:22:function exp)', 'at ./lock.rsh:44:46:application call to "runUserAPI_unbridgeToken0_60" (defined at: ./lock.rsh:64:9:function exp)', 'at ./lock.rsh:44:46:application call to [unknown function] (defined at: ./lock.rsh:44:46:function exp)'],
msg: 'in',
who: 'UserAPI_unbridgeToken'
});
const v477 = v476[stdlib.checkedBigNumberify('./lock.rsh:1:23:application', stdlib.UInt_max, '0')];
const v486 = stdlib.gt(v477, stdlib.checkedBigNumberify('./lock.rsh:67:24:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v486, {
at: './lock.rsh:67:17:application',
fs: ['at ./lock.rsh:66:22:application call to [unknown function] (defined at: ./lock.rsh:66:22:function exp)', 'at ./lock.rsh:66:22:application call to [unknown function] (defined at: ./lock.rsh:66:22:function exp)', 'at ./lock.rsh:44:46:application call to "runUserAPI_unbridgeToken0_60" (defined at: ./lock.rsh:64:9:function exp)', 'at ./lock.rsh:44:46:application call to [unknown function] (defined at: ./lock.rsh:44:46:function exp)'],
msg: 'Amount of token to unbridge must be greater than zero',
who: 'UserAPI_unbridgeToken'
});
const v487 = v451[stdlib.checkedBigNumberify('./lock.rsh:68:25:application', stdlib.UInt_max, '0')];
const v488 = v487[stdlib.checkedBigNumberify('./lock.rsh:68:25:application', stdlib.UInt_max, '0')];
const v489 = stdlib.ge(v488, v477);
stdlib.assert(v489, {
at: './lock.rsh:68:17:application',
fs: ['at ./lock.rsh:66:22:application call to [unknown function] (defined at: ./lock.rsh:66:22:function exp)', 'at ./lock.rsh:66:22:application call to [unknown function] (defined at: ./lock.rsh:66:22:function exp)', 'at ./lock.rsh:44:46:application call to "runUserAPI_unbridgeToken0_60" (defined at: ./lock.rsh:64:9:function exp)', 'at ./lock.rsh:44:46:application call to [unknown function] (defined at: ./lock.rsh:44:46:function exp)'],
msg: 'Not enough token balance to unbridge',
who: 'UserAPI_unbridgeToken'
});
const v496 = ['UserAPI_unbridgeToken0_60', v476];
const txn1 = await (ctc.sendrecv({
args: [v428, v429, v430, v431, v437, v443, v444, v451, v452, v496],
evt_cnt: 1,
funcNum: 3,
lct: stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '0'),
onlyIf: true,
out_tys: [ctc10],
pay: [stdlib.checkedBigNumberify('./lock.rsh:72:24:decimal', stdlib.UInt_max, '0'), [[stdlib.checkedBigNumberify('./lock.rsh:72:29:decimal', stdlib.UInt_max, '0'), v429]]],
sim_p: (async (txn1) => {
const sim_r = { txns: [], mapRefs: [], maps: [] };
let sim_txn_ctr = stdlib.UInt_max;
const getSimTokCtr = () => { sim_txn_ctr = sim_txn_ctr.sub(1); return sim_txn_ctr; };
const {data: [v519], secs: v521, time: v520, didSend: v251, from: v518 } = txn1;
switch (v519[0]) {
case 'UserAPI_bridgeToken0_60': {
const v522 = v519[1];
break;
}
case 'UserAPI_unbridgeToken0_60': {
const v632 = v519[1];
sim_r.txns.push({
kind: 'api',
who: "UserAPI_unbridgeToken"
});
;
;
const v713 = v632[stdlib.checkedBigNumberify('./lock.rsh:64:9:spread', stdlib.UInt_max, '0')];
const v718 = v451[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v719 = v718[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v726 = stdlib.sub(v719, v713);
const v728 = stdlib.Array_set(v718, '0', v726);
const v729 = stdlib.Array_set(v451, stdlib.checkedBigNumberify('./lock.rsh:76:47:application', stdlib.UInt_max, '0'), v728);
sim_r.txns.push({
kind: 'from',
to: v518,
tok: v429
});
const v730 = null;
const v731 = await txn1.getOutput('UserAPI_unbridgeToken', 'v730', ctc11, v730);
const v740 = stdlib.safeSub(v444, v713);
const v1111 = v443;
const v1112 = v740;
const v1114 = v729;
const v1115 = v452;
if (v443) {
const v1117 = v729[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v1118 = v1117[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
sim_r.txns.push({
kind: 'from',
to: v428,
tok: undefined /* Nothing */
});
sim_r.txns.push({
kind: 'from',
to: v428,
tok: v429
});
sim_r.txns.push({
kind: 'halt',
tok: v429
})
sim_r.txns.push({
kind: 'halt',
tok: undefined /* Nothing */
})
sim_r.isHalt = true;
}
else {
sim_r.isHalt = false;
}
break;
}
}
return sim_r;
}),
soloSend: false,
timeoutAt: undefined /* mto */,
tys: [ctc0, ctc1, ctc2, ctc2, ctc3, ctc4, ctc2, ctc6, ctc2, ctc10],
waitIfNotPresent: false
}));
const {data: [v519], secs: v521, time: v520, didSend: v251, from: v518 } = txn1;
switch (v519[0]) {
case 'UserAPI_bridgeToken0_60': {
const v522 = v519[1];
return;
break;
}
case 'UserAPI_unbridgeToken0_60': {
const v632 = v519[1];
undefined /* setApiDetails */;
;
;
const v713 = v632[stdlib.checkedBigNumberify('./lock.rsh:64:9:spread', stdlib.UInt_max, '0')];
const v717 = stdlib.gt(v713, stdlib.checkedBigNumberify('./lock.rsh:74:25:decimal', stdlib.UInt_max, '0'));
stdlib.assert(v717, {
at: './lock.rsh:74:18:application',
fs: ['at ./lock.rsh:73:25:application call to [unknown function] (defined at: ./lock.rsh:73:25:function exp)'],
msg: null,
who: 'UserAPI_unbridgeToken'
});
const v718 = v451[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v719 = v718[stdlib.checkedBigNumberify('./lock.rsh:75:26:application', stdlib.UInt_max, '0')];
const v720 = stdlib.ge(v719, v713);
stdlib.assert(v720, {
at: './lock.rsh:75:18:application',
fs: ['at ./lock.rsh:73:25:application call to [unknown function] (defined at: ./lock.rsh:73:25:function exp)'],
msg: null,
who: 'UserAPI_unbridgeToken'
});
const v726 = stdlib.sub(v719, v713);
const v728 = stdlib.Array_set(v718, '0', v726);
const v729 = stdlib.Array_set(v451, stdlib.checkedBigNumberify('./lock.rsh:76:47:application', stdlib.UInt_max, '0'), v728);
;
const v730 = null;
const v731 = await txn1.getOutput('UserAPI_unbridgeToken', 'v730', ctc11, v730);
if (v251) {
stdlib.protect(ctc11, await interact.out(v632, v731), {
at: './lock.rsh:65:7:application',
fs: ['at ./lock.rsh:65:7:application call to [unknown function] (defined at: ./lock.rsh:65:7:function exp)', 'at ./lock.rsh:78:12:application call to "k" (defined at: ./lock.rsh:73:25:function exp)', 'at ./lock.rsh:73:25:application call to [unknown function] (defined at: ./lock.rsh:73:25:function exp)'],
msg: 'out',
who: 'UserAPI_unbridgeToken'
});
}
else {
}
const v740 = stdlib.safeSub(v444, v713);
const v1111 = v443;
const v1112 = v740;
const v1114 = v729;
const v1115 = v452;
if (v443) {
const v1117 = v729[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
const v1118 = v1117[stdlib.checkedBigNumberify('./lock.rsh:83:32:application', stdlib.UInt_max, '0')];
;
;
return;
}
else {
return;
}
break;
}
}
};
export async function UserAPI_bridgeToken(ctcTop, interact) {
if (typeof(ctcTop) !== 'object' || ctcTop._initialize === undefined) {
return Promise.reject(new Error(`The backend for UserAPI_bridgeToken expects to receive a contract as its first argument.`));}
if (typeof(interact) !== 'object') {
return Promise.reject(new Error(`The backend for UserAPI_bridgeToken expects to receive an interact object as its second argument.`));}
const ctc = ctcTop._initialize();
const stdlib = ctc.stdlib;
const step = await ctc.getCurrentStep()
if (step == 4) {return _UserAPI_bridgeToken4(ctcTop, interact);}
throw stdlib.apiStateMismatchError({ _stateSourceMap }, [stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4')], stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, step))
};
export async function UserAPI_unbridgeToken(ctcTop, interact) {
if (typeof(ctcTop) !== 'object' || ctcTop._initialize === undefined) {
return Promise.reject(new Error(`The backend for UserAPI_unbridgeToken expects to receive a contract as its first argument.`));}
if (typeof(interact) !== 'object') {
return Promise.reject(new Error(`The backend for UserAPI_unbridgeToken expects to receive an interact object as its second argument.`));}
const ctc = ctcTop._initialize();
const stdlib = ctc.stdlib;
const step = await ctc.getCurrentStep()
if (step == 4) {return _UserAPI_unbridgeToken4(ctcTop, interact);}
throw stdlib.apiStateMismatchError({ _stateSourceMap }, [stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, '4')], stdlib.checkedBigNumberify('<builtin>', stdlib.UInt_max, step))
};
const _ALGO = {
ABI: {
impure: [`UserAPI_bridgeToken(uint64,address)void`, `UserAPI_unbridgeToken(uint64,address,byte[52],uint64)void`, `_reachp_0((uint64,uint64,uint64,uint64))void`, `_reachp_1((uint64))void`, `_reachp_3((uint64,(byte,byte[100])))void`],
pure: [`bridgedTokens()uint64`, `sourceToken()uint64`, `targetChainId()uint64`, `targetTokenId()uint64`],
sigs: [`UserAPI_bridgeToken(uint64,address)void`, `UserAPI_unbridgeToken(uint64,address,byte[52],uint64)void`, `_reachp_0((uint64,uint64,uint64,uint64))void`, `_reachp_1((uint64))void`, `_reachp_3((uint64,(byte,byte[100])))void`, `bridgedTokens()uint64`, `sourceToken()uint64`, `targetChainId()uint64`, `targetTokenId()uint64`]
},
GlobalNumByteSlice: 2,
GlobalNumUint: 0,
LocalNumByteSlice: 0,
LocalNumUint: 0,
appApproval: `CCAJAAEECBGgjQYgKDAmAgABADEYQQNcKGRJIls1ASVbNQIpZIIJBAOvozwEC7cvMQQqxBJNBEcJS+sEkMRYtQTGxWvVBNnPaWYE3JsvDwTf2SMoNhoAjgkC4wOrAykC/gBSAAEDrgOoAvMANhoBFzYaAjULNQwlryk0DBY0C1BQgTyvUFA1CyQ0ARJEiAO9NAsiWzUMNAtXCGU1DYAEtvEqtDQMFlA0DVCwNAyIBAA0DSJVjQIC3QLgQv+uNhoBFzYaAjYaAzYaBBc1CzUMNQ01DiWvgAEBNA4WNA1QNAxQNAsWUFBQNQtC/5w0DVcBKCJbNQuACQAAAAAAAAAAAYAJAQAAAAAAAAAANBMiWzQWEk0jWzUYNA8hBDQYCyEEWDUNNAs0FjEWNAAjCEk1AAlHAzgUMgoSRDgQJBJEOBFPAhJEOBISRDQLIg1EKDUMgAgAAAAAAAACUDQMULA0DDUENBE0CwgyBjQPNBghBAs0DUkiWzQLCBZcAF01DzUQNRE0EkECFjQONBeIAz40D1cAESJbNBY0F4gDECI0FjIKMgmIAzAxGYEFEkSIAxEiMgoyCYgDGTQDQAAKgAQVH3x1NARQsCNDNA1XAWQiW0k1CyINRDQPVwARSTUYIltJNQ00Cw9ENAs0FjEAiAK9KDUMgAgAAAAAAAAC2jQMULA0DDUENBE0CwkyBjQPNBg0DTQLCRZcAFwANQ81EDURQv9gNAEkEkSIAiM0ERY1BDEZIhJEQv+FNAEkDEEBpTQBIxJEiAI+NBYWNQRC/+E0ASQMQQGeNAEjEkSIAic0FRY1BEL/yjQBJAxBAZc0ASMSRIgCEDQUFjUEQv+zMQA1FzQLIls1DDQLJVs1FjQLgRBbNRU0C4EYWzUUgAT27avSNAwWUDQWFlA0FRZQNBQWULA0DIgB+iEEr0k1C0lXABElr1wAXAA1DSWvNBYWXAA1EyEFiAHkIjQWMgqIAc40FzQWFlA0FRZQNBQWUDQNUDQTUCEEr1AjMgY1AjUBKUxXAGJnKDQBFjQCFlBnMRkiEkSIAaxC/qAjNAESRIgBZTQLFzUMgATVFRkUNAwWULA0DIgBfDQXMQASRCIiMgY0DSI1DjUPNRA1ETUSQv40iAFXIQWIAWQ2GgE1C0L/HogBRzYaATULQv+uiAE8NhoBNQtC/RQiMTQSRIECMTUSRCIxNhJEIjE3EkSIARyBYq8iIkL/ZUL+i0L9UkL+KyI1EjQXNBYWUDQVFlA0FBZQNBNQNBIWUQcIUDQRFlA0D1A0DhZQJDIGQv8wIrIBI7IQsgeyCLOJIrIBJLIQshSyEbISs4k0ASQSRIgAYjQWFjUEQv48NAEkEkSIAFI0FRY1BEL+LDQBJBJEiABCNBQWNQRC/hxC/iFC/jVC/klIiUwJSTUGMgmIAKSJCUlB/+5JNQYxFjQAIwhJNQAJRwI4BzIKEkQ4ECMSRDgIEkSJSVcAIDUXSSEGWzUWSSEHWzUVSSEIWzUUSVc4CDUTSVdAARc1EkmBQVs1EUlXSRE1D4FaWzUOiUlXACA1F0khBls1FkkhB1s1FUkhCFs1FElXOBE1DVdJCDUTiSM1A4mxQv8lSSISTDQCEhFEiTQGCDUGiTQGNAdKD0H/VUL/XbFC/vmxsglC/vOxshVC/vk=`,
appApprovalMap: {
0: `2`,
1: `2`,
10: `2`,
100: `20`,
1000: `592`,
1001: `592`,
1002: `592`,
1003: `593`,
1004: `593`,
1005: `594`,
1006: `595`,
1007: `595`,
1008: `596`,
1009: `596`,
101: `20`,
1010: `596`,
1011: `598`,
1012: `598`,
1013: `599`,
1014: `600`,
1015: `601`,
1016: `604`,
1017: `604`,
1018: `604`,
1019: `605`,
102: `20`,
1020: `605`,
1021: `606`,
1022: `607`,
1023: `607`,
1024: `608`,
1025: `608`,
1026: `608`,
1027: `610`,
1028: `610`,
1029: `611`,
103: `20`,
1030: `612`,
1031: `613`,
1032: `616`,
1033: `616`,
1034: `616`,
1035: `617`,
1036: `617`,
1037: `618`,
1038: `619`,
1039: `619`,
104: `20`,
1040: `620`,
1041: `620`,
1042: `620`,
1043: `622`,
1044: `622`,
1045: `622`,
1046: `624`,
1047: `624`,
1048: `624`,
1049: `626`,
105: `20`,
1050: `626`,
1051: `626`,
1052: `628`,
1053: `629`,
1054: `631`,
1055: `632`,
1056: `633`,
1057: `634`,
1058: `634`,
1059: `635`,
106: `20`,
1060: `635`,
1061: `636`,
1062: `636`,
1063: `636`,
1064: `637`,
1065: `639`,
1066: `640`,
1067: `641`,
1068: `641`,
1069: `641`,
107: `22`,
1070: `642`,
1071: `643`,
1072: `643`,
1073: `646`,
1074: `646`,
1075: `647`,
1076: `647`,
1077: `648`,
1078: `649`,
1079: `650`,
108: `24`,
1080: `651`,
1081: `651`,
1082: `652`,
1083: `653`,
1084: `653`,
1085: `654`,
1086: `654`,
1087: `655`,
1088: `655`,
1089: `656`,
109: `24`,
1090: `657`,
1091: `658`,
1092: `658`,
1093: `659`,
1094: `660`,
1095: `661`,
1096: `662`,
1097: `662`,
1098: `663`,
1099: `664`,
11: `2`,
110: `24`,
1100: `665`,
1101: `667`,
1102: `668`,
1103: `668`,
1104: `668`,
1105: `669`,
1106: `669`,
1107: `670`,
1108: `671`,
1109: `671`,
111: `25`,
1110: `672`,
1111: `673`,
1112: `673`,
1113: `674`,
1114: `675`,
1115: `675`,
1116: `676`,
1117: `677`,
1118: `677`,
1119: `678`,
112: `26`,
1120: `679`,
1121: `679`,
1122: `680`,
1123: `681`,
1124: `681`,
1125: `682`,
1126: `683`,
1127: `683`,
1128: `683`,
1129: `684`,
113: `26`,
1130: `684`,
1131: `685`,
1132: `686`,
1133: `686`,
1134: `686`,
1135: `687`,
1136: `688`,
1137: `688`,
1138: `689`,
1139: `690`,
114: `26`,