-
-
Notifications
You must be signed in to change notification settings - Fork 238
/
Lock.json
19414 lines (19414 loc) · 823 KB
/
Lock.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
{
"contractName": "Lock",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "owners",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "unlockProtocol",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "keyPrice",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "expirationDuration",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "keyReleaseMechanism",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxNumberOfKeys",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_keyReleaseMechanism",
"type": "uint8"
},
{
"name": "_expirationDuration",
"type": "uint256"
},
{
"name": "_keyPrice",
"type": "uint256"
},
{
"name": "_maxNumberOfKeys",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
}
],
"name": "OwnershipRenounced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": true,
"name": "_to",
"type": "address"
},
{
"indexed": false,
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"name": "_approved",
"type": "address"
},
{
"indexed": false,
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_recipient",
"type": "address"
},
{
"name": "_data",
"type": "bytes"
}
],
"name": "purchaseFor",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_recipient",
"type": "address"
},
{
"name": "_referrer",
"type": "address"
},
{
"name": "_data",
"type": "bytes"
}
],
"name": "purchaseForFrom",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_recipient",
"type": "address"
},
{
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_approved",
"type": "address"
},
{
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "outstandingKeys",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "expireKeyFor",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_keyPrice",
"type": "uint256"
}
],
"name": "updateKeyPrice",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "keyDataFor",
"outputs": [
{
"name": "data",
"type": "bytes"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "keyExpirationTimestampFor",
"outputs": [
{
"name": "timestamp",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060405160a08061167083398101604090815281516020830151918301516060840151608090940151600080546001805433600160a060020a031991821681178084559382161716600160a060020a038716179092559395929385919060a060020a60ff0219167401000000000000000000000000000000000000000083600281111561009957fe5b021790555060029290925560035560045550506115b5806100bb6000396000f30060806040526004361061010e5763ffffffff60e060020a600035041663025e7c278114610113578063081812fc14610147578063095ea7b31461015f5780630f15023b1461017857806310e569731461018d57806311a4c03a146101b45780631f1ec029146101c957806323b872dd146101e15780633ccfd60b146101fe57806347a510151461021357806347dc10851461024c57806353b704d0146102615780636352211e1461028157806370a0823114610299578063715018a6146102ba57806374b6c106146102cf5780638da5cb5b146102e45780639f98d3cb146102f9578063abdf82ce1461031a578063d44fa14a1461033b578063d8125eb3146103d1578063f2fde38b146103f9575b600080fd5b34801561011f57600080fd5b5061012b60043561041a565b60408051600160a060020a039092168252519081900360200190f35b34801561015357600080fd5b5061012b600435610442565b610176600160a060020a0360043516602435610453565b005b34801561018457600080fd5b5061012b6105c1565b34801561019957600080fd5b506101a26105d0565b60408051918252519081900360200190f35b3480156101c057600080fd5b506101a26105d6565b3480156101d557600080fd5b506101766004356105dc565b610176600160a060020a03600435811690602435166044356105f8565b34801561020a57600080fd5b5061017661095a565b34801561021f57600080fd5b50610228610a0a565b6040518082600281111561023857fe5b60ff16815260200191505060405180910390f35b34801561025857600080fd5b506101a2610a1a565b61017660048035600160a060020a03169060248035908101910135610a21565b34801561028d57600080fd5b5061012b600435610a62565b3480156102a557600080fd5b506101a2600160a060020a0360043516610acb565b3480156102c657600080fd5b50610176610b5f565b3480156102db57600080fd5b506101a2610bcb565b3480156102f057600080fd5b5061012b610bd1565b34801561030557600080fd5b50610176600160a060020a0360043516610be0565b34801561032657600080fd5b506101a2600160a060020a0360043516610c88565b34801561034757600080fd5b5061035c600160a060020a0360043516610d07565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039657818101518382015260200161037e565b50505050905090810190601f1680156103c35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610176600160a060020a03600480358216916024803590911691604435918201910135610e1a565b34801561040557600080fd5b50610176600160a060020a0360043516610ed0565b600680548290811061042857fe5b600091825260209091200154600160a060020a0316905081565b600061044d82610ef3565b92915050565b80600260015460a060020a900460ff16600281111561046e57fe5b14156104ea576040805160e560020a62461bcd02815260206004820152602a60248201527f4f6e6c7920616c6c6f776564206f6e207075626c6963206f722072657374726960448201527f63746564206c6f636b7300000000000000000000000000000000000000000000606482015290519081900360840190fd5b600054600160a060020a031633148061052d5750600160a060020a0381163314801561052d5750600060015460a060020a900460ff16600281111561052b57fe5b145b151561053857600080fd5b600160a060020a038316151561054d57600080fd5b600160a060020a03828116600081815260076020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff19169488169485179055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600154600160a060020a031681565b60035481565b60025481565b600054600160a060020a031633146105f357600080fd5b600355565b6006546004546000911061067c576040805160e560020a62461bcd02815260206004820152602360248201527f4d6178696d756d206e756d626572206f66206b65797320616c7265616479207360448201527f6f6c640000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600060015460a060020a900460ff16600281111561069657fe5b146106eb576040805160e560020a62461bcd02815260206004820152601c60248201527f4f6e6c7920616c6c6f776564206f6e207075626c6963206c6f636b7300000000604482015290519081900360640190fd5b600160a060020a0382166000908152600560205260408120805484921061074a576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b83600160a060020a03811633148061077257503361076782610ef3565b600160a060020a0316145b15156107c8576040805160e560020a62461bcd02815260206004820181905260248201527f4f6e6c79206b6579206f776e6572206f7220617070726f766564206f776e6572604482015290519081900360640190fd5b600160a060020a03861615156107dd57600080fd5b600160a060020a038616600090815260056020526040902054935083151561085857600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0388161790555b42841161088757600160a060020a038088166000908152600560205260408082205492891682529020556108b4565b600160a060020a038088166000908152600560205260408082205492891682529020429186019190910390555b600160a060020a0387811660009081526005602052604080822092891682529020600191820180546108fb939283019260029082161561010002600019019091160461145c565b50600160a060020a0380881660008181526005602090815260409182902042905581518981529151938a16937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350505050505050565b60008054600160a060020a0316331461097257600080fd5b503031600081116109cd576040805160e560020a62461bcd02815260206004820152601060248201527f4e6f7420656e6f7567682066756e647300000000000000000000000000000000604482015290519081900360640190fd5b60008054604051600160a060020a039091169183156108fc02918491818181858888f19350505050158015610a06573d6000803e3d6000fd5b5050565b60015460a060020a900460ff1681565b6006545b90565b610a5d83600084848080601f01602080910402602001604051908101604052809392919081815260200183838082843750610f1c945050505050565b505050565b600160a060020a038116600090815260056020526040812080548391908310610ac3576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b509192915050565b600160a060020a038116600090815260056020526040812080548391908310610b2c576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b600160a060020a03841660009081526005602052604081205411610b51576000610b54565b60015b60ff16949350505050565b600054600160a060020a03163314610b7657600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60045481565b600054600160a060020a031681565b600054600160a060020a03163314610bf757600080fd5b600160a060020a038116600090815260056020526040902080548291904210610c6a576040805160e560020a62461bcd02815260206004820152601060248201527f4b6579206973206e6f742076616c696400000000000000000000000000000000604482015290519081900360640190fd5b5050600160a060020a03166000908152600560205260409020429055565b600160a060020a038116600090815260056020526040812080548391908310610ce9576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b505050600160a060020a031660009081526005602052604090205490565b600160a060020a0381166000908152600560205260408120805460609284929111610d6a576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b600160a060020a038416600090815260056020908152604091829020600190810180548451600293821615610100026000190190911692909204601f810184900484028301840190945283825290929091830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505050505092505050919050565b600160a060020a038316600090815260056020526040902080548491904210610e8d576040805160e560020a62461bcd02815260206004820152601060248201527f4b6579206973206e6f742076616c696400000000000000000000000000000000604482015290519081900360640190fd5b610ec8868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750610f1c945050505050565b505050505050565b600054600160a060020a03163314610ee757600080fd5b610ef0816113df565b50565b600160a060020a0380821660009081526007602052604081205490911680151561044d57600080fd5b6000806000806000600680549050600454111515610faa576040805160e560020a62461bcd02815260206004820152602360248201527f4d6178696d756d206e756d626572206f66206b65797320616c7265616479207360448201527f6f6c640000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b87600060015460a060020a900460ff166002811115610fc557fe5b148061100b57506001805460a060020a900460ff166002811115610fe557fe5b14801561100b5750600160a060020a03811661100081610ef3565b600160a060020a0316145b1515611087576040805160e560020a62461bcd02815260206004820152603960248201527f4f6e6c79207075626c6963206c6f636b73206f7220726573747269636564207760448201527f69746820616e20617070726f76656420726563697069656e7400000000000000606482015290519081900360840190fd5b600160a060020a038916151561109c57600080fd5b600154600354604080517f0cb175e3000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152602482019390935281519290931698508892630cb175e392604480830193928290030181600087803b15801561110e57600080fd5b505af1158015611122573d6000803e3d6000fd5b505050506040513d604081101561113857600080fd5b508051602090910151600354919650945092508285111561115c5760009250611164565b846003540392505b348311156111bc576040805160e560020a62461bcd02815260206004820152601260248201527f496e73756666696369656e742066756e64730000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0389166000908152600560205260409020549150428210156112525760068054600181019091557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038b16908117909155600254600091825260056020526040909120429091019055611273565b600254600160a060020a038a16600090815260056020526040902090830190555b600160a060020a038916600090815260056020908152604090912088516112a2926001909201918a01906114e1565b5060008511156113165785600160a060020a0316633652466386866040518363ffffffff1660e060020a0281526004018083815260200182815260200192505050600060405180830381600087803b1580156112fd57600080fd5b505af1158015611311573d6000803e3d6000fd5b505050505b85600160a060020a031663939d9f1f848a6040518363ffffffff1660e060020a0281526004018083815260200182600160a060020a0316600160a060020a0316815260200192505050600060405180830381600087803b15801561137957600080fd5b505af115801561138d573d6000803e3d6000fd5b505060408051600160a060020a038d168082529151919350600092507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a3505050505050505050565b600160a060020a03811615156113f457600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061149557805485556114d1565b828001600101855582156114d157600052602060002091601f016020900482015b828111156114d15782548255916001019190600101906114b6565b506114dd92915061154f565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061152257805160ff19168380011785556114d1565b828001600101855582156114d1579182015b828111156114d1578251825591602001919060010190611534565b610a1e91905b808211156114dd576000815560010161155556004e6f2073756368206b6579000000000000000000000000000000000000000000a165627a7a72305820980beeb9011988cee5c63843b04a46a8230b5b4d87ec22e768f614194e035b4b0029",
"deployedBytecode": "0x60806040526004361061010e5763ffffffff60e060020a600035041663025e7c278114610113578063081812fc14610147578063095ea7b31461015f5780630f15023b1461017857806310e569731461018d57806311a4c03a146101b45780631f1ec029146101c957806323b872dd146101e15780633ccfd60b146101fe57806347a510151461021357806347dc10851461024c57806353b704d0146102615780636352211e1461028157806370a0823114610299578063715018a6146102ba57806374b6c106146102cf5780638da5cb5b146102e45780639f98d3cb146102f9578063abdf82ce1461031a578063d44fa14a1461033b578063d8125eb3146103d1578063f2fde38b146103f9575b600080fd5b34801561011f57600080fd5b5061012b60043561041a565b60408051600160a060020a039092168252519081900360200190f35b34801561015357600080fd5b5061012b600435610442565b610176600160a060020a0360043516602435610453565b005b34801561018457600080fd5b5061012b6105c1565b34801561019957600080fd5b506101a26105d0565b60408051918252519081900360200190f35b3480156101c057600080fd5b506101a26105d6565b3480156101d557600080fd5b506101766004356105dc565b610176600160a060020a03600435811690602435166044356105f8565b34801561020a57600080fd5b5061017661095a565b34801561021f57600080fd5b50610228610a0a565b6040518082600281111561023857fe5b60ff16815260200191505060405180910390f35b34801561025857600080fd5b506101a2610a1a565b61017660048035600160a060020a03169060248035908101910135610a21565b34801561028d57600080fd5b5061012b600435610a62565b3480156102a557600080fd5b506101a2600160a060020a0360043516610acb565b3480156102c657600080fd5b50610176610b5f565b3480156102db57600080fd5b506101a2610bcb565b3480156102f057600080fd5b5061012b610bd1565b34801561030557600080fd5b50610176600160a060020a0360043516610be0565b34801561032657600080fd5b506101a2600160a060020a0360043516610c88565b34801561034757600080fd5b5061035c600160a060020a0360043516610d07565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039657818101518382015260200161037e565b50505050905090810190601f1680156103c35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610176600160a060020a03600480358216916024803590911691604435918201910135610e1a565b34801561040557600080fd5b50610176600160a060020a0360043516610ed0565b600680548290811061042857fe5b600091825260209091200154600160a060020a0316905081565b600061044d82610ef3565b92915050565b80600260015460a060020a900460ff16600281111561046e57fe5b14156104ea576040805160e560020a62461bcd02815260206004820152602a60248201527f4f6e6c7920616c6c6f776564206f6e207075626c6963206f722072657374726960448201527f63746564206c6f636b7300000000000000000000000000000000000000000000606482015290519081900360840190fd5b600054600160a060020a031633148061052d5750600160a060020a0381163314801561052d5750600060015460a060020a900460ff16600281111561052b57fe5b145b151561053857600080fd5b600160a060020a038316151561054d57600080fd5b600160a060020a03828116600081815260076020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff19169488169485179055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600154600160a060020a031681565b60035481565b60025481565b600054600160a060020a031633146105f357600080fd5b600355565b6006546004546000911061067c576040805160e560020a62461bcd02815260206004820152602360248201527f4d6178696d756d206e756d626572206f66206b65797320616c7265616479207360448201527f6f6c640000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600060015460a060020a900460ff16600281111561069657fe5b146106eb576040805160e560020a62461bcd02815260206004820152601c60248201527f4f6e6c7920616c6c6f776564206f6e207075626c6963206c6f636b7300000000604482015290519081900360640190fd5b600160a060020a0382166000908152600560205260408120805484921061074a576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b83600160a060020a03811633148061077257503361076782610ef3565b600160a060020a0316145b15156107c8576040805160e560020a62461bcd02815260206004820181905260248201527f4f6e6c79206b6579206f776e6572206f7220617070726f766564206f776e6572604482015290519081900360640190fd5b600160a060020a03861615156107dd57600080fd5b600160a060020a038616600090815260056020526040902054935083151561085857600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0388161790555b42841161088757600160a060020a038088166000908152600560205260408082205492891682529020556108b4565b600160a060020a038088166000908152600560205260408082205492891682529020429186019190910390555b600160a060020a0387811660009081526005602052604080822092891682529020600191820180546108fb939283019260029082161561010002600019019091160461145c565b50600160a060020a0380881660008181526005602090815260409182902042905581518981529151938a16937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350505050505050565b60008054600160a060020a0316331461097257600080fd5b503031600081116109cd576040805160e560020a62461bcd02815260206004820152601060248201527f4e6f7420656e6f7567682066756e647300000000000000000000000000000000604482015290519081900360640190fd5b60008054604051600160a060020a039091169183156108fc02918491818181858888f19350505050158015610a06573d6000803e3d6000fd5b5050565b60015460a060020a900460ff1681565b6006545b90565b610a5d83600084848080601f01602080910402602001604051908101604052809392919081815260200183838082843750610f1c945050505050565b505050565b600160a060020a038116600090815260056020526040812080548391908310610ac3576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b509192915050565b600160a060020a038116600090815260056020526040812080548391908310610b2c576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b600160a060020a03841660009081526005602052604081205411610b51576000610b54565b60015b60ff16949350505050565b600054600160a060020a03163314610b7657600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60045481565b600054600160a060020a031681565b600054600160a060020a03163314610bf757600080fd5b600160a060020a038116600090815260056020526040902080548291904210610c6a576040805160e560020a62461bcd02815260206004820152601060248201527f4b6579206973206e6f742076616c696400000000000000000000000000000000604482015290519081900360640190fd5b5050600160a060020a03166000908152600560205260409020429055565b600160a060020a038116600090815260056020526040812080548391908310610ce9576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b505050600160a060020a031660009081526005602052604090205490565b600160a060020a0381166000908152600560205260408120805460609284929111610d6a576040805160e560020a62461bcd02815260206004820152600b602482015260008051602061156a833981519152604482015290519081900360640190fd5b600160a060020a038416600090815260056020908152604091829020600190810180548451600293821615610100026000190190911692909204601f810184900484028301840190945283825290929091830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505050505092505050919050565b600160a060020a038316600090815260056020526040902080548491904210610e8d576040805160e560020a62461bcd02815260206004820152601060248201527f4b6579206973206e6f742076616c696400000000000000000000000000000000604482015290519081900360640190fd5b610ec8868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750610f1c945050505050565b505050505050565b600054600160a060020a03163314610ee757600080fd5b610ef0816113df565b50565b600160a060020a0380821660009081526007602052604081205490911680151561044d57600080fd5b6000806000806000600680549050600454111515610faa576040805160e560020a62461bcd02815260206004820152602360248201527f4d6178696d756d206e756d626572206f66206b65797320616c7265616479207360448201527f6f6c640000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b87600060015460a060020a900460ff166002811115610fc557fe5b148061100b57506001805460a060020a900460ff166002811115610fe557fe5b14801561100b5750600160a060020a03811661100081610ef3565b600160a060020a0316145b1515611087576040805160e560020a62461bcd02815260206004820152603960248201527f4f6e6c79207075626c6963206c6f636b73206f7220726573747269636564207760448201527f69746820616e20617070726f76656420726563697069656e7400000000000000606482015290519081900360840190fd5b600160a060020a038916151561109c57600080fd5b600154600354604080517f0cb175e3000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152602482019390935281519290931698508892630cb175e392604480830193928290030181600087803b15801561110e57600080fd5b505af1158015611122573d6000803e3d6000fd5b505050506040513d604081101561113857600080fd5b508051602090910151600354919650945092508285111561115c5760009250611164565b846003540392505b348311156111bc576040805160e560020a62461bcd02815260206004820152601260248201527f496e73756666696369656e742066756e64730000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0389166000908152600560205260409020549150428210156112525760068054600181019091557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038b16908117909155600254600091825260056020526040909120429091019055611273565b600254600160a060020a038a16600090815260056020526040902090830190555b600160a060020a038916600090815260056020908152604090912088516112a2926001909201918a01906114e1565b5060008511156113165785600160a060020a0316633652466386866040518363ffffffff1660e060020a0281526004018083815260200182815260200192505050600060405180830381600087803b1580156112fd57600080fd5b505af1158015611311573d6000803e3d6000fd5b505050505b85600160a060020a031663939d9f1f848a6040518363ffffffff1660e060020a0281526004018083815260200182600160a060020a0316600160a060020a0316815260200192505050600060405180830381600087803b15801561137957600080fd5b505af115801561138d573d6000803e3d6000fd5b505060408051600160a060020a038d168082529151919350600092507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a3505050505050505050565b600160a060020a03811615156113f457600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061149557805485556114d1565b828001600101855582156114d157600052602060002091601f016020900482015b828111156114d15782548255916001019190600101906114b6565b506114dd92915061154f565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061152257805160ff19168380011785556114d1565b828001600101855582156114d1579182015b828111156114d1578251825591602001919060010190611534565b610a1e91905b808211156114dd576000815560010161155556004e6f2073756368206b6579000000000000000000000000000000000000000000a165627a7a72305820980beeb9011988cee5c63843b04a46a8230b5b4d87ec22e768f614194e035b4b0029",
"sourceMap": "394:12396:0:-;;;4324:482;8:9:-1;5:2;;;30:1;27;20:12;5:2;4324:482:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;567:5:7;:18;;;4503:27:0;;575:10:7;-1:-1:-1;;;;;;4503:27:0;;;;;;;;567:18:7;;;;4617:14:0;-1:-1:-1;;;;;4617:14:0;;;;;;4324:482;;;;;;567:18:7;-1:-1:-1;;;;;;4639:42:0;;4324:482;4639:42;;;;;;;;;;;;-1:-1:-1;4689:18:0;:40;;;;4737:8;:20;4765:15;:34;-1:-1:-1;;394:12396:0;;;;;;",
"deployedSourceMap": "394:12396:0:-;;;;;;;;-1:-1:-1;394:12396:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1634:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1634:23:0;;;;;;;;;-1:-1:-1;;;;;1634:23:0;;;;;;;;;;;;;;8620:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8620:133:0;;;;;7612:299;;-1:-1:-1;;;;;7612:299:0;;;;;;;;;636:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;636:29:0;;;;1141:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1141:20:0;;;;;;;;;;;;;;;;;;;;987:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;987:30:0;;;;9332:108;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9332:108:0;;;;;5745:1258;;-1:-1:-1;;;;;5745:1258:0;;;;;;;;;;;;7245:177;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7245:177:0;;;;757:47;;8:9:-1;5:2;;;30:1;27;20:12;5:2;757:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8854:99;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8854:99:0;;;;4996:154;;;;;-1:-1:-1;;;;;4996:154:0;;;;;;;;;;;;;8369;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8369:154:0;;;;;8068:176;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8068:176:0;-1:-1:-1;;;;;8068:176:0;;;;;1001:111:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:7;;;;1232:27:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1232:27:0;;;;238:20:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:7;;;;9039:184:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9039:184:0;-1:-1:-1;;;;;9039:184:0;;;;;9880:185;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9880:185:0;-1:-1:-1;;;;;9880:185:0;;;;;9577:151;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9577:151:0;-1:-1:-1;;;;;9577:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9577:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5398:207;;-1:-1:-1;;;;;5398:207:0;;;;;;;;;;;;;;;;;;;;;;;1274:103:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:7;-1:-1:-1;;;;;1274:103:7;;;;;1634:23:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1634:23:0;;-1:-1:-1;1634:23:0;:::o;8620:133::-;8702:7;8726:22;8739:8;8726:12;:22::i;:::-;8719:29;8620:133;-1:-1:-1;;8620:133:0:o;7612:299::-;7751:8;2545:28;2522:19;;-1:-1:-1;;;2522:19:0;;;;:51;;;;;;;;;;2514:106;;;;;-1:-1:-1;;;;;2514:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2642:5;;-1:-1:-1;;;;;2642:5:0;2651:10;2642:19;;:116;;-1:-1:-1;;;;;;2672:31:0;;2693:10;2672:31;:85;;;;-1:-1:-1;2730:27:0;2707:19;;-1:-1:-1;;;2707:19:0;;;;:50;;;;;;;;;2672:85;2627:137;;;;;;;;-1:-1:-1;;;;;7777:23:0;;;;7769:32;;;;;;-1:-1:-1;;;;;7808:27:0;;;;;;;:8;:27;;;;;;;;;:39;;-1:-1:-1;;7808:39:0;;;;;;;;;7858:48;;;;;;;;;;;;;;;;;7612:299;;;:::o;636:29::-;;;-1:-1:-1;;;;;636:29:0;;:::o;1141:20::-;;;;:::o;987:30::-;;;;:::o;9332:108::-;719:5:7;;-1:-1:-1;;;;;719:5:7;705:10;:19;697:28;;;;;;9415:8:0;:20;9332:108::o;5745:1258::-;4238:6;:13;4220:15;;6010:23;;-1:-1:-1;4212:79:0;;;;;-1:-1:-1;;;;;4212:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2266:27;2243:19;;-1:-1:-1;;;2243:19:0;;;;:50;;;;;;;;;2235:91;;;;;-1:-1:-1;;;;;2235:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2881:18:0;;2863:15;2881:18;;;:10;:18;;;;;2920:23;;2881:18;;-1:-1:-1;2905:63:0;;;;;-1:-1:-1;;;;;2905:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;2905:63:0;;;;;;;;;;;;;;;5952:8;-1:-1:-1;;;;;3993:31:0;;4014:10;3993:31;;:77;;-1:-1:-1;4060:10:0;4034:22;4047:8;4034:12;:22::i;:::-;-1:-1:-1;;;;;4034:36:0;;3993:77;3978:134;;;;;;;-1:-1:-1;;;;;3978:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5978:24:0;;;;5970:33;;;;;;-1:-1:-1;;;;;6036:22:0;;;;;;:10;:22;;;;;:42;;-1:-1:-1;6089:23:0;;6085:120;;;6175:6;27:10:-1;;39:1;23:18;;45:23;;-1:-1;6175:23:0;;;;;;;;-1:-1:-1;;6175:23:0;-1:-1:-1;;;;;6175:23:0;;;;;6085:120;6237:3;6215:25;;6211:493;;-1:-1:-1;;;;;6426:17:0;;;;;;;:10;:17;;;;;;:37;6381:22;;;;;;;:82;6211:493;;;-1:-1:-1;;;;;6633:17:0;;;;;;;:10;:17;;;;;;:37;6580:22;;;;;;;6694:3;6633:58;;;:64;;;;6580:117;;6211:493;-1:-1:-1;;;;;6773:17:0;;;;;;;:10;:17;;;;;;6743:22;;;;;;;6773;;;;6743:52;;;;:27;;;;:52;;;;;;;-1:-1:-1;;6743:52:0;;;;;;:::i;:::-;-1:-1:-1;;;;;;6861:17:0;;;;;;;:10;:17;;;;;;;;;6901:3;6861:43;;6937:61;;;;;;;;;;;;;;;;;;;;;2974:1;2332;;5745:1258;;;;:::o;7245:177::-;7303:15;719:5:7;;-1:-1:-1;;;;;719:5:7;705:10;:19;697:28;;;;;;-1:-1:-1;7329:4:0;7321:21;7366:1;7356:11;;7348:40;;;;;-1:-1:-1;;;;;7348:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7394:5;;;:23;;-1:-1:-1;;;;;7394:5:0;;;;:23;;;;;;;;:5;:23;;:5;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7394:23:0;7245:177;:::o;757:47::-;;;-1:-1:-1;757:47:0;;;;;:::o;8854:99::-;8935:6;:13;8854:99;;:::o;4996:154::-;5102:43;5115:10;5135:1;5139:5;;5102:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5102:12:0;;-1:-1:-1;;;;;5102:43:0:i;:::-;4996:154;;;:::o;8369:::-;-1:-1:-1;;;;;2881:18:0;;8477:7;2881:18;;;:10;:18;;;;;2920:23;;2881:18;;;-1:-1:-1;;2905:63:0;;;;;-1:-1:-1;;;;;2905:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;2905:63:0;;;;;;;;;;;;;;;-1:-1:-1;8509:8:0;;8369:154;-1:-1:-1;;8369:154:0:o;8068:176::-;-1:-1:-1;;;;;2881:18:0;;8165:7;2881:18;;;:10;:18;;;;;2920:23;;2881:18;;;-1:-1:-1;;2905:63:0;;;;;-1:-1:-1;;;;;2905:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;2905:63:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;8189:18:0;;8230:1;8189:18;;;:10;:18;;;;;:38;:42;:50;;8238:1;8189:50;;;8234:1;8189:50;8182:57;;;8068:176;-1:-1:-1;;;;8068:176:0:o;1001:111:7:-;719:5;;-1:-1:-1;;;;;719:5:7;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:7;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:7;;;1001:111::o;1232:27:0:-;;;;:::o;238:20:7:-;;;-1:-1:-1;;;;;238:20:7;;:::o;9039:184:0:-;719:5:7;;-1:-1:-1;;;;;719:5:7;705:10;:19;697:28;;;;;;-1:-1:-1;;;;;3096:18:0;;3078:15;3096:18;;;:10;:18;;;;;3135:23;;3096:18;;;3161:3;-1:-1:-1;3120:70:0;;;;;-1:-1:-1;;;;;3120:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;9142:18:0;;;;;:10;:18;;;;;9183:3;9142:44;;9039:184::o;9880:185::-;-1:-1:-1;;;;;2881:18:0;;9991:14;2881:18;;;:10;:18;;;;;2920:23;;2881:18;;;-1:-1:-1;;2905:63:0;;;;;-1:-1:-1;;;;;2905:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;2905:63:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;10022:18:0;;;;;:10;:18;;;;;:38;;9880:185::o;9577:151::-;-1:-1:-1;;;;;2881:18:0;;2863:15;2881:18;;;:10;:18;;;;;2920:23;;9673:10;;2881:18;;;2920:27;2905:63;;;;;-1:-1:-1;;;;;2905:63:0;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;2905:63:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;9700:18:0;;;;;;:10;:18;;;;;;;;;:23;;;;9693:30;;;;;;;;;;;-1:-1:-1;;9693:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9700:23;;9693:30;;9700:23;9693:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9577:151;;;;;:::o;5398:207::-;-1:-1:-1;;;;;3096:18:0;;3078:15;3096:18;;;:10;:18;;;;;3135:23;;3096:18;;;3161:3;-1:-1:-1;3120:70:0;;;;;-1:-1:-1;;;;;3120:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5558:42;5571:10;5583:9;5594:5;;5558:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5558:12:0;;-1:-1:-1;;;;;5558:42:0:i;:::-;5398:207;;;;;;:::o;1274:103:7:-;719:5;;-1:-1:-1;;;;;719:5:7;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;12551:236:0:-;-1:-1:-1;;;;;12679:27:0;;;12634:7;12679:27;;;:8;:27;;;;;;12634:7;;12679:27;12720:31;;;12712:40;;;;;10614:1770;10896:13;10940;10959:11;11059:13;11550:23;4238:6;:13;;;;4220:15;;:31;4212:79;;;;;;;-1:-1:-1;;;;;4212:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10759:10;3565:27;3542:19;;-1:-1:-1;;;3542:19:0;;;;:50;;;;;;;;;:175;;;-1:-1:-1;3626:31:0;3603:19;;-1:-1:-1;3603:19:0;;;;-1:-1:-1;3603:54:0;;;;;;;;:113;;;;-1:-1:-1;;;;;;3669:47:0;;:33;:47;:12;:33::i;:::-;-1:-1:-1;;;;;3669:47:0;;3603:113;3534:253;;;;;;;-1:-1:-1;;;;;3534:253:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10787:24:0;;;;10779:33;;;;;;10919:14;;11044:8;;10997:56;;;;;;-1:-1:-1;;;;;10997:56:0;;;;;;;;;;;;;;;;10919:14;;;;;-1:-1:-1;10919:14:0;;10997:34;;:56;;;;;;;;;;;-1:-1:-1;10919:14:0;10997:56;;;5:2:-1;;;;30:1;27;20:12;5:2;10997:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10997:56:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10997:56:0;;;;;;;11075:8;;10997:56;;-1:-1:-1;10997:56:0;-1:-1:-1;11075:8:0;-1:-1:-1;11093:19:0;;;11089:103;;;11133:1;11122:12;;11089:103;;;11177:8;11166;;:19;11155:30;;11089:103;11349:9;:21;-1:-1:-1;11349:21:0;11341:52;;;;;-1:-1:-1;;;;;11341:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11576:22:0;;;;;;:10;:22;;;;;:42;;-1:-1:-1;11649:3:0;11628:24;;11624:312;;;11662:6;27:10:-1;;39:1;23:18;;45:23;;;11662::0;;;;-1:-1:-1;;11662:23:0;-1:-1:-1;;;;;11662:23:0;;;;;;;;-1:-1:-1;11744:18:0;-1:-1:-1;11693:22:0;;;:10;11662:23;11693:22;;;;;11738:3;:24;;;11693:69;;11624:312;;;11911:18;;-1:-1:-1;;;;;11845:22:0;;;;;;:10;:22;;;;;11890:39;;;11845:84;;11624:312;-1:-1:-1;;;;;11975:22:0;;;;;;:10;:22;;;;;;;;:35;;;;-1:-1:-1;11975:27:0;;;;:35;;;;:::i;:::-;;12032:1;12021:8;:12;12017:80;;;12043:47;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12043:29:0;;;;;:47;;;;;-1:-1:-1;;12043:47:0;;;;;;;-1:-1:-1;12043:29:0;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;12043:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12043:47:0;;;;12017:80;12103:45;;;;;;;;;;;;-1:-1:-1;;;;;12103:45:0;;;;;;;;;:24;;;;;;:45;;;;;-1:-1:-1;;12103:45:0;;;;;;;;-1:-1:-1;12103:24:0;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;12103:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;12181:198:0;;;-1:-1:-1;;;;;12181:198:0;;;;;;;;;-1:-1:-1;12197:1:0;;-1:-1:-1;12181:198:0;;;;;;;;;;4297:1;10614:1770;;;;;;;;:::o;1512:171:7:-;-1:-1:-1;;;;;1582:23:7;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:7;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:7;-1:-1:-1;;;;;1661:17:7;;;;;;;;;;1512:171::o;394:12396:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;394:12396:0;;;-1:-1:-1;394:12396:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"source": "pragma solidity 0.4.24;\n\nimport \"./interfaces/ILock.sol\";\nimport \"./Unlock.sol\";\n\n/**\n * TODO: consider error codes rather than strings\n */\n\n/**\n * @title The Lock contract\n * @author Julien Genestoux (unlock-protocol.com)\n * Eventually: implement ERC721.\n * TODO: consider using a _private version for each method that is being invoked by the\n * public one as this seems to be a pattern.\n */\ncontract Lock is ILock {\n\n // The struct for a key\n struct Key {\n uint expirationTimestamp;\n bytes data; // Note: This can be expensive?\n }\n\n // Fields\n // Unlock Protocol address\n // TODO: should we make that private/internal?\n address public unlockProtocol;\n\n // Key release mechanism\n enum KeyReleaseMechanisms { Public, Restricted, Private }\n KeyReleaseMechanisms public keyReleaseMechanism;\n\n // Duration in seconds for which the keys are valid, after creation\n // should we take a smaller type use less gas?\n // TODO: add support for a timestamp instead of duration\n uint public expirationDuration;\n\n // price in wei of the next key\n // TODO: allow support for a keyPriceCalculator which could set prices dynamically\n uint public keyPrice;\n\n // Max number of keys sold if the keyReleaseMechanism is public\n uint public maxNumberOfKeys;\n\n // Keys\n // Each owner can have at most exactly one key\n // TODO: could we use public here? (this could be confusing though because it getter will\n // return 0 values when missing a key)\n mapping (address => Key) internal keyByOwner;\n\n // Addresses of owners are also stored in an array.\n // Addresses are never removed by design to avoid abuses around referals\n address[] public owners;\n\n // Keeping track of approved transfers\n // This is a mapping of addresses which have approved\n // the transfer of a key to another address where their key can be transfered\n // Note: the approver may actually NOT have a key... and there can only\n // be a single approved beneficiary\n // Note 2: for transfer, both addresses will be different\n // Note 3: for sales (new keys on restricted locks), both addresses will be the same\n mapping (address => address) internal approved;\n\n /**\n * MODIFIERS\n */\n // Ensure the lock is public\n modifier onlyPublic() {\n require(keyReleaseMechanism == KeyReleaseMechanisms.Public, \"Only allowed on public locks\");\n _;\n }\n\n // Ensure that the sender is either the lock owner or the key owner on a public lock\n modifier onlyLockOwnerOnRestrictedOrKeyOwnerInPublic(\n uint256 _tokenId\n ) {\n require(keyReleaseMechanism != KeyReleaseMechanisms.Private, \"Only allowed on public or restricted locks\");\n\n require(\n owner == msg.sender ||\n (address(_tokenId) == msg.sender && keyReleaseMechanism == KeyReleaseMechanisms.Public)\n );\n _;\n }\n\n // Ensures that an owner has a key\n modifier hasKey(\n address _owner\n ) {\n Key storage key = keyByOwner[_owner];\n require(\n key.expirationTimestamp > 0, \"No such key\"\n );\n _;\n }\n\n // Ensures that an owner has a valid key\n modifier hasValidKey(\n address _owner\n ) {\n Key storage key = keyByOwner[_owner];\n require(\n key.expirationTimestamp > now, \"Key is not valid\"\n );\n _;\n }\n\n // Ensure that the caller owns the token\n modifier onlyKeyOwner(\n uint256 _tokenId\n ) {\n require(\n address(_tokenId) == msg.sender\n );\n _;\n }\n\n // Ensures that the lock is public\n // or that the sender has been approved on restricted locks\n modifier onlyPublicOrApproved(\n address _recipient\n ) {\n require(keyReleaseMechanism == KeyReleaseMechanisms.Public ||\n (keyReleaseMechanism == KeyReleaseMechanisms.Restricted\n && _getApproved(uint256(_recipient)) == _recipient),\n \"Only public locks or restriced with an approved recipient\");\n _;\n }\n\n // Ensure that the caller has a key\n // or that the caller has been approved\n // for ownership of that key\n modifier onlyKeyOwnerOrApproved(\n uint256 _tokenId\n ) {\n require(\n address(_tokenId) == msg.sender\n || _getApproved(_tokenId) == msg.sender\n , \"Only key owner or approved owner\");\n _;\n }\n\n // Ensure that the Lock has not sold all of its keys.\n modifier notSoldOut() {\n require(maxNumberOfKeys > owners.length, \"Maximum number of keys already sold\");\n _;\n }\n\n // Constructor\n constructor(\n address _owner,\n KeyReleaseMechanisms _keyReleaseMechanism,\n uint _expirationDuration,\n uint _keyPrice,\n uint _maxNumberOfKeys\n )\n public {\n unlockProtocol = msg.sender; // Make sure we link back to Unlock's smart contract. (TODO: handle upgrades?)\n owner = _owner;\n keyReleaseMechanism = _keyReleaseMechanism;\n expirationDuration = _expirationDuration;\n keyPrice = _keyPrice;\n maxNumberOfKeys = _maxNumberOfKeys;\n }\n\n /**\n * @dev Purchase function, public version, with no referrer.\n * @param _recipient address of the recipient of the purchased key\n * @param _data optional marker for the key\n */\n function purchaseFor(\n address _recipient,\n bytes _data\n )\n external\n payable\n {\n return _purchaseFor(_recipient, address(0), _data);\n }\n\n /**\n * @dev Purchase function, public version, with referrer.\n * @param _recipient address of the recipient of the purchased key\n * @param _referrer address of the user making the referral\n * @param _data optional marker for the key\n */\n function purchaseForFrom(\n address _recipient,\n address _referrer,\n bytes _data\n )\n external\n payable\n hasValidKey(_referrer)\n {\n return _purchaseFor(_recipient, _referrer, _data);\n }\n\n /**\n * This is payable because at some point we want to allow the LOCK to capture a fee on 2ndary\n * market transactions...\n */\n function transferFrom(\n address _from,\n address _recipient,\n uint256 _tokenId\n )\n external\n payable\n notSoldOut()\n onlyPublic()\n hasKey(address(_tokenId))\n onlyKeyOwnerOrApproved(_tokenId)\n {\n require(_recipient != address(0));\n\n uint previousExpiration = keyByOwner[_recipient].expirationTimestamp;\n\n if (previousExpiration == 0) {\n // The recipient did not have a key previously\n owners.push(_recipient);\n }\n\n if (previousExpiration <= now) {\n // The recipient did not have a key, or had a key but it expired. The new expiration is the\n // sender's key expiration\n keyByOwner[_recipient].expirationTimestamp = keyByOwner[_from].expirationTimestamp;\n } else {\n // The recipient has a non expired key. We just add them the corresponding remaining time\n keyByOwner[_recipient].expirationTimestamp =\n keyByOwner[_from].expirationTimestamp + previousExpiration - now;\n }\n // Overwite data in all cases\n keyByOwner[_recipient].data = keyByOwner[_from].data;\n\n // Effectively expiring the key for the previous owner\n keyByOwner[_from].expirationTimestamp = now;\n\n // trigger event\n emit Transfer(\n _from,\n _recipient,\n _tokenId\n );\n }\n\n /**\n * @dev Called by owner to wiwthdraw all funds from the lock.\n * TODO: consider allowing anybody to trigger this as long as it goes to owner anyway?\n * TODO: consider partial withdraws?\n * TODO: check for re-entrency?\n */\n function withdraw(\n )\n external\n onlyOwner\n {\n uint256 balance = address(this).balance;\n require(balance > 0, \"Not enough funds\");\n owner.transfer(balance);\n }\n\n /**\n * This approves _approved to get ownership of _tokenId.\n * Note: that since this is used for both purchase and transfer approvals\n * the approved token may not exist.\n */\n function approve(\n address _approved,\n uint256 _tokenId\n )\n external\n payable\n onlyLockOwnerOnRestrictedOrKeyOwnerInPublic(_tokenId)\n {\n require(_approved != address(0));\n\n approved[address(_tokenId)] = _approved;\n emit Approval(address(_tokenId), _approved, _tokenId);\n }\n\n /**\n * In the specific case of a Lock, each owner can own only at most 1 key.\n * @return The number of NFTs owned by `_owner`, either 0 or 1.\n */\n function balanceOf(\n address _owner\n )\n external\n view\n hasKey(_owner)\n returns (uint256)\n {\n return keyByOwner[_owner].expirationTimestamp > 0 ? 1 : 0;\n }\n\n /**\n * @notice ERC721: Find the owner of an NFT\n * @return The address of the owner of the NFT, if applicable\n */\n function ownerOf(\n uint256 _tokenId\n )\n external\n view\n hasKey(address(_tokenId))\n returns (address)\n {\n return address(_tokenId);\n }\n\n /**\n * external version\n * Will return the approved recipient for a key, if any.\n */\n function getApproved(\n uint256 _tokenId\n )\n external\n view\n returns (address)\n {\n return _getApproved(_tokenId);\n }\n\n /**\n * Public function which returns the total number of keys (both expired and valid)\n */\n function outstandingKeys()\n public\n view\n returns (uint)\n {\n return owners.length;\n }\n\n /**\n * A function which lets the owner of the lock expire a users' key.\n */\n function expireKeyFor(\n address _owner\n )\n public\n onlyOwner\n hasValidKey(_owner)\n {\n keyByOwner[_owner].expirationTimestamp = now; // Effectively expiring the key\n }\n \n /**\n * A function which lets the owner of the lock to change the price for future purchases.\n */\n function updateKeyPrice(\n uint _keyPrice\n )\n external\n onlyOwner\n {\n keyPrice = _keyPrice;\n }\n\n /**\n * @dev Returns the key's data field for a given owner.\n * @param _owner address of the user for whom we search the key\n */\n function keyDataFor(\n address _owner\n )\n public\n view\n hasKey(_owner)\n returns (bytes data)\n {\n return keyByOwner[_owner].data;\n }\n\n /**\n * @dev Returns the key's ExpirationTimestamp field for a given owner.\n * @param _owner address of the user for whom we search the key\n */\n function keyExpirationTimestampFor(\n address _owner\n )\n public\n view\n hasKey(_owner)\n returns (uint timestamp)\n {\n return keyByOwner[_owner].expirationTimestamp;\n }\n\n /**\n * @dev Purchase function: this lets a user purchase a key from the lock for another user\n * @param _recipient address of the recipient of the purchased key\n * @param _data optional marker for the key\n * This will fail if\n * - the keyReleaseMechanism is private\n * - the keyReleaseMechanism is Approved and the recipient has not been previously approved\n * - the amount value is smaller than the price\n * - the recipient already owns a key\n * TODO: next version of solidity will allow for message to be added to require.\n */\n function _purchaseFor(\n address _recipient,\n address _referrer,\n bytes _data\n )\n internal\n notSoldOut()\n onlyPublicOrApproved(_recipient)\n {\n require(_recipient != address(0));\n\n // Let's get the actual price for the key from the Unlock smart contract\n Unlock unlock = Unlock(unlockProtocol);\n uint discount;\n uint tokens;\n (discount, tokens) = unlock.computeAvailableDiscountFor(_recipient, keyPrice);\n uint netPrice = keyPrice;\n if (discount > keyPrice) {\n netPrice = 0;\n } else {\n netPrice = keyPrice - discount;\n }\n\n // We explicitly allow for greater amounts to allow \"donations\" or partial refunds after\n // discounts (TODO implement partial refunds)\n require(msg.value >= netPrice, \"Insufficient funds\");\n // TODO: If there is more than the required price, then let's return whatever is extra\n // extra (CAREFUL: re-entrency!)\n\n // Assign the key\n uint previousExpiration = keyByOwner[_recipient].expirationTimestamp;\n if (previousExpiration < now) {\n owners.push(_recipient);\n keyByOwner[_recipient].expirationTimestamp = now + expirationDuration;\n } else {\n // This is an existing owner trying to extend their key\n keyByOwner[_recipient].expirationTimestamp = previousExpiration + expirationDuration;\n }\n // Overwite data in all cases\n keyByOwner[_recipient].data = _data;\n\n if (discount > 0) {\n unlock.recordConsumedDiscount(discount, tokens);\n }\n\n unlock.recordKeyPurchase(netPrice, _referrer);\n\n // trigger event\n emit Transfer(\n 0, // This is a creation.\n _recipient,\n uint256(_recipient) // Note: since each user can own a single token, we use the current\n // owner (new!) for the token id\n );\n }\n\n /**\n * Will return the approved recipient for a key transfer or ownership.\n * Note: this does not check that a corresponding key\n * actually exists.\n */\n function _getApproved(\n uint256 _tokenId\n )\n internal\n view\n returns (address)\n {\n address approvedRecipient = approved[address(_tokenId)];\n require(approvedRecipient != address(0));\n return approvedRecipient;\n }\n\n}\n",
"sourcePath": "/Users/julien/repos/unlock/smart-contracts/contracts/Lock.sol",
"ast": {
"absolutePath": "/Users/julien/repos/unlock/smart-contracts/contracts/Lock.sol",
"exportedSymbols": {
"Lock": [
727
]
},
"id": 728,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:0"
},
{
"absolutePath": "/Users/julien/repos/unlock/smart-contracts/contracts/interfaces/ILock.sol",
"file": "./interfaces/ILock.sol",
"id": 2,
"nodeType": "ImportDirective",
"scope": 728,
"sourceUnit": 1133,
"src": "25:32:0",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/julien/repos/unlock/smart-contracts/contracts/Unlock.sol",
"file": "./Unlock.sol",
"id": 3,
"nodeType": "ImportDirective",
"scope": 728,
"sourceUnit": 892,
"src": "58:22:0",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 4,
"name": "ILock",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1132,
"src": "411:5:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILock_$1132",
"typeString": "contract ILock"
}
},
"id": 5,
"nodeType": "InheritanceSpecifier",
"src": "411:5:0"
}
],
"contractDependencies": [
1120,
1132,
1183,
1269
],
"contractKind": "contract",
"documentation": "@title The Lock contract\n@author Julien Genestoux (unlock-protocol.com)\nEventually: implement ERC721.\n TODO: consider using a _private version for each method that is being invoked by the\npublic one as this seems to be a pattern.",
"fullyImplemented": true,
"id": 727,
"linearizedBaseContracts": [
727,
1132,
1269,
1120,
1183
],
"name": "Lock",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "Lock.Key",
"id": 10,
"members": [
{
"constant": false,
"id": 7,
"name": "expirationTimestamp",
"nodeType": "VariableDeclaration",
"scope": 10,
"src": "465:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "465:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 9,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 10,
"src": "495:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 8,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "495:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"name": "Key",
"nodeType": "StructDefinition",
"scope": 727,
"src": "448:94:0",
"visibility": "public"
},
{
"constant": false,
"id": 12,
"name": "unlockProtocol",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "636:29:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "636:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"canonicalName": "Lock.KeyReleaseMechanisms",
"id": 16,
"members": [
{
"id": 13,
"name": "Public",
"nodeType": "EnumValue",
"src": "725:6:0"
},
{
"id": 14,
"name": "Restricted",
"nodeType": "EnumValue",
"src": "733:10:0"
},
{
"id": 15,
"name": "Private",
"nodeType": "EnumValue",
"src": "745:7:0"
}
],
"name": "KeyReleaseMechanisms",
"nodeType": "EnumDefinition",
"src": "697:57:0"
},
{
"constant": false,
"id": 18,
"name": "keyReleaseMechanism",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "757:47:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_KeyReleaseMechanisms_$16",
"typeString": "enum Lock.KeyReleaseMechanisms"
},
"typeName": {
"contractScope": null,
"id": 17,
"name": "KeyReleaseMechanisms",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 16,
"src": "757:20:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_KeyReleaseMechanisms_$16",
"typeString": "enum Lock.KeyReleaseMechanisms"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 20,
"name": "expirationDuration",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "987:30:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "987:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 22,
"name": "keyPrice",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "1141:20:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 21,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1141:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 24,
"name": "maxNumberOfKeys",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "1232:27:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1232:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 28,
"name": "keyByOwner",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "1456:44:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_Key_$10_storage_$",
"typeString": "mapping(address => struct Lock.Key)"
},
"typeName": {
"id": 27,
"keyType": {
"id": 25,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1465:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "1456:24:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_Key_$10_storage_$",
"typeString": "mapping(address => struct Lock.Key)"
},
"valueType": {
"contractScope": null,
"id": 26,
"name": "Key",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 10,
"src": "1476:3:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Key_$10_storage_ptr",
"typeString": "struct Lock.Key"
}
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 31,
"name": "owners",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "1634:23:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 29,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1634:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 30,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1634:9:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 35,
"name": "approved",
"nodeType": "VariableDeclaration",
"scope": 727,
"src": "2098:46:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
},
"typeName": {
"id": 34,
"keyType": {
"id": 32,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2107:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "2098:28:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_address_$",
"typeString": "mapping(address => address)"
},
"valueType": {
"id": 33,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2118:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
"id": 46,
"nodeType": "Block",
"src": "2229:109:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_enum$_KeyReleaseMechanisms_$16",
"typeString": "enum Lock.KeyReleaseMechanisms"
},
"id": 41,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 38,
"name": "keyReleaseMechanism",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 18,
"src": "2243:19:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_KeyReleaseMechanisms_$16",
"typeString": "enum Lock.KeyReleaseMechanisms"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 39,
"name": "KeyReleaseMechanisms",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 16,
"src": "2266:20:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_enum$_KeyReleaseMechanisms_$16_$",
"typeString": "type(enum Lock.KeyReleaseMechanisms)"
}
},
"id": 40,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberName": "Public",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "2266:27:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_KeyReleaseMechanisms_$16",
"typeString": "enum Lock.KeyReleaseMechanisms"
}
},
"src": "2243:50:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4f6e6c7920616c6c6f776564206f6e207075626c6963206c6f636b73",
"id": 42,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2295:30:0",
"subdenomination": null,