@cloakely/sdk 0.8.4 → 0.9.0

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.
package/dist/abis.js CHANGED
@@ -5262,6 +5262,19 @@ export const privateBatcherAbi = [
5262
5262
  ],
5263
5263
  "stateMutability": "view"
5264
5264
  },
5265
+ {
5266
+ "type": "function",
5267
+ "name": "MAX_SIDE_BPS",
5268
+ "inputs": [],
5269
+ "outputs": [
5270
+ {
5271
+ "name": "",
5272
+ "type": "uint16",
5273
+ "internalType": "uint16"
5274
+ }
5275
+ ],
5276
+ "stateMutability": "view"
5277
+ },
5265
5278
  {
5266
5279
  "type": "function",
5267
5280
  "name": "MAX_SLIPPAGE_BPS",
@@ -5930,6 +5943,11 @@ export const privateBatcherAbi = [
5930
5943
  "name": "Reentrancy",
5931
5944
  "inputs": []
5932
5945
  },
5946
+ {
5947
+ "type": "error",
5948
+ "name": "RoundFull",
5949
+ "inputs": []
5950
+ },
5933
5951
  {
5934
5952
  "type": "error",
5935
5953
  "name": "RoundOpen",
@@ -6502,6 +6520,11 @@ export const cloakVaultsAbi = [
6502
6520
  "name": "PoolExists",
6503
6521
  "inputs": []
6504
6522
  },
6523
+ {
6524
+ "type": "error",
6525
+ "name": "SharedVaultToken",
6526
+ "inputs": []
6527
+ },
6505
6528
  {
6506
6529
  "type": "error",
6507
6530
  "name": "UnknownFactory",
@@ -9353,6 +9376,19 @@ export const sharedBatcherAbi = [
9353
9376
  ],
9354
9377
  "stateMutability": "view"
9355
9378
  },
9379
+ {
9380
+ "type": "function",
9381
+ "name": "MAX_SIDE_BPS",
9382
+ "inputs": [],
9383
+ "outputs": [
9384
+ {
9385
+ "name": "",
9386
+ "type": "uint16",
9387
+ "internalType": "uint16"
9388
+ }
9389
+ ],
9390
+ "stateMutability": "view"
9391
+ },
9356
9392
  {
9357
9393
  "type": "function",
9358
9394
  "name": "MAX_SLIPPAGE_BPS",
@@ -10124,6 +10160,11 @@ export const sharedBatcherAbi = [
10124
10160
  "name": "Reentrancy",
10125
10161
  "inputs": []
10126
10162
  },
10163
+ {
10164
+ "type": "error",
10165
+ "name": "RoundFull",
10166
+ "inputs": []
10167
+ },
10127
10168
  {
10128
10169
  "type": "error",
10129
10170
  "name": "RoundOpen",
@@ -11359,6 +11400,19 @@ export const cloakDropAbi = [
11359
11400
  ],
11360
11401
  "stateMutability": "view"
11361
11402
  },
11403
+ {
11404
+ "type": "function",
11405
+ "name": "seedBlock",
11406
+ "inputs": [],
11407
+ "outputs": [
11408
+ {
11409
+ "name": "",
11410
+ "type": "uint64",
11411
+ "internalType": "uint64"
11412
+ }
11413
+ ],
11414
+ "stateMutability": "view"
11415
+ },
11362
11416
  {
11363
11417
  "type": "function",
11364
11418
  "name": "setApprovalForAll",
@@ -12327,6 +12381,19 @@ export const cloakSpotBookAbi = [
12327
12381
  ],
12328
12382
  "stateMutability": "view"
12329
12383
  },
12384
+ {
12385
+ "type": "function",
12386
+ "name": "MIN_WALLET_WINDOW",
12387
+ "inputs": [],
12388
+ "outputs": [
12389
+ {
12390
+ "name": "",
12391
+ "type": "uint256",
12392
+ "internalType": "uint256"
12393
+ }
12394
+ ],
12395
+ "stateMutability": "view"
12396
+ },
12330
12397
  {
12331
12398
  "type": "function",
12332
12399
  "name": "factory",
@@ -13721,6 +13788,32 @@ export const cloakEscrowDropAbi = [
13721
13788
  ],
13722
13789
  "stateMutability": "view"
13723
13790
  },
13791
+ {
13792
+ "type": "function",
13793
+ "name": "seedBlock",
13794
+ "inputs": [],
13795
+ "outputs": [
13796
+ {
13797
+ "name": "",
13798
+ "type": "uint64",
13799
+ "internalType": "uint64"
13800
+ }
13801
+ ],
13802
+ "stateMutability": "view"
13803
+ },
13804
+ {
13805
+ "type": "function",
13806
+ "name": "seeded",
13807
+ "inputs": [],
13808
+ "outputs": [
13809
+ {
13810
+ "name": "",
13811
+ "type": "bool",
13812
+ "internalType": "bool"
13813
+ }
13814
+ ],
13815
+ "stateMutability": "view"
13816
+ },
13724
13817
  {
13725
13818
  "type": "function",
13726
13819
  "name": "settle",
@@ -14636,6 +14729,560 @@ export const cloakEscrowDropFactoryAbi = [
14636
14729
  "anonymous": false
14637
14730
  }
14638
14731
  ];
14732
+ export const cloakReceiveAbi = [
14733
+ {
14734
+ "type": "constructor",
14735
+ "inputs": [
14736
+ {
14737
+ "name": "vaults_",
14738
+ "type": "address",
14739
+ "internalType": "contract CloakVaults"
14740
+ },
14741
+ {
14742
+ "name": "shared_",
14743
+ "type": "address",
14744
+ "internalType": "contract SharedVault"
14745
+ },
14746
+ {
14747
+ "name": "whype_",
14748
+ "type": "address",
14749
+ "internalType": "contract WHYPE"
14750
+ }
14751
+ ],
14752
+ "stateMutability": "nonpayable"
14753
+ },
14754
+ {
14755
+ "type": "receive",
14756
+ "stateMutability": "payable"
14757
+ },
14758
+ {
14759
+ "type": "function",
14760
+ "name": "MAX_FEE_BPS",
14761
+ "inputs": [],
14762
+ "outputs": [
14763
+ {
14764
+ "name": "",
14765
+ "type": "uint16",
14766
+ "internalType": "uint16"
14767
+ }
14768
+ ],
14769
+ "stateMutability": "view"
14770
+ },
14771
+ {
14772
+ "type": "function",
14773
+ "name": "RESCUE_TYPEHASH",
14774
+ "inputs": [],
14775
+ "outputs": [
14776
+ {
14777
+ "name": "",
14778
+ "type": "bytes32",
14779
+ "internalType": "bytes32"
14780
+ }
14781
+ ],
14782
+ "stateMutability": "view"
14783
+ },
14784
+ {
14785
+ "type": "function",
14786
+ "name": "addressOf",
14787
+ "inputs": [
14788
+ {
14789
+ "name": "p",
14790
+ "type": "tuple",
14791
+ "internalType": "struct CloakReceive.Params",
14792
+ "components": [
14793
+ {
14794
+ "name": "pubKey",
14795
+ "type": "uint256",
14796
+ "internalType": "uint256"
14797
+ },
14798
+ {
14799
+ "name": "blinding",
14800
+ "type": "uint256",
14801
+ "internalType": "uint256"
14802
+ },
14803
+ {
14804
+ "name": "memo",
14805
+ "type": "bytes",
14806
+ "internalType": "bytes"
14807
+ },
14808
+ {
14809
+ "name": "maxFeeBps",
14810
+ "type": "uint16",
14811
+ "internalType": "uint16"
14812
+ },
14813
+ {
14814
+ "name": "rescuer",
14815
+ "type": "address",
14816
+ "internalType": "address"
14817
+ }
14818
+ ]
14819
+ }
14820
+ ],
14821
+ "outputs": [
14822
+ {
14823
+ "name": "",
14824
+ "type": "address",
14825
+ "internalType": "address"
14826
+ }
14827
+ ],
14828
+ "stateMutability": "view"
14829
+ },
14830
+ {
14831
+ "type": "function",
14832
+ "name": "boxCodeHash",
14833
+ "inputs": [],
14834
+ "outputs": [
14835
+ {
14836
+ "name": "",
14837
+ "type": "bytes32",
14838
+ "internalType": "bytes32"
14839
+ }
14840
+ ],
14841
+ "stateMutability": "view"
14842
+ },
14843
+ {
14844
+ "type": "function",
14845
+ "name": "deliver",
14846
+ "inputs": [
14847
+ {
14848
+ "name": "p",
14849
+ "type": "tuple",
14850
+ "internalType": "struct CloakReceive.Params",
14851
+ "components": [
14852
+ {
14853
+ "name": "pubKey",
14854
+ "type": "uint256",
14855
+ "internalType": "uint256"
14856
+ },
14857
+ {
14858
+ "name": "blinding",
14859
+ "type": "uint256",
14860
+ "internalType": "uint256"
14861
+ },
14862
+ {
14863
+ "name": "memo",
14864
+ "type": "bytes",
14865
+ "internalType": "bytes"
14866
+ },
14867
+ {
14868
+ "name": "maxFeeBps",
14869
+ "type": "uint16",
14870
+ "internalType": "uint16"
14871
+ },
14872
+ {
14873
+ "name": "rescuer",
14874
+ "type": "address",
14875
+ "internalType": "address"
14876
+ }
14877
+ ]
14878
+ },
14879
+ {
14880
+ "name": "token",
14881
+ "type": "address",
14882
+ "internalType": "address"
14883
+ },
14884
+ {
14885
+ "name": "fee",
14886
+ "type": "uint256",
14887
+ "internalType": "uint256"
14888
+ }
14889
+ ],
14890
+ "outputs": [
14891
+ {
14892
+ "name": "commitment",
14893
+ "type": "uint256",
14894
+ "internalType": "uint256"
14895
+ }
14896
+ ],
14897
+ "stateMutability": "nonpayable"
14898
+ },
14899
+ {
14900
+ "type": "function",
14901
+ "name": "nonces",
14902
+ "inputs": [
14903
+ {
14904
+ "name": "",
14905
+ "type": "address",
14906
+ "internalType": "address"
14907
+ }
14908
+ ],
14909
+ "outputs": [
14910
+ {
14911
+ "name": "",
14912
+ "type": "uint256",
14913
+ "internalType": "uint256"
14914
+ }
14915
+ ],
14916
+ "stateMutability": "view"
14917
+ },
14918
+ {
14919
+ "type": "function",
14920
+ "name": "rescue",
14921
+ "inputs": [
14922
+ {
14923
+ "name": "p",
14924
+ "type": "tuple",
14925
+ "internalType": "struct CloakReceive.Params",
14926
+ "components": [
14927
+ {
14928
+ "name": "pubKey",
14929
+ "type": "uint256",
14930
+ "internalType": "uint256"
14931
+ },
14932
+ {
14933
+ "name": "blinding",
14934
+ "type": "uint256",
14935
+ "internalType": "uint256"
14936
+ },
14937
+ {
14938
+ "name": "memo",
14939
+ "type": "bytes",
14940
+ "internalType": "bytes"
14941
+ },
14942
+ {
14943
+ "name": "maxFeeBps",
14944
+ "type": "uint16",
14945
+ "internalType": "uint16"
14946
+ },
14947
+ {
14948
+ "name": "rescuer",
14949
+ "type": "address",
14950
+ "internalType": "address"
14951
+ }
14952
+ ]
14953
+ },
14954
+ {
14955
+ "name": "target",
14956
+ "type": "address",
14957
+ "internalType": "address"
14958
+ },
14959
+ {
14960
+ "name": "value",
14961
+ "type": "uint256",
14962
+ "internalType": "uint256"
14963
+ },
14964
+ {
14965
+ "name": "data",
14966
+ "type": "bytes",
14967
+ "internalType": "bytes"
14968
+ },
14969
+ {
14970
+ "name": "sig",
14971
+ "type": "bytes",
14972
+ "internalType": "bytes"
14973
+ }
14974
+ ],
14975
+ "outputs": [
14976
+ {
14977
+ "name": "",
14978
+ "type": "bytes",
14979
+ "internalType": "bytes"
14980
+ }
14981
+ ],
14982
+ "stateMutability": "nonpayable"
14983
+ },
14984
+ {
14985
+ "type": "function",
14986
+ "name": "saltOf",
14987
+ "inputs": [
14988
+ {
14989
+ "name": "p",
14990
+ "type": "tuple",
14991
+ "internalType": "struct CloakReceive.Params",
14992
+ "components": [
14993
+ {
14994
+ "name": "pubKey",
14995
+ "type": "uint256",
14996
+ "internalType": "uint256"
14997
+ },
14998
+ {
14999
+ "name": "blinding",
15000
+ "type": "uint256",
15001
+ "internalType": "uint256"
15002
+ },
15003
+ {
15004
+ "name": "memo",
15005
+ "type": "bytes",
15006
+ "internalType": "bytes"
15007
+ },
15008
+ {
15009
+ "name": "maxFeeBps",
15010
+ "type": "uint16",
15011
+ "internalType": "uint16"
15012
+ },
15013
+ {
15014
+ "name": "rescuer",
15015
+ "type": "address",
15016
+ "internalType": "address"
15017
+ }
15018
+ ]
15019
+ }
15020
+ ],
15021
+ "outputs": [
15022
+ {
15023
+ "name": "",
15024
+ "type": "bytes32",
15025
+ "internalType": "bytes32"
15026
+ }
15027
+ ],
15028
+ "stateMutability": "pure"
15029
+ },
15030
+ {
15031
+ "type": "function",
15032
+ "name": "shared",
15033
+ "inputs": [],
15034
+ "outputs": [
15035
+ {
15036
+ "name": "",
15037
+ "type": "address",
15038
+ "internalType": "contract SharedVault"
15039
+ }
15040
+ ],
15041
+ "stateMutability": "view"
15042
+ },
15043
+ {
15044
+ "type": "function",
15045
+ "name": "vaults",
15046
+ "inputs": [],
15047
+ "outputs": [
15048
+ {
15049
+ "name": "",
15050
+ "type": "address",
15051
+ "internalType": "contract CloakVaults"
15052
+ }
15053
+ ],
15054
+ "stateMutability": "view"
15055
+ },
15056
+ {
15057
+ "type": "function",
15058
+ "name": "whype",
15059
+ "inputs": [],
15060
+ "outputs": [
15061
+ {
15062
+ "name": "",
15063
+ "type": "address",
15064
+ "internalType": "contract WHYPE"
15065
+ }
15066
+ ],
15067
+ "stateMutability": "view"
15068
+ },
15069
+ {
15070
+ "type": "event",
15071
+ "name": "Delivered",
15072
+ "inputs": [
15073
+ {
15074
+ "name": "box",
15075
+ "type": "address",
15076
+ "indexed": true,
15077
+ "internalType": "address"
15078
+ },
15079
+ {
15080
+ "name": "token",
15081
+ "type": "address",
15082
+ "indexed": true,
15083
+ "internalType": "address"
15084
+ },
15085
+ {
15086
+ "name": "amount",
15087
+ "type": "uint256",
15088
+ "indexed": false,
15089
+ "internalType": "uint256"
15090
+ },
15091
+ {
15092
+ "name": "fee",
15093
+ "type": "uint256",
15094
+ "indexed": false,
15095
+ "internalType": "uint256"
15096
+ },
15097
+ {
15098
+ "name": "commitment",
15099
+ "type": "uint256",
15100
+ "indexed": false,
15101
+ "internalType": "uint256"
15102
+ }
15103
+ ],
15104
+ "anonymous": false
15105
+ },
15106
+ {
15107
+ "type": "event",
15108
+ "name": "Rescued",
15109
+ "inputs": [
15110
+ {
15111
+ "name": "box",
15112
+ "type": "address",
15113
+ "indexed": true,
15114
+ "internalType": "address"
15115
+ },
15116
+ {
15117
+ "name": "target",
15118
+ "type": "address",
15119
+ "indexed": false,
15120
+ "internalType": "address"
15121
+ },
15122
+ {
15123
+ "name": "value",
15124
+ "type": "uint256",
15125
+ "indexed": false,
15126
+ "internalType": "uint256"
15127
+ }
15128
+ ],
15129
+ "anonymous": false
15130
+ },
15131
+ {
15132
+ "type": "error",
15133
+ "name": "BadSignature",
15134
+ "inputs": []
15135
+ },
15136
+ {
15137
+ "type": "error",
15138
+ "name": "FeeTooHigh",
15139
+ "inputs": []
15140
+ },
15141
+ {
15142
+ "type": "error",
15143
+ "name": "NoVault",
15144
+ "inputs": []
15145
+ },
15146
+ {
15147
+ "type": "error",
15148
+ "name": "NothingToDeliver",
15149
+ "inputs": []
15150
+ }
15151
+ ];
15152
+ export const cloakFundsCheckAbi = [
15153
+ {
15154
+ "type": "constructor",
15155
+ "inputs": [
15156
+ {
15157
+ "name": "verifier_",
15158
+ "type": "address",
15159
+ "internalType": "contract IVerifierFunds"
15160
+ },
15161
+ {
15162
+ "name": "vaults_",
15163
+ "type": "address",
15164
+ "internalType": "contract CloakVaults"
15165
+ }
15166
+ ],
15167
+ "stateMutability": "nonpayable"
15168
+ },
15169
+ {
15170
+ "type": "function",
15171
+ "name": "contextFor",
15172
+ "inputs": [
15173
+ {
15174
+ "name": "gate",
15175
+ "type": "address",
15176
+ "internalType": "address"
15177
+ },
15178
+ {
15179
+ "name": "who",
15180
+ "type": "address",
15181
+ "internalType": "address"
15182
+ },
15183
+ {
15184
+ "name": "expiresAt",
15185
+ "type": "uint64",
15186
+ "internalType": "uint64"
15187
+ }
15188
+ ],
15189
+ "outputs": [
15190
+ {
15191
+ "name": "",
15192
+ "type": "uint256",
15193
+ "internalType": "uint256"
15194
+ }
15195
+ ],
15196
+ "stateMutability": "pure"
15197
+ },
15198
+ {
15199
+ "type": "function",
15200
+ "name": "holds",
15201
+ "inputs": [
15202
+ {
15203
+ "name": "pool",
15204
+ "type": "address",
15205
+ "internalType": "contract ShieldedPool"
15206
+ },
15207
+ {
15208
+ "name": "threshold",
15209
+ "type": "uint256",
15210
+ "internalType": "uint256"
15211
+ },
15212
+ {
15213
+ "name": "context",
15214
+ "type": "uint256",
15215
+ "internalType": "uint256"
15216
+ },
15217
+ {
15218
+ "name": "p",
15219
+ "type": "tuple",
15220
+ "internalType": "struct CloakFundsCheck.Proof",
15221
+ "components": [
15222
+ {
15223
+ "name": "a",
15224
+ "type": "uint256[2]",
15225
+ "internalType": "uint256[2]"
15226
+ },
15227
+ {
15228
+ "name": "b",
15229
+ "type": "uint256[2][2]",
15230
+ "internalType": "uint256[2][2]"
15231
+ },
15232
+ {
15233
+ "name": "c",
15234
+ "type": "uint256[2]",
15235
+ "internalType": "uint256[2]"
15236
+ },
15237
+ {
15238
+ "name": "root",
15239
+ "type": "uint256",
15240
+ "internalType": "uint256"
15241
+ },
15242
+ {
15243
+ "name": "nullifiers",
15244
+ "type": "uint256[3]",
15245
+ "internalType": "uint256[3]"
15246
+ }
15247
+ ]
15248
+ }
15249
+ ],
15250
+ "outputs": [
15251
+ {
15252
+ "name": "",
15253
+ "type": "bool",
15254
+ "internalType": "bool"
15255
+ }
15256
+ ],
15257
+ "stateMutability": "view"
15258
+ },
15259
+ {
15260
+ "type": "function",
15261
+ "name": "vaults",
15262
+ "inputs": [],
15263
+ "outputs": [
15264
+ {
15265
+ "name": "",
15266
+ "type": "address",
15267
+ "internalType": "contract CloakVaults"
15268
+ }
15269
+ ],
15270
+ "stateMutability": "view"
15271
+ },
15272
+ {
15273
+ "type": "function",
15274
+ "name": "verifier",
15275
+ "inputs": [],
15276
+ "outputs": [
15277
+ {
15278
+ "name": "",
15279
+ "type": "address",
15280
+ "internalType": "contract IVerifierFunds"
15281
+ }
15282
+ ],
15283
+ "stateMutability": "view"
15284
+ }
15285
+ ];
14639
15286
  export const cloakV4HookAbi = [
14640
15287
  {
14641
15288
  "type": "constructor",