@0xpolygonid/js-sdk 1.0.0-beta.4 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,10 +96,10 @@ class ValueProof {
96
96
  *
97
97
  */
98
98
  validate() {
99
- if (!this.path) {
99
+ if (typeof this.path !== 'bigint') {
100
100
  throw new Error(CircuitError.EmptyJsonLDQueryPath);
101
101
  }
102
- if (!this.value) {
102
+ if (typeof this.value !== 'bigint') {
103
103
  throw new Error(CircuitError.EmptyJsonLDQueryValue);
104
104
  }
105
105
  if (!this.mtp) {
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/circuits/models.ts"],"names":[],"mappings":";;;AAEA,wDAAmD;AACnD,yCAA4C;AA4B5C;;;;;;GAMG;AACH,MAAa,KAAK;IAMhB;;;OAGG;IACH,QAAQ;QACN,IAAI,IAAI,CAAC,QAAQ,KAAK,yBAAc,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;YAC1F,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAClD,CAAC;CACF;AAdD,sBAcC;AAED;;;;;GAKG;AACH,IAAY,SASX;AATD,WAAY,SAAS;IACnB,qDAAqD;IACrD,8BAAiB,CAAA;IACjB,yEAAyE;IACzE,gDAAmC,CAAA;IACnC,mEAAmE;IACnE,4DAA+C,CAAA;IAC/C,6DAA6D;IAC7D,4DAA+C,CAAA;AACjD,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB;AAED;;;;;;GAMG;AACH,MAAa,YAAY;CAOxB;AAPD,oCAOC;AAmED;;;;;GAKG;AACH,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB,kEAAkD,CAAA;IAClD,gGAAgF,CAAA;IAChF,uFAAuE,CAAA;IACv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,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;YACjC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;SACpD;QACD,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;SACrD;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AA7BD,gCA6BC"}
@@ -12,6 +12,25 @@
12
12
  "name": "Initialized",
13
13
  "type": "event"
14
14
  },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "previousOwner",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "newOwner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "OwnershipTransferStarted",
32
+ "type": "event"
33
+ },
15
34
  {
16
35
  "anonymous": false,
17
36
  "inputs": [
@@ -64,17 +83,24 @@
64
83
  },
65
84
  {
66
85
  "inputs": [],
67
- "name": "ID_HISTORY_RETURN_LIMIT",
86
+ "name": "VERSION",
68
87
  "outputs": [
69
88
  {
70
- "internalType": "uint256",
89
+ "internalType": "string",
71
90
  "name": "",
72
- "type": "uint256"
91
+ "type": "string"
73
92
  }
74
93
  ],
75
94
  "stateMutability": "view",
76
95
  "type": "function"
77
96
  },
97
+ {
98
+ "inputs": [],
99
+ "name": "acceptOwnership",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
78
104
  {
79
105
  "inputs": [
80
106
  {
@@ -128,7 +154,7 @@
128
154
  "type": "uint256"
129
155
  }
130
156
  ],
131
- "internalType": "struct Smt.Proof",
157
+ "internalType": "struct IState.GistProof",
132
158
  "name": "",
133
159
  "type": "tuple"
134
160
  }
@@ -194,7 +220,7 @@
194
220
  "type": "uint256"
195
221
  }
196
222
  ],
197
- "internalType": "struct Smt.Proof",
223
+ "internalType": "struct IState.GistProof",
198
224
  "name": "",
199
225
  "type": "tuple"
200
226
  }
@@ -260,7 +286,7 @@
260
286
  "type": "uint256"
261
287
  }
262
288
  ],
263
- "internalType": "struct Smt.Proof",
289
+ "internalType": "struct IState.GistProof",
264
290
  "name": "",
265
291
  "type": "tuple"
266
292
  }
@@ -326,7 +352,7 @@
326
352
  "type": "uint256"
327
353
  }
328
354
  ],
329
- "internalType": "struct Smt.Proof",
355
+ "internalType": "struct IState.GistProof",
330
356
  "name": "",
