@thesingularitynetwork/darkswap-sdk 0.2.7-beta5 → 0.2.7-beta7

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.
@@ -2611,11 +2611,6 @@ var abi$1 = [
2611
2611
  name: "assetPoolERC20",
2612
2612
  type: "address"
2613
2613
  },
2614
- {
2615
- internalType: "address",
2616
- name: "assetPoolERC721",
2617
- type: "address"
2618
- },
2619
2614
  {
2620
2615
  internalType: "address",
2621
2616
  name: "assetPoolETH",
@@ -2765,38 +2760,50 @@ var abi$1 = [
2765
2760
  type: "bytes32"
2766
2761
  }
2767
2762
  ],
2768
- name: "DarkSwapCancelOrder",
2763
+ name: "DarkSwapProCancelOrder",
2769
2764
  type: "event"
2770
2765
  },
2771
2766
  {
2772
2767
  anonymous: false,
2773
2768
  inputs: [
2769
+ {
2770
+ indexed: false,
2771
+ internalType: "address",
2772
+ name: "owner",
2773
+ type: "address"
2774
+ },
2774
2775
  {
2775
2776
  indexed: false,
2776
2777
  internalType: "bytes32",
2777
- name: "nullifier",
2778
+ name: "outNullifier",
2778
2779
  type: "bytes32"
2779
2780
  },
2780
2781
  {
2781
2782
  indexed: false,
2782
- internalType: "address",
2783
- name: "recipient",
2784
- type: "address"
2783
+ internalType: "bytes32",
2784
+ name: "changeNote",
2785
+ type: "bytes32"
2785
2786
  },
2786
2787
  {
2787
2788
  indexed: false,
2788
- internalType: "address",
2789
- name: "asset",
2790
- type: "address"
2789
+ internalType: "bytes32",
2790
+ name: "changeNoteFooter",
2791
+ type: "bytes32"
2791
2792
  },
2792
2793
  {
2793
2794
  indexed: false,
2794
- internalType: "uint256",
2795
- name: "amount",
2796
- type: "uint256"
2795
+ internalType: "bytes32",
2796
+ name: "orderNote",
2797
+ type: "bytes32"
2798
+ },
2799
+ {
2800
+ indexed: false,
2801
+ internalType: "bytes32",
2802
+ name: "orderNoteFooter",
2803
+ type: "bytes32"
2797
2804
  }
2798
2805
  ],
2799
- name: "DarkSwapCancelOrderWithdraw",
2806
+ name: "DarkSwapProCreateOrder",
2800
2807
  type: "event"
2801
2808
  },
2802
2809
  {
@@ -2827,7 +2834,7 @@ var abi$1 = [
2827
2834
  type: "uint256"
2828
2835
  }
2829
2836
  ],
2830
- name: "DarkSwapDeposit",
2837
+ name: "DarkSwapProDeposit",
2831
2838
  type: "event"
2832
2839
  },
2833
2840
  {
@@ -2846,7 +2853,7 @@ var abi$1 = [
2846
2853
  type: "bytes32"
2847
2854
  }
2848
2855
  ],
2849
- name: "DarkSwapJoin",
2856
+ name: "DarkSwapProJoin",
2850
2857
  type: "event"
2851
2858
  },
