forked from mysteriumnetwork/payments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OldMystToken.go
1570 lines (1335 loc) · 75.1 KB
/
OldMystToken.go
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
/* Mysterium network payment library.
*
* Copyright (C) 2021 BlockDev AG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package bindings
import (
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// OldMystTokenABI is the input ABI used to generate the binding from.
const OldMystTokenABI = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"Upgrade\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"UpgradeAgentSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"mintAgents\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintingFinished\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalUpgraded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upgradeAgent\",\"outputs\":[{\"internalType\":\"contractIUpgradeAgent\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upgradeMaster\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"remaining\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_addedValue\",\"type\":\"uint256\"}],\"name\":\"addApproval\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_subtractedValue\",\"type\":\"uint256\"}],\"name\":\"subApproval\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"state\",\"type\":\"bool\"}],\"name\":\"setMintAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"upgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"setUpgradeAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUpgradeState\",\"outputs\":[{\"internalType\":\"enumOldMystToken.UpgradeState\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"master\",\"type\":\"address\"}],\"name\":\"setUpgradeMaster\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
// OldMystTokenBin is the compiled bytecode used for deploying new contracts.
var OldMystTokenBin = "0x60806040526001805460ff60a01b1916905534801561001d57600080fd5b5060018054600280546001600160a01b0319908116339081179092559182168117909116811782556000908152600560205260409020805460ff1916909117905561112c8061006d6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063c752ff621161007c578063c752ff6214610412578063d7e7088a1461041a578063dd62ed3e14610440578063e2301d021461046e578063f2fde38b1461049a578063ffeb7d75146104c057610158565b806370a082311461035b5780638444b391146103815780638da5cb5b146103aa57806395d89b41146103b2578063a9059cbb146103ba578063ac3cb72c146103e657610158565b806340c10f191161011557806340c10f191461029057806342c1867b146102be57806343214675146102e457806345977d03146103125780635de4ccb01461032f578063600440cb1461035357610158565b806305d2035b1461015d57806306fdde0314610179578063095ea7b3146101f657806318160ddd1461022257806323b872dd1461023c578063313ce56714610272575b600080fd5b6101656104e6565b604080519115158252519081900360200190f35b6101816104f6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101bb5781810151838201526020016101a3565b50505050905090810190601f1680156101e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101656004803603604081101561020c57600080fd5b506001600160a01b038135169060200135610526565b61022a6105ca565b60408051918252519081900360200190f35b6101656004803603606081101561025257600080fd5b506001600160a01b038135811691602081013590911690604001356105d0565b61027a6106cd565b6040805160ff9092168252519081900360200190f35b6102bc600480360360408110156102a657600080fd5b506001600160a01b0381351690602001356106d2565b005b610165600480360360208110156102d457600080fd5b50356001600160a01b0316610892565b6102bc600480360360408110156102fa57600080fd5b506001600160a01b03813516906020013515156108a7565b6102bc6004803603602081101561032857600080fd5b5035610900565b610337610a45565b604080516001600160a01b039092168252519081900360200190f35b610337610a54565b61022a6004803603602081101561037157600080fd5b50356001600160a01b0316610a63565b610389610a7e565b6040518082600481111561039957fe5b815260200191505060405180910390f35b610337610aaf565b610181610abe565b610165600480360360408110156103d057600080fd5b506001600160a01b038135169060200135610adf565b610165600480360360408110156103fc57600080fd5b506001600160a01b038135169060200135610b95565b61022a610c3b565b6102bc6004803603602081101561043057600080fd5b50356001600160a01b0316610c41565b61022a6004803603604081101561045657600080fd5b506001600160a01b0381358116916020013516610e49565b6101656004803603604081101561048457600080fd5b506001600160a01b038135169060200135610e74565b6102bc600480360360208110156104b057600080fd5b50356001600160a01b0316610f4b565b6102bc600480360360208110156104d657600080fd5b50356001600160a01b0316610f90565b600154600160a01b900460ff1681565b604051806040016040528060148152602001732a32b9ba1026bcb9ba32b934bab6903a37b5b2b760611b81525081565b6000811580159061055957503360009081526007602090815260408083206001600160a01b038716845290915290205415155b1561056357600080fd5b3360008181526007602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b6001600160a01b0380841660009081526007602090815260408083203384528252808320549386168352600690915281205490919061060f9084610fdc565b6001600160a01b03808616600090815260066020526040808220939093559087168152205461063e9084611049565b6001600160a01b0386166000908152600660205260409020556106618184611049565b6001600160a01b03808716600081815260076020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b600881565b3360009081526005602052604090205460ff166106ee57600080fd5b600154600160a01b900460ff161561070557600080fd5b8061070f57600080fd5b60005473__SafeMathLib___________________________6366098d4f9091836040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561076a57600080fd5b505af415801561077e573d6000803e3d6000fd5b505050506040513d602081101561079457600080fd5b505160009081556001600160a01b0383168152600660209081526040918290205482516366098d4f60e01b8152600481019190915260248101849052915173__SafeMathLib___________________________926366098d4f926044808301939192829003018186803b15801561080a57600080fd5b505af415801561081e573d6000803e3d6000fd5b505050506040513d602081101561083457600080fd5b50516001600160a01b03831660008181526006602090815260409182902093909355805191825291810183905281517f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe929181900390910190a15050565b60056020526000908152604090205460ff1681565b6001546001600160a01b031633146108be57600080fd5b600154600160a01b900460ff16156108d557600080fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b600061090a610a7e565b9050600381600481111561091a57fe5b14806109315750600481600481111561092f57fe5b145b61093a57600080fd5b8161094457600080fd5b3360009081526006602052604090205461095e9083611049565b336000908152600660205260408120919091555461097c9083611049565b60005560045461098c9083610fdc565b60049081556003546040805163753e88e560e01b8152339381019390935260248301859052516001600160a01b039091169163753e88e591604480830192600092919082900301818387803b1580156109e457600080fd5b505af11580156109f8573d6000803e3d6000fd5b50506003546040805186815290516001600160a01b0390921693503392507f7e5c344a8141a805725cb476f76c6953b842222b967edd1f78ddb6e8b3f397ac919081900360200190a35050565b6003546001600160a01b031681565b6002546001600160a01b031681565b6001600160a01b031660009081526006602052604090205490565b6003546000906001600160a01b0316610a9957506002610aac565b600454610aa857506003610aac565b5060045b90565b6001546001600160a01b031681565b60405180604001604052806005815260200164135654d51560da1b81525081565b6000604036604414610af057600080fd5b33600090815260066020526040902054610b0a9084611049565b33600090815260066020526040808220929092556001600160a01b03861681522054610b369084610fdc565b6001600160a01b0385166000818152600660209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b6000604036604414610ba657600080fd5b3360009081526007602090815260408083206001600160a01b0388168452909152902054610bd48185610fdc565b3360008181526007602090815260408083206001600160a01b038b168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a3506001949350505050565b60045481565b6002546001600160a01b03163314610c8a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806110a7602a913960400191505060405180910390fd5b6001600160a01b038116610c9d57600080fd5b6004610ca7610a7e565b6004811115610cb257fe5b1415610cef5760405162461bcd60e51b81526004018080602001828103825260268152602001806110d16026913960400191505060405180910390fd5b600380546001600160a01b0319166001600160a01b038381169190911791829055604080516330e9ebd360e11b8152905192909116916361d3d7a691600480820192602092909190829003018186803b158015610d4b57600080fd5b505afa158015610d5f573d6000803e3d6000fd5b505050506040513d6020811015610d7557600080fd5b5051610d8057600080fd5b600054600360009054906101000a90046001600160a01b03166001600160a01b0316634b2ba0dd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dd157600080fd5b505afa158015610de5573d6000803e3d6000fd5b505050506040513d6020811015610dfb57600080fd5b505114610e0757600080fd5b600354604080516001600160a01b039092168252517f7845d5aa74cc410e35571258d954f23b82276e160fe8c188fa80566580f279cc9181900360200190a150565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b6000604036604414610e8557600080fd5b3360009081526007602090815260408083206001600160a01b038816845290915290205480841115610eda573360009081526007602090815260408083206001600160a01b0389168452909152812055610ee4565b610bd48185611049565b3360008181526007602090815260408083206001600160a01b038a168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a3506001949350505050565b6001546001600160a01b03163314610f6257600080fd5b6001600160a01b03811615610f8d57600180546001600160a01b0319166001600160a01b0383161790555b50565b6001600160a01b038116610fa357600080fd5b6002546001600160a01b03163314610fba57600080fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000828201838110801590610ff15750828110155b611042576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000828211156110a0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe4f6e6c792061206d61737465722063616e2064657369676e61746520746865206e657874206167656e74557067726164652068617320616c726561647920626567756e20666f7220616e206167656e74a2646970667358221220009ae9e564861fe29172473d9292c6ef292fde9ae112774443c1131143a9613b64736f6c634300060c0033"
// DeployOldMystToken deploys a new Ethereum contract, binding an instance of OldMystToken to it.
func DeployOldMystToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *OldMystToken, error) {
parsed, err := abi.JSON(strings.NewReader(OldMystTokenABI))
if err != nil {
return common.Address{}, nil, nil, err
}
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(OldMystTokenBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &OldMystToken{OldMystTokenCaller: OldMystTokenCaller{contract: contract}, OldMystTokenTransactor: OldMystTokenTransactor{contract: contract}, OldMystTokenFilterer: OldMystTokenFilterer{contract: contract}}, nil
}
// OldMystToken is an auto generated Go binding around an Ethereum contract.
type OldMystToken struct {
OldMystTokenCaller // Read-only binding to the contract
OldMystTokenTransactor // Write-only binding to the contract
OldMystTokenFilterer // Log filterer for contract events
}
// OldMystTokenCaller is an auto generated read-only Go binding around an Ethereum contract.
type OldMystTokenCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// OldMystTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
type OldMystTokenTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// OldMystTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type OldMystTokenFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// OldMystTokenSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type OldMystTokenSession struct {
Contract *OldMystToken // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// OldMystTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type OldMystTokenCallerSession struct {
Contract *OldMystTokenCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// OldMystTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type OldMystTokenTransactorSession struct {
Contract *OldMystTokenTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// OldMystTokenRaw is an auto generated low-level Go binding around an Ethereum contract.
type OldMystTokenRaw struct {
Contract *OldMystToken // Generic contract binding to access the raw methods on
}
// OldMystTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type OldMystTokenCallerRaw struct {
Contract *OldMystTokenCaller // Generic read-only contract binding to access the raw methods on
}
// OldMystTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type OldMystTokenTransactorRaw struct {
Contract *OldMystTokenTransactor // Generic write-only contract binding to access the raw methods on
}
// NewOldMystToken creates a new instance of OldMystToken, bound to a specific deployed contract.
func NewOldMystToken(address common.Address, backend bind.ContractBackend) (*OldMystToken, error) {
contract, err := bindOldMystToken(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &OldMystToken{OldMystTokenCaller: OldMystTokenCaller{contract: contract}, OldMystTokenTransactor: OldMystTokenTransactor{contract: contract}, OldMystTokenFilterer: OldMystTokenFilterer{contract: contract}}, nil
}
// NewOldMystTokenCaller creates a new read-only instance of OldMystToken, bound to a specific deployed contract.
func NewOldMystTokenCaller(address common.Address, caller bind.ContractCaller) (*OldMystTokenCaller, error) {
contract, err := bindOldMystToken(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &OldMystTokenCaller{contract: contract}, nil
}
// NewOldMystTokenTransactor creates a new write-only instance of OldMystToken, bound to a specific deployed contract.
func NewOldMystTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*OldMystTokenTransactor, error) {
contract, err := bindOldMystToken(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &OldMystTokenTransactor{contract: contract}, nil
}
// NewOldMystTokenFilterer creates a new log filterer instance of OldMystToken, bound to a specific deployed contract.
func NewOldMystTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*OldMystTokenFilterer, error) {
contract, err := bindOldMystToken(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &OldMystTokenFilterer{contract: contract}, nil
}
// bindOldMystToken binds a generic wrapper to an already deployed contract.
func bindOldMystToken(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(OldMystTokenABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_OldMystToken *OldMystTokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _OldMystToken.Contract.OldMystTokenCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_OldMystToken *OldMystTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _OldMystToken.Contract.OldMystTokenTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_OldMystToken *OldMystTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _OldMystToken.Contract.OldMystTokenTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_OldMystToken *OldMystTokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _OldMystToken.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_OldMystToken *OldMystTokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _OldMystToken.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_OldMystToken *OldMystTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _OldMystToken.Contract.contract.Transact(opts, method, params...)
}
// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
//
// Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (_OldMystToken *OldMystTokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "allowance", _owner, _spender)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
//
// Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (_OldMystToken *OldMystTokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) {
return _OldMystToken.Contract.Allowance(&_OldMystToken.CallOpts, _owner, _spender)
}
// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
//
// Solidity: function allowance(address _owner, address _spender) view returns(uint256 remaining)
func (_OldMystToken *OldMystTokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) {
return _OldMystToken.Contract.Allowance(&_OldMystToken.CallOpts, _owner, _spender)
}
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
//
// Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (_OldMystToken *OldMystTokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "balanceOf", _owner)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
//
// Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (_OldMystToken *OldMystTokenSession) BalanceOf(_owner common.Address) (*big.Int, error) {
return _OldMystToken.Contract.BalanceOf(&_OldMystToken.CallOpts, _owner)
}
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
//
// Solidity: function balanceOf(address _owner) view returns(uint256 balance)
func (_OldMystToken *OldMystTokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error) {
return _OldMystToken.Contract.BalanceOf(&_OldMystToken.CallOpts, _owner)
}
// Decimals is a free data retrieval call binding the contract method 0x313ce567.
//
// Solidity: function decimals() view returns(uint8)
func (_OldMystToken *OldMystTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "decimals")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// Decimals is a free data retrieval call binding the contract method 0x313ce567.
//
// Solidity: function decimals() view returns(uint8)
func (_OldMystToken *OldMystTokenSession) Decimals() (uint8, error) {
return _OldMystToken.Contract.Decimals(&_OldMystToken.CallOpts)
}
// Decimals is a free data retrieval call binding the contract method 0x313ce567.
//
// Solidity: function decimals() view returns(uint8)
func (_OldMystToken *OldMystTokenCallerSession) Decimals() (uint8, error) {
return _OldMystToken.Contract.Decimals(&_OldMystToken.CallOpts)
}
// GetUpgradeState is a free data retrieval call binding the contract method 0x8444b391.
//
// Solidity: function getUpgradeState() view returns(uint8)
func (_OldMystToken *OldMystTokenCaller) GetUpgradeState(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "getUpgradeState")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// GetUpgradeState is a free data retrieval call binding the contract method 0x8444b391.
//
// Solidity: function getUpgradeState() view returns(uint8)
func (_OldMystToken *OldMystTokenSession) GetUpgradeState() (uint8, error) {
return _OldMystToken.Contract.GetUpgradeState(&_OldMystToken.CallOpts)
}
// GetUpgradeState is a free data retrieval call binding the contract method 0x8444b391.
//
// Solidity: function getUpgradeState() view returns(uint8)
func (_OldMystToken *OldMystTokenCallerSession) GetUpgradeState() (uint8, error) {
return _OldMystToken.Contract.GetUpgradeState(&_OldMystToken.CallOpts)
}
// MintAgents is a free data retrieval call binding the contract method 0x42c1867b.
//
// Solidity: function mintAgents(address ) view returns(bool)
func (_OldMystToken *OldMystTokenCaller) MintAgents(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "mintAgents", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// MintAgents is a free data retrieval call binding the contract method 0x42c1867b.
//
// Solidity: function mintAgents(address ) view returns(bool)
func (_OldMystToken *OldMystTokenSession) MintAgents(arg0 common.Address) (bool, error) {
return _OldMystToken.Contract.MintAgents(&_OldMystToken.CallOpts, arg0)
}
// MintAgents is a free data retrieval call binding the contract method 0x42c1867b.
//
// Solidity: function mintAgents(address ) view returns(bool)
func (_OldMystToken *OldMystTokenCallerSession) MintAgents(arg0 common.Address) (bool, error) {
return _OldMystToken.Contract.MintAgents(&_OldMystToken.CallOpts, arg0)
}
// MintingFinished is a free data retrieval call binding the contract method 0x05d2035b.
//
// Solidity: function mintingFinished() view returns(bool)
func (_OldMystToken *OldMystTokenCaller) MintingFinished(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "mintingFinished")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// MintingFinished is a free data retrieval call binding the contract method 0x05d2035b.
//
// Solidity: function mintingFinished() view returns(bool)
func (_OldMystToken *OldMystTokenSession) MintingFinished() (bool, error) {
return _OldMystToken.Contract.MintingFinished(&_OldMystToken.CallOpts)
}
// MintingFinished is a free data retrieval call binding the contract method 0x05d2035b.
//
// Solidity: function mintingFinished() view returns(bool)
func (_OldMystToken *OldMystTokenCallerSession) MintingFinished() (bool, error) {
return _OldMystToken.Contract.MintingFinished(&_OldMystToken.CallOpts)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_OldMystToken *OldMystTokenCaller) Name(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "name")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_OldMystToken *OldMystTokenSession) Name() (string, error) {
return _OldMystToken.Contract.Name(&_OldMystToken.CallOpts)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_OldMystToken *OldMystTokenCallerSession) Name() (string, error) {
return _OldMystToken.Contract.Name(&_OldMystToken.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_OldMystToken *OldMystTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_OldMystToken *OldMystTokenSession) Owner() (common.Address, error) {
return _OldMystToken.Contract.Owner(&_OldMystToken.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_OldMystToken *OldMystTokenCallerSession) Owner() (common.Address, error) {
return _OldMystToken.Contract.Owner(&_OldMystToken.CallOpts)
}
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
//
// Solidity: function symbol() view returns(string)
func (_OldMystToken *OldMystTokenCaller) Symbol(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "symbol")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
//
// Solidity: function symbol() view returns(string)
func (_OldMystToken *OldMystTokenSession) Symbol() (string, error) {
return _OldMystToken.Contract.Symbol(&_OldMystToken.CallOpts)
}
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
//
// Solidity: function symbol() view returns(string)
func (_OldMystToken *OldMystTokenCallerSession) Symbol() (string, error) {
return _OldMystToken.Contract.Symbol(&_OldMystToken.CallOpts)
}
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
//
// Solidity: function totalSupply() view returns(uint256)
func (_OldMystToken *OldMystTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "totalSupply")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
//
// Solidity: function totalSupply() view returns(uint256)
func (_OldMystToken *OldMystTokenSession) TotalSupply() (*big.Int, error) {
return _OldMystToken.Contract.TotalSupply(&_OldMystToken.CallOpts)
}
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
//
// Solidity: function totalSupply() view returns(uint256)
func (_OldMystToken *OldMystTokenCallerSession) TotalSupply() (*big.Int, error) {
return _OldMystToken.Contract.TotalSupply(&_OldMystToken.CallOpts)
}
// TotalUpgraded is a free data retrieval call binding the contract method 0xc752ff62.
//
// Solidity: function totalUpgraded() view returns(uint256)
func (_OldMystToken *OldMystTokenCaller) TotalUpgraded(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "totalUpgraded")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// TotalUpgraded is a free data retrieval call binding the contract method 0xc752ff62.
//
// Solidity: function totalUpgraded() view returns(uint256)
func (_OldMystToken *OldMystTokenSession) TotalUpgraded() (*big.Int, error) {
return _OldMystToken.Contract.TotalUpgraded(&_OldMystToken.CallOpts)
}
// TotalUpgraded is a free data retrieval call binding the contract method 0xc752ff62.
//
// Solidity: function totalUpgraded() view returns(uint256)
func (_OldMystToken *OldMystTokenCallerSession) TotalUpgraded() (*big.Int, error) {
return _OldMystToken.Contract.TotalUpgraded(&_OldMystToken.CallOpts)
}
// UpgradeAgent is a free data retrieval call binding the contract method 0x5de4ccb0.
//
// Solidity: function upgradeAgent() view returns(address)
func (_OldMystToken *OldMystTokenCaller) UpgradeAgent(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "upgradeAgent")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// UpgradeAgent is a free data retrieval call binding the contract method 0x5de4ccb0.
//
// Solidity: function upgradeAgent() view returns(address)
func (_OldMystToken *OldMystTokenSession) UpgradeAgent() (common.Address, error) {
return _OldMystToken.Contract.UpgradeAgent(&_OldMystToken.CallOpts)
}
// UpgradeAgent is a free data retrieval call binding the contract method 0x5de4ccb0.
//
// Solidity: function upgradeAgent() view returns(address)
func (_OldMystToken *OldMystTokenCallerSession) UpgradeAgent() (common.Address, error) {
return _OldMystToken.Contract.UpgradeAgent(&_OldMystToken.CallOpts)
}
// UpgradeMaster is a free data retrieval call binding the contract method 0x600440cb.
//
// Solidity: function upgradeMaster() view returns(address)
func (_OldMystToken *OldMystTokenCaller) UpgradeMaster(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _OldMystToken.contract.Call(opts, &out, "upgradeMaster")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// UpgradeMaster is a free data retrieval call binding the contract method 0x600440cb.
//
// Solidity: function upgradeMaster() view returns(address)
func (_OldMystToken *OldMystTokenSession) UpgradeMaster() (common.Address, error) {
return _OldMystToken.Contract.UpgradeMaster(&_OldMystToken.CallOpts)
}
// UpgradeMaster is a free data retrieval call binding the contract method 0x600440cb.
//
// Solidity: function upgradeMaster() view returns(address)
func (_OldMystToken *OldMystTokenCallerSession) UpgradeMaster() (common.Address, error) {
return _OldMystToken.Contract.UpgradeMaster(&_OldMystToken.CallOpts)
}
// AddApproval is a paid mutator transaction binding the contract method 0xac3cb72c.
//
// Solidity: function addApproval(address _spender, uint256 _addedValue) returns(bool success)
func (_OldMystToken *OldMystTokenTransactor) AddApproval(opts *bind.TransactOpts, _spender common.Address, _addedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "addApproval", _spender, _addedValue)
}
// AddApproval is a paid mutator transaction binding the contract method 0xac3cb72c.
//
// Solidity: function addApproval(address _spender, uint256 _addedValue) returns(bool success)
func (_OldMystToken *OldMystTokenSession) AddApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.AddApproval(&_OldMystToken.TransactOpts, _spender, _addedValue)
}
// AddApproval is a paid mutator transaction binding the contract method 0xac3cb72c.
//
// Solidity: function addApproval(address _spender, uint256 _addedValue) returns(bool success)
func (_OldMystToken *OldMystTokenTransactorSession) AddApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.AddApproval(&_OldMystToken.TransactOpts, _spender, _addedValue)
}
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
//
// Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "approve", _spender, _value)
}
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
//
// Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Approve(&_OldMystToken.TransactOpts, _spender, _value)
}
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
//
// Solidity: function approve(address _spender, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Approve(&_OldMystToken.TransactOpts, _spender, _value)
}
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
//
// Solidity: function mint(address receiver, uint256 amount) returns()
func (_OldMystToken *OldMystTokenTransactor) Mint(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "mint", receiver, amount)
}
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
//
// Solidity: function mint(address receiver, uint256 amount) returns()
func (_OldMystToken *OldMystTokenSession) Mint(receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Mint(&_OldMystToken.TransactOpts, receiver, amount)
}
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
//
// Solidity: function mint(address receiver, uint256 amount) returns()
func (_OldMystToken *OldMystTokenTransactorSession) Mint(receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Mint(&_OldMystToken.TransactOpts, receiver, amount)
}
// SetMintAgent is a paid mutator transaction binding the contract method 0x43214675.
//
// Solidity: function setMintAgent(address addr, bool state) returns()
func (_OldMystToken *OldMystTokenTransactor) SetMintAgent(opts *bind.TransactOpts, addr common.Address, state bool) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "setMintAgent", addr, state)
}
// SetMintAgent is a paid mutator transaction binding the contract method 0x43214675.
//
// Solidity: function setMintAgent(address addr, bool state) returns()
func (_OldMystToken *OldMystTokenSession) SetMintAgent(addr common.Address, state bool) (*types.Transaction, error) {
return _OldMystToken.Contract.SetMintAgent(&_OldMystToken.TransactOpts, addr, state)
}
// SetMintAgent is a paid mutator transaction binding the contract method 0x43214675.
//
// Solidity: function setMintAgent(address addr, bool state) returns()
func (_OldMystToken *OldMystTokenTransactorSession) SetMintAgent(addr common.Address, state bool) (*types.Transaction, error) {
return _OldMystToken.Contract.SetMintAgent(&_OldMystToken.TransactOpts, addr, state)
}
// SetUpgradeAgent is a paid mutator transaction binding the contract method 0xd7e7088a.
//
// Solidity: function setUpgradeAgent(address agent) returns()
func (_OldMystToken *OldMystTokenTransactor) SetUpgradeAgent(opts *bind.TransactOpts, agent common.Address) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "setUpgradeAgent", agent)
}
// SetUpgradeAgent is a paid mutator transaction binding the contract method 0xd7e7088a.
//
// Solidity: function setUpgradeAgent(address agent) returns()
func (_OldMystToken *OldMystTokenSession) SetUpgradeAgent(agent common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.SetUpgradeAgent(&_OldMystToken.TransactOpts, agent)
}
// SetUpgradeAgent is a paid mutator transaction binding the contract method 0xd7e7088a.
//
// Solidity: function setUpgradeAgent(address agent) returns()
func (_OldMystToken *OldMystTokenTransactorSession) SetUpgradeAgent(agent common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.SetUpgradeAgent(&_OldMystToken.TransactOpts, agent)
}
// SetUpgradeMaster is a paid mutator transaction binding the contract method 0xffeb7d75.
//
// Solidity: function setUpgradeMaster(address master) returns()
func (_OldMystToken *OldMystTokenTransactor) SetUpgradeMaster(opts *bind.TransactOpts, master common.Address) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "setUpgradeMaster", master)
}
// SetUpgradeMaster is a paid mutator transaction binding the contract method 0xffeb7d75.
//
// Solidity: function setUpgradeMaster(address master) returns()
func (_OldMystToken *OldMystTokenSession) SetUpgradeMaster(master common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.SetUpgradeMaster(&_OldMystToken.TransactOpts, master)
}
// SetUpgradeMaster is a paid mutator transaction binding the contract method 0xffeb7d75.
//
// Solidity: function setUpgradeMaster(address master) returns()
func (_OldMystToken *OldMystTokenTransactorSession) SetUpgradeMaster(master common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.SetUpgradeMaster(&_OldMystToken.TransactOpts, master)
}
// SubApproval is a paid mutator transaction binding the contract method 0xe2301d02.
//
// Solidity: function subApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (_OldMystToken *OldMystTokenTransactor) SubApproval(opts *bind.TransactOpts, _spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "subApproval", _spender, _subtractedValue)
}
// SubApproval is a paid mutator transaction binding the contract method 0xe2301d02.
//
// Solidity: function subApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (_OldMystToken *OldMystTokenSession) SubApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.SubApproval(&_OldMystToken.TransactOpts, _spender, _subtractedValue)
}
// SubApproval is a paid mutator transaction binding the contract method 0xe2301d02.
//
// Solidity: function subApproval(address _spender, uint256 _subtractedValue) returns(bool success)
func (_OldMystToken *OldMystTokenTransactorSession) SubApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.SubApproval(&_OldMystToken.TransactOpts, _spender, _subtractedValue)
}
// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
//
// Solidity: function transfer(address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "transfer", _to, _value)
}
// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
//
// Solidity: function transfer(address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Transfer(&_OldMystToken.TransactOpts, _to, _value)
}
// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
//
// Solidity: function transfer(address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Transfer(&_OldMystToken.TransactOpts, _to, _value)
}
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
//
// Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "transferFrom", _from, _to, _value)
}
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
//
// Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.TransferFrom(&_OldMystToken.TransactOpts, _from, _to, _value)
}
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
//
// Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool success)
func (_OldMystToken *OldMystTokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.TransferFrom(&_OldMystToken.TransactOpts, _from, _to, _value)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_OldMystToken *OldMystTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_OldMystToken *OldMystTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.TransferOwnership(&_OldMystToken.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_OldMystToken *OldMystTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _OldMystToken.Contract.TransferOwnership(&_OldMystToken.TransactOpts, newOwner)
}
// Upgrade is a paid mutator transaction binding the contract method 0x45977d03.
//
// Solidity: function upgrade(uint256 value) returns()
func (_OldMystToken *OldMystTokenTransactor) Upgrade(opts *bind.TransactOpts, value *big.Int) (*types.Transaction, error) {
return _OldMystToken.contract.Transact(opts, "upgrade", value)
}
// Upgrade is a paid mutator transaction binding the contract method 0x45977d03.
//
// Solidity: function upgrade(uint256 value) returns()
func (_OldMystToken *OldMystTokenSession) Upgrade(value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Upgrade(&_OldMystToken.TransactOpts, value)
}
// Upgrade is a paid mutator transaction binding the contract method 0x45977d03.
//
// Solidity: function upgrade(uint256 value) returns()
func (_OldMystToken *OldMystTokenTransactorSession) Upgrade(value *big.Int) (*types.Transaction, error) {
return _OldMystToken.Contract.Upgrade(&_OldMystToken.TransactOpts, value)
}
// OldMystTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the OldMystToken contract.
type OldMystTokenApprovalIterator struct {
Event *OldMystTokenApproval // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *OldMystTokenApprovalIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(OldMystTokenApproval)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(OldMystTokenApproval)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *OldMystTokenApprovalIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *OldMystTokenApprovalIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// OldMystTokenApproval represents a Approval event raised by the OldMystToken contract.
type OldMystTokenApproval struct {
Owner common.Address
Spender common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
//
// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (_OldMystToken *OldMystTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*OldMystTokenApprovalIterator, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
var spenderRule []interface{}
for _, spenderItem := range spender {
spenderRule = append(spenderRule, spenderItem)
}
logs, sub, err := _OldMystToken.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule)
if err != nil {
return nil, err
}
return &OldMystTokenApprovalIterator{contract: _OldMystToken.contract, event: "Approval", logs: logs, sub: sub}, nil
}
// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
//
// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (_OldMystToken *OldMystTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *OldMystTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
var spenderRule []interface{}
for _, spenderItem := range spender {
spenderRule = append(spenderRule, spenderItem)
}
logs, sub, err := _OldMystToken.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(OldMystTokenApproval)
if err := _OldMystToken.contract.UnpackLog(event, "Approval", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
//
// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (_OldMystToken *OldMystTokenFilterer) ParseApproval(log types.Log) (*OldMystTokenApproval, error) {
event := new(OldMystTokenApproval)
if err := _OldMystToken.contract.UnpackLog(event, "Approval", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// OldMystTokenMintedIterator is returned from FilterMinted and is used to iterate over the raw logs and unpacked data for Minted events raised by the OldMystToken contract.
type OldMystTokenMintedIterator struct {
Event *OldMystTokenMinted // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data