@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.
@@ -70,6 +70,11 @@ var invisiProtocolAbi = [
70
70
  "name": "_screener",
71
71
  "type": "address",
72
72
  "internalType": "address"
73
+ },
74
+ {
75
+ "name": "_addressRegistry",
76
+ "type": "address",
77
+ "internalType": "address"
73
78
  }
74
79
  ],
75
80
  "stateMutability": "nonpayable"
@@ -146,6 +151,19 @@ var invisiProtocolAbi = [
146
151
  ],
147
152
  "stateMutability": "view"
148
153
  },
154
+ {
155
+ "type": "function",
156
+ "name": "addressRegistry",
157
+ "inputs": [],
158
+ "outputs": [
159
+ {
160
+ "name": "",
161
+ "type": "address",
162
+ "internalType": "contract IAddressRegistry"
163
+ }
164
+ ],
165
+ "stateMutability": "view"
166
+ },
149
167
  {
150
168
  "type": "function",
151
169
  "name": "cancelCredit",
@@ -339,7 +357,7 @@ var invisiProtocolAbi = [
339
357
  {
340
358
  "name": "permit",
341
359
  "type": "tuple",
342
- "internalType": "struct IInvisiMetaTx.TokenPermit",
360
+ "internalType": "struct IMetaTx.TokenPermit",
343
361
  "components": [
344
362
  {
345
363
  "name": "deadline",
@@ -882,7 +900,7 @@ var invisiProtocolAbi = [
882
900
  {
883
901
  "name": "permit",
884
902
  "type": "tuple",
885
- "internalType": "struct IInvisiMetaTx.TokenPermit",
903
+ "internalType": "struct IMetaTx.TokenPermit",
886
904
  "components": [
887
905
  {
888
906
  "name": "deadline",
@@ -1064,7 +1082,7 @@ var invisiProtocolAbi = [
1064
1082
  {
1065
1083
  "name": "permit",
1066
1084
  "type": "tuple",
1067
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1085
+ "internalType": "struct IMetaTx.TokenPermit",
1068
1086
  "components": [
1069
1087
  {
1070
1088
  "name": "deadline",
@@ -1212,7 +1230,7 @@ var invisiProtocolAbi = [
1212
1230
  {
1213
1231
  "name": "permit",
1214
1232
  "type": "tuple",
1215
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1233
+ "internalType": "struct IMetaTx.TokenPermit",
1216
1234
  "components": [
1217
1235
  {
1218
1236
  "name": "deadline",
@@ -1362,7 +1380,7 @@ var invisiProtocolAbi = [
1362
1380
  {
1363
1381
  "name": "permit",
1364
1382
  "type": "tuple",
1365
- "internalType": "struct IInvisiMetaTx.TokenPermit",
1383
+ "internalType": "struct IMetaTx.TokenPermit",
1366
1384
  "components": [
1367
1385
  {
1368
1386
  "name": "deadline",
@@ -2449,6 +2467,11 @@ var invisiProtocolAbi = [
2449
2467
  }
2450
2468
  ]
2451
2469
  },
2470
+ {
2471
+ "type": "error",
2472
+ "name": "InvalidAddressRegistry",
2473
+ "inputs": []
2474
+ },
2452
2475
  {
2453
2476
  "type": "error",
2454
2477
  "name": "InvalidAggregateBatch",
@@ -2825,6 +2848,11 @@ var invisiFactoryAbi = [
2825
2848
  "name": "screener_",
2826
2849
  "type": "address",
2827
2850
  "internalType": "address"
2851
+ },
2852
+ {
2853
+ "name": "addressRegistry_",
2854
+ "type": "address",
2855
+ "internalType": "address"
2828
2856
  }
2829
2857
  ],
2830
2858
  "outputs": [
@@ -2877,6 +2905,11 @@ var invisiFactoryAbi = [
2877
2905
  "name": "screener_",
2878
2906
  "type": "address",
2879
2907
  "internalType": "address"
2908
+ },
2909
+ {
2910
+ "name": "addressRegistry_",
2911
+ "type": "address",
2912
+ "internalType": "address"
2880
2913
  }
2881
2914
  ],
2882
2915
  "outputs": [
@@ -3289,7 +3322,7 @@ var verifierRouterAbi = [
3289
3322
  "name": "getCreditDrawVerifier",
3290
3323
  "inputs": [
3291
3324
  {
3292
- "name": "inputs",
3325
+ "name": "",
3293
3326
  "type": "uint256",
3294
3327
  "internalType": "uint256"
3295
3328
  }
@@ -3697,13 +3730,7 @@ var creditVerifierRouterAbi = [
3697
3730
  var invisiAddressRegistryAbi = [
3698
3731
  {
3699
3732
  "type": "constructor",
3700
- "inputs": [
3701
- {
3702
- "name": "verifier",
3703
- "type": "address",
3704
- "internalType": "contract IVerifier"
3705
- }
3706
- ],
3733
+ "inputs": [],
3707
3734
  "stateMutability": "nonpayable"
3708
3735
  },
3709
3736
  {
@@ -3719,6 +3746,49 @@ var invisiAddressRegistryAbi = [
3719
3746
  ],
3720
3747
  "stateMutability": "view"
3721
3748
  },
3749
+ {
3750
+ "type": "function",
3751
+ "name": "eip712Domain",
3752
+ "inputs": [],
3753
+ "outputs": [
3754
+ {
3755
+ "name": "fields",
3756
+ "type": "bytes1",
3757
+ "internalType": "bytes1"
3758
+ },
3759
+ {
3760
+ "name": "name",
3761
+ "type": "string",
3762
+ "internalType": "string"
3763
+ },
3764
+ {
3765
+ "name": "version",
3766
+ "type": "string",
3767
+ "internalType": "string"
3768
+ },
3769
+ {
3770
+ "name": "chainId",
3771
+ "type": "uint256",
3772
+ "internalType": "uint256"
3773
+ },
3774
+ {
3775
+ "name": "verifyingContract",
3776
+ "type": "address",
3777
+ "internalType": "address"
3778
+ },
3779
+ {
3780
+ "name": "salt",
3781
+ "type": "bytes32",
3782
+ "internalType": "bytes32"
3783
+ },
3784
+ {
3785
+ "name": "extensions",
3786
+ "type": "uint256[]",
3787
+ "internalType": "uint256[]"
3788
+ }
3789
+ ],
3790
+ "stateMutability": "view"
3791
+ },
3722
3792
  {
3723
3793
  "type": "function",
3724
3794
  "name": "isRegistered",
@@ -3771,7 +3841,7 @@ var invisiAddressRegistryAbi = [
3771
3841
  {
3772
3842
  "name": "keys",
3773
3843
  "type": "tuple",
3774
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3844
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3775
3845
  "components": [
3776
3846
  {
3777
3847
  "name": "viewingPublicKey",
@@ -3800,7 +3870,7 @@ var invisiAddressRegistryAbi = [
3800
3870
  {
3801
3871
  "name": "registration",
3802
3872
  "type": "tuple",
3803
- "internalType": "struct IInvisiAddressRegistry.Registration",
3873
+ "internalType": "struct IAddressRegistry.Registration",
3804
3874
  "components": [
3805
3875
  {
3806
3876
  "name": "walletIdentity",
@@ -3810,7 +3880,7 @@ var invisiAddressRegistryAbi = [
3810
3880
  {
3811
3881
  "name": "keys",
3812
3882
  "type": "tuple",
3813
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3883
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3814
3884
  "components": [
3815
3885
  {
3816
3886
  "name": "viewingPublicKey",
@@ -3837,7 +3907,7 @@ var invisiAddressRegistryAbi = [
3837
3907
  ]
3838
3908
  },
3839
3909
  {
3840
- "name": "proof",
3910
+ "name": "signature",
3841
3911
  "type": "bytes",
3842
3912
  "internalType": "bytes"
3843
3913
  }
@@ -3845,19 +3915,6 @@ var invisiAddressRegistryAbi = [
3845
3915
  "outputs": [],
3846
3916
  "stateMutability": "nonpayable"
3847
3917
  },
3848
- {
3849
- "type": "function",
3850
- "name": "registrationVerifier",
3851
- "inputs": [],
3852
- "outputs": [
3853
- {
3854
- "name": "",
3855
- "type": "address",
3856
- "internalType": "contract IVerifier"
3857
- }
3858
- ],
3859
- "stateMutability": "view"
3860
- },
3861
3918
  {
3862
3919
  "type": "function",
3863
3920
  "name": "supportsInterface",
@@ -3884,7 +3941,7 @@ var invisiAddressRegistryAbi = [
3884
3941
  {
3885
3942
  "name": "registration",
3886
3943
  "type": "tuple",
3887
- "internalType": "struct IInvisiAddressRegistry.Registration",
3944
+ "internalType": "struct IAddressRegistry.Registration",
3888
3945
  "components": [
3889
3946
  {
3890
3947
  "name": "walletIdentity",
@@ -3894,7 +3951,7 @@ var invisiAddressRegistryAbi = [
3894
3951
  {
3895
3952
  "name": "keys",
3896
3953
  "type": "tuple",
3897
- "internalType": "struct IInvisiAddressRegistry.ReceivingKeys",
3954
+ "internalType": "struct IAddressRegistry.ReceivingKeys",
3898
3955
  "components": [
3899
3956
  {
3900
3957
  "name": "viewingPublicKey",
@@ -3921,7 +3978,7 @@ var invisiAddressRegistryAbi = [
3921
3978
  ]
3922
3979
  },
3923
3980
  {
3924
- "name": "proof",
3981
+ "name": "signature",
3925
3982
  "type": "bytes",
3926
3983
  "internalType": "bytes"
3927
3984
  }
@@ -3929,6 +3986,12 @@ var invisiAddressRegistryAbi = [
3929
3986
  "outputs": [],
3930
3987
  "stateMutability": "nonpayable"
3931
3988
  },
3989
+ {
3990
+ "type": "event",
3991
+ "name": "EIP712DomainChanged",
3992
+ "inputs": [],
3993
+ "anonymous": false
3994
+ },
3932
3995
  {
3933
3996
  "type": "event",
3934
3997
  "name": "ReceivingKeysSet",
@@ -3982,12 +4045,12 @@ var invisiAddressRegistryAbi = [
3982
4045
  },
3983
4046
  {
3984
4047
  "type": "error",
3985
- "name": "InvalidRegistrationProof",
4048
+ "name": "InvalidRegistrationSignature",
3986
4049
  "inputs": []
3987
4050
  },
3988
4051
  {
3989
4052
  "type": "error",
3990
- "name": "InvalidVerifier",
4053
+ "name": "InvalidShortString",
3991
4054
  "inputs": []
3992
4055
  },
3993
4056
  {
@@ -3995,11 +4058,6 @@ var invisiAddressRegistryAbi = [
3995
4058
  "name": "InvalidWalletIdentity",
3996
4059
  "inputs": []
3997
4060
  },
3998
- {
3999
- "type": "error",
4000
- "name": "InvalidWalletStatement",
4001
- "inputs": []
4002
- },
4003
4061
  {
4004
4062
  "type": "error",
4005
4063
  "name": "NonceExhausted",
@@ -4019,16 +4077,27 @@ var invisiAddressRegistryAbi = [
4019
4077
  "type": "error",
4020
4078
  "name": "RegistrationExpired",
4021
4079
  "inputs": []
4080
+ },
4081
+ {
4082
+ "type": "error",
4083
+ "name": "StringTooLong",
4084
+ "inputs": [
4085
+ {
4086
+ "name": "str",
4087
+ "type": "string",
4088
+ "internalType": "string"
4089
+ }
4090
+ ]
4022
4091
  }
4023
4092
  ];
4024
4093
 
4025
4094
  // src/contracts/protocol-artifacts.ts
4026
4095
  var protocolAbiSha256 = {
4027
- "InvisiProtocol": "f6729b9f2ce4ab12bdb329f3606e0aa6f9c029780adc58f542ef54ca62fc8fbc",
4028
- "InvisiFactory": "2c2db74e99f18e79d33a1fe999640e3a7cde587b4314459210e96de8c5bda133",
4029
- "VerifierRouter": "8f27c90820066354727d62bb8ad7b3f17eac5792ec11260861afdbc7a8acda26",
4096
+ "InvisiProtocol": "4c8cc95f0d500892b0ef07f10113b45f81a636e979ac01850c2715cdedeb2dd4",
4097
+ "InvisiFactory": "380b95c3ba0196c395e7b01d31819b8b674f59b1d15342aecbdf0425bf385765",
4098
+ "VerifierRouter": "6aacc1fc3b057137fe0125fe79248ace6d998f45bea51e76fedd31177c3acb90",
4030
4099
  "CreditVerifierRouter": "a1ef114bb1268e2590f390a9c426f8b35bb64ebb22e4f1fa571ddf476cf6cf9f",
4031
- "InvisiAddressRegistry": "203ce8cbce2131e5c8576c862cc0187706bf2da2af1e897358e23e639bef75e1"
4100
+ "InvisiAddressRegistry": "7c16ba741b5384c3f232653facc3a73fdf57c507f9dd3a61ab1483699dd77151"
4032
4101
  };
4033
4102
  // Annotate the CommonJS export names for ESM import in node:
4034
4103
  0 && (module.exports = {