331
357
  "type": "tuple"
332
358
  }
@@ -395,7 +421,7 @@
395
421
  "type": "uint256"
396
422
  }
397
423
  ],
398
- "internalType": "struct Smt.RootInfo[]",
424
+ "internalType": "struct IState.GistRootInfo[]",
399
425
  "name": "",
400
426
  "type": "tuple[]"
401
427
  }
@@ -459,7 +485,7 @@
459
485
  "type": "uint256"
460
486
  }
461
487
  ],
462
- "internalType": "struct Smt.RootInfo",
488
+ "internalType": "struct IState.GistRootInfo",
463
489
  "name": "",
464
490
  "type": "tuple"
465
491
  }
@@ -510,7 +536,7 @@
510
536
  "type": "uint256"
511
537
  }
512
538
  ],
513
- "internalType": "struct Smt.RootInfo",
539
+ "internalType": "struct IState.GistRootInfo",
514
540
  "name": "",
515
541
  "type": "tuple"
516
542
  }
@@ -561,7 +587,7 @@
561
587
  "type": "uint256"
562
588
  }
563
589
  ],
564
- "internalType": "struct Smt.RootInfo",
590
+ "internalType": "struct IState.GistRootInfo",
565
591
  "name": "",
566
592
  "type": "tuple"
567
593
  }
@@ -617,7 +643,7 @@
617
643
  "type": "uint256"
618
644
  }
619
645
  ],
620
- "internalType": "struct StateV2.StateInfo",
646
+ "internalType": "struct IState.StateInfo",
621
647
  "name": "",
622
648
  "type": "tuple"
623
649
  }
@@ -627,13 +653,18 @@
627
653
  },
628
654
  {
629
655
  "inputs": [
656
+ {
657
+ "internalType": "uint256",
658
+ "name": "id",
659
+ "type": "uint256"
660
+ },
630
661
  {
631
662
  "internalType": "uint256",
632
663
  "name": "state",
633
664
  "type": "uint256"
634
665
  }
635
666
  ],
636
- "name": "getStateInfoByState",
667
+ "name": "getStateInfoByIdAndState",
637
668
  "outputs": [
638
669
  {
639
670
  "components": [
@@ -673,7 +704,7 @@
673
704
  "type": "uint256"
674
705
  }
675
706
  ],
676
- "internalType": "struct StateV2.StateInfo",
707
+ "internalType": "struct IState.StateInfo",
677
708
  "name": "",
678
709
  "type": "tuple"
679
710
  }
@@ -739,7 +770,7 @@
739
770
  "type": "uint256"
740
771
  }
741
772
  ],
742
- "internalType": "struct StateV2.StateInfo[]",
773
+ "internalType": "struct IState.StateInfo[]",
743
774
  "name": "",
744
775
  "type": "tuple[]"
745
776
  }
