forked from LedgerHQ/app-flow
-
Notifications
You must be signed in to change notification settings - Fork 2
/
manifestPayloadCases.json
4474 lines (4474 loc) · 697 KB
/
manifestPayloadCases.json
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
[
{
"title": "FA.01 - Create Account",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import Crypto\n\ntransaction(key: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {\n\tprepare(signer: auth(BorrowValue, Storage) &Account) {\n\t\tpre {\n\t\t\tsignatureAlgorithm >= 1 && signatureAlgorithm <= 3: \"Must provide a signature algorithm raw value that is 1, 2, or 3\"\n\t\t\thashAlgorithm >= 1 && hashAlgorithm <= 6: \"Must provide a hash algorithm raw value that is between 1 and 6\"\n\t\t\tweight <= 1000.0: \"The key weight must be between 0 and 1000\"\n\t\t}\n\n\t\tlet publicKey = PublicKey(\n\t\t\tpublicKey: key.decodeHex(),\n\t\t\tsignatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!\n\t\t)\n\n\t\tlet account = Account(payer: signer)\n\n\t\taccount.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)\n\t}\n}",
"arguments": [
{
"type": "String",
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1000.00000000",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import Crypto\n\ntransaction(key: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {\n\tprepare(signer: auth(BorrowValue, Storage) &Account) {\n\t\tpre {\n\t\t\tsignatureAlgorithm >= 1 && signatureAlgorithm <= 3: \"Must provide a signature algorithm raw value that is 1, 2, or 3\"\n\t\t\thashAlgorithm >= 1 && hashAlgorithm <= 6: \"Must provide a hash algorithm raw value that is between 1 and 6\"\n\t\t\tweight <= 1000.0: \"The key weight must be between 0 and 1000\"\n\t\t}\n\n\t\tlet publicKey = PublicKey(\n\t\t\tpublicKey: key.decodeHex(),\n\t\t\tsignatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!\n\t\t)\n\n\t\tlet account = Account(payer: signer)\n\n\t\taccount.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)\n\t}\n}",
"arguments": [
{
"type": "String",
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1000.00000000",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90456b90300696d706f72742043727970746f0a0a7472616e73616374696f6e286b65793a20537472696e672c207369676e6174757265416c676f726974686d3a2055496e74382c2068617368416c676f726974686d3a2055496e74382c207765696768743a2055466978363429207b0a0970726570617265287369676e65723a206175746828426f72726f7756616c75652c2053746f726167652920264163636f756e7429207b0a0909707265207b0a0909097369676e6174757265416c676f726974686d203e3d2031202626207369676e6174757265416c676f726974686d203c3d20333a20224d7573742070726f766964652061207369676e617475726520616c676f726974686d207261772076616c7565207468617420697320312c20322c206f722033220a09090968617368416c676f726974686d203e3d20312026262068617368416c676f726974686d203c3d20363a20224d7573742070726f766964652061206861736820616c676f726974686d207261772076616c75652074686174206973206265747765656e203120616e642036220a090909776569676874203c3d20313030302e303a2022546865206b657920776569676874206d757374206265206265747765656e203020616e642031303030220a09097d0a0a09096c6574207075626c69634b6579203d205075626c69634b6579280a0909097075626c69634b65793a206b65792e6465636f646548657828292c0a0909097369676e6174757265416c676f726974686d3a205369676e6174757265416c676f726974686d2872617756616c75653a207369676e6174757265416c676f726974686d29210a0909290a0a09096c6574206163636f756e74203d204163636f756e742870617965723a207369676e6572290a0a09096163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2048617368416c676f726974686d2872617756616c75653a2068617368416c676f726974686d29212c207765696768743a20776569676874290a097d0a7df90110b8aa7b2274797065223a22537472696e67222c2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da97b2276616c7565223a22313030302e3030303030303030222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f9045af90456b90300696d706f72742043727970746f0a0a7472616e73616374696f6e286b65793a20537472696e672c207369676e6174757265416c676f726974686d3a2055496e74382c2068617368416c676f726974686d3a2055496e74382c207765696768743a2055466978363429207b0a0970726570617265287369676e65723a206175746828426f72726f7756616c75652c2053746f726167652920264163636f756e7429207b0a0909707265207b0a0909097369676e6174757265416c676f726974686d203e3d2031202626207369676e6174757265416c676f726974686d203c3d20333a20224d7573742070726f766964652061207369676e617475726520616c676f726974686d207261772076616c7565207468617420697320312c20322c206f722033220a09090968617368416c676f726974686d203e3d20312026262068617368416c676f726974686d203c3d20363a20224d7573742070726f766964652061206861736820616c676f726974686d207261772076616c75652074686174206973206265747765656e203120616e642036220a090909776569676874203c3d20313030302e303a2022546865206b657920776569676874206d757374206265206265747765656e203020616e642031303030220a09097d0a0a09096c6574207075626c69634b6579203d205075626c69634b6579280a0909097075626c69634b65793a206b65792e6465636f646548657828292c0a0909097369676e6174757265416c676f726974686d3a205369676e6174757265416c676f726974686d2872617756616c75653a207369676e6174757265416c676f726974686d29210a0909290a0a09096c6574206163636f756e74203d204163636f756e742870617965723a207369676e6572290a0a09096163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2048617368416c676f726974686d2872617756616c75653a2068617368416c676f726974686d29212c207765696768743a20776569676874290a097d0a7df90110b8aa7b2274797065223a22537472696e67222c2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da97b2276616c7565223a22313030302e3030303030303030222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02c4a7efd8708396e8c7a3611f72a9f89f675bf6d5c9336dd389e5839cba78443cc4a7efd8708396e8c7a3611f72a9f89f675bf6d5c9336dd389e5839cba78443c437265617465204163636f756e740004045075626c6963204b65790000065369676e617475726520416c672e0001054861736820416c672e0002014b65792057656967687400035546697836340003",
"hash": "c4a7efd8708396e8c7a3611f72a9f89f675bf6d5c9336dd389e5839cba78443c"
},
{
"title": "FA.02 - Add Key",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import Crypto\n\ntransaction(key: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {\n\n\tprepare(signer: auth(AddKey) &Account) {\n\t\tpre {\n\t\t\tsignatureAlgorithm >= 1 && signatureAlgorithm <= 3: \"Must provide a signature algorithm raw value that is 1, 2, or 3\"\n\t\t\thashAlgorithm >= 1 && hashAlgorithm <= 6: \"Must provide a hash algorithm raw value that is between 1 and 6\"\n\t\t\tweight <= 1000.0: \"The key weight must be between 0 and 1000\"\n\t\t}\n\t\tlet publicKey = PublicKey(\n\t\t\tpublicKey: key.decodeHex(),\n\t\t\tsignatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!\n\t\t)\n\n\t\tsigner.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)\n\t}\n}",
"arguments": [
{
"type": "String",
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1000.00000000",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import Crypto\n\ntransaction(key: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {\n\n\tprepare(signer: auth(AddKey) &Account) {\n\t\tpre {\n\t\t\tsignatureAlgorithm >= 1 && signatureAlgorithm <= 3: \"Must provide a signature algorithm raw value that is 1, 2, or 3\"\n\t\t\thashAlgorithm >= 1 && hashAlgorithm <= 6: \"Must provide a hash algorithm raw value that is between 1 and 6\"\n\t\t\tweight <= 1000.0: \"The key weight must be between 0 and 1000\"\n\t\t}\n\t\tlet publicKey = PublicKey(\n\t\t\tpublicKey: key.decodeHex(),\n\t\t\tsignatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!\n\t\t)\n\n\t\tsigner.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)\n\t}\n}",
"arguments": [
{
"type": "String",
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1000.00000000",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f9041fb902c9696d706f72742043727970746f0a0a7472616e73616374696f6e286b65793a20537472696e672c207369676e6174757265416c676f726974686d3a2055496e74382c2068617368416c676f726974686d3a2055496e74382c207765696768743a2055466978363429207b0a0a0970726570617265287369676e65723a2061757468284164644b65792920264163636f756e7429207b0a0909707265207b0a0909097369676e6174757265416c676f726974686d203e3d2031202626207369676e6174757265416c676f726974686d203c3d20333a20224d7573742070726f766964652061207369676e617475726520616c676f726974686d207261772076616c7565207468617420697320312c20322c206f722033220a09090968617368416c676f726974686d203e3d20312026262068617368416c676f726974686d203c3d20363a20224d7573742070726f766964652061206861736820616c676f726974686d207261772076616c75652074686174206973206265747765656e203120616e642036220a090909776569676874203c3d20313030302e303a2022546865206b657920776569676874206d757374206265206265747765656e203020616e642031303030220a09097d0a09096c6574207075626c69634b6579203d205075626c69634b6579280a0909097075626c69634b65793a206b65792e6465636f646548657828292c0a0909097369676e6174757265416c676f726974686d3a205369676e6174757265416c676f726974686d2872617756616c75653a207369676e6174757265416c676f726974686d29210a0909290a0a09097369676e65722e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2048617368416c676f726974686d2872617756616c75653a2068617368416c676f726974686d29212c207765696768743a20776569676874290a097d0a7df90110b8aa7b2274797065223a22537472696e67222c2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da97b2276616c7565223a22313030302e3030303030303030222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90423f9041fb902c9696d706f72742043727970746f0a0a7472616e73616374696f6e286b65793a20537472696e672c207369676e6174757265416c676f726974686d3a2055496e74382c2068617368416c676f726974686d3a2055496e74382c207765696768743a2055466978363429207b0a0a0970726570617265287369676e65723a2061757468284164644b65792920264163636f756e7429207b0a0909707265207b0a0909097369676e6174757265416c676f726974686d203e3d2031202626207369676e6174757265416c676f726974686d203c3d20333a20224d7573742070726f766964652061207369676e617475726520616c676f726974686d207261772076616c7565207468617420697320312c20322c206f722033220a09090968617368416c676f726974686d203e3d20312026262068617368416c676f726974686d203c3d20363a20224d7573742070726f766964652061206861736820616c676f726974686d207261772076616c75652074686174206973206265747765656e203120616e642036220a090909776569676874203c3d20313030302e303a2022546865206b657920776569676874206d757374206265206265747765656e203020616e642031303030220a09097d0a09096c6574207075626c69634b6579203d205075626c69634b6579280a0909097075626c69634b65793a206b65792e6465636f646548657828292c0a0909097369676e6174757265416c676f726974686d3a205369676e6174757265416c676f726974686d2872617756616c75653a207369676e6174757265416c676f726974686d29210a0909290a0a09097369676e65722e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2048617368416c676f726974686d2872617756616c75653a2068617368416c676f726974686d29212c207765696768743a20776569676874290a097d0a7df90110b8aa7b2274797065223a22537472696e67222c2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da97b2276616c7565223a22313030302e3030303030303030222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "021c9d1210f2bf129b86803b153e137420c9117e8a2409a1e2ef6f916a4e8d611f1c9d1210f2bf129b86803b153e137420c9117e8a2409a1e2ef6f916a4e8d611f416464204b65790004045075626c6963204b65790000065369676e617475726520416c672e0001054861736820416c672e0002014b65792057656967687400035546697836340003",
"hash": "1c9d1210f2bf129b86803b153e137420c9117e8a2409a1e2ef6f916a4e8d611f"
},
{
"title": "FA.03 - Remove Key",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) &Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n\t\t\tpanic(\"No key with the given index exists on the authorizer's account\")\n\t\t}\n\t}\n}",
"arguments": [
{
"type": "Int",
"value": "1"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) &Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n\t\t\tpanic(\"No key with the given index exists on the authorizer's account\")\n\t\t}\n\t}\n}",
"arguments": [
{
"type": "Int",
"value": "1"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90166b901077472616e73616374696f6e286b6579496e6465783a20496e7429207b0a0970726570617265287369676e65723a2061757468285265766f6b654b65792920264163636f756e7429207b0a09096966206c6574206b6579203d207369676e65722e6b6579732e676574286b6579496e6465783a206b6579496e64657829207b0a0909097369676e65722e6b6579732e7265766f6b65286b6579496e6465783a206b6579496e646578290a09097d20656c7365207b0a09090970616e696328224e6f206b657920776974682074686520676976656e20696e64657820657869737473206f6e2074686520617574686f72697a65722773206163636f756e7422290a09097d0a097d0a7ddb9a7b2274797065223a22496e74222c2276616c7565223a2231227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f9016af90166b901077472616e73616374696f6e286b6579496e6465783a20496e7429207b0a0970726570617265287369676e65723a2061757468285265766f6b654b65792920264163636f756e7429207b0a09096966206c6574206b6579203d207369676e65722e6b6579732e676574286b6579496e6465783a206b6579496e64657829207b0a0909097369676e65722e6b6579732e7265766f6b65286b6579496e6465783a206b6579496e646578290a09097d20656c7365207b0a09090970616e696328224e6f206b657920776974682074686520676976656e20696e64657820657869737473206f6e2074686520617574686f72697a65722773206163636f756e7422290a09097d0a097d0a7ddb9a7b2274797065223a22496e74222c2276616c7565223a2231227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "026c7ab72837fdce77a910f6fc0c622c6c4d5b17f6fbf7295f345d50d3508dd5156c7ab72837fdce77a910f6fc0c622c6c4d5b17f6fbf7295f345d50d3508dd51552656d6f7665204b65790001014b657920496e6465780000496e740003",
"hash": "6c7ab72837fdce77a910f6fc0c622c6c4d5b17f6fbf7295f345d50d3508dd515"
},
{
"title": "FT.01 - Setup Fungible Token Vault",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FungibleTokenMetadataViews from 0x9a0766d93b6608b7\n\n/// This transaction is what an account would run\n/// to set itself up to manage fungible tokens. This function\n/// uses views to know where to set up the vault\n/// in storage and to create the empty vault.\n\ntransaction(contractAddress: Address, contractName: String) {\n\n prepare(signer: auth(SaveValue, Capabilities) &Account) {\n // Borrow a reference to the vault stored on the passed account at the passed publicPath\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{FungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the fungible token contract\")\n\n // Use that reference to retrieve the FTView \n let ftVaultData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<FungibleTokenMetadataViews.FTVaultData>()) as! FungibleTokenMetadataViews.FTVaultData?\n ?? panic(\"Could not resolve the FTVaultData view for the given Fungible token contract\")\n\n // Create a new empty vault using the createEmptyVault function inside the FTVaultData\n let emptyVault <-ftVaultData.createEmptyVault()\n\n // Save it to the account\n signer.storage.save(<-emptyVault, to: ftVaultData.storagePath)\n \n // Create a public capability for the vault which includes the .Resolver interface\n let vaultCap = signer.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath)\n signer.capabilities.publish(vaultCap, at: ftVaultData.metadataPath)\n\n // Create a public capability for the vault exposing the receiver interface\n let receiverCap = signer.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath)\n signer.capabilities.publish(receiverCap, at: ftVaultData.receiverPath)\n\n }\n}\n ",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "FiatToken",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FungibleTokenMetadataViews from 0x9a0766d93b6608b7\n\n/// This transaction is what an account would run\n/// to set itself up to manage fungible tokens. This function\n/// uses views to know where to set up the vault\n/// in storage and to create the empty vault.\n\ntransaction(contractAddress: Address, contractName: String) {\n\n prepare(signer: auth(SaveValue, Capabilities) &Account) {\n // Borrow a reference to the vault stored on the passed account at the passed publicPath\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{FungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the fungible token contract\")\n\n // Use that reference to retrieve the FTView \n let ftVaultData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<FungibleTokenMetadataViews.FTVaultData>()) as! FungibleTokenMetadataViews.FTVaultData?\n ?? panic(\"Could not resolve the FTVaultData view for the given Fungible token contract\")\n\n // Create a new empty vault using the createEmptyVault function inside the FTVaultData\n let emptyVault <-ftVaultData.createEmptyVault()\n\n // Save it to the account\n signer.storage.save(<-emptyVault, to: ftVaultData.storagePath)\n \n // Create a public capability for the vault which includes the .Resolver interface\n let vaultCap = signer.capabilities.storage.issue<&{FungibleToken.Vault}>(ftVaultData.storagePath)\n signer.capabilities.publish(vaultCap, at: ftVaultData.metadataPath)\n\n // Create a public capability for the vault exposing the receiver interface\n let receiverCap = signer.capabilities.storage.issue<&{FungibleToken.Receiver}>(ftVaultData.storagePath)\n signer.capabilities.publish(receiverCap, at: ftVaultData.receiverPath)\n\n }\n}\n ",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "FiatToken",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90808b9076d696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f72742046756e6769626c65546f6b656e4d6574616461746156696577732066726f6d203078396130373636643933623636303862370a0a2f2f2f2054686973207472616e73616374696f6e206973207768617420616e206163636f756e7420776f756c642072756e0a2f2f2f20746f2073657420697473656c6620757020746f206d616e6167652066756e6769626c6520746f6b656e732e20546869732066756e6374696f6e0a2f2f2f207573657320766965777320746f206b6e6f7720776865726520746f2073657420757020746865207661756c740a2f2f2f20696e2073746f7261676520616e6420746f206372656174652074686520656d707479207661756c742e0a0a7472616e73616374696f6e28636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a2020202070726570617265287369676e65723a2061757468285361766556616c75652c204361706162696c69746965732920264163636f756e7429207b0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865207661756c742073746f726564206f6e2074686520706173736564206163636f756e742061742074686520706173736564207075626c6963506174680a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f207468652066756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f2072657472696576652074686520465456696577200a20202020202020206c65742066745661756c7444617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c46756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613e282929206173212046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c7665207468652046545661756c7444617461207669657720666f722074686520676976656e2046756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204372656174652061206e657720656d707479207661756c74207573696e672074686520637265617465456d7074795661756c742066756e6374696f6e20696e73696465207468652046545661756c74446174610a20202020202020206c657420656d7074795661756c74203c2d66745661756c74446174612e637265617465456d7074795661756c7428290a0a20202020202020202f2f205361766520697420746f20746865206163636f756e740a20202020202020207369676e65722e73746f726167652e73617665283c2d656d7074795661756c742c20746f3a2066745661756c74446174612e73746f7261676550617468290a20202020202020200a20202020202020202f2f204372656174652061207075626c6963206361706162696c69747920666f7220746865207661756c7420776869636820696e636c7564657320746865202e5265736f6c76657220696e746572666163650a20202020202020206c6574207661756c74436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b46756e6769626c65546f6b656e2e5661756c747d3e2866745661756c74446174612e73746f7261676550617468290a20202020202020207369676e65722e6361706162696c69746965732e7075626c697368287661756c744361702c2061743a2066745661756c74446174612e6d6574616461746150617468290a0a20202020202020202f2f204372656174652061207075626c6963206361706162696c69747920666f7220746865207661756c74206578706f73696e672074686520726563656976657220696e746572666163650a20202020202020206c6574207265636569766572436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b46756e6769626c65546f6b656e2e52656365697665727d3e2866745661756c74446174612e73746f7261676550617468290a20202020202020207369676e65722e6361706162696c69746965732e7075626c6973682872656365697665724361702c2061743a2066745661756c74446174612e726563656976657250617468290a0a202020207d0a7d0a20f856af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227da57b2276616c7565223a2246696174546f6b656e222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f9080cf90808b9076d696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f72742046756e6769626c65546f6b656e4d6574616461746156696577732066726f6d203078396130373636643933623636303862370a0a2f2f2f2054686973207472616e73616374696f6e206973207768617420616e206163636f756e7420776f756c642072756e0a2f2f2f20746f2073657420697473656c6620757020746f206d616e6167652066756e6769626c6520746f6b656e732e20546869732066756e6374696f6e0a2f2f2f207573657320766965777320746f206b6e6f7720776865726520746f2073657420757020746865207661756c740a2f2f2f20696e2073746f7261676520616e6420746f206372656174652074686520656d707479207661756c742e0a0a7472616e73616374696f6e28636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a2020202070726570617265287369676e65723a2061757468285361766556616c75652c204361706162696c69746965732920264163636f756e7429207b0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865207661756c742073746f726564206f6e2074686520706173736564206163636f756e742061742074686520706173736564207075626c6963506174680a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f207468652066756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f2072657472696576652074686520465456696577200a20202020202020206c65742066745661756c7444617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c46756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613e282929206173212046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c7665207468652046545661756c7444617461207669657720666f722074686520676976656e2046756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204372656174652061206e657720656d707479207661756c74207573696e672074686520637265617465456d7074795661756c742066756e6374696f6e20696e73696465207468652046545661756c74446174610a20202020202020206c657420656d7074795661756c74203c2d66745661756c74446174612e637265617465456d7074795661756c7428290a0a20202020202020202f2f205361766520697420746f20746865206163636f756e740a20202020202020207369676e65722e73746f726167652e73617665283c2d656d7074795661756c742c20746f3a2066745661756c74446174612e73746f7261676550617468290a20202020202020200a20202020202020202f2f204372656174652061207075626c6963206361706162696c69747920666f7220746865207661756c7420776869636820696e636c7564657320746865202e5265736f6c76657220696e746572666163650a20202020202020206c6574207661756c74436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b46756e6769626c65546f6b656e2e5661756c747d3e2866745661756c74446174612e73746f7261676550617468290a20202020202020207369676e65722e6361706162696c69746965732e7075626c697368287661756c744361702c2061743a2066745661756c74446174612e6d6574616461746150617468290a0a20202020202020202f2f204372656174652061207075626c6963206361706162696c69747920666f7220746865207661756c74206578706f73696e672074686520726563656976657220696e746572666163650a20202020202020206c6574207265636569766572436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b46756e6769626c65546f6b656e2e52656365697665727d3e2866745661756c74446174612e73746f7261676550617468290a20202020202020207369676e65722e6361706162696c69746965732e7075626c6973682872656365697665724361702c2061743a2066745661756c74446174612e726563656976657250617468290a0a202020207d0a7d0a20f856af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227da57b2276616c7565223a2246696174546f6b656e222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "023ccbbfebf10c47c49e4058a33fd9a29c4191c545de52c9afd27a29d38110aa280246076f1cf5d3160397766a9227b35f592f4d15c014848044c509818328b62b53657475702046756e6769626c6520546f6b656e205661756c74000201465420436f6e747261637420416464722e000041646472657373000304465420436f6e7472616374204e616d650001",
"hash": "3ccbbfebf10c47c49e4058a33fd9a29c4191c545de52c9afd27a29d38110aa28"
},
{
"title": "FT.02 - Transfer Fungible Token with Paths",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\n\n/// Can pass in any storage path and receiver path identifier instead of just the default.\n/// This lets you choose the token you want to send as well the capability you want to send it to.\n///\n/// Any token path can be passed as an argument here, so wallets should\n/// should check argument values to make sure the intended token path is passed in\n///\ntransaction(amount: UFix64, to: Address, senderPathIdentifier: String, receiverPathIdentifier: String) {\n\n // The Vault resource that holds the tokens that are being transferred\n let tempVault: @{FungibleToken.Vault}\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n let storagePath = StoragePath(identifier: senderPathIdentifier)\n ?? panic(\"Could not construct a storage path from the provided path identifier string\")\n\n // Get a reference to the signer's stored vault\n let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: storagePath)\n\t\t\t?? panic(\"Could not borrow reference to the owner's Vault!\")\n\n self.tempVault <- vaultRef.withdraw(amount: amount)\n }\n\n execute {\n let publicPath = PublicPath(identifier: receiverPathIdentifier)\n ?? panic(\"Could not construct a public path from the provided path identifier string\")\n\n let recipient = getAccount(to)\n let receiverRef = recipient.capabilities.borrow<&{FungibleToken.Receiver}>(publicPath)\n ?? panic(\"Could not borrow reference to the recipient's Receiver!\")\n\n // Transfer tokens from the signer's stored vault to the receiver capability\n receiverRef.deposit(from: <-self.tempVault)\n }\n}",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "flowTokenVault",
"type": "String"
},
{
"value": "flowTokenReceiver",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\n\n/// Can pass in any storage path and receiver path identifier instead of just the default.\n/// This lets you choose the token you want to send as well the capability you want to send it to.\n///\n/// Any token path can be passed as an argument here, so wallets should\n/// should check argument values to make sure the intended token path is passed in\n///\ntransaction(amount: UFix64, to: Address, senderPathIdentifier: String, receiverPathIdentifier: String) {\n\n // The Vault resource that holds the tokens that are being transferred\n let tempVault: @{FungibleToken.Vault}\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n let storagePath = StoragePath(identifier: senderPathIdentifier)\n ?? panic(\"Could not construct a storage path from the provided path identifier string\")\n\n // Get a reference to the signer's stored vault\n let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: storagePath)\n\t\t\t?? panic(\"Could not borrow reference to the owner's Vault!\")\n\n self.tempVault <- vaultRef.withdraw(amount: amount)\n }\n\n execute {\n let publicPath = PublicPath(identifier: receiverPathIdentifier)\n ?? panic(\"Could not construct a public path from the provided path identifier string\")\n\n let recipient = getAccount(to)\n let receiverRef = recipient.capabilities.borrow<&{FungibleToken.Receiver}>(publicPath)\n ?? panic(\"Could not borrow reference to the recipient's Receiver!\")\n\n // Transfer tokens from the signer's stored vault to the receiver capability\n receiverRef.deposit(from: <-self.tempVault)\n }\n}",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "flowTokenVault",
"type": "String"
},
{
"value": "flowTokenReceiver",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f907a3b906a4696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a0a2f2f2f2043616e207061737320696e20616e792073746f72616765207061746820616e642072656365697665722070617468206964656e74696669657220696e7374656164206f66206a757374207468652064656661756c742e0a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e642061732077656c6c20746865206361706162696c69747920796f752077616e7420746f2073656e6420697420746f2e0a2f2f2f0a2f2f2f20416e7920746f6b656e20706174682063616e2062652070617373656420617320616e20617267756d656e7420686572652c20736f2077616c6c6574732073686f756c640a2f2f2f2073686f756c6420636865636b20617267756d656e742076616c75657320746f206d616b6520737572652074686520696e74656e64656420746f6b656e20706174682069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28616d6f756e743a205546697836342c20746f3a20416464726573732c2073656e646572506174684964656e7469666965723a20537472696e672c207265636569766572506174684964656e7469666965723a20537472696e6729207b0a0a202020202f2f20546865205661756c74207265736f75726365207468617420686f6c64732074686520746f6b656e73207468617420617265206265696e67207472616e736665727265640a202020206c65742074656d705661756c743a20407b46756e6769626c65546f6b656e2e5661756c747d0a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020206c65742073746f7261676550617468203d2053746f7261676550617468286964656e7469666965723a2073656e646572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e73747275637420612073746f7261676520706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f204765742061207265666572656e636520746f20746865207369676e657227732073746f726564207661756c740a20202020202020206c6574207661756c74526566203d207369676e65722e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e57697468647261772920267b46756e6769626c65546f6b656e2e50726f76696465727d3e2866726f6d3a2073746f7261676550617468290a0909093f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f20746865206f776e65722773205661756c742122290a0a202020202020202073656c662e74656d705661756c74203c2d207661756c745265662e776974686472617728616d6f756e743a20616d6f756e74290a202020207d0a0a2020202065786563757465207b0a20202020202020206c6574207075626c696350617468203d205075626c696350617468286964656e7469666965723a207265636569766572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e7374727563742061207075626c696320706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b46756e6769626c65546f6b656e2e52656365697665727d3e287075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e7427732052656365697665722122290a0a20202020202020202f2f205472616e7366657220746f6b656e732066726f6d20746865207369676e657227732073746f726564207661756c7420746f20746865207265636569766572206361706162696c6974790a202020202020202072656365697665725265662e6465706f7369742866726f6d3a203c2d73656c662e74656d705661756c74290a202020207d0a7df8bab07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227daa7b2276616c7565223a22666c6f77546f6b656e5661756c74222c2274797065223a22537472696e67227dad7b2276616c7565223a22666c6f77546f6b656e5265636569766572222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f907a7f907a3b906a4696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a0a2f2f2f2043616e207061737320696e20616e792073746f72616765207061746820616e642072656365697665722070617468206964656e74696669657220696e7374656164206f66206a757374207468652064656661756c742e0a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e642061732077656c6c20746865206361706162696c69747920796f752077616e7420746f2073656e6420697420746f2e0a2f2f2f0a2f2f2f20416e7920746f6b656e20706174682063616e2062652070617373656420617320616e20617267756d656e7420686572652c20736f2077616c6c6574732073686f756c640a2f2f2f2073686f756c6420636865636b20617267756d656e742076616c75657320746f206d616b6520737572652074686520696e74656e64656420746f6b656e20706174682069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28616d6f756e743a205546697836342c20746f3a20416464726573732c2073656e646572506174684964656e7469666965723a20537472696e672c207265636569766572506174684964656e7469666965723a20537472696e6729207b0a0a202020202f2f20546865205661756c74207265736f75726365207468617420686f6c64732074686520746f6b656e73207468617420617265206265696e67207472616e736665727265640a202020206c65742074656d705661756c743a20407b46756e6769626c65546f6b656e2e5661756c747d0a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020206c65742073746f7261676550617468203d2053746f7261676550617468286964656e7469666965723a2073656e646572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e73747275637420612073746f7261676520706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f204765742061207265666572656e636520746f20746865207369676e657227732073746f726564207661756c740a20202020202020206c6574207661756c74526566203d207369676e65722e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e57697468647261772920267b46756e6769626c65546f6b656e2e50726f76696465727d3e2866726f6d3a2073746f7261676550617468290a0909093f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f20746865206f776e65722773205661756c742122290a0a202020202020202073656c662e74656d705661756c74203c2d207661756c745265662e776974686472617728616d6f756e743a20616d6f756e74290a202020207d0a0a2020202065786563757465207b0a20202020202020206c6574207075626c696350617468203d205075626c696350617468286964656e7469666965723a207265636569766572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e7374727563742061207075626c696320706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b46756e6769626c65546f6b656e2e52656365697665727d3e287075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e7427732052656365697665722122290a0a20202020202020202f2f205472616e7366657220746f6b656e732066726f6d20746865207369676e657227732073746f726564207661756c7420746f20746865207265636569766572206361706162696c6974790a202020202020202072656365697665725265662e6465706f7369742866726f6d3a203c2d73656c662e74656d705661756c74290a202020207d0a7df8bab07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227daa7b2276616c7565223a22666c6f77546f6b656e5661756c74222c2274797065223a22537472696e67227dad7b2276616c7565223a22666c6f77546f6b656e5265636569766572222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02c9b9a6156280812703c15dde74df95cd0d7d1034dd2d8bf0cccf72b6071429886e5b8c83a3e8445eaa4bed391978443f124d9aa457fabdbaa016e0f65b57591e5472616e736665722046756e6769626c6520546f6b656e2077697468205061746873000401416d6f756e740000554669783634000301526563697069656e7400014164647265737300030453656e2e20436f6c6c20506174682049640002045265632e20436f6c6c20506174682049640003",
"hash": "c9b9a6156280812703c15dde74df95cd0d7d1034dd2d8bf0cccf72b607142988"
},
{
"title": "FT.03 - Transfer Fungible Token with Address",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FungibleTokenMetadataViews from 0x9a0766d93b6608b7\n\n/// Can pass in any contract address and name to transfer a token from that contract\n/// This lets you choose the token you want to send\n///\n/// Any contract can be chosen here, so wallets should check argument values\n/// to make sure the intended token contract name and address is passed in\n///\ntransaction(amount: UFix64, to: Address, contractAddress: Address, contractName: String) {\n\n // The Vault resource that holds the tokens that are being transferred\n let tempVault: @{FungibleToken.Vault}\n\n // FTVaultData struct to get paths from\n let vaultData: FungibleTokenMetadataViews.FTVaultData\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n // Borrow a reference to the vault stored on the passed account at the passed publicPath\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{FungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the fungible token contract\")\n\n // Use that reference to retrieve the FTView \n self.vaultData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<FungibleTokenMetadataViews.FTVaultData>()) as! FungibleTokenMetadataViews.FTVaultData?\n ?? panic(\"Could not resolve the FTVaultData view for the given Fungible token contract\")\n\n // Get a reference to the signer's stored vault\n let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: self.vaultData.storagePath)\n\t\t\t?? panic(\"Could not borrow reference to the owner's Vault!\")\n\n self.tempVault <- vaultRef.withdraw(amount: amount)\n }\n\n execute {\n let recipient = getAccount(to)\n let receiverRef = recipient.capabilities.borrow<&{FungibleToken.Receiver}>(self.vaultData.receiverPath)\n ?? panic(\"Could not borrow reference to the recipient's Receiver!\")\n\n // Transfer tokens from the signer's stored vault to the receiver capability\n receiverRef.deposit(from: <-self.tempVault)\n }\n}",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "FiatToken",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FungibleTokenMetadataViews from 0x9a0766d93b6608b7\n\n/// Can pass in any contract address and name to transfer a token from that contract\n/// This lets you choose the token you want to send\n///\n/// Any contract can be chosen here, so wallets should check argument values\n/// to make sure the intended token contract name and address is passed in\n///\ntransaction(amount: UFix64, to: Address, contractAddress: Address, contractName: String) {\n\n // The Vault resource that holds the tokens that are being transferred\n let tempVault: @{FungibleToken.Vault}\n\n // FTVaultData struct to get paths from\n let vaultData: FungibleTokenMetadataViews.FTVaultData\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n // Borrow a reference to the vault stored on the passed account at the passed publicPath\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{FungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the fungible token contract\")\n\n // Use that reference to retrieve the FTView \n self.vaultData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<FungibleTokenMetadataViews.FTVaultData>()) as! FungibleTokenMetadataViews.FTVaultData?\n ?? panic(\"Could not resolve the FTVaultData view for the given Fungible token contract\")\n\n // Get a reference to the signer's stored vault\n let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>(from: self.vaultData.storagePath)\n\t\t\t?? panic(\"Could not borrow reference to the owner's Vault!\")\n\n self.tempVault <- vaultRef.withdraw(amount: amount)\n }\n\n execute {\n let recipient = getAccount(to)\n let receiverRef = recipient.capabilities.borrow<&{FungibleToken.Receiver}>(self.vaultData.receiverPath)\n ?? panic(\"Could not borrow reference to the recipient's Receiver!\")\n\n // Transfer tokens from the signer's stored vault to the receiver capability\n receiverRef.deposit(from: <-self.tempVault)\n }\n}",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "FiatToken",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90940b90844696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f72742046756e6769626c65546f6b656e4d6574616461746156696577732066726f6d203078396130373636643933623636303862370a0a2f2f2f2043616e207061737320696e20616e7920636f6e7472616374206164647265737320616e64206e616d6520746f207472616e73666572206120746f6b656e2066726f6d207468617420636f6e74726163740a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e640a2f2f2f0a2f2f2f20416e7920636f6e74726163742063616e2062652063686f73656e20686572652c20736f2077616c6c6574732073686f756c6420636865636b20617267756d656e742076616c7565730a2f2f2f20746f206d616b6520737572652074686520696e74656e64656420746f6b656e20636f6e7472616374206e616d6520616e6420616464726573732069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28616d6f756e743a205546697836342c20746f3a20416464726573732c20636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a202020202f2f20546865205661756c74207265736f75726365207468617420686f6c64732074686520746f6b656e73207468617420617265206265696e67207472616e736665727265640a202020206c65742074656d705661756c743a20407b46756e6769626c65546f6b656e2e5661756c747d0a0a202020202f2f2046545661756c74446174612073747275637420746f206765742070617468732066726f6d0a202020206c6574207661756c74446174613a2046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174610a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865207661756c742073746f726564206f6e2074686520706173736564206163636f756e742061742074686520706173736564207075626c6963506174680a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f207468652066756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f2072657472696576652074686520465456696577200a202020202020202073656c662e7661756c7444617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c46756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613e282929206173212046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c7665207468652046545661756c7444617461207669657720666f722074686520676976656e2046756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204765742061207265666572656e636520746f20746865207369676e657227732073746f726564207661756c740a20202020202020206c6574207661756c74526566203d207369676e65722e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e57697468647261772920267b46756e6769626c65546f6b656e2e50726f76696465727d3e2866726f6d3a2073656c662e7661756c74446174612e73746f7261676550617468290a0909093f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f20746865206f776e65722773205661756c742122290a0a202020202020202073656c662e74656d705661756c74203c2d207661756c745265662e776974686472617728616d6f756e743a20616d6f756e74290a202020207d0a0a2020202065786563757465207b0a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b46756e6769626c65546f6b656e2e52656365697665727d3e2873656c662e7661756c74446174612e726563656976657250617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e7427732052656365697665722122290a0a20202020202020202f2f205472616e7366657220746f6b656e732066726f6d20746865207369676e657227732073746f726564207661756c7420746f20746865207265636569766572206361706162696c6974790a202020202020202072656365697665725265662e6465706f7369742866726f6d3a203c2d73656c662e74656d705661756c74290a202020207d0a7df8b7b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227da57b2276616c7565223a2246696174546f6b656e222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90944f90940b90844696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f72742046756e6769626c65546f6b656e4d6574616461746156696577732066726f6d203078396130373636643933623636303862370a0a2f2f2f2043616e207061737320696e20616e7920636f6e7472616374206164647265737320616e64206e616d6520746f207472616e73666572206120746f6b656e2066726f6d207468617420636f6e74726163740a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e640a2f2f2f0a2f2f2f20416e7920636f6e74726163742063616e2062652063686f73656e20686572652c20736f2077616c6c6574732073686f756c6420636865636b20617267756d656e742076616c7565730a2f2f2f20746f206d616b6520737572652074686520696e74656e64656420746f6b656e20636f6e7472616374206e616d6520616e6420616464726573732069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28616d6f756e743a205546697836342c20746f3a20416464726573732c20636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a202020202f2f20546865205661756c74207265736f75726365207468617420686f6c64732074686520746f6b656e73207468617420617265206265696e67207472616e736665727265640a202020206c65742074656d705661756c743a20407b46756e6769626c65546f6b656e2e5661756c747d0a0a202020202f2f2046545661756c74446174612073747275637420746f206765742070617468732066726f6d0a202020206c6574207661756c74446174613a2046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174610a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865207661756c742073746f726564206f6e2074686520706173736564206163636f756e742061742074686520706173736564207075626c6963506174680a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f207468652066756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f2072657472696576652074686520465456696577200a202020202020202073656c662e7661756c7444617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c46756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613e282929206173212046756e6769626c65546f6b656e4d6574616461746156696577732e46545661756c74446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c7665207468652046545661756c7444617461207669657720666f722074686520676976656e2046756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204765742061207265666572656e636520746f20746865207369676e657227732073746f726564207661756c740a20202020202020206c6574207661756c74526566203d207369676e65722e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e57697468647261772920267b46756e6769626c65546f6b656e2e50726f76696465727d3e2866726f6d3a2073656c662e7661756c74446174612e73746f7261676550617468290a0909093f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f20746865206f776e65722773205661756c742122290a0a202020202020202073656c662e74656d705661756c74203c2d207661756c745265662e776974686472617728616d6f756e743a20616d6f756e74290a202020207d0a0a2020202065786563757465207b0a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b46756e6769626c65546f6b656e2e52656365697665727d3e2873656c662e7661756c74446174612e726563656976657250617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e7427732052656365697665722122290a0a20202020202020202f2f205472616e7366657220746f6b656e732066726f6d20746865207369676e657227732073746f726564207661756c7420746f20746865207265636569766572206361706162696c6974790a202020202020202072656365697665725265662e6465706f7369742866726f6d3a203c2d73656c662e74656d705661756c74290a202020207d0a7df8b7b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227da57b2276616c7565223a2246696174546f6b656e222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "020adc1ebe8246cf7656aefd9bf336f7f0c102a039e343776da61da4d6aa39aed2d8f826a451d808697ed3ce7908a080c05219df458e3e6cd4ccd073600c58e6005472616e736665722046756e6769626c6520546f6b656e20776974682041646472000401416d6f756e740000554669783634000301526563697069656e74000141646472657373000301465420436f6e747261637420416464722e000241646472657373000304465420436f6e7472616374204e616d650003",
"hash": "0adc1ebe8246cf7656aefd9bf336f7f0c102a039e343776da61da4d6aa39aed2"
},
{
"title": "NFT.01 - Setup NFT Collection",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "/// This transaction is what an account would run\n/// to set itself up to receive NFTs. This function\n/// uses views to know where to set up the collection\n/// in storage and to create the empty collection.\n\nimport NonFungibleToken from 0x631e88ae7f1d7c20\nimport MetadataViews from 0x631e88ae7f1d7c20\n\ntransaction(contractAddress: Address, contractName: String) {\n\n prepare(signer: auth(IssueStorageCapabilityController, PublishCapability, SaveValue) &Account) {\n // Borrow a reference to the nft contract deployed to the passed account\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{NonFungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the non-fungible token contract\")\n\n // Use that reference to retrieve the NFTCollectionData view \n let collectionData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?\n ?? panic(\"Could not resolve the NFTCollectionData view for the given non-fungible token contract\")\n\n // Create a new empty collections\n let emptyCollection <- collectionData.createEmptyCollection()\n\n // save it to the account\n signer.storage.save(<-emptyCollection, to: collectionData.storagePath)\n\n // create a public capability for the collection\n let collectionCap = signer.capabilities.storage.issue<&{NonFungibleToken.Collection}>(\n collectionData.storagePath\n )\n signer.capabilities.publish(collectionCap, at: collectionData.publicPath)\n }\n}\n",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "TopShot",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "/// This transaction is what an account would run\n/// to set itself up to receive NFTs. This function\n/// uses views to know where to set up the collection\n/// in storage and to create the empty collection.\n\nimport NonFungibleToken from 0x631e88ae7f1d7c20\nimport MetadataViews from 0x631e88ae7f1d7c20\n\ntransaction(contractAddress: Address, contractName: String) {\n\n prepare(signer: auth(IssueStorageCapabilityController, PublishCapability, SaveValue) &Account) {\n // Borrow a reference to the nft contract deployed to the passed account\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{NonFungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the non-fungible token contract\")\n\n // Use that reference to retrieve the NFTCollectionData view \n let collectionData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?\n ?? panic(\"Could not resolve the NFTCollectionData view for the given non-fungible token contract\")\n\n // Create a new empty collections\n let emptyCollection <- collectionData.createEmptyCollection()\n\n // save it to the account\n signer.storage.save(<-emptyCollection, to: collectionData.storagePath)\n\n // create a public capability for the collection\n let collectionCap = signer.capabilities.storage.issue<&{NonFungibleToken.Collection}>(\n collectionData.storagePath\n )\n signer.capabilities.publish(collectionCap, at: collectionData.publicPath)\n }\n}\n",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "TopShot",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f906feb906652f2f2f2054686973207472616e73616374696f6e206973207768617420616e206163636f756e7420776f756c642072756e0a2f2f2f20746f2073657420697473656c6620757020746f2072656365697665204e4654732e20546869732066756e6374696f6e0a2f2f2f207573657320766965777320746f206b6e6f7720776865726520746f207365742075702074686520636f6c6c656374696f6e0a2f2f2f20696e2073746f7261676520616e6420746f206372656174652074686520656d70747920636f6c6c656374696f6e2e0a0a696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a696d706f7274204d6574616461746156696577732066726f6d203078363331653838616537663164376332300a0a7472616e73616374696f6e28636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a2020202070726570617265287369676e65723a206175746828497373756553746f726167654361706162696c697479436f6e74726f6c6c65722c205075626c6973684361706162696c6974792c205361766556616c75652920264163636f756e7429207b0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865206e667420636f6e7472616374206465706c6f79656420746f2074686520706173736564206163636f756e740a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f20746865206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f20726574726965766520746865204e4654436f6c6c656374696f6e446174612076696577200a20202020202020206c657420636f6c6c656374696f6e44617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c4d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613e28292920617321204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c766520746865204e4654436f6c6c656374696f6e44617461207669657720666f722074686520676976656e206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204372656174652061206e657720656d70747920636f6c6c656374696f6e730a20202020202020206c657420656d707479436f6c6c656374696f6e203c2d20636f6c6c656374696f6e446174612e637265617465456d707479436f6c6c656374696f6e28290a0a20202020202020202f2f207361766520697420746f20746865206163636f756e740a20202020202020207369676e65722e73746f726167652e73617665283c2d656d707479436f6c6c656374696f6e2c20746f3a20636f6c6c656374696f6e446174612e73746f7261676550617468290a0a20202020202020202f2f206372656174652061207075626c6963206361706162696c69747920666f722074686520636f6c6c656374696f6e0a20202020202020206c657420636f6c6c656374696f6e436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a20202020202020202020202020202020636f6c6c656374696f6e446174612e73746f72616765506174680a202020202020202020202020290a20202020202020207369676e65722e6361706162696c69746965732e7075626c69736828636f6c6c656374696f6e4361702c2061743a20636f6c6c656374696f6e446174612e7075626c696350617468290a202020207d0a7d0af854af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227da37b2276616c7565223a22546f7053686f74222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90702f906feb906652f2f2f2054686973207472616e73616374696f6e206973207768617420616e206163636f756e7420776f756c642072756e0a2f2f2f20746f2073657420697473656c6620757020746f2072656365697665204e4654732e20546869732066756e6374696f6e0a2f2f2f207573657320766965777320746f206b6e6f7720776865726520746f207365742075702074686520636f6c6c656374696f6e0a2f2f2f20696e2073746f7261676520616e6420746f206372656174652074686520656d70747920636f6c6c656374696f6e2e0a0a696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a696d706f7274204d6574616461746156696577732066726f6d203078363331653838616537663164376332300a0a7472616e73616374696f6e28636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a2020202070726570617265287369676e65723a206175746828497373756553746f726167654361706162696c697479436f6e74726f6c6c65722c205075626c6973684361706162696c6974792c205361766556616c75652920264163636f756e7429207b0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865206e667420636f6e7472616374206465706c6f79656420746f2074686520706173736564206163636f756e740a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f20746865206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f20726574726965766520746865204e4654436f6c6c656374696f6e446174612076696577200a20202020202020206c657420636f6c6c656374696f6e44617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c4d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613e28292920617321204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c766520746865204e4654436f6c6c656374696f6e44617461207669657720666f722074686520676976656e206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f204372656174652061206e657720656d70747920636f6c6c656374696f6e730a20202020202020206c657420656d707479436f6c6c656374696f6e203c2d20636f6c6c656374696f6e446174612e637265617465456d707479436f6c6c656374696f6e28290a0a20202020202020202f2f207361766520697420746f20746865206163636f756e740a20202020202020207369676e65722e73746f726167652e73617665283c2d656d707479436f6c6c656374696f6e2c20746f3a20636f6c6c656374696f6e446174612e73746f7261676550617468290a0a20202020202020202f2f206372656174652061207075626c6963206361706162696c69747920666f722074686520636f6c6c656374696f6e0a20202020202020206c657420636f6c6c656374696f6e436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a20202020202020202020202020202020636f6c6c656374696f6e446174612e73746f72616765506174680a202020202020202020202020290a20202020202020207369676e65722e6361706162696c69746965732e7075626c69736828636f6c6c656374696f6e4361702c2061743a20636f6c6c656374696f6e446174612e7075626c696350617468290a202020207d0a7d0af854af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227da37b2276616c7565223a22546f7053686f74222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "0254fae25bb09f5a324821b644890acbc5a356bcbe821218edeb18bd3042dcd333a25e07dea5eb608387d3766fd6ce0110491599a6d61a5e7e9afddd19a7e766115365747570204e465420436f6c6c656374696f6e0002014e465420436f6e747261637420416464720000416464726573730003044e465420436f6e7472616374204e616d650001",
"hash": "54fae25bb09f5a324821b644890acbc5a356bcbe821218edeb18bd3042dcd333"
},
{
"title": "NFT.02 - Transfer NFT with Paths",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import NonFungibleToken from 0x631e88ae7f1d7c20\n\n/// Can pass in any storage path and receiver path instead of just the default.\n/// This lets you choose the token you want to send as well the capability you want to send it to.\n///\n/// Any token path can be passed as an argument here, so wallets should\n/// should check argument values to make sure the intended token path is passed in\n///\ntransaction(to: Address, id: UInt64, senderPathIdentifier: String, receiverPathIdentifier: String) {\n\n // The NFT resource to be transferred\n let tempNFT: @{NonFungibleToken.NFT}\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n let storagePath = StoragePath(identifier: senderPathIdentifier)\n ?? panic(\"Could not construct a storage path from the provided path identifier string\")\n\n // borrow a reference to the signer's NFT collection\n let withdrawRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>(\n from: storagePath\n ) ?? panic(\"Account does not store a collection object at the specified path\")\n\n self.tempNFT <- withdrawRef.withdraw(withdrawID: id)\n }\n\n execute {\n let publicPath = PublicPath(identifier: receiverPathIdentifier)\n ?? panic(\"Could not construct a public path from the provided path identifier string\")\n\n // get the recipients public account object\n let recipient = getAccount(to)\n\n // borrow a public reference to the receivers collection\n let receiverRef = recipient.capabilities.borrow<&{NonFungibleToken.Receiver}>(publicPath)\n ?? panic(\"Could not borrow reference to the recipient's receiver\")\n\n // Deposit the NFT to the receiver\n receiverRef.deposit(token: <-self.tempNFT)\n }\n}",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "10",
"type": "UInt64"
},
{
"value": "flowTokenVault",
"type": "String"
},
{
"value": "flowTokenReceiver",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import NonFungibleToken from 0x631e88ae7f1d7c20\n\n/// Can pass in any storage path and receiver path instead of just the default.\n/// This lets you choose the token you want to send as well the capability you want to send it to.\n///\n/// Any token path can be passed as an argument here, so wallets should\n/// should check argument values to make sure the intended token path is passed in\n///\ntransaction(to: Address, id: UInt64, senderPathIdentifier: String, receiverPathIdentifier: String) {\n\n // The NFT resource to be transferred\n let tempNFT: @{NonFungibleToken.NFT}\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n let storagePath = StoragePath(identifier: senderPathIdentifier)\n ?? panic(\"Could not construct a storage path from the provided path identifier string\")\n\n // borrow a reference to the signer's NFT collection\n let withdrawRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>(\n from: storagePath\n ) ?? panic(\"Account does not store a collection object at the specified path\")\n\n self.tempNFT <- withdrawRef.withdraw(withdrawID: id)\n }\n\n execute {\n let publicPath = PublicPath(identifier: receiverPathIdentifier)\n ?? panic(\"Could not construct a public path from the provided path identifier string\")\n\n // get the recipients public account object\n let recipient = getAccount(to)\n\n // borrow a public reference to the receivers collection\n let receiverRef = recipient.capabilities.borrow<&{NonFungibleToken.Receiver}>(publicPath)\n ?? panic(\"Could not borrow reference to the recipient's receiver\")\n\n // Deposit the NFT to the receiver\n receiverRef.deposit(token: <-self.tempNFT)\n }\n}",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "10",
"type": "UInt64"
},
{
"value": "flowTokenVault",
"type": "String"
},
{
"value": "flowTokenReceiver",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f907ecb906ff696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a0a2f2f2f2043616e207061737320696e20616e792073746f72616765207061746820616e64207265636569766572207061746820696e7374656164206f66206a757374207468652064656661756c742e0a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e642061732077656c6c20746865206361706162696c69747920796f752077616e7420746f2073656e6420697420746f2e0a2f2f2f0a2f2f2f20416e7920746f6b656e20706174682063616e2062652070617373656420617320616e20617267756d656e7420686572652c20736f2077616c6c6574732073686f756c640a2f2f2f2073686f756c6420636865636b20617267756d656e742076616c75657320746f206d616b6520737572652074686520696e74656e64656420746f6b656e20706174682069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28746f3a20416464726573732c2069643a2055496e7436342c2073656e646572506174684964656e7469666965723a20537472696e672c207265636569766572506174684964656e7469666965723a20537472696e6729207b0a0a202020202f2f20546865204e4654207265736f7572636520746f206265207472616e736665727265640a202020206c65742074656d704e46543a20407b4e6f6e46756e6769626c65546f6b656e2e4e46547d0a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020206c65742073746f7261676550617468203d2053746f7261676550617468286964656e7469666965723a2073656e646572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e73747275637420612073746f7261676520706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207369676e65722773204e465420636f6c6c656374696f6e0a20202020202020206c6574207769746864726177526566203d207369676e65722e73746f726167652e626f72726f773c61757468284e6f6e46756e6769626c65546f6b656e2e57697468647261772920267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a2020202020202020202020202020202066726f6d3a2073746f72616765506174680a20202020202020202020202029203f3f2070616e696328224163636f756e7420646f6573206e6f742073746f7265206120636f6c6c656374696f6e206f626a6563742061742074686520737065636966696564207061746822290a0a202020202020202073656c662e74656d704e4654203c2d2077697468647261775265662e776974686472617728776974686472617749443a206964290a202020207d0a0a2020202065786563757465207b0a20202020202020206c6574207075626c696350617468203d205075626c696350617468286964656e7469666965723a207265636569766572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e7374727563742061207075626c696320706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f206765742074686520726563697069656e7473207075626c6963206163636f756e74206f626a6563740a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a0a20202020202020202f2f20626f72726f772061207075626c6963207265666572656e636520746f207468652072656365697665727320636f6c6c656374696f6e0a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e2e52656365697665727d3e287075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e74277320726563656976657222290a0a20202020202020202f2f204465706f73697420746865204e465420746f207468652072656365697665720a202020202020202072656365697665725265662e6465706f73697428746f6b656e3a203c2d73656c662e74656d704e4654290a202020207d0a7df8a8af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227d9e7b2276616c7565223a223130222c2274797065223a2255496e743634227daa7b2276616c7565223a22666c6f77546f6b656e5661756c74222c2274797065223a22537472696e67227dad7b2276616c7565223a22666c6f77546f6b656e5265636569766572222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f907f0f907ecb906ff696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a0a2f2f2f2043616e207061737320696e20616e792073746f72616765207061746820616e64207265636569766572207061746820696e7374656164206f66206a757374207468652064656661756c742e0a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e642061732077656c6c20746865206361706162696c69747920796f752077616e7420746f2073656e6420697420746f2e0a2f2f2f0a2f2f2f20416e7920746f6b656e20706174682063616e2062652070617373656420617320616e20617267756d656e7420686572652c20736f2077616c6c6574732073686f756c640a2f2f2f2073686f756c6420636865636b20617267756d656e742076616c75657320746f206d616b6520737572652074686520696e74656e64656420746f6b656e20706174682069732070617373656420696e0a2f2f2f0a7472616e73616374696f6e28746f3a20416464726573732c2069643a2055496e7436342c2073656e646572506174684964656e7469666965723a20537472696e672c207265636569766572506174684964656e7469666965723a20537472696e6729207b0a0a202020202f2f20546865204e4654207265736f7572636520746f206265207472616e736665727265640a202020206c65742074656d704e46543a20407b4e6f6e46756e6769626c65546f6b656e2e4e46547d0a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020206c65742073746f7261676550617468203d2053746f7261676550617468286964656e7469666965723a2073656e646572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e73747275637420612073746f7261676520706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207369676e65722773204e465420636f6c6c656374696f6e0a20202020202020206c6574207769746864726177526566203d207369676e65722e73746f726167652e626f72726f773c61757468284e6f6e46756e6769626c65546f6b656e2e57697468647261772920267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a2020202020202020202020202020202066726f6d3a2073746f72616765506174680a20202020202020202020202029203f3f2070616e696328224163636f756e7420646f6573206e6f742073746f7265206120636f6c6c656374696f6e206f626a6563742061742074686520737065636966696564207061746822290a0a202020202020202073656c662e74656d704e4654203c2d2077697468647261775265662e776974686472617728776974686472617749443a206964290a202020207d0a0a2020202065786563757465207b0a20202020202020206c6574207075626c696350617468203d205075626c696350617468286964656e7469666965723a207265636569766572506174684964656e746966696572290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420636f6e7374727563742061207075626c696320706174682066726f6d207468652070726f76696465642070617468206964656e74696669657220737472696e6722290a0a20202020202020202f2f206765742074686520726563697069656e7473207075626c6963206163636f756e74206f626a6563740a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a0a20202020202020202f2f20626f72726f772061207075626c6963207265666572656e636520746f207468652072656365697665727320636f6c6c656374696f6e0a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e2e52656365697665727d3e287075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e74277320726563656976657222290a0a20202020202020202f2f204465706f73697420746865204e465420746f207468652072656365697665720a202020202020202072656365697665725265662e6465706f73697428746f6b656e3a203c2d73656c662e74656d704e4654290a202020207d0a7df8a8af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227d9e7b2276616c7565223a223130222c2274797065223a2255496e743634227daa7b2276616c7565223a22666c6f77546f6b656e5661756c74222c2274797065223a22537472696e67227dad7b2276616c7565223a22666c6f77546f6b656e5265636569766572222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02db0518029ca76e6f2d8ec1517768b1d395523e87d11a4297197f98b53dc9cc2d2cb2cd6408a35f08b4f9b13e6e6b44d5325eb78a7a1eebb0e790ee285bdd13655472616e73666572204e46542077697468205061746873000401526563697069656e740000416464726573730003014e465420494420746f205472616e7366000155496e74363400030453656e2e20436f6c6c20506174682049640002045265632e20436f6c6c20506174682049640003",
"hash": "db0518029ca76e6f2d8ec1517768b1d395523e87d11a4297197f98b53dc9cc2d"
},
{
"title": "NFT.03 - Transfer NFT with Address",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import NonFungibleToken from 0x631e88ae7f1d7c20\nimport MetadataViews from 0x631e88ae7f1d7c20\n\n/// Can pass in any contract address and name\n/// This lets you choose the token you want to send because\n/// the transaction gets the metadata from the provided contract.\n///\ntransaction(to: Address, id: UInt64, contractAddress: Address, contractName: String) {\n\n // The NFT resource to be transferred\n let tempNFT: @{NonFungibleToken.NFT}\n\n // NFTCollectionData struct to get paths from\n let collectionData: MetadataViews.NFTCollectionData\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n // Borrow a reference to the nft contract deployed to the passed account\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{NonFungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the non-fungible token contract\")\n\n // Use that reference to retrieve the NFTCollectionData view \n self.collectionData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?\n ?? panic(\"Could not resolve the NFTCollectionData view for the given non-fungible token contract\")\n\n\n // borrow a reference to the signer's NFT collection\n let withdrawRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>(\n from: self.collectionData.storagePath\n ) ?? panic(\"Account does not store a collection object at the specified path\")\n\n self.tempNFT <- withdrawRef.withdraw(withdrawID: id)\n }\n\n execute {\n // get the recipients public account object\n let recipient = getAccount(to)\n\n // borrow a public reference to the receivers collection\n let receiverRef = recipient.capabilities.borrow<&{NonFungibleToken.Receiver}>(self.collectionData.publicPath)\n ?? panic(\"Could not borrow reference to the recipient's receiver\")\n\n // Deposit the NFT to the receiver\n receiverRef.deposit(token: <-self.tempNFT)\n }\n}",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "10",
"type": "UInt64"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "TopShot",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import NonFungibleToken from 0x631e88ae7f1d7c20\nimport MetadataViews from 0x631e88ae7f1d7c20\n\n/// Can pass in any contract address and name\n/// This lets you choose the token you want to send because\n/// the transaction gets the metadata from the provided contract.\n///\ntransaction(to: Address, id: UInt64, contractAddress: Address, contractName: String) {\n\n // The NFT resource to be transferred\n let tempNFT: @{NonFungibleToken.NFT}\n\n // NFTCollectionData struct to get paths from\n let collectionData: MetadataViews.NFTCollectionData\n\n prepare(signer: auth(BorrowValue) &Account) {\n\n // Borrow a reference to the nft contract deployed to the passed account\n let resolverRef = getAccount(contractAddress)\n .contracts.borrow<&{NonFungibleToken}>(name: contractName)\n ?? panic(\"Could not borrow a reference to the non-fungible token contract\")\n\n // Use that reference to retrieve the NFTCollectionData view \n self.collectionData = resolverRef.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?\n ?? panic(\"Could not resolve the NFTCollectionData view for the given non-fungible token contract\")\n\n\n // borrow a reference to the signer's NFT collection\n let withdrawRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>(\n from: self.collectionData.storagePath\n ) ?? panic(\"Account does not store a collection object at the specified path\")\n\n self.tempNFT <- withdrawRef.withdraw(withdrawID: id)\n }\n\n execute {\n // get the recipients public account object\n let recipient = getAccount(to)\n\n // borrow a public reference to the receivers collection\n let receiverRef = recipient.capabilities.borrow<&{NonFungibleToken.Receiver}>(self.collectionData.publicPath)\n ?? panic(\"Could not borrow reference to the recipient's receiver\")\n\n // Deposit the NFT to the receiver\n receiverRef.deposit(token: <-self.tempNFT)\n }\n}",
"arguments": [
{
"type": "Address",
"value": "0x8c5303eaa26202d6"
},
{
"value": "10",
"type": "UInt64"
},
{
"value": "0x8c5303eaa26202d6",
"type": "Address"
},
{
"value": "TopShot",
"type": "String"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90921b90839696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a696d706f7274204d6574616461746156696577732066726f6d203078363331653838616537663164376332300a0a2f2f2f2043616e207061737320696e20616e7920636f6e7472616374206164647265737320616e64206e616d650a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e6420626563617573650a2f2f2f20746865207472616e73616374696f6e206765747320746865206d657461646174612066726f6d207468652070726f766964656420636f6e74726163742e0a2f2f2f0a7472616e73616374696f6e28746f3a20416464726573732c2069643a2055496e7436342c20636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a202020202f2f20546865204e4654207265736f7572636520746f206265207472616e736665727265640a202020206c65742074656d704e46543a20407b4e6f6e46756e6769626c65546f6b656e2e4e46547d0a0a202020202f2f204e4654436f6c6c656374696f6e446174612073747275637420746f206765742070617468732066726f6d0a202020206c657420636f6c6c656374696f6e446174613a204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174610a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865206e667420636f6e7472616374206465706c6f79656420746f2074686520706173736564206163636f756e740a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f20746865206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f20726574726965766520746865204e4654436f6c6c656374696f6e446174612076696577200a202020202020202073656c662e636f6c6c656374696f6e44617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c4d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613e28292920617321204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c766520746865204e4654436f6c6c656374696f6e44617461207669657720666f722074686520676976656e206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207369676e65722773204e465420636f6c6c656374696f6e0a20202020202020206c6574207769746864726177526566203d207369676e65722e73746f726167652e626f72726f773c61757468284e6f6e46756e6769626c65546f6b656e2e57697468647261772920267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a2020202020202020202020202020202066726f6d3a2073656c662e636f6c6c656374696f6e446174612e73746f72616765506174680a20202020202020202020202029203f3f2070616e696328224163636f756e7420646f6573206e6f742073746f7265206120636f6c6c656374696f6e206f626a6563742061742074686520737065636966696564207061746822290a0a202020202020202073656c662e74656d704e4654203c2d2077697468647261775265662e776974686472617728776974686472617749443a206964290a202020207d0a0a2020202065786563757465207b0a20202020202020202f2f206765742074686520726563697069656e7473207075626c6963206163636f756e74206f626a6563740a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a0a20202020202020202f2f20626f72726f772061207075626c6963207265666572656e636520746f207468652072656365697665727320636f6c6c656374696f6e0a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e2e52656365697665727d3e2873656c662e636f6c6c656374696f6e446174612e7075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e74277320726563656976657222290a0a20202020202020202f2f204465706f73697420746865204e465420746f207468652072656365697665720a202020202020202072656365697665725265662e6465706f73697428746f6b656e3a203c2d73656c662e74656d704e4654290a202020207d0a7df8a3af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227d9e7b2276616c7565223a223130222c2274797065223a2255496e743634227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227da37b2276616c7565223a22546f7053686f74222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90925f90921b90839696d706f7274204e6f6e46756e6769626c65546f6b656e2066726f6d203078363331653838616537663164376332300a696d706f7274204d6574616461746156696577732066726f6d203078363331653838616537663164376332300a0a2f2f2f2043616e207061737320696e20616e7920636f6e7472616374206164647265737320616e64206e616d650a2f2f2f2054686973206c65747320796f752063686f6f73652074686520746f6b656e20796f752077616e7420746f2073656e6420626563617573650a2f2f2f20746865207472616e73616374696f6e206765747320746865206d657461646174612066726f6d207468652070726f766964656420636f6e74726163742e0a2f2f2f0a7472616e73616374696f6e28746f3a20416464726573732c2069643a2055496e7436342c20636f6e7472616374416464726573733a20416464726573732c20636f6e74726163744e616d653a20537472696e6729207b0a0a202020202f2f20546865204e4654207265736f7572636520746f206265207472616e736665727265640a202020206c65742074656d704e46543a20407b4e6f6e46756e6769626c65546f6b656e2e4e46547d0a0a202020202f2f204e4654436f6c6c656374696f6e446174612073747275637420746f206765742070617468732066726f6d0a202020206c657420636f6c6c656374696f6e446174613a204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174610a0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652920264163636f756e7429207b0a0a20202020202020202f2f20426f72726f772061207265666572656e636520746f20746865206e667420636f6e7472616374206465706c6f79656420746f2074686520706173736564206163636f756e740a20202020202020206c6574207265736f6c766572526566203d206765744163636f756e7428636f6e747261637441646472657373290a2020202020202020202020202e636f6e7472616374732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e7d3e286e616d653a20636f6e74726163744e616d65290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f20746865206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a20202020202020202f2f205573652074686174207265666572656e636520746f20726574726965766520746865204e4654436f6c6c656374696f6e446174612076696577200a202020202020202073656c662e636f6c6c656374696f6e44617461203d207265736f6c7665725265662e7265736f6c7665436f6e747261637456696577287265736f75726365547970653a206e696c2c2076696577547970653a20547970653c4d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613e28292920617321204d6574616461746156696577732e4e4654436f6c6c656374696f6e446174613f0a2020202020202020202020203f3f2070616e69632822436f756c64206e6f74207265736f6c766520746865204e4654436f6c6c656374696f6e44617461207669657720666f722074686520676976656e206e6f6e2d66756e6769626c6520746f6b656e20636f6e747261637422290a0a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207369676e65722773204e465420636f6c6c656374696f6e0a20202020202020206c6574207769746864726177526566203d207369676e65722e73746f726167652e626f72726f773c61757468284e6f6e46756e6769626c65546f6b656e2e57697468647261772920267b4e6f6e46756e6769626c65546f6b656e2e436f6c6c656374696f6e7d3e280a2020202020202020202020202020202066726f6d3a2073656c662e636f6c6c656374696f6e446174612e73746f72616765506174680a20202020202020202020202029203f3f2070616e696328224163636f756e7420646f6573206e6f742073746f7265206120636f6c6c656374696f6e206f626a6563742061742074686520737065636966696564207061746822290a0a202020202020202073656c662e74656d704e4654203c2d2077697468647261775265662e776974686472617728776974686472617749443a206964290a202020207d0a0a2020202065786563757465207b0a20202020202020202f2f206765742074686520726563697069656e7473207075626c6963206163636f756e74206f626a6563740a20202020202020206c657420726563697069656e74203d206765744163636f756e7428746f290a0a20202020202020202f2f20626f72726f772061207075626c6963207265666572656e636520746f207468652072656365697665727320636f6c6c656374696f6e0a20202020202020206c6574207265636569766572526566203d20726563697069656e742e6361706162696c69746965732e626f72726f773c267b4e6f6e46756e6769626c65546f6b656e2e52656365697665727d3e2873656c662e636f6c6c656374696f6e446174612e7075626c696350617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207265666572656e636520746f2074686520726563697069656e74277320726563656976657222290a0a20202020202020202f2f204465706f73697420746865204e465420746f207468652072656365697665720a202020202020202072656365697665725265662e6465706f73697428746f6b656e3a203c2d73656c662e74656d704e4654290a202020207d0a7df8a3af7b2274797065223a2241646472657373222c2276616c7565223a22307838633533303365616132363230326436227d9e7b2276616c7565223a223130222c2274797065223a2255496e743634227daf7b2276616c7565223a22307838633533303365616132363230326436222c2274797065223a2241646472657373227da37b2276616c7565223a22546f7053686f74222c2274797065223a22537472696e67227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02e4b837ce4d30be9bc74768085a0b43ba4d5edb3bed9c23c18b6a4de1024d459b91fd4533a93f55a756484958e5409b9666c85e4191e9ba6f5fb3587a973d4eb55472616e73666572204e465420776974682041646472657373000401526563697069656e740000416464726573730003014e465420494420746f205472616e7366000155496e7436340003014e465420436f6e747261637420416464720002416464726573730003044e465420436f6e7472616374204e616d650003",
"hash": "e4b837ce4d30be9bc74768085a0b43ba4d5edb3bed9c23c18b6a4de1024d459b"
},
{
"title": "TH.01 - Withdraw Unlocked FLOW",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport LockedTokens from 0x95e019a17d0e23d7\n\ntransaction(amount: UFix64) {\n\n let holderRef: auth(LockedTokens.TokenOperations, FungibleToken.Withdraw) &LockedTokens.TokenHolder\n let vaultRef: auth(FungibleToken.Withdraw) &FlowToken.Vault\n\n prepare(acct: auth(BorrowValue) &Account) {\n self.holderRef = acct.storage.borrow<auth(LockedTokens.TokenOperations, FungibleToken.Withdraw) &LockedTokens.TokenHolder>(from: LockedTokens.TokenHolderStoragePath)\n ?? panic(\"The primary user account does not have an associated locked account\")\n\n self.vaultRef = acct.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)\n ?? panic(\"Could not borrow flow token vault ref\")\n }\n\n execute {\n self.vaultRef.deposit(from: <-self.holderRef.withdraw(amount: amount))\n }\n}\n",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport LockedTokens from 0x95e019a17d0e23d7\n\ntransaction(amount: UFix64) {\n\n let holderRef: auth(LockedTokens.TokenOperations, FungibleToken.Withdraw) &LockedTokens.TokenHolder\n let vaultRef: auth(FungibleToken.Withdraw) &FlowToken.Vault\n\n prepare(acct: auth(BorrowValue) &Account) {\n self.holderRef = acct.storage.borrow<auth(LockedTokens.TokenOperations, FungibleToken.Withdraw) &LockedTokens.TokenHolder>(from: LockedTokens.TokenHolderStoragePath)\n ?? panic(\"The primary user account does not have an associated locked account\")\n\n self.vaultRef = acct.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)\n ?? panic(\"Could not borrow flow token vault ref\")\n }\n\n execute {\n self.vaultRef.deposit(from: <-self.holderRef.withdraw(amount: amount))\n }\n}\n",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f9041fb903aa696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a0a7472616e73616374696f6e28616d6f756e743a2055466978363429207b0a0a202020206c657420686f6c6465725265663a2061757468284c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732c2046756e6769626c65546f6b656e2e57697468647261772920264c6f636b6564546f6b656e732e546f6b656e486f6c6465720a202020206c6574207661756c745265663a20617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c740a0a202020207072657061726528616363743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e686f6c646572526566203d20616363742e73746f726167652e626f72726f773c61757468284c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732c2046756e6769626c65546f6b656e2e57697468647261772920264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e2866726f6d3a204c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f7261676550617468290a2020202020202020202020203f3f2070616e69632822546865207072696d6172792075736572206163636f756e7420646f6573206e6f74206861766520616e206173736f636961746564206c6f636b6564206163636f756e7422290a0a202020202020202073656c662e7661756c74526566203d20616363742e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e2866726f6d3a202f73746f726167652f666c6f77546f6b656e5661756c74290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f7720666c6f7720746f6b656e207661756c742072656622290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e7661756c745265662e6465706f7369742866726f6d3a203c2d73656c662e686f6c6465725265662e776974686472617728616d6f756e743a20616d6f756e7429290a202020207d0a7d0af1b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90423f9041fb903aa696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a0a7472616e73616374696f6e28616d6f756e743a2055466978363429207b0a0a202020206c657420686f6c6465725265663a2061757468284c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732c2046756e6769626c65546f6b656e2e57697468647261772920264c6f636b6564546f6b656e732e546f6b656e486f6c6465720a202020206c6574207661756c745265663a20617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c740a0a202020207072657061726528616363743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e686f6c646572526566203d20616363742e73746f726167652e626f72726f773c61757468284c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732c2046756e6769626c65546f6b656e2e57697468647261772920264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e2866726f6d3a204c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f7261676550617468290a2020202020202020202020203f3f2070616e69632822546865207072696d6172792075736572206163636f756e7420646f6573206e6f74206861766520616e206173736f636961746564206c6f636b6564206163636f756e7422290a0a202020202020202073656c662e7661756c74526566203d20616363742e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e2866726f6d3a202f73746f726167652f666c6f77546f6b656e5661756c74290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f7720666c6f7720746f6b656e207661756c742072656622290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e7661756c745265662e6465706f7369742866726f6d3a203c2d73656c662e686f6c6465725265662e776974686472617728616d6f756e743a20616d6f756e7429290a202020207d0a7d0af1b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02094798e93daeacaa9ff262486a3683ec5a5e2204407e7d00bc3416fbf3efa3b14a830e6f93f74179a99e17c7ae762980c7fdc428bc949767529be2f071ac52b9576974686472617720556e6c6f636b656420464c4f57000101416d6f756e7400005546697836340003",
"hash": "094798e93daeacaa9ff262486a3683ec5a5e2204407e7d00bc3416fbf3efa3b1"
},
{
"title": "TH.02 - Deposit Unlocked FLOW",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport LockedTokens from 0x95e019a17d0e23d7\n\ntransaction(amount: UFix64) {\n\n let holderRef: &LockedTokens.TokenHolder\n let vaultRef: auth(FungibleToken.Withdraw) &FlowToken.Vault\n\n prepare(acct: auth(BorrowValue) &Account) {\n self.holderRef = acct.storage.borrow<&LockedTokens.TokenHolder>(from: LockedTokens.TokenHolderStoragePath)\n ?? panic(\"The primary user account does not have an associated locked account\")\n\n self.vaultRef = acct.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)\n ?? panic(\"Could not borrow flow token vault ref\")\n }\n\n execute {\n self.holderRef.deposit(from: <-self.vaultRef.withdraw(amount: amount))\n }\n}\n",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport LockedTokens from 0x95e019a17d0e23d7\n\ntransaction(amount: UFix64) {\n\n let holderRef: &LockedTokens.TokenHolder\n let vaultRef: auth(FungibleToken.Withdraw) &FlowToken.Vault\n\n prepare(acct: auth(BorrowValue) &Account) {\n self.holderRef = acct.storage.borrow<&LockedTokens.TokenHolder>(from: LockedTokens.TokenHolderStoragePath)\n ?? panic(\"The primary user account does not have an associated locked account\")\n\n self.vaultRef = acct.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)\n ?? panic(\"Could not borrow flow token vault ref\")\n }\n\n execute {\n self.holderRef.deposit(from: <-self.vaultRef.withdraw(amount: amount))\n }\n}\n",
"arguments": [
{
"type": "UFix64",
"value": "92233720368.54775808"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f903a9b90334696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a0a7472616e73616374696f6e28616d6f756e743a2055466978363429207b0a0a202020206c657420686f6c6465725265663a20264c6f636b6564546f6b656e732e546f6b656e486f6c6465720a202020206c6574207661756c745265663a20617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c740a0a202020207072657061726528616363743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e686f6c646572526566203d20616363742e73746f726167652e626f72726f773c264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e2866726f6d3a204c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f7261676550617468290a2020202020202020202020203f3f2070616e69632822546865207072696d6172792075736572206163636f756e7420646f6573206e6f74206861766520616e206173736f636961746564206c6f636b6564206163636f756e7422290a0a202020202020202073656c662e7661756c74526566203d20616363742e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e2866726f6d3a202f73746f726167652f666c6f77546f6b656e5661756c74290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f7720666c6f7720746f6b656e207661756c742072656622290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e686f6c6465725265662e6465706f7369742866726f6d3a203c2d73656c662e7661756c745265662e776974686472617728616d6f756e743a20616d6f756e7429290a202020207d0a7d0af1b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f903adf903a9b90334696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a0a7472616e73616374696f6e28616d6f756e743a2055466978363429207b0a0a202020206c657420686f6c6465725265663a20264c6f636b6564546f6b656e732e546f6b656e486f6c6465720a202020206c6574207661756c745265663a20617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c740a0a202020207072657061726528616363743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e686f6c646572526566203d20616363742e73746f726167652e626f72726f773c264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e2866726f6d3a204c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f7261676550617468290a2020202020202020202020203f3f2070616e69632822546865207072696d6172792075736572206163636f756e7420646f6573206e6f74206861766520616e206173736f636961746564206c6f636b6564206163636f756e7422290a0a202020202020202073656c662e7661756c74526566203d20616363742e73746f726167652e626f72726f773c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e2866726f6d3a202f73746f726167652f666c6f77546f6b656e5661756c74290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f7720666c6f7720746f6b656e207661756c742072656622290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e686f6c6465725265662e6465706f7369742866726f6d3a203c2d73656c662e7661756c745265662e776974686472617728616d6f756e743a20616d6f756e7429290a202020207d0a7d0af1b07b2274797065223a22554669783634222c2276616c7565223a2239323233333732303336382e3534373735383038227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "0217ffcd60667893674d8d4044bdd8232959dc8b694df1dd88d1b9c5443352f253038382a947fa96bf2f4dfe5aa9b4b2abee1ef0975955175e80cf911c3edf4b614465706f73697420556e6c6f636b656420464c4f57000101416d6f756e7400005546697836340003",
"hash": "17ffcd60667893674d8d4044bdd8232959dc8b694df1dd88d1b9c5443352f253"
},
{
"title": "SCO.01 - Setup Staking Collection",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport FlowIDTableStaking from 0x9eca2b38b18b5dfe\nimport LockedTokens from 0x95e019a17d0e23d7\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// This transaction sets up an account to use a staking collection\n/// It will work regardless of whether they have a regular account, a two-account locked tokens setup,\n/// or staking objects stored in the unlocked account\n\ntransaction {\n prepare(signer: auth(BorrowValue, Storage, Capabilities) &Account) {\n\n // If there isn't already a staking collection\n if signer.storage.borrow<&FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath) == nil {\n\n // Create private capabilities for the token holder and unlocked vault\n let lockedHolder = signer.capabilities.storage.issue<auth(FungibleToken.Withdraw, LockedTokens.TokenOperations) &LockedTokens.TokenHolder>(LockedTokens.TokenHolderStoragePath)!\n let flowToken = signer.capabilities.storage.issue<auth(FungibleToken.Withdraw) &FlowToken.Vault>(/storage/flowTokenVault)!\n\n // Create a new Staking Collection and put it in storage\n if lockedHolder.check() {\n signer.storage.save(\n <- FlowStakingCollection.createStakingCollection(\n unlockedVault: flowToken,\n tokenHolder: lockedHolder\n ),\n to: FlowStakingCollection.StakingCollectionStoragePath\n )\n } else {\n signer.storage.save(\n <- FlowStakingCollection.createStakingCollection(\n unlockedVault: flowToken,\n tokenHolder: nil\n ),\n to: FlowStakingCollection.StakingCollectionStoragePath\n )\n }\n\n // Publish a capability to the created staking collection.\n let stakingCollectionCap = signer.capabilities.storage.issue<&FlowStakingCollection.StakingCollection>(\n FlowStakingCollection.StakingCollectionStoragePath\n )\n\n signer.capabilities.publish(\n stakingCollectionCap,\n at: FlowStakingCollection.StakingCollectionPublicPath\n )\n }\n\n // borrow a reference to the staking collection\n let collectionRef = signer.storage.borrow<&FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow staking collection reference\")\n\n // If there is a node staker object in the account, put it in the staking collection\n if signer.storage.borrow<&FlowIDTableStaking.NodeStaker>(from: FlowIDTableStaking.NodeStakerStoragePath) != nil {\n let node <- signer.storage.load<@FlowIDTableStaking.NodeStaker>(from: FlowIDTableStaking.NodeStakerStoragePath)!\n collectionRef.addNodeObject(<-node, machineAccountInfo: nil)\n }\n\n // If there is a delegator object in the account, put it in the staking collection\n if signer.storage.borrow<&FlowIDTableStaking.NodeDelegator>(from: FlowIDTableStaking.DelegatorStoragePath) != nil {\n let delegator <- signer.storage.load<@FlowIDTableStaking.NodeDelegator>(from: FlowIDTableStaking.DelegatorStoragePath)!\n collectionRef.addDelegatorObject(<-delegator)\n }\n }\n}\n",
"arguments": [],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FungibleToken from 0x9a0766d93b6608b7\nimport FlowToken from 0x7e60df042a9c0868\nimport FlowIDTableStaking from 0x9eca2b38b18b5dfe\nimport LockedTokens from 0x95e019a17d0e23d7\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// This transaction sets up an account to use a staking collection\n/// It will work regardless of whether they have a regular account, a two-account locked tokens setup,\n/// or staking objects stored in the unlocked account\n\ntransaction {\n prepare(signer: auth(BorrowValue, Storage, Capabilities) &Account) {\n\n // If there isn't already a staking collection\n if signer.storage.borrow<&FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath) == nil {\n\n // Create private capabilities for the token holder and unlocked vault\n let lockedHolder = signer.capabilities.storage.issue<auth(FungibleToken.Withdraw, LockedTokens.TokenOperations) &LockedTokens.TokenHolder>(LockedTokens.TokenHolderStoragePath)!\n let flowToken = signer.capabilities.storage.issue<auth(FungibleToken.Withdraw) &FlowToken.Vault>(/storage/flowTokenVault)!\n\n // Create a new Staking Collection and put it in storage\n if lockedHolder.check() {\n signer.storage.save(\n <- FlowStakingCollection.createStakingCollection(\n unlockedVault: flowToken,\n tokenHolder: lockedHolder\n ),\n to: FlowStakingCollection.StakingCollectionStoragePath\n )\n } else {\n signer.storage.save(\n <- FlowStakingCollection.createStakingCollection(\n unlockedVault: flowToken,\n tokenHolder: nil\n ),\n to: FlowStakingCollection.StakingCollectionStoragePath\n )\n }\n\n // Publish a capability to the created staking collection.\n let stakingCollectionCap = signer.capabilities.storage.issue<&FlowStakingCollection.StakingCollection>(\n FlowStakingCollection.StakingCollectionStoragePath\n )\n\n signer.capabilities.publish(\n stakingCollectionCap,\n at: FlowStakingCollection.StakingCollectionPublicPath\n )\n }\n\n // borrow a reference to the staking collection\n let collectionRef = signer.storage.borrow<&FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow staking collection reference\")\n\n // If there is a node staker object in the account, put it in the staking collection\n if signer.storage.borrow<&FlowIDTableStaking.NodeStaker>(from: FlowIDTableStaking.NodeStakerStoragePath) != nil {\n let node <- signer.storage.load<@FlowIDTableStaking.NodeStaker>(from: FlowIDTableStaking.NodeStakerStoragePath)!\n collectionRef.addNodeObject(<-node, machineAccountInfo: nil)\n }\n\n // If there is a delegator object in the account, put it in the staking collection\n if signer.storage.borrow<&FlowIDTableStaking.NodeDelegator>(from: FlowIDTableStaking.DelegatorStoragePath) != nil {\n let delegator <- signer.storage.load<@FlowIDTableStaking.NodeDelegator>(from: FlowIDTableStaking.DelegatorStoragePath)!\n collectionRef.addDelegatorObject(<-delegator)\n }\n }\n}\n",
"arguments": [],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90df1b90dad696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f727420466c6f7749445461626c655374616b696e672066726f6d203078396563613262333862313862356466650a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2054686973207472616e73616374696f6e207365747320757020616e206163636f756e7420746f207573652061207374616b696e6720636f6c6c656374696f6e0a2f2f2f2049742077696c6c20776f726b207265676172646c657373206f66207768657468657220746865792068617665206120726567756c6172206163636f756e742c20612074776f2d6163636f756e74206c6f636b656420746f6b656e732073657475702c0a2f2f2f206f72207374616b696e67206f626a656374732073746f72656420696e2074686520756e6c6f636b6564206163636f756e740a0a7472616e73616374696f6e207b0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652c2053746f726167652c204361706162696c69746965732920264163636f756e7429207b0a0a20202020202020202f2f2049662074686572652069736e277420616c72656164792061207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f726167655061746829203d3d206e696c207b0a0a2020202020202020202020202f2f204372656174652070726976617465206361706162696c697469657320666f722074686520746f6b656e20686f6c64657220616e6420756e6c6f636b6564207661756c740a2020202020202020202020206c6574206c6f636b6564486f6c646572203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c617574682846756e6769626c65546f6b656e2e57697468647261772c204c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732920264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e284c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f726167655061746829210a2020202020202020202020206c657420666c6f77546f6b656e203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e282f73746f726167652f666c6f77546f6b656e5661756c7429210a0a2020202020202020202020202f2f204372656174652061206e6577205374616b696e6720436f6c6c656374696f6e20616e642070757420697420696e2073746f726167650a2020202020202020202020206966206c6f636b6564486f6c6465722e636865636b2829207b0a202020202020202020202020202020207369676e65722e73746f726167652e73617665280a20202020202020202020202020202020202020203c2d20466c6f775374616b696e67436f6c6c656374696f6e2e6372656174655374616b696e67436f6c6c656374696f6e280a202020202020202020202020202020202020202020202020756e6c6f636b65645661756c743a20666c6f77546f6b656e2c0a202020202020202020202020202020202020202020202020746f6b656e486f6c6465723a206c6f636b6564486f6c6465720a2020202020202020202020202020202020202020292c0a2020202020202020202020202020202020202020746f3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a20202020202020202020202020202020290a2020202020202020202020207d20656c7365207b0a202020202020202020202020202020207369676e65722e73746f726167652e73617665280a20202020202020202020202020202020202020203c2d20466c6f775374616b696e67436f6c6c656374696f6e2e6372656174655374616b696e67436f6c6c656374696f6e280a202020202020202020202020202020202020202020202020756e6c6f636b65645661756c743a20666c6f77546f6b656e2c0a202020202020202020202020202020202020202020202020746f6b656e486f6c6465723a206e696c0a2020202020202020202020202020202020202020292c0a2020202020202020202020202020202020202020746f3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a20202020202020202020202020202020290a2020202020202020202020207d0a0a2020202020202020202020202f2f205075626c6973682061206361706162696c69747920746f207468652063726561746564207374616b696e6720636f6c6c656374696f6e2e0a2020202020202020202020206c6574207374616b696e67436f6c6c656374696f6e436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e280a20202020202020202020202020202020466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a202020202020202020202020290a0a2020202020202020202020207369676e65722e6361706162696c69746965732e7075626c697368280a202020202020202020202020202020207374616b696e67436f6c6c656374696f6e4361702c0a2020202020202020202020202020202061743a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e5075626c6963506174680a202020202020202020202020290a20202020202020207d0a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206c657420636f6c6c656374696f6e526566203d207369676e65722e73746f726167652e626f72726f773c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207374616b696e6720636f6c6c656374696f6e207265666572656e636522290a0a20202020202020202f2f2049662074686572652069732061206e6f6465207374616b6572206f626a65637420696e20746865206163636f756e742c2070757420697420696e20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f7749445461626c655374616b696e672e4e6f64655374616b65723e2866726f6d3a20466c6f7749445461626c655374616b696e672e4e6f64655374616b657253746f72616765506174682920213d206e696c207b0a2020202020202020202020206c6574206e6f6465203c2d207369676e65722e73746f726167652e6c6f61643c40466c6f7749445461626c655374616b696e672e4e6f64655374616b65723e2866726f6d3a20466c6f7749445461626c655374616b696e672e4e6f64655374616b657253746f726167655061746829210a202020202020202020202020636f6c6c656374696f6e5265662e6164644e6f64654f626a656374283c2d6e6f64652c206d616368696e654163636f756e74496e666f3a206e696c290a20202020202020207d0a0a20202020202020202f2f20496620746865726520697320612064656c656761746f72206f626a65637420696e20746865206163636f756e742c2070757420697420696e20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f7749445461626c655374616b696e672e4e6f646544656c656761746f723e2866726f6d3a20466c6f7749445461626c655374616b696e672e44656c656761746f7253746f72616765506174682920213d206e696c207b0a2020202020202020202020206c65742064656c656761746f72203c2d207369676e65722e73746f726167652e6c6f61643c40466c6f7749445461626c655374616b696e672e4e6f646544656c656761746f723e2866726f6d3a20466c6f7749445461626c655374616b696e672e44656c656761746f7253746f726167655061746829210a202020202020202020202020636f6c6c656374696f6e5265662e61646444656c656761746f724f626a656374283c2d64656c656761746f72290a20202020202020207d0a202020207d0a7d0ac0a0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90df5f90df1b90dad696d706f72742046756e6769626c65546f6b656e2066726f6d203078396130373636643933623636303862370a696d706f727420466c6f77546f6b656e2066726f6d203078376536306466303432613963303836380a696d706f727420466c6f7749445461626c655374616b696e672066726f6d203078396563613262333862313862356466650a696d706f7274204c6f636b6564546f6b656e732066726f6d203078393565303139613137643065323364370a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2054686973207472616e73616374696f6e207365747320757020616e206163636f756e7420746f207573652061207374616b696e6720636f6c6c656374696f6e0a2f2f2f2049742077696c6c20776f726b207265676172646c657373206f66207768657468657220746865792068617665206120726567756c6172206163636f756e742c20612074776f2d6163636f756e74206c6f636b656420746f6b656e732073657475702c0a2f2f2f206f72207374616b696e67206f626a656374732073746f72656420696e2074686520756e6c6f636b6564206163636f756e740a0a7472616e73616374696f6e207b0a2020202070726570617265287369676e65723a206175746828426f72726f7756616c75652c2053746f726167652c204361706162696c69746965732920264163636f756e7429207b0a0a20202020202020202f2f2049662074686572652069736e277420616c72656164792061207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f726167655061746829203d3d206e696c207b0a0a2020202020202020202020202f2f204372656174652070726976617465206361706162696c697469657320666f722074686520746f6b656e20686f6c64657220616e6420756e6c6f636b6564207661756c740a2020202020202020202020206c6574206c6f636b6564486f6c646572203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c617574682846756e6769626c65546f6b656e2e57697468647261772c204c6f636b6564546f6b656e732e546f6b656e4f7065726174696f6e732920264c6f636b6564546f6b656e732e546f6b656e486f6c6465723e284c6f636b6564546f6b656e732e546f6b656e486f6c64657253746f726167655061746829210a2020202020202020202020206c657420666c6f77546f6b656e203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c617574682846756e6769626c65546f6b656e2e5769746864726177292026466c6f77546f6b656e2e5661756c743e282f73746f726167652f666c6f77546f6b656e5661756c7429210a0a2020202020202020202020202f2f204372656174652061206e6577205374616b696e6720436f6c6c656374696f6e20616e642070757420697420696e2073746f726167650a2020202020202020202020206966206c6f636b6564486f6c6465722e636865636b2829207b0a202020202020202020202020202020207369676e65722e73746f726167652e73617665280a20202020202020202020202020202020202020203c2d20466c6f775374616b696e67436f6c6c656374696f6e2e6372656174655374616b696e67436f6c6c656374696f6e280a202020202020202020202020202020202020202020202020756e6c6f636b65645661756c743a20666c6f77546f6b656e2c0a202020202020202020202020202020202020202020202020746f6b656e486f6c6465723a206c6f636b6564486f6c6465720a2020202020202020202020202020202020202020292c0a2020202020202020202020202020202020202020746f3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a20202020202020202020202020202020290a2020202020202020202020207d20656c7365207b0a202020202020202020202020202020207369676e65722e73746f726167652e73617665280a20202020202020202020202020202020202020203c2d20466c6f775374616b696e67436f6c6c656374696f6e2e6372656174655374616b696e67436f6c6c656374696f6e280a202020202020202020202020202020202020202020202020756e6c6f636b65645661756c743a20666c6f77546f6b656e2c0a202020202020202020202020202020202020202020202020746f6b656e486f6c6465723a206e696c0a2020202020202020202020202020202020202020292c0a2020202020202020202020202020202020202020746f3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a20202020202020202020202020202020290a2020202020202020202020207d0a0a2020202020202020202020202f2f205075626c6973682061206361706162696c69747920746f207468652063726561746564207374616b696e6720636f6c6c656374696f6e2e0a2020202020202020202020206c6574207374616b696e67436f6c6c656374696f6e436170203d207369676e65722e6361706162696c69746965732e73746f726167652e69737375653c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e280a20202020202020202020202020202020466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f72616765506174680a202020202020202020202020290a0a2020202020202020202020207369676e65722e6361706162696c69746965732e7075626c697368280a202020202020202020202020202020207374616b696e67436f6c6c656374696f6e4361702c0a2020202020202020202020202020202061743a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e5075626c6963506174680a202020202020202020202020290a20202020202020207d0a0a20202020202020202f2f20626f72726f772061207265666572656e636520746f20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206c657420636f6c6c656374696f6e526566203d207369676e65722e73746f726167652e626f72726f773c26466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f77207374616b696e6720636f6c6c656374696f6e207265666572656e636522290a0a20202020202020202f2f2049662074686572652069732061206e6f6465207374616b6572206f626a65637420696e20746865206163636f756e742c2070757420697420696e20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f7749445461626c655374616b696e672e4e6f64655374616b65723e2866726f6d3a20466c6f7749445461626c655374616b696e672e4e6f64655374616b657253746f72616765506174682920213d206e696c207b0a2020202020202020202020206c6574206e6f6465203c2d207369676e65722e73746f726167652e6c6f61643c40466c6f7749445461626c655374616b696e672e4e6f64655374616b65723e2866726f6d3a20466c6f7749445461626c655374616b696e672e4e6f64655374616b657253746f726167655061746829210a202020202020202020202020636f6c6c656374696f6e5265662e6164644e6f64654f626a656374283c2d6e6f64652c206d616368696e654163636f756e74496e666f3a206e696c290a20202020202020207d0a0a20202020202020202f2f20496620746865726520697320612064656c656761746f72206f626a65637420696e20746865206163636f756e742c2070757420697420696e20746865207374616b696e6720636f6c6c656374696f6e0a20202020202020206966207369676e65722e73746f726167652e626f72726f773c26466c6f7749445461626c655374616b696e672e4e6f646544656c656761746f723e2866726f6d3a20466c6f7749445461626c655374616b696e672e44656c656761746f7253746f72616765506174682920213d206e696c207b0a2020202020202020202020206c65742064656c656761746f72203c2d207369676e65722e73746f726167652e6c6f61643c40466c6f7749445461626c655374616b696e672e4e6f646544656c656761746f723e2866726f6d3a20466c6f7749445461626c655374616b696e672e44656c656761746f7253746f726167655061746829210a202020202020202020202020636f6c6c656374696f6e5265662e61646444656c656761746f724f626a656374283c2d64656c656761746f72290a20202020202020207d0a202020207d0a7d0ac0a0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02861784e7ac135a9cfec90decdff2e53971a4d63135db77bcef3b273b710b181469f30decc15bd78107c631e200963398e8ddbc58bb61e577d223725f348fc2d95365747570205374616b696e6720436f6c6c656374696f6e0000",
"hash": "861784e7ac135a9cfec90decdff2e53971a4d63135db77bcef3b273b710b1814"
},
{
"title": "SCO.02 - Register Delegator",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Registers a delegator in the staking collection resource\n/// for the specified nodeID and the amount of tokens to commit\n\ntransaction(id: String, amount: UFix64) {\n \n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n }\n\n execute {\n self.stakingCollectionRef.registerDelegator(nodeID: id, amount: amount) \n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "92233720368.54775808",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Registers a delegator in the staking collection resource\n/// for the specified nodeID and the amount of tokens to commit\n\ntransaction(id: String, amount: UFix64) {\n \n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n }\n\n execute {\n self.stakingCollectionRef.registerDelegator(nodeID: id, amount: amount) \n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "92233720368.54775808",
"type": "UFix64"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90406b90332696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2052656769737465727320612064656c656761746f7220696e20746865207374616b696e6720636f6c6c656374696f6e207265736f757263650a2f2f2f20666f722074686520737065636966696564206e6f6465494420616e642074686520616d6f756e74206f6620746f6b656e7320746f20636f6d6d69740a0a7472616e73616374696f6e2869643a20537472696e672c20616d6f756e743a2055466978363429207b0a202020200a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e5265662e726567697374657244656c656761746f72286e6f646549443a2069642c20616d6f756e743a20616d6f756e74292020202020200a202020207d0a7d0af88fb85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227db07b2276616c7565223a2239323233333732303336382e3534373735383038222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f9040af90406b90332696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2052656769737465727320612064656c656761746f7220696e20746865207374616b696e6720636f6c6c656374696f6e207265736f757263650a2f2f2f20666f722074686520737065636966696564206e6f6465494420616e642074686520616d6f756e74206f6620746f6b656e7320746f20636f6d6d69740a0a7472616e73616374696f6e2869643a20537472696e672c20616d6f756e743a2055466978363429207b0a202020200a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a202020207d0a0a2020202065786563757465207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e5265662e726567697374657244656c656761746f72286e6f646549443a2069642c20616d6f756e743a20616d6f756e74292020202020200a202020207d0a7d0af88fb85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227db07b2276616c7565223a2239323233333732303336382e3534373735383038222c2274797065223a22554669783634227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02e093df9c425be9cdbee44bdbbd721f6aff523e41802a50cf0ff353873e9f94830a41e53ad3c9c1c16c8732dd8331b8ca66063617d433b01d4d09c4730044874452656769737465722044656c656761746f720002044e6f6465204944000001416d6f756e7400015546697836340003",
"hash": "e093df9c425be9cdbee44bdbbd721f6aff523e41802a50cf0ff353873e9f9483"
},
{
"title": "SCO.03 - Register Node",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import Crypto\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Registers a delegator in the staking collection resource\n/// for the specified node information and the amount of tokens to commit\n\ntransaction(id: String,\n role: UInt8,\n networkingAddress: String,\n networkingKey: String,\n stakingKey: String,\n amount: UFix64,\n machineAccountKey: String, \n machineAccountKeySignatureAlgorithm: UInt8, \n machineAccountKeyHashAlgorithm: UInt8) {\n\n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n\n if let machineAccount = self.stakingCollectionRef.registerNode(\n id: id,\n role: role,\n networkingAddress: networkingAddress,\n networkingKey: networkingKey,\n stakingKey: stakingKey,\n amount: amount,\n payer: account\n ) {\n let sigAlgo = SignatureAlgorithm(rawValue: machineAccountKeySignatureAlgorithm)\n ?? panic(\"Could not get a signature algorithm from the raw enum value provided\")\n\n let hashAlgo = HashAlgorithm(rawValue: machineAccountKeyHashAlgorithm)\n ?? panic(\"Could not get a hash algorithm from the raw enum value provided\")\n \n let publicKey = PublicKey(\n\t\t\t publicKey: machineAccountKey.decodeHex(),\n\t\t\t signatureAlgorithm: sigAlgo\n\t\t )\n machineAccount.keys.add(publicKey: publicKey, hashAlgorithm: hashAlgo, weight: 1000.0)\n }\n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "flow-node.test:3569",
"type": "String"
},
{
"value": "1348307bc77c688e80049de9d081aa09755da33e6997605fa059db2144fc85e560cbe6f7da8d74b453f5916618cb8fd392c2db856f3e78221dc68db1b1d914e4",
"type": "String"
},
{
"value": "9e9ae0d645fd5fd9050792e0b0daa82cc1686d9133afa0f81a784b375c42ae48567d1545e7a9e1965f2c1a32f73cf8575ebb7a967f6e4d104d2df78eb8be409135d12da0499b8a00771f642c1b9c49397f22b440439f036c3bdee82f5309dab3",
"type": "String"
},
{
"value": "92233720368.54775808",
"type": "UFix64"
},
{
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164",
"type": "String"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import Crypto\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Registers a delegator in the staking collection resource\n/// for the specified node information and the amount of tokens to commit\n\ntransaction(id: String,\n role: UInt8,\n networkingAddress: String,\n networkingKey: String,\n stakingKey: String,\n amount: UFix64,\n machineAccountKey: String, \n machineAccountKeySignatureAlgorithm: UInt8, \n machineAccountKeyHashAlgorithm: UInt8) {\n\n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n\n if let machineAccount = self.stakingCollectionRef.registerNode(\n id: id,\n role: role,\n networkingAddress: networkingAddress,\n networkingKey: networkingKey,\n stakingKey: stakingKey,\n amount: amount,\n payer: account\n ) {\n let sigAlgo = SignatureAlgorithm(rawValue: machineAccountKeySignatureAlgorithm)\n ?? panic(\"Could not get a signature algorithm from the raw enum value provided\")\n\n let hashAlgo = HashAlgorithm(rawValue: machineAccountKeyHashAlgorithm)\n ?? panic(\"Could not get a hash algorithm from the raw enum value provided\")\n \n let publicKey = PublicKey(\n\t\t\t publicKey: machineAccountKey.decodeHex(),\n\t\t\t signatureAlgorithm: sigAlgo\n\t\t )\n machineAccount.keys.add(publicKey: publicKey, hashAlgorithm: hashAlgo, weight: 1000.0)\n }\n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "flow-node.test:3569",
"type": "String"
},
{
"value": "1348307bc77c688e80049de9d081aa09755da33e6997605fa059db2144fc85e560cbe6f7da8d74b453f5916618cb8fd392c2db856f3e78221dc68db1b1d914e4",
"type": "String"
},
{
"value": "9e9ae0d645fd5fd9050792e0b0daa82cc1686d9133afa0f81a784b375c42ae48567d1545e7a9e1965f2c1a32f73cf8575ebb7a967f6e4d104d2df78eb8be409135d12da0499b8a00771f642c1b9c49397f22b440439f036c3bdee82f5309dab3",
"type": "String"
},
{
"value": "92233720368.54775808",
"type": "UFix64"
},
{
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164",
"type": "String"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f90b24b907a0696d706f72742043727970746f0a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2052656769737465727320612064656c656761746f7220696e20746865207374616b696e6720636f6c6c656374696f6e207265736f757263650a2f2f2f20666f722074686520737065636966696564206e6f646520696e666f726d6174696f6e20616e642074686520616d6f756e74206f6620746f6b656e7320746f20636f6d6d69740a0a7472616e73616374696f6e2869643a20537472696e672c0a202020202020202020202020726f6c653a2055496e74382c0a2020202020202020202020206e6574776f726b696e67416464726573733a20537472696e672c0a2020202020202020202020206e6574776f726b696e674b65793a20537472696e672c0a2020202020202020202020207374616b696e674b65793a20537472696e672c0a202020202020202020202020616d6f756e743a205546697836342c0a2020202020202020202020206d616368696e654163636f756e744b65793a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d3a2055496e74382c200a2020202020202020202020206d616368696e654163636f756e744b657948617368416c676f726974686d3a2055496e743829207b0a0a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a0a20202020202020206966206c6574206d616368696e654163636f756e74203d2073656c662e7374616b696e67436f6c6c656374696f6e5265662e72656769737465724e6f6465280a20202020202020202020202069643a2069642c0a202020202020202020202020726f6c653a20726f6c652c0a2020202020202020202020206e6574776f726b696e67416464726573733a206e6574776f726b696e67416464726573732c0a2020202020202020202020206e6574776f726b696e674b65793a206e6574776f726b696e674b65792c0a2020202020202020202020207374616b696e674b65793a207374616b696e674b65792c0a202020202020202020202020616d6f756e743a20616d6f756e742c0a20202020202020202020202070617965723a206163636f756e740a202020202020202029207b0a2020202020202020202020206c657420736967416c676f203d205369676e6174757265416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061207369676e617475726520616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a0a2020202020202020202020206c65742068617368416c676f203d2048617368416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b657948617368416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061206861736820616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a2020202020202020202020200a2020202020202020202020206c6574207075626c69634b6579203d205075626c69634b6579280a090909202020207075626c69634b65793a206d616368696e654163636f756e744b65792e6465636f646548657828292c0a090909202020207369676e6174757265416c676f726974686d3a20736967416c676f0a090920202020290a2020202020202020202020206d616368696e654163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2068617368416c676f2c207765696768743a20313030302e30290a20202020202020207d0a202020207d0a7d0af9033eb85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227daf7b2276616c7565223a22666c6f772d6e6f64652e746573743a33353639222c2274797065223a22537472696e67227db89c7b2276616c7565223a223133343833303762633737633638386538303034396465396430383161613039373535646133336536393937363035666130353964623231343466633835653536306362653666376461386437346234353366353931363631386362386664333932633264623835366633653738323231646336386462316231643931346534222c2274797065223a22537472696e67227db8dc7b2276616c7565223a22396539616530643634356664356664393035303739326530623064616138326363313638366439313333616661306638316137383462333735633432616534383536376431353435653761396531393635663263316133326637336366383537356562623761393637663665346431303464326466373865623862653430393133356431326461303439396238613030373731663634326331623963343933393766323262343430343339663033366333626465653832663533303964616233222c2274797065223a22537472696e67227db07b2276616c7565223a2239323233333732303336382e3534373735383038222c2274797065223a22554669783634227db8aa7b2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634222c2274797065223a22537472696e67227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f90b28f90b24b907a0696d706f72742043727970746f0a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f2052656769737465727320612064656c656761746f7220696e20746865207374616b696e6720636f6c6c656374696f6e207265736f757263650a2f2f2f20666f722074686520737065636966696564206e6f646520696e666f726d6174696f6e20616e642074686520616d6f756e74206f6620746f6b656e7320746f20636f6d6d69740a0a7472616e73616374696f6e2869643a20537472696e672c0a202020202020202020202020726f6c653a2055496e74382c0a2020202020202020202020206e6574776f726b696e67416464726573733a20537472696e672c0a2020202020202020202020206e6574776f726b696e674b65793a20537472696e672c0a2020202020202020202020207374616b696e674b65793a20537472696e672c0a202020202020202020202020616d6f756e743a205546697836342c0a2020202020202020202020206d616368696e654163636f756e744b65793a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d3a2055496e74382c200a2020202020202020202020206d616368696e654163636f756e744b657948617368416c676f726974686d3a2055496e743829207b0a0a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a0a20202020202020206966206c6574206d616368696e654163636f756e74203d2073656c662e7374616b696e67436f6c6c656374696f6e5265662e72656769737465724e6f6465280a20202020202020202020202069643a2069642c0a202020202020202020202020726f6c653a20726f6c652c0a2020202020202020202020206e6574776f726b696e67416464726573733a206e6574776f726b696e67416464726573732c0a2020202020202020202020206e6574776f726b696e674b65793a206e6574776f726b696e674b65792c0a2020202020202020202020207374616b696e674b65793a207374616b696e674b65792c0a202020202020202020202020616d6f756e743a20616d6f756e742c0a20202020202020202020202070617965723a206163636f756e740a202020202020202029207b0a2020202020202020202020206c657420736967416c676f203d205369676e6174757265416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061207369676e617475726520616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a0a2020202020202020202020206c65742068617368416c676f203d2048617368416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b657948617368416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061206861736820616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a2020202020202020202020200a2020202020202020202020206c6574207075626c69634b6579203d205075626c69634b6579280a090909202020207075626c69634b65793a206d616368696e654163636f756e744b65792e6465636f646548657828292c0a090909202020207369676e6174757265416c676f726974686d3a20736967416c676f0a090920202020290a2020202020202020202020206d616368696e654163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2068617368416c676f2c207765696768743a20313030302e30290a20202020202020207d0a202020207d0a7d0af9033eb85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227daf7b2276616c7565223a22666c6f772d6e6f64652e746573743a33353639222c2274797065223a22537472696e67227db89c7b2276616c7565223a223133343833303762633737633638386538303034396465396430383161613039373535646133336536393937363035666130353964623231343466633835653536306362653666376461386437346234353366353931363631386362386664333932633264623835366633653738323231646336386462316231643931346534222c2274797065223a22537472696e67227db8dc7b2276616c7565223a22396539616530643634356664356664393035303739326530623064616138326363313638366439313333616661306638316137383462333735633432616534383536376431353435653761396531393635663263316133326637336366383537356562623761393637663665346431303464326466373865623862653430393133356431326461303439396238613030373731663634326331623963343933393766323262343430343339663033366333626465653832663533303964616233222c2274797065223a22537472696e67227db07b2276616c7565223a2239323233333732303336382e3534373735383038222c2274797065223a22554669783634227db8aa7b2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634222c2274797065223a22537472696e67227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "02deb5f758f3eb3b125cd9b14a6528f18d535377709fcef41e743751eb828009213b0b2bbc3a2ad674122c182112f7008a8d3d1b60b107033c0ebe7bbe50df52675265676973746572204e6f64650009044e6f64652049440000074e6f646520526f6c650001044e6574772e20416464726573730002044e6574772e204b65790003045374616b696e67204b6579000401416d6f756e7400055546697836340003044d41205075622e204b65790006064d41205369676e2e20416c672e0007054d41204861736820416c672e0008",
"hash": "deb5f758f3eb3b125cd9b14a6528f18d535377709fcef41e743751eb82800921"
},
{
"title": "SCO.04 - Create Machine Account",
"valid": true,
"chainID": "Testnet",
"payloadMessage": {
"script": "import Crypto\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Creates a machine account for a node that is already in the staking collection\n/// and adds public keys to the new account\n\ntransaction(nodeID: String, \n machineAccountKey: String, \n machineAccountKeySignatureAlgorithm: UInt8, \n machineAccountKeyHashAlgorithm: UInt8) {\n \n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n\n if let machineAccount = self.stakingCollectionRef.createMachineAccountForExistingNode(nodeID: nodeID, payer: account) {\n let sigAlgo = SignatureAlgorithm(rawValue: machineAccountKeySignatureAlgorithm)\n ?? panic(\"Could not get a signature algorithm from the raw enum value provided\")\n\n let hashAlgo = HashAlgorithm(rawValue: machineAccountKeyHashAlgorithm)\n ?? panic(\"Could not get a hash algorithm from the raw enum value provided\")\n \n let publicKey = PublicKey(\n\t\t\t publicKey: machineAccountKey.decodeHex(),\n\t\t\t signatureAlgorithm: sigAlgo\n\t\t )\n machineAccount.keys.add(publicKey: publicKey, hashAlgorithm: hashAlgo, weight: 1000.0)\n } else {\n panic(\"Could not create a machine account for the node\")\n }\n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164",
"type": "String"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
]
},
"envelopeMessage": {
"script": "import Crypto\nimport FlowStakingCollection from 0x95e019a17d0e23d7\n\n/// Creates a machine account for a node that is already in the staking collection\n/// and adds public keys to the new account\n\ntransaction(nodeID: String, \n machineAccountKey: String, \n machineAccountKeySignatureAlgorithm: UInt8, \n machineAccountKeyHashAlgorithm: UInt8) {\n \n let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection\n\n prepare(account: auth(BorrowValue) &Account) {\n self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)\n ?? panic(\"Could not borrow a reference to a StakingCollection in the primary user's account\")\n\n if let machineAccount = self.stakingCollectionRef.createMachineAccountForExistingNode(nodeID: nodeID, payer: account) {\n let sigAlgo = SignatureAlgorithm(rawValue: machineAccountKeySignatureAlgorithm)\n ?? panic(\"Could not get a signature algorithm from the raw enum value provided\")\n\n let hashAlgo = HashAlgorithm(rawValue: machineAccountKeyHashAlgorithm)\n ?? panic(\"Could not get a hash algorithm from the raw enum value provided\")\n \n let publicKey = PublicKey(\n\t\t\t publicKey: machineAccountKey.decodeHex(),\n\t\t\t signatureAlgorithm: sigAlgo\n\t\t )\n machineAccount.keys.add(publicKey: publicKey, hashAlgorithm: hashAlgo, weight: 1000.0)\n } else {\n panic(\"Could not create a machine account for the node\")\n }\n }\n}\n",
"arguments": [
{
"type": "String",
"value": "88549335e1db7b5b46c2ad58ddb70b7a45e770cc5fe779650ba26f10e6bae5e6"
},
{
"value": "f845b8406e4f43f79d3c1d8cacb3d5f3e7aeedb29feaeb4559fdb71a97e2fd0438565310e87670035d83bc10fe67fe314dba5363c81654595d64884b1ecad1512a64e65e020164",
"type": "String"
},
{
"value": "1",
"type": "UInt8"
},
{
"value": "1",
"type": "UInt8"
}
],
"refBlock": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
"gasLimit": 42,
"proposalKey": {
"address": "99a8ac2c71d4f6bd",
"keyId": 4,
"sequenceNum": 10
},
"payer": "99a8ac2c71d4f6bd",
"authorizers": [
"99a8ac2c71d4f6bd"
],
"payloadSigs": []
},
"encodedTransactionPayloadHex": "f9082bb906a1696d706f72742043727970746f0a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f20437265617465732061206d616368696e65206163636f756e7420666f722061206e6f6465207468617420697320616c726561647920696e20746865207374616b696e6720636f6c6c656374696f6e0a2f2f2f20616e642061646473207075626c6963206b65797320746f20746865206e6577206163636f756e740a0a7472616e73616374696f6e286e6f646549443a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65793a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d3a2055496e74382c200a2020202020202020202020206d616368696e654163636f756e744b657948617368416c676f726974686d3a2055496e743829207b0a202020200a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a0a20202020202020206966206c6574206d616368696e654163636f756e74203d2073656c662e7374616b696e67436f6c6c656374696f6e5265662e6372656174654d616368696e654163636f756e74466f724578697374696e674e6f6465286e6f646549443a206e6f646549442c2070617965723a206163636f756e7429207b0a2020202020202020202020206c657420736967416c676f203d205369676e6174757265416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061207369676e617475726520616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a0a2020202020202020202020206c65742068617368416c676f203d2048617368416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b657948617368416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061206861736820616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a2020202020202020202020200a2020202020202020202020206c6574207075626c69634b6579203d205075626c69634b6579280a090909202020207075626c69634b65793a206d616368696e654163636f756e744b65792e6465636f646548657828292c0a090909202020207369676e6174757265416c676f726974686d3a20736967416c676f0a090920202020290a2020202020202020202020206d616368696e654163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2068617368416c676f2c207765696768743a20313030302e30290a20202020202020207d20656c7365207b0a20202020202020202020202070616e69632822436f756c64206e6f74206372656174652061206d616368696e65206163636f756e7420666f7220746865206e6f646522290a20202020202020207d0a202020207d0a7d0af90144b85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227db8aa7b2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634222c2274797065223a22537472696e67227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bd",
"encodedTransactionEnvelopeHex": "f9082ff9082bb906a1696d706f72742043727970746f0a696d706f727420466c6f775374616b696e67436f6c6c656374696f6e2066726f6d203078393565303139613137643065323364370a0a2f2f2f20437265617465732061206d616368696e65206163636f756e7420666f722061206e6f6465207468617420697320616c726561647920696e20746865207374616b696e6720636f6c6c656374696f6e0a2f2f2f20616e642061646473207075626c6963206b65797320746f20746865206e6577206163636f756e740a0a7472616e73616374696f6e286e6f646549443a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65793a20537472696e672c200a2020202020202020202020206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d3a2055496e74382c200a2020202020202020202020206d616368696e654163636f756e744b657948617368416c676f726974686d3a2055496e743829207b0a202020200a202020206c6574207374616b696e67436f6c6c656374696f6e5265663a206175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e0a0a2020202070726570617265286163636f756e743a206175746828426f72726f7756616c75652920264163636f756e7429207b0a202020202020202073656c662e7374616b696e67436f6c6c656374696f6e526566203d206163636f756e742e73746f726167652e626f72726f773c6175746828466c6f775374616b696e67436f6c6c656374696f6e2e436f6c6c656374696f6e4f776e6572292026466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e3e2866726f6d3a20466c6f775374616b696e67436f6c6c656374696f6e2e5374616b696e67436f6c6c656374696f6e53746f7261676550617468290a2020202020202020202020203f3f2070616e69632822436f756c64206e6f7420626f72726f772061207265666572656e636520746f2061205374616b696e67436f6c6c656374696f6e20696e20746865207072696d61727920757365722773206163636f756e7422290a0a20202020202020206966206c6574206d616368696e654163636f756e74203d2073656c662e7374616b696e67436f6c6c656374696f6e5265662e6372656174654d616368696e654163636f756e74466f724578697374696e674e6f6465286e6f646549443a206e6f646549442c2070617965723a206163636f756e7429207b0a2020202020202020202020206c657420736967416c676f203d205369676e6174757265416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b65795369676e6174757265416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061207369676e617475726520616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a0a2020202020202020202020206c65742068617368416c676f203d2048617368416c676f726974686d2872617756616c75653a206d616368696e654163636f756e744b657948617368416c676f726974686d290a202020202020202020202020202020203f3f2070616e69632822436f756c64206e6f74206765742061206861736820616c676f726974686d2066726f6d207468652072617720656e756d2076616c75652070726f766964656422290a2020202020202020202020200a2020202020202020202020206c6574207075626c69634b6579203d205075626c69634b6579280a090909202020207075626c69634b65793a206d616368696e654163636f756e744b65792e6465636f646548657828292c0a090909202020207369676e6174757265416c676f726974686d3a20736967416c676f0a090920202020290a2020202020202020202020206d616368696e654163636f756e742e6b6579732e616464287075626c69634b65793a207075626c69634b65792c2068617368416c676f726974686d3a2068617368416c676f2c207765696768743a20313030302e30290a20202020202020207d20656c7365207b0a20202020202020202020202070616e69632822436f756c64206e6f74206372656174652061206d616368696e65206163636f756e7420666f7220746865206e6f646522290a20202020202020207d0a202020207d0a7d0af90144b85c7b2274797065223a22537472696e67222c2276616c7565223a2238383534393333356531646237623562343663326164353864646237306237613435653737306363356665373739363530626132366631306536626165356536227db8aa7b2276616c7565223a2266383435623834303665346634336637396433633164386361636233643566336537616565646232396665616562343535396664623731613937653266643034333835363533313065383736373030333564383362633130666536376665333134646261353336336338313635343539356436343838346231656361643135313261363465363565303230313634222c2274797065223a22537472696e67227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227d9c7b2276616c7565223a2231222c2274797065223a2255496e7438227da0f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b2a8899a8ac2c71d4f6bd040a8899a8ac2c71d4f6bdc98899a8ac2c71d4f6bdc0",
"metadata": "024c1ad61500bcd0d32d7aa7eb84ca9b7417219ed6d524e05de8c55fb7d50940e4f0a6cedb6703cd4ce4cc3b735e5edb5a7e5b17a87a725343d745e5d53b7c0a01437265617465204d616368696e65204163636f756e740004044e6f64652049440000044d41205075622e204b65790001064d41205369676e2e20416c672e0002054d41204861736820416c672e0003",
"hash": "4c1ad61500bcd0d32d7aa7eb84ca9b7417219ed6d524e05de8c55fb7d50940e4"
},
{
"title": "SCO.05 - Request Unstaking - 1",
"valid": true,