@invisi-labs/protocol 1.1.0 → 1.1.2

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.
@@ -39,6 +39,11 @@ var invisiProtocolAbi = [
39
39
  "name": "_screener",
40
40
  "type": "address",
41
41
  "internalType": "address"
42
+ },
43
+ {
44
+ "name": "_addressRegistry",
45
+ "type": "address",
46
+ "internalType": "address"
42
47
  }
43
48
  ],
44
49
  "stateMutability": "nonpayable"
@@ -115,6 +120,19 @@ var invisiProtocolAbi = [
115
120
  ],
116
121
  "stateMutability": "view"
117
122
  },
123
+ {
124
+ "type": "function",
125
+ "name": "addressRegistry",
126
+ "inputs": [],
127
+ "outputs": [
128
+ {
129
+ "name": "",
130
+ "type": "address",
131
+ "internalType": "contract IAddressRegistry"
132
+ }
133
+ ],
134
+ "stateMutability": "view"
135
+ },
118
136
  {
119
137
  "type": "function",
120
138
  "name": "cancelCredit",
@@ -308,7 +326,7 @@ var invisiProtocolAbi = [
308
326
  {
309
327
  "name": "permit",
310
328
  "type": "tuple",
311
- "internalType": "struct IInvisiMetaTx.TokenPermit",
329
+ "internalType": "struct IMetaTx.TokenPermit",
312
330
  "components": [
313
331
  {
314
332
  "name": "deadline",
@@ -851,7 +869,7 @@ var invisiProtocolAbi = [
851
869
  {
852
870
  "name": "permit",
853
871
  "type": "tuple",
854
- "internalType": "struct IInvisiMetaTx.TokenPermit",
872
+ "internalType": "struct IMetaTx.TokenPermit",
855
873
  "components": [
856
874
  {
857
875
  "name": "deadline",
@@ -1033,7 +1051,7 @@ var invisiProtocolAbi = [
1033
1051
  {
1034
1052
  "name": "permit",
1035
1053
  "type": "tuple",
1036
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1054
+ "internalType": "struct IMetaTx.TokenPermit",
1037
1055
  "components": [
1038
1056
  {
1039
1057
  "name": "deadline",
@@ -1181,7 +1199,7 @@ var invisiProtocolAbi = [
1181
1199
  {
1182
1200
  "name": "permit",
1183
1201
  "type": "tuple",
1184
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1202
+ "internalType": "struct IMetaTx.TokenPermit",
1185
1203
  "components": [
1186
1204
  {
1187
1205
  "name": "deadline",
@@ -1331,7 +1349,7 @@ var invisiProtocolAbi = [
1331
1349
  {
1332
1350
  "name": "permit",
1333
1351
  "type": "tuple",
1334
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1352
+ "internalType": "struct IMetaTx.TokenPermit",
1335
1353
  "components": [
1336
1354
  {
1337
1355
  "name": "deadline",
@@ -2418,6 +2436,11 @@ var invisiProtocolAbi = [
2418
2436
  }
2419
2437
  ]
2420
2438
  },
2439
+ {
2440
+ "type": "error",
2441
+ "name": "InvalidAddressRegistry",
2442
+ "inputs": []
2443
+ },
2421
2444
  {
2422
2445
  "type": "error",
2423
2446
  "name": "InvalidAggregateBatch",
@@ -2794,6 +2817,11 @@ var invisiFactoryAbi = [
2794
2817
  "name": "screener_",
2795
2818
  "type": "address",
2796
2819
  "internalType": "address"
2820
+ },
2821
+ {
2822
+ "name": "addressRegistry_",
2823
+ "type": "address",
2824
+ "internalType": "address"
2797
2825
  }
2798
2826
  ],
2799
2827
  "outputs": [
@@ -2846,6 +2874,11 @@ var invisiFactoryAbi = [
2846
2874
  "name": "screener_",
2847
2875
  "type": "address",
2848
2876
  "internalType": "address"
2877
+ },
2878
+ {
2879
+ "name": "addressRegistry_",
2880
+ "type": "address",
2881
+ "internalType": "address"
2849
2882
  }
2850
2883
  ],
2851
2884
  "outputs": [
@@ -3258,7 +3291,7 @@ var verifierRouterAbi = [
3258
3291
  "name": "getCreditDrawVerifier",
3259
3292
  "inputs": [
3260
3293
  {
3261
- "name": "inputs",
3294
+ "name": "",
3262
3295
  "type": "uint256",
3263
3296
  "internalType": "uint256"
3264
3297
  }
@@ -3666,13 +3699,7 @@ var creditVerifierRouterAbi = [
3666
3699
  var invisiAddressRegistryAbi = [
3667
3700
  {
3668
3701
  "type": "constructor",
3669
- "inputs": [
3670
- {
3671
- "name": "verifier",
3672
- "type": "address",
3673
- "internalType": "contract IVerifier"
3674
- }
3675
- ],
3702
+ "inputs": [],
3676
3703
  "stateMutability": "nonpayable"
3677
3704
  },
3678
3705
  {
@@ -3688,6 +3715,49 @@ var invisiAddressRegistryAbi = [
3688
3715
  ],
3689
3716
  "stateMutability": "view"
3690
3717
  },
3718
+ {
3719
+ "type": "function",
3720
+ "name": "eip712Domain",
3721
+ "inputs": [],
3722
+ "outputs": [
3723
+ {
3724
+ "name": "fields",
3725
+ "type": "bytes1",
3726
+ "internalType": "bytes1"
3727
+ },
3728
+ {
3729
+ "name": "name",
3730
+ "type": "string",
3731
+ "internalType": "string"
3732
+ },
3733
+ {
3734
+ "name": "version",
3735
+ "type": "string",
3736
+ "internalType": "string"
3737
+ },
3738
+ {
3739
+ "name": "chainId",
3740
+ "type": "uint256",
3741
+ "internalType": "uint256"
3742
+ },
3743
+ {
3744
+ "name": "verifyingContract",
3745
+ "type": "address",
3746
+ "internalType": "address"
3747
+ },
3748
+ {
3749
+ "name": "salt",
3750
+ "type": "bytes32",
3751
+ "internalType": "bytes32"
3752
+ },
3753
+ {
3754
+ "name": "extensions",
3755
+ "type": "uint256[]",
3756
+ "internalType": "uint256[]"
3757
+ }
3758
+ ],
3759
+ "stateMutability": "view"
3760
+ },
3691
3761
  {
3692
3762
  "type": "function",
3693
3763
  "name": "isRegistered",
@@ -3740,7 +3810,7 @@ var invisiAddressRegistryAbi = [
3740
3810
  {
3741
3811
  "name": "keys",
3742
3812
  "type": "tuple",
3743
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3813
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3744
3814
  "components": [
3745
3815
  {
3746
3816
  "name": "viewingPublicKey",
@@ -3769,7 +3839,7 @@ var invisiAddressRegistryAbi = [
3769
3839
  {
3770
3840
  "name": "registration",
3771
3841
  "type": "tuple",
3772
- "internalType": "struct IInvisiAddressRegistry.Registration",
3842
+ "internalType": "struct IAddressRegistry.Registration",
3773
3843
  "components": [
3774
3844
  {
3775
3845
  "name": "walletIdentity",
@@ -3779,7 +3849,7 @@ var invisiAddressRegistryAbi = [
3779
3849
  {
3780
3850
  "name": "keys",
3781
3851
  "type": "tuple",
3782
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3852
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3783
3853
  "components": [
3784
3854
  {
3785
3855
  "name": "viewingPublicKey",
@@ -3806,7 +3876,7 @@ var invisiAddressRegistryAbi = [
3806
3876
  ]
3807
3877
  },
3808
3878
  {
3809
- "name": "proof",
3879
+ "name": "signature",
3810
3880
  "type": "bytes",
3811
3881
  "internalType": "bytes"
3812
3882
  }
@@ -3814,19 +3884,6 @@ var invisiAddressRegistryAbi = [
3814
3884
  "outputs": [],
3815
3885
  "stateMutability": "nonpayable"
3816
3886
  },
3817
- {
3818
- "type": "function",
3819
- "name": "registrationVerifier",
3820
- "inputs": [],
3821
- "outputs": [
3822
- {
3823
- "name": "",
3824
- "type": "address",
3825
- "internalType": "contract IVerifier"
3826
- }
3827
- ],
3828
- "stateMutability": "view"
3829
- },
3830
3887
  {
3831
3888
  "type": "function",
3832
3889
  "name": "supportsInterface",
@@ -3853,7 +3910,7 @@ var invisiAddressRegistryAbi = [
3853
3910
  {
3854
3911
  "name": "registration",
3855
3912
  "type": "tuple",
3856
- "internalType": "struct IInvisiAddressRegistry.Registration",
3913
+ "internalType": "struct IAddressRegistry.Registration",
3857
3914
  "components": [
3858
3915
  {
3859
3916
  "name": "walletIdentity",
@@ -3863,7 +3920,7 @@ var invisiAddressRegistryAbi = [
3863
3920
  {
3864
3921
  "name": "keys",
3865
3922
  "type": "tuple",
3866
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3923
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3867
3924
  "components": [
3868
3925
  {
3869
3926
  "name": "viewingPublicKey",
@@ -3890,7 +3947,7 @@ var invisiAddressRegistryAbi = [
3890
3947
  ]
3891
3948
  },
3892
3949
  {
3893
- "name": "proof",
3950
+ "name": "signature",
3894
3951
  "type": "bytes",
3895
3952
  "internalType": "bytes"
3896
3953
  }
@@ -3898,6 +3955,12 @@ var invisiAddressRegistryAbi = [
3898
3955
  "outputs": [],
3899
3956
  "stateMutability": "nonpayable"
3900
3957
  },
3958
+ {
3959
+ "type": "event",
3960
+ "name": "EIP712DomainChanged",
3961
+ "inputs": [],
3962
+ "anonymous": false
3963
+ },
3901
3964
  {
3902
3965
  "type": "event",
3903
3966
  "name": "ReceivingKeysSet",
@@ -3951,12 +4014,12 @@ var invisiAddressRegistryAbi = [
3951
4014
  },
3952
4015
  {
3953
4016
  "type": "error",
3954
- "name": "InvalidRegistrationProof",
4017
+ "name": "InvalidRegistrationSignature",
3955
4018
  "inputs": []
3956
4019
  },
3957
4020
  {
3958
4021
  "type": "error",
3959
- "name": "InvalidVerifier",
4022
+ "name": "InvalidShortString",
3960
4023
  "inputs": []
3961
4024
  },
3962
4025
  {
@@ -3964,11 +4027,6 @@ var invisiAddressRegistryAbi = [
3964
4027
  "name": "InvalidWalletIdentity",
3965
4028
  "inputs": []
3966
4029
  },
3967
- {
3968
- "type": "error",
3969
- "name": "InvalidWalletStatement",
3970
- "inputs": []
3971
- },
3972
4030
  {
3973
4031
  "type": "error",
3974
4032
  "name": "NonceExhausted",
@@ -3988,16 +4046,27 @@ var invisiAddressRegistryAbi = [
3988
4046
  "type": "error",
3989
4047
  "name": "RegistrationExpired",
3990
4048
  "inputs": []
4049
+ },
4050
+ {
4051
+ "type": "error",
4052
+ "name": "StringTooLong",
4053
+ "inputs": [
4054
+ {
4055
+ "name": "str",
4056
+ "type": "string",
4057
+ "internalType": "string"
4058
+ }
4059
+ ]
3991
4060
  }
3992
4061
  ];
3993
4062
 
3994
4063
  // src/contracts/protocol-artifacts.ts
3995
4064
  var protocolAbiSha256 = {
3996
- "InvisiProtocol": "f6729b9f2ce4ab12bdb329f3606e0aa6f9c029780adc58f542ef54ca62fc8fbc",
3997
- "InvisiFactory": "2c2db74e99f18e79d33a1fe999640e3a7cde587b4314459210e96de8c5bda133",
3998
- "VerifierRouter": "8f27c90820066354727d62bb8ad7b3f17eac5792ec11260861afdbc7a8acda26",
4065
+ "InvisiProtocol": "4c8cc95f0d500892b0ef07f10113b45f81a636e979ac01850c2715cdedeb2dd4",
4066
+ "InvisiFactory": "380b95c3ba0196c395e7b01d31819b8b674f59b1d15342aecbdf0425bf385765",
4067
+ "VerifierRouter": "6aacc1fc3b057137fe0125fe79248ace6d998f45bea51e76fedd31177c3acb90",
3999
4068
  "CreditVerifierRouter": "a1ef114bb1268e2590f390a9c426f8b35bb64ebb22e4f1fa571ddf476cf6cf9f",
4000
- "InvisiAddressRegistry": "203ce8cbce2131e5c8576c862cc0187706bf2da2af1e897358e23e639bef75e1"
4069
+ "InvisiAddressRegistry": "7c16ba741b5384c3f232653facc3a73fdf57c507f9dd3a61ab1483699dd77151"
4001
4070
  };
4002
4071
 
4003
4072
  export {
@@ -4008,4 +4077,4 @@ export {
4008
4077
  invisiAddressRegistryAbi,
4009
4078
  protocolAbiSha256
4010
4079
  };
4011
- //# sourceMappingURL=chunk-XTOQXQES.js.map
4080
+ //# sourceMappingURL=chunk-47SC3EAI.js.map