@@ -801,7 +832,7 @@
801
832
  {
802
833
  "inputs": [
803
834
  {
804
- "internalType": "contract IVerifier",
835
+ "internalType": "contract IStateTransitionVerifier",
805
836
  "name": "verifierContractAddr",
806
837
  "type": "address"
807
838
  }
@@ -824,6 +855,19 @@
824
855
  "stateMutability": "view",
825
856
  "type": "function"
826
857
  },
858
+ {
859
+ "inputs": [],
860
+ "name": "pendingOwner",
861
+ "outputs": [
862
+ {
863
+ "internalType": "address",
864
+ "name": "",
865
+ "type": "address"
866
+ }
867
+ ],
868
+ "stateMutability": "view",
869
+ "type": "function"
870
+ },
827
871
  {
828
872
  "inputs": [],
829
873
  "name": "renounceOwnership",
@@ -846,6 +890,11 @@
846
890
  },
847
891
  {
848
892
  "inputs": [
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "id",
896
+ "type": "uint256"
897
+ },
849
898
  {
850
899
  "internalType": "uint256",
851
900
  "name": "state",
@@ -91,10 +91,10 @@ export class ValueProof {
91
91
  *
92
92
  */
93
93
  validate() {
94
- if (!this.path) {
94
+ if (typeof this.path !== 'bigint') {
95
95
  throw new Error(CircuitError.EmptyJsonLDQueryPath);
96
96
  }
97
- if (!this.value) {
97
+ if (typeof this.value !== 'bigint') {
98
98
  throw new Error(CircuitError.EmptyJsonLDQueryValue);
99
99
  }
100
100
  if (!this.mtp) {
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/circuits/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA4B5C;;;;;;GAMG;AACH,MAAM,OAAO,KAAK;IAMhB;;;OAGG;IACH,QAAQ;QACN,IAAI,IAAI,CAAC,QAAQ,KAAK,cAAc,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;YAC1F,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAClD,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,qDAAqD;IACrD,8BAAiB,CAAA;IACjB,yEAAyE;IACzE,gDAAmC,CAAA;IACnC,mEAAmE;IACnE,4DAA+C,CAAA;IAC/C,6DAA6D;IAC7D,4DAA+C,CAAA;AACjD,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAED;;;;;;GAMG;AACH,MAAM,OAAO,YAAY;CAOxB;AAmED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB,kEAAkD,CAAA;IAClD,gGAAgF,CAAA;IAChF,uFAAuE,CAAA;IACvE,qEAAqD,CAAA;IACrD,6DAA6C,CAAA;IAC7C,yDAAyC,CAAA;IACzC,8EAA8D,CAAA;IAC9D,+EAA+D,CAAA;IAC/D,oGAAoF,CAAA;IACpF,uEAAuD,CAAA;IACvD,mEAAmD,CAAA;IACnD,iEAAiD,CAAA;IACjD,qDAAqC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;YAClC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;SACrD;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;SACrD;IACH,CAAC;CACF"}
@@ -12,6 +12,25 @@
12
12
  "name": "Initialized",
13
13
  "type": "event"
14
14
  },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "previousOwner",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "newOwner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "OwnershipTransferStarted",
32
+ "type": "event"
33
+ },
15
34
  {
16
35
  "anonymous": false,
17
36
  "inputs": [
@@ -64,17 +83,24 @@
64
83
  },
65
84
  {
66
85
  "inputs": [],
67
- "name": "ID_HISTORY_RETURN_LIMIT",
86
+ "name": "VERSION",
68
87
  "outputs": [
69
88
  {
70
- "internalType": "uint256",
89
+ "internalType": "string",
71
90
  "name": "",
72
- "type": "uint256"
91
+ "type": "string"
73
92
  }
74
93
  ],
75
94
  "stateMutability": "view",
76
95
  "type": "function"
77
96
  },
97
+ {
98
+ "inputs": [],
99
+ "name": "acceptOwnership",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
78
104
  {
79
105
  "inputs": [
80
106
  {
@@ -128,7 +154,7 @@
128
154
  "type": "uint256"
129
155
  }
130
156
  ],
131
- "internalType": "struct Smt.Proof",
157
+ "internalType": "struct IState.GistProof",
132
158
  "name": "",
133
159
  "type": "tuple"
134
160
  }
@@ -194,7 +220,7 @@
194
220
  "type": "uint256"
195
221
  }
196
222
  ],
197
- "internalType": "struct Smt.Proof",
223
+ "internalType": "struct IState.GistProof",
198
224
  "name": "",
199
225
  "type": "tuple"
200
226
  }
@@ -260,7 +286,7 @@
260
286
  "type": "uint256"
261
287
  }
262
288
  ],
263
- "internalType": "struct Smt.Proof",
289
+ "internalType": "struct IState.GistProof",
264
290
  "name": "",
265
291
  "type": "tuple"
266
292
  }
@@ -326,7 +352,7 @@
326
352
  "type": "uint256"
327
353
  }
328
354
  ],
329
- "internalType": "struct Smt.Proof",
355
+ "internalType": "struct IState.GistProof",
330
356
  "name": "",