2852
2859
  {
@@ -2854,42 +2861,30 @@ var abi$1 = [
2854
2861
  inputs: [
2855
2862
  {
2856
2863
  indexed: false,
2857
- internalType: "address",
2858
- name: "owner",
2859
- type: "address"
2860
- },
2861
- {
2862
- indexed: false,
2863
- internalType: "bytes32",
2864
- name: "outNullifier",
2865
- type: "bytes32"
2866
- },
2867
- {
2868
- indexed: false,
2869
- internalType: "bytes32",
2870
- name: "changeNote",
2871
- type: "bytes32"
2864
+ internalType: "bytes32[2]",
2865
+ name: "nullifierIn1",
2866
+ type: "bytes32[2]"
2872
2867
  },
2873
2868
  {
2874
2869
  indexed: false,
2875
- internalType: "bytes32",
2876
- name: "changeNoteFooter",
2877
- type: "bytes32"
2870
+ internalType: "bytes32[2]",
2871
+ name: "nullifierIn2",
2872
+ type: "bytes32[2]"
2878
2873
  },
2879
2874
  {
2880
2875
  indexed: false,
2881
2876
  internalType: "bytes32",
2882
- name: "orderNote",
2877
+ name: "noteOut1",
2883
2878
  type: "bytes32"
2884
2879
  },
2885
2880
  {
2886
2881
  indexed: false,
2887
2882
  internalType: "bytes32",
2888
- name: "orderNoteFooter",
2883
+ name: "noteOut2",
2889
2884
  type: "bytes32"
2890
2885
  }
2891
2886
  ],
2892
- name: "DarkSwapProCreateOrder",
2887
+ name: "DarkSwapProPairJoin",
2893
2888
  type: "event"
2894
2889
  },
2895
2890
  {
@@ -2952,36 +2947,36 @@ var abi$1 = [
2952
2947
  inputs: [
2953
2948
  {
2954
2949
  indexed: false,
2955
- internalType: "address",
2956
- name: "owner",
2957
- type: "address"
2950
+ internalType: "bytes32",
2951
+ name: "nullifierIn",
2952
+ type: "bytes32"
2958
2953
  },
2959
2954
  {
2960
2955
  indexed: false,
2961
- internalType: "bytes32",
2962
- name: "depositOutNote",
2963
- type: "bytes32"
2956
+ internalType: "uint256",
2957
+ name: "amount",
2958
+ type: "uint256"
2964
2959
  },
2965
2960
  {
2966
2961
  indexed: false,
2967
- internalType: "bytes32",
2968
- name: "depositOutNoteFooter",
2969
- type: "bytes32"
2962
+ internalType: "address",
2963
+ name: "asset",
2964
+ type: "address"
2970
2965
  },
2971
2966
  {
2972
2967
  indexed: false,
2973
2968
  internalType: "bytes32",
2974
- name: "inNote",
2969
+ name: "noteRemaining",
2975
2970
  type: "bytes32"
2976
2971
  },
2977
2972
  {
2978
2973
  indexed: false,
2979
- internalType: "bytes32",
2980
- name: "inNoteFooter",
2981
- type: "bytes32"
2974
+ internalType: "address",
2975
+ name: "recipient",
2976
+ type: "address"
2982
2977
  }
2983
2978
  ],
2984
- name: "DarkSwapRetailDepositCreateOrder",
2979
+ name: "DarkSwapProWithdraw",
2985
2980
  type: "event"
2986
2981
  },
2987
2982
  {
@@ -2990,41 +2985,66 @@ var abi$1 = [
2990
2985
  {
2991
2986
  indexed: false,
2992
2987
  internalType: "bytes32",
2993
- name: "aliceOutNullifier",
2988
+ name: "nullifier",
2994
2989
  type: "bytes32"
2995
2990
  },
2996
2991
  {
2997
2992
  indexed: false,
2998
- internalType: "bytes32",
2999
- name: "aliceInNote",
3000
- type: "bytes32"
2993
+ internalType: "address",
2994
+ name: "recipient",
2995
+ type: "address"
2996
+ },
2997
+ {
2998
+ indexed: false,
2999
+ internalType: "address",
3000
+ name: "asset",
3001
+ type: "address"
3002
+ },
3003
+ {
3004
+ indexed: false,
3005
+ internalType: "uint256",
3006
+ name: "amount",
3007
+ type: "uint256"
3008
+ }
3009
+ ],
3010
+ name: "DarkSwapRetailCancelOrderWithdraw",
3011
+ type: "event"
3012
+ },
3013
+ {
3014
+ anonymous: false,
3015
+ inputs: [
3016
+ {
3017
+ indexed: false,
3018
+ internalType: "address",
3019
+ name: "owner",
3020
+ type: "address"
3001
3021
  },
3002
3022
  {
3003
3023
  indexed: false,
3004
3024
  internalType: "bytes32",
3005
- name: "aliceInNoteFooter",
3025
+ name: "depositOutNote",
3006
3026
  type: "bytes32"
3007
3027
  },
3008
3028
  {
3009
3029
  indexed: false,
3010
3030
  internalType: "bytes32",
3011
- name: "bobOutNullifier",
3031
+ name: "depositOutNoteFooter",
3012
3032
  type: "bytes32"
3013
3033
  },
3014
3034
  {
3015
3035
  indexed: false,
3016
3036
  internalType: "bytes32",
3017
- name: "bobInNote",
3037
+ name: "inNote",
3018
3038
  type: "bytes32"
3019
3039
  },
3020
3040
  {
3021
3041
  indexed: false,
3022
3042
  internalType: "bytes32",
3023
- name: "bobInNoteFooter",
3043
+ name: "inNoteFooter",
3024
3044
  type: "bytes32"
3025
3045
  }
3026
3046
  ],
3027
- name: "DarkSwapRetailSwap",
3047
+ name: "DarkSwapRetailDepositCreateOrder",
3028
3048
  type: "event"
3029
3049
  },
3030
3050
  {
@@ -3033,35 +3053,41 @@ var abi$1 = [
3033
3053
  {
3034
3054
  indexed: false,
3035
3055
  internalType: "bytes32",
3036
- name: "nullifierIn",
3056
+ name: "aliceOutNullifier",
3037
3057
  type: "bytes32"
3038
3058
  },
3039
3059
  {
3040
3060
  indexed: false,
3041
- internalType: "uint256",
3042
- name: "amount",
3043
- type: "uint256"
3061
+ internalType: "bytes32",
3062
+ name: "aliceInNote",
3063
+ type: "bytes32"
3044
3064
  },
3045
3065
  {
3046
3066
  indexed: false,
3047
- internalType: "address",
3048
- name: "asset",
3049
- type: "address"
3067
+ internalType: "bytes32",
3068
+ name: "aliceInNoteFooter",
3069
+ type: "bytes32"
3050
3070
  },
3051
3071
  {
3052
3072
  indexed: false,
3053
3073
  internalType: "bytes32",
3054
- name: "noteRemaining",
3074
+ name: "bobOutNullifier",
3055
3075
  type: "bytes32"
3056
3076
  },
3057
3077
  {
3058
3078
  indexed: false,
3059
- internalType: "address",
3060
- name: "recipient",
3061
- type: "address"
3079
+ internalType: "bytes32",
3080
+ name: "bobInNote",
3081
+ type: "bytes32"
3082
+ },
3083
+ {
3084
+ indexed: false,
3085
+ internalType: "bytes32",
3086
+ name: "bobInNoteFooter",
3087
+ type: "bytes32"
3062
3088
  }
3063
3089
  ],
3064
- name: "DarkSwapWithdraw",
3090
+ name: "DarkSwapRetailSwap",
3065
3091
  type: "event"
3066
3092
  },
3067
3093
  {
@@ -3127,129 +3153,68 @@ var abi$1 = [
3127
3153
  },
3128
3154
  {
3129
3155
  inputs: [
3156
+ ],
3157
+ name: "getAssetPoolERC20",
3158
+ outputs: [
3130
3159
  {
3131
- internalType: "bytes32",
3132
- name: "_merkeleRoot",
3133
- type: "bytes32"
3134
- },
3135
- {
3136
- internalType: "bytes32",
3137
- name: "_orderNullifier",
3138
- type: "bytes32"
3139
- },
3140
- {
3141
- internalType: "bytes32",
3142
- name: "_remainingNullifier",
3143
- type: "bytes32"
3144
- },
3145
- {
3146
- internalType: "bytes32",
3147
- name: "_accountNote",
3148
- type: "bytes32"
3149
- },
3150
- {
3151
- internalType: "bytes32",
3152
- name: "_accountNoteFooter",
3153
- type: "bytes32"
3154
- },
3155
- {
3156
- internalType: "bytes",
3157
- name: "_proof",
3158
- type: "bytes"
3160
+ internalType: "address",
3161
+ name: "",
3162
+ type: "address"
3159
3163
  }
3160
3164
  ],
3161
- name: "cancelOrder",
3165
+ stateMutability: "view",
3166
+ type: "function"
3167
+ },
3168
+ {
3169
+ inputs: [
3170
+ ],
3171
+ name: "getAssetPoolETH",
3162
3172
  outputs: [
3173
+ {
3174
+ internalType: "address",
3175
+ name: "",
3176
+ type: "address"
3177
+ }
3163
3178
  ],
3164
- stateMutability: "nonpayable",
3179
+ stateMutability: "view",
3165
3180
  type: "function"
3166
3181
  },
3167
3182
  {
3168
3183
  inputs: [
3169
- {
3170
- internalType: "bytes32",
3171
- name: "_merkleRoot",
3172
- type: "bytes32"
3173
- },
3184
+ ],
3185
+ name: "getFeeManager",
3186
+ outputs: [
3174
3187
  {
3175
3188
  internalType: "address",
3176
- name: "_asset",
3189
+ name: "",
3177
3190
  type: "address"
3178
- },
3179
- {
3180
- internalType: "uint256",
3181
- name: "_amount",
3182
- type: "uint256"
3183
- },
3184
- {
3185
- internalType: "bytes32",
3186
- name: "_nullifier",
3187
- type: "bytes32"
3188
- },
3189
- {
3190
- internalType: "bytes",
3191
- name: "_proof",
3192
- type: "bytes"
3193
3191
  }
3194
3192
  ],
3195
- name: "cancelOrderWithdraw",
3193
+ stateMutability: "view",
3194
+ type: "function"
3195
+ },
3196
+ {
3197
+ inputs: [
3198
+ ],
3199
+ name: "getMerkleTreeOperator",
3196
3200
  outputs: [
3201
+ {
3202
+ internalType: "address",
3203
+ name: "",
3204
+ type: "address"
3205
+ }
3197
3206
  ],
3198
- stateMutability: "nonpayable",
3207
+ stateMutability: "view",
3199
3208
  type: "function"
3200
3209
  },
3201
3210
  {
3202
3211
  inputs: [
3203
- {
3204
- internalType: "bytes32",
3205
- name: "_merkleRoot",
3206
- type: "bytes32"
3207
- },
3212
+ ],
3213
+ name: "getMimc254",
3214
+ outputs: [
3208
3215
  {
3209
3216
  internalType: "address",
3210
- name: "_asset",
3211
- type: "address"
3212
- },
3213
- {
3214
- internalType: "uint256",
3215
- name: "_amount",
3216
- type: "uint256"
3217
- },
3218
- {
3219
- internalType: "bytes32",
3220
- name: "_existingNullifier",
3221
- type: "bytes32"
3222
- },
3223
- {
3224
- internalType: "bytes32",
3225
- name: "_accountNoteCommitment",
3226
- type: "bytes32"
3227
- },
3228
- {
3229
- internalType: "bytes32",
3230
- name: "_accountNoteFooter",
3231
- type: "bytes32"
3232
- },
3233
- {
3234
- internalType: "bytes",
3235
- name: "_proof",
3236
- type: "bytes"
3237
- }
3238
- ],
3239
- name: "deposit",
3240
- outputs: [
3241
- ],
3242
- stateMutability: "payable",
3243
- type: "function"
3244
- },
3245
- {
3246
- inputs: [
3247
- ],
3248
- name: "getAssetPoolERC20",
3249
- outputs: [
3250
- {
3251
- internalType: "address",
3252
- name: "",
3217
+ name: "",
3253
3218
  type: "address"
3254
3219
  }
3255
3220
  ],
@@ -3259,7 +3224,7 @@ var abi$1 = [
3259
3224
  {
3260
3225
  inputs: [
3261
3226
  ],
3262
- name: "getAssetPoolERC721",
3227
+ name: "getVerifierHub",
3263
3228
  outputs: [
3264
3229
  {
3265
3230
  internalType: "address",
@@ -3272,36 +3237,42 @@ var abi$1 = [
3272
3237
  },
3273
3238
  {
3274
3239
  inputs: [
3275
- ],
3276
- name: "getAssetPoolETH",
3277
- outputs: [
3278
3240
  {
3279
- internalType: "address",
3280
- name: "",
3281
- type: "address"
3241
+ internalType: "bytes32",
3242
+ name: "_merkleRoot",
3243
+ type: "bytes32"
3244
+ },
3245
+ {
3246
+ internalType: "bytes32[3]",
3247
+ name: "_nullifierIn",
3248
+ type: "bytes32[3]"
3249
+ },
3250
+ {
3251
+ internalType: "bytes32",
3252
+ name: "_noteOut",
3253
+ type: "bytes32"
3254
+ },
3255
+ {
3256
+ internalType: "bytes32",
3257
+ name: "_noteFooter",
3258
+ type: "bytes32"
3259
+ },
3260
+ {
3261
+ internalType: "bytes",
3262
+ name: "_proof",
3263
+ type: "bytes"
3282
3264
  }
3283
3265
  ],
3284
- stateMutability: "view",
3285
- type: "function"
3286
- },
3287
- {
3288
- inputs: [
3289
- ],
3290
- name: "getFeeManager",
3266
+ name: "join",
3291
3267
  outputs: [
3292
- {
3293
- internalType: "address",
3294
- name: "",
3295
- type: "address"
3296
- }
3297
3268
  ],
3298
- stateMutability: "view",
3269
+ stateMutability: "payable",
3299
3270
  type: "function"
3300
3271
  },
3301
3272
  {
3302
3273
  inputs: [
3303
3274
  ],
3304
- name: "getMerkleTreeOperator",
3275
+ name: "owner",
3305
3276
  outputs: [
3306
3277
  {
3307
3278
  internalType: "address",
@@ -3314,52 +3285,85 @@ var abi$1 = [
3314
3285
  },
3315
3286
  {
3316
3287
  inputs: [
3317
- ],
3318
- name: "getMimc254",
3319
- outputs: [
3320
3288
  {
3321
- internalType: "address",
3322
- name: "",
3323
- type: "address"
3289
+ components: [
3290
+ {
3291
+ internalType: "bytes32",
3292
+ name: "merkleRoot",
3293
+ type: "bytes32"
3294
+ },
3295
+ {
3296
+ internalType: "bytes32[2]",
3297
+ name: "nullifierIn1",
3298
+ type: "bytes32[2]"
3299
+ },
3300
+ {
3301
+ internalType: "bytes32[2]",
3302
+ name: "nullifierIn2",
3303
+ type: "bytes32[2]"
3304
+ },
3305
+ {
3306
+ internalType: "bytes32",
3307
+ name: "noteOut1",
3308
+ type: "bytes32"
3309
+ },
3310
+ {
3311
+ internalType: "bytes32",
3312
+ name: "noteOut2",
3313
+ type: "bytes32"
3314
+ },
3315
+ {
3316
+ internalType: "bytes32",
3317
+ name: "noteFooter1",
3318
+ type: "bytes32"
3319
+ },
3320
+ {
3321
+ internalType: "bytes32",
3322
+ name: "noteFooter2",
3323
+ type: "bytes32"
3324
+ }
3325
+ ],
3326
+ internalType: "struct DarkSwapAssetManager.ProPairJoinArgs",
3327
+ name: "_args",
3328
+ type: "tuple"
3329
+ },
3330
+ {
3331
+ internalType: "bytes",
3332
+ name: "_proof",
3333
+ type: "bytes"
3324
3334
  }
3325
3335
  ],
3326
- stateMutability: "view",
3327
- type: "function"
3328
- },
3329
- {
3330
- inputs: [
3331
- ],
3332
- name: "getVerifierHub",
3336
+ name: "pairJoin",
3333
3337
  outputs: [
3334
- {
3335
- internalType: "address",
3336
- name: "",
3337
- type: "address"
3338
- }
3339
3338
  ],
3340
- stateMutability: "view",
3339
+ stateMutability: "payable",
3341
3340
  type: "function"
3342
3341
  },
3343
3342
  {
3344
3343
  inputs: [
3345
3344
  {
3346
3345
  internalType: "bytes32",
3347
- name: "_merkleRoot",
3346
+ name: "_merkeleRoot",
3348
3347
  type: "bytes32"
3349
3348
  },
3350
3349
  {
3351
- internalType: "bytes32[3]",
3352
- name: "_nullifierIn",
3353
- type: "bytes32[3]"
3350
+ internalType: "bytes32",
3351
+ name: "_orderNullifier",
3352
+ type: "bytes32"
3354
3353
  },
3355
3354
  {
3356
3355
  internalType: "bytes32",
3357
- name: "_noteOut",
3356
+ name: "_remainingNullifier",
3358
3357
  type: "bytes32"
3359
3358
  },
3360
3359
  {
3361
3360
  internalType: "bytes32",
3362
- name: "_noteFooter",
3361
+ name: "_accountNote",
3362
+ type: "bytes32"
3363
+ },
3364
+ {
3365
+ internalType: "bytes32",
3366
+ name: "_accountNoteFooter",
3363
3367
  type: "bytes32"
3364
3368
  },
3365
3369
  {
@@ -3368,24 +3372,10 @@ var abi$1 = [
3368
3372
  type: "bytes"
3369
3373
  }
3370
3374
  ],
3371
- name: "join",
3375
+ name: "proCancelOrder",
3372
3376
  outputs: [
3373
3377
  ],
3374
- stateMutability: "payable",
3375
- type: "function"
3376
- },
3377
- {
3378
- inputs: [
3379
- ],
3380
- name: "owner",
3381
- outputs: [
3382
- {
3383
- internalType: "address",
3384
- name: "",
3385
- type: "address"
3386
- }
3387
- ],
3388
- stateMutability: "view",
3378
+ stateMutability: "nonpayable",
3389
3379
  type: "function"
3390
3380
  },
3391
3381
  {
@@ -3439,6 +3429,50 @@ var abi$1 = [
3439
3429
  stateMutability: "nonpayable",
3440
3430
  type: "function"
3441
3431
  },
3432
+ {
3433
+ inputs: [
3434
+ {
3435
+ internalType: "bytes32",
3436
+ name: "_merkleRoot",
3437
+ type: "bytes32"
3438
+ },
3439
+ {
3440
+ internalType: "address",
3441
+ name: "_asset",
3442
+ type: "address"
3443
+ },
3444
+ {
3445
+ internalType: "uint256",
3446
+ name: "_amount",
3447
+ type: "uint256"
3448
+ },
3449
+ {
3450
+ internalType: "bytes32",
3451
+ name: "_existingNullifier",
3452
+ type: "bytes32"
3453
+ },
3454
+ {
3455
+ internalType: "bytes32",
3456
+ name: "_accountNoteCommitment",
3457
+ type: "bytes32"
3458
+ },
3459
+ {
3460
+ internalType: "bytes32",
3461
+ name: "_accountNoteFooter",
3462
+ type: "bytes32"
3463
+ },
3464
+ {
3465
+ internalType: "bytes",
3466
+ name: "_proof",
3467
+ type: "bytes"
3468
+ }
3469
+ ],
3470
+ name: "proDeposit",
3471
+ outputs: [
3472
+ ],
3473
+ stateMutability: "payable",
3474
+ type: "function"
3475
+ },
3442
3476
  {
3443
3477
  inputs: [
3444
3478
  {
@@ -3515,6 +3549,50 @@ var abi$1 = [
3515
3549
  stateMutability: "nonpayable",
3516
3550
  type: "function"
3517
3551
  },
3552
+ {
3553
+ inputs: [
3554
+ {
3555
+ internalType: "bytes32",
3556
+ name: "_merkleRoot",
3557
+ type: "bytes32"
3558
+ },
3559
+ {
3560
+ internalType: "address",
3561
+ name: "_asset",
3562
+ type: "address"
3563
+ },
3564
+ {
3565
+ internalType: "uint256",
3566
+ name: "_amount",
3567
+ type: "uint256"
3568
+ },
3569
+ {
3570
+ internalType: "bytes32",
3571
+ name: "_nullifier",
3572
+ type: "bytes32"
3573
+ },
3574
+ {
3575
+ internalType: "bytes32",
3576
+ name: "_remainingNoteCommitment",
3577
+ type: "bytes32"
3578
+ },
3579
+ {
3580
+ internalType: "bytes32",
3581
+ name: "_remainingNoteFooter",
3582
+ type: "bytes32"
3583
+ },
3584
+ {
3585
+ internalType: "bytes",
3586
+ name: "_proof",
3587
+ type: "bytes"
3588
+ }
3589
+ ],
3590
+ name: "proWithdraw",
3591
+ outputs: [
3592
+ ],
3593
+ stateMutability: "nonpayable",
3594
+ type: "function"
3595
+ },
3518
3596
  {
3519
3597
  inputs: [
3520
3598
  {
@@ -3543,6 +3621,40 @@ var abi$1 = [
3543
3621
  stateMutability: "nonpayable",
3544
3622
  type: "function"
3545
3623
  },
3624
+ {
3625
+ inputs: [
3626
+ {
3627
+ internalType: "bytes32",
3628
+ name: "_merkleRoot",
3629
+ type: "bytes32"
3630
+ },
3631
+ {
3632
+ internalType: "address",
3633
+ name: "_asset",
3634
+ type: "address"
3635
+ },
3636
+ {
3637
+ internalType: "uint256",
3638
+ name: "_amount",
3639
+ type: "uint256"
3640
+ },
3641
+ {
3642
+ internalType: "bytes32",
3643
+ name: "_nullifier",
3644
+ type: "bytes32"
3645
+ },
3646
+ {
3647
+ internalType: "bytes",
3648
+ name: "_proof",
3649
+ type: "bytes"
3650
+ }
3651
+ ],
3652
+ name: "retailCancelOrderWithdraw",
3653
+ outputs: [
3654
+ ],
3655
+ stateMutability: "nonpayable",
3656
+ type: "function"
3657
+ },
3546
3658
  {
3547
3659
  inputs: [
3548
3660
  {
@@ -3605,7 +3717,7 @@ var abi$1 = [
3605
3717
  },
3606
3718
  {
3607
3719
  internalType: "uint256",
3608
- name: "aliceFeeRation",
3720
+ name: "aliceFeeRatio",
3609
3721
  type: "uint256"
3610
3722
  },
3611
3723
  {
@@ -3625,7 +3737,7 @@ var abi$1 = [
3625
3737
  },
3626
3738
  {
3627
3739
  internalType: "uint256",
3628
- name: "bobFeeRation",
3740
+ name: "bobFeeRatio",
3629
3741
  type: "uint256"
3630
3742
  },
3631
3743
  {
@@ -3674,20 +3786,6 @@ var abi$1 = [
3674
3786
  stateMutability: "nonpayable",
3675
3787
  type: "function"
3676
3788
  },
3677
- {
3678
- inputs: [
3679
- {
3680
- internalType: "address",
3681
- name: "assetPoolERC721",
3682
- type: "address"
3683
- }
3684
- ],
3685
- name: "setAssetPoolERC721",
3686
- outputs: [
3687
- ],
3688
- stateMutability: "nonpayable",
3689
- type: "function"
3690
- },
3691
3789
  {
3692
3790
  inputs: [
3693
3791
  {
@@ -3744,50 +3842,6 @@ var abi$1 = [
3744
3842
  stateMutability: "nonpayable",
3745
3843
  type: "function"
3746
3844
  },
3747
- {
3748
- inputs: [
3749
- {
3750
- internalType: "bytes32",
3751
- name: "_merkleRoot",
3752
- type: "bytes32"
3753
- },
3754
- {
3755
- internalType: "address",
3756
- name: "_asset",
3757
- type: "address"
3758
- },
3759
- {
3760
- internalType: "uint256",
3761
- name: "_amount",
3762
- type: "uint256"
3763
- },
3764
- {
3765
- internalType: "bytes32",
3766
- name: "_nullifier",
3767
- type: "bytes32"
3768
- },
3769
- {
3770
- internalType: "bytes32",
3771
- name: "_remainingNoteCommitment",
3772
- type: "bytes32"
3773
- },
3774
- {
3775
- internalType: "bytes32",
3776
- name: "_remainingNoteFooter",
3777
- type: "bytes32"
3778
- },
3779
- {
3780
- internalType: "bytes",
3781
- name: "_proof",
3782
- type: "bytes"
3783
- }
3784
- ],
3785
- name: "withdraw",
3786
- outputs: [
3787
- ],
3788
- stateMutability: "nonpayable",
3789
- type: "function"
3790
- },
3791
3845
  {
3792
3846
  stateMutability: "payable",
3793
3847
  type: "receive"
@@ -4960,7 +5014,7 @@ var DepositService = /*#__PURE__*/function (_BaseContractService) {
4960
5014
  }();
4961
5015
  _proto.execute = /*#__PURE__*/function () {
4962
5016
  var _execute = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(context) {
4963
- var signer, contract, _contract$deposit, depositArgs, estimatedGas, gasLimit, tx, _contract$deposit2, _depositArgs, _estimatedGas, _tx;
5017
+ var signer, contract, _contract$proDeposit, depositArgs, estimatedGas, gasLimit, tx, _contract$proDeposit2, _depositArgs, _estimatedGas, _tx;
4964
5018
  return _regenerator().w(function (_context3) {
4965
5019
  while (1) switch (_context3.n) {
4966
5020
  case 0:
@@ -4984,14 +5038,14 @@ var DepositService = /*#__PURE__*/function (_BaseContractService) {
4984
5038
  case 3:
4985
5039
  depositArgs = [context.merkleRoot, context.newBalance.asset, hexlify32(context.depositAmount), context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceFooter, context.proof.proof];
4986
5040
  _context3.n = 4;
4987
- return (_contract$deposit = contract.deposit).estimateGas.apply(_contract$deposit, depositArgs.concat([{
5041
+ return (_contract$proDeposit = contract.proDeposit).estimateGas.apply(_contract$proDeposit, depositArgs.concat([{
4988
5042
  value: 0n
4989
5043
  }]));
4990
5044
  case 4:
4991
5045
  estimatedGas = _context3.v;
4992
5046
  gasLimit = refineGasLimit(estimatedGas);
4993
5047
  _context3.n = 5;
4994
- return contract.deposit.apply(contract, depositArgs.concat([{
5048
+ return contract.proDeposit.apply(contract, depositArgs.concat([{
4995
5049
  value: 0n,
4996
5050
  gasLimit: gasLimit
4997
5051
  }]));
@@ -5004,13 +5058,13 @@ var DepositService = /*#__PURE__*/function (_BaseContractService) {
5004
5058
  case 7:
5005
5059
  _depositArgs = [context.merkleRoot, context.newBalance.asset, hexlify32(context.depositAmount), context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceFooter, context.proof.proof];
5006
5060
  _context3.n = 8;
5007
- return (_contract$deposit2 = contract.deposit).estimateGas.apply(_contract$deposit2, _depositArgs.concat([{
5061
+ return (_contract$proDeposit2 = contract.proDeposit).estimateGas.apply(_contract$proDeposit2, _depositArgs.concat([{
5008
5062
  value: context.depositAmount
5009
5063
  }]));
5010
5064
  case 8:
5011
5065
  _estimatedGas = _context3.v;
5012
5066
  _context3.n = 9;
5013
- return contract.deposit.apply(contract, _depositArgs.concat([{
5067
+ return contract.proDeposit.apply(contract, _depositArgs.concat([{
5014
5068
  value: context.depositAmount,
5015
5069
  gasLimit: refineGasLimit(_estimatedGas)
5016
5070
  }]));
@@ -5476,7 +5530,7 @@ var WithdrawService = /*#__PURE__*/function (_BaseContractService) {
5476
5530
  case 2:
5477
5531
  contract = new ethers.Contract(this._darkSwap.contracts.darkSwapAssetManager, DarkSwapAssetManagerAbi.abi, this._darkSwap.signer);
5478
5532
  _context3.n = 3;
5479
- return contract.withdraw(context.merkleRoot, context.currentBalance.asset, context.withdrawAmount, context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceFooter, context.proof.proof);
5533
+ return contract.proWithdraw(context.merkleRoot, context.currentBalance.asset, context.withdrawAmount, context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceFooter, context.proof.proof);
5480
5534
  case 3:
5481
5535
  tx = _context3.v;
5482
5536
  _context3.n = 4;
@@ -7962,7 +8016,7 @@ var ProCancelOrderService = /*#__PURE__*/function (_BaseContractService) {
7962
8016
  case 2:
7963
8017
  contract = new ethers.Contract(this._darkSwap.contracts.darkSwapAssetManager, DarkSwapAssetManagerAbi.abi, this._darkSwap.signer);
7964
8018
  _context3.n = 3;
7965
- return contract.cancelOrder(context.merkleRoot, context.proof.orderNullifier, context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceNoteFooter, context.proof.proof);
8019
+ return contract.proCancelOrder(context.merkleRoot, context.proof.orderNullifier, context.proof.oldBalanceNullifier, hexlify32(context.newBalance.note), context.proof.newBalanceNoteFooter, context.proof.proof);
7966
8020
  case 3:
7967
8021
  tx = _context3.v;
7968
8022
  _context3.n = 4;
@@ -9324,7 +9378,7 @@ var RetailCancelOrderService = /*#__PURE__*/function (_BaseContractService) {
9324
9378
  case 2:
9325
9379
  contract = new ethers.Contract(this._darkSwap.contracts.darkSwapAssetManager, DarkSwapAssetManagerAbi.abi, this._darkSwap.signer);
9326
9380
  _context3.n = 3;
9327
- return contract.cancelOrderWithdraw(context.merkleRoot, context.orderNote.asset, hexlify32(context.orderNote.amount), context.proof.nullifier, context.proof.proof);
9381
+ return contract.retailCancelOrderWithdraw(context.merkleRoot, context.orderNote.asset, hexlify32(context.orderNote.amount), context.proof.nullifier, context.proof.proof);
9328
9382
  case 3:
9329
9383
  tx = _context3.v;
9330
9384
  _context3.n = 4;