331
357
  "type": "tuple"
332
358
  }
@@ -395,7 +421,7 @@
395
421
  "type": "uint256"
396
422
  }
397
423
  ],
398
- "internalType": "struct Smt.RootInfo[]",
424
+ "internalType": "struct IState.GistRootInfo[]",
399
425
  "name": "",
400
426
  "type": "tuple[]"
401
427
  }
@@ -459,7 +485,7 @@
459
485
  "type": "uint256"
460
486
  }
461
487
  ],
462
- "internalType": "struct Smt.RootInfo",
488
+ "internalType": "struct IState.GistRootInfo",
463
489
  "name": "",
464
490
  "type": "tuple"
465
491
  }
@@ -510,7 +536,7 @@
510
536
  "type": "uint256"
511
537
  }
512
538
  ],
513
- "internalType": "struct Smt.RootInfo",
539
+ "internalType": "struct IState.GistRootInfo",
514
540
  "name": "",
515
541
  "type": "tuple"
516
542
  }
@@ -561,7 +587,7 @@
561
587
  "type": "uint256"
562
588
  }
563
589
  ],
564
- "internalType": "struct Smt.RootInfo",
590
+ "internalType": "struct IState.GistRootInfo",
565
591
  "name": "",
566
592
  "type": "tuple"
567
593
  }
@@ -617,7 +643,7 @@
617
643
  "type": "uint256"
618
644
  }
619
645
  ],
620
- "internalType": "struct StateV2.StateInfo",
646
+ "internalType": "struct IState.StateInfo",
621
647
  "name": "",
622
648
  "type": "tuple"
623
649
  }
@@ -627,13 +653,18 @@
627
653
  },
628
654
  {
629
655
  "inputs": [
656
+ {
657
+ "internalType": "uint256",
658
+ "name": "id",
659
+ "type": "uint256"
660
+ },
630
661
  {
631
662
  "internalType": "uint256",
632
663
  "name": "state",
633
664
  "type": "uint256"
634
665
  }
635
666
  ],
636
- "name": "getStateInfoByState",
667
+ "name": "getStateInfoByIdAndState",
637
668
  "outputs": [
638
669
  {
639
670
  "components": [
@@ -673,7 +704,7 @@
673
704
  "type": "uint256"
674
705
  }
675
706
  ],
676
- "internalType": "struct StateV2.StateInfo",
707
+ "internalType": "struct IState.StateInfo",
677
708
  "name": "",
678
709
  "type": "tuple"
679
710
  }
@@ -739,7 +770,7 @@
739
770
  "type": "uint256"
740
771
  }
741
772
  ],
742
- "internalType": "struct StateV2.StateInfo[]",
773
+ "internalType": "struct IState.StateInfo[]",
743
774
  "name": "",
744
775
  "type": "tuple[]"
745
776
  }
@@ -801,7 +832,7 @@
801
832
  {
802
833
  "inputs": [
803
834
  {
804
- "internalType": "contract IVerifier",
835
+ "internalType": "contract IStateTransitionVerifier",
805
836
  "name": "verifierContractAddr",
806
837
  "type": "address"
807
838
  }
@@ -824,6 +855,19 @@
824
855
  "stateMutability": "view",
825
856
  "type": "function"
826
857
  },
858
+ {
859
+ "inputs": [],
860
+ "name": "pendingOwner",
861
+ "outputs": [
862
+ {
863
+ "internalType": "address",
864
+ "name": "",
865
+ "type": "address"
866
+ }
867
+ ],
868
+ "stateMutability": "view",
869
+ "type": "function"
870
+ },
827
871
  {
828
872
  "inputs": [],
829
873
  "name": "renounceOwnership",
@@ -846,6 +890,11 @@
846
890
  },
847
891
  {
848
892
  "inputs": [
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "id",
896
+ "type": "uint256"
897
+ },
849
898
  {
850
899
  "internalType": "uint256",
851
900
  "name": "state",