@cloakely/sdk 0.7.0 → 0.7.1
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.d.ts +654 -0
- package/dist/abis.js +841 -0
- package/dist/bytecode.d.ts +1 -0
- package/dist/bytecode.js +1 -1
- package/dist/deployments.d.ts +2 -0
- package/dist/deployments.js +2 -0
- package/dist/private/shared.d.ts +30 -3
- package/dist/private/shared.js +111 -12
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +1 -0
- package/package.json +1 -1
package/dist/abis.js
CHANGED
|
@@ -9252,3 +9252,844 @@ export const sharedRouterAbi = [
|
|
|
9252
9252
|
"inputs": []
|
|
9253
9253
|
}
|
|
9254
9254
|
];
|
|
9255
|
+
export const sharedBatcherAbi = [
|
|
9256
|
+
{
|
|
9257
|
+
"type": "constructor",
|
|
9258
|
+
"inputs": [
|
|
9259
|
+
{
|
|
9260
|
+
"name": "shared_",
|
|
9261
|
+
"type": "address",
|
|
9262
|
+
"internalType": "contract SharedVault"
|
|
9263
|
+
},
|
|
9264
|
+
{
|
|
9265
|
+
"name": "hypePool_",
|
|
9266
|
+
"type": "address",
|
|
9267
|
+
"internalType": "contract ShieldedPool"
|
|
9268
|
+
},
|
|
9269
|
+
{
|
|
9270
|
+
"name": "whype_",
|
|
9271
|
+
"type": "address",
|
|
9272
|
+
"internalType": "contract WHYPE"
|
|
9273
|
+
},
|
|
9274
|
+
{
|
|
9275
|
+
"name": "roundSecs_",
|
|
9276
|
+
"type": "uint64",
|
|
9277
|
+
"internalType": "uint64"
|
|
9278
|
+
},
|
|
9279
|
+
{
|
|
9280
|
+
"name": "maxSlippageBps_",
|
|
9281
|
+
"type": "uint16",
|
|
9282
|
+
"internalType": "uint16"
|
|
9283
|
+
},
|
|
9284
|
+
{
|
|
9285
|
+
"name": "refundAfter_",
|
|
9286
|
+
"type": "uint64",
|
|
9287
|
+
"internalType": "uint64"
|
|
9288
|
+
},
|
|
9289
|
+
{
|
|
9290
|
+
"name": "minOrder_",
|
|
9291
|
+
"type": "uint128",
|
|
9292
|
+
"internalType": "uint128"
|
|
9293
|
+
}
|
|
9294
|
+
],
|
|
9295
|
+
"stateMutability": "nonpayable"
|
|
9296
|
+
},
|
|
9297
|
+
{
|
|
9298
|
+
"type": "receive",
|
|
9299
|
+
"stateMutability": "payable"
|
|
9300
|
+
},
|
|
9301
|
+
{
|
|
9302
|
+
"type": "function",
|
|
9303
|
+
"name": "MAX_IMPACT_BPS",
|
|
9304
|
+
"inputs": [],
|
|
9305
|
+
"outputs": [
|
|
9306
|
+
{
|
|
9307
|
+
"name": "",
|
|
9308
|
+
"type": "uint16",
|
|
9309
|
+
"internalType": "uint16"
|
|
9310
|
+
}
|
|
9311
|
+
],
|
|
9312
|
+
"stateMutability": "view"
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
"type": "function",
|
|
9316
|
+
"name": "MAX_SLIPPAGE_BPS",
|
|
9317
|
+
"inputs": [],
|
|
9318
|
+
"outputs": [
|
|
9319
|
+
{
|
|
9320
|
+
"name": "",
|
|
9321
|
+
"type": "uint16",
|
|
9322
|
+
"internalType": "uint16"
|
|
9323
|
+
}
|
|
9324
|
+
],
|
|
9325
|
+
"stateMutability": "view"
|
|
9326
|
+
},
|
|
9327
|
+
{
|
|
9328
|
+
"type": "function",
|
|
9329
|
+
"name": "batches",
|
|
9330
|
+
"inputs": [
|
|
9331
|
+
{
|
|
9332
|
+
"name": "",
|
|
9333
|
+
"type": "address",
|
|
9334
|
+
"internalType": "address"
|
|
9335
|
+
},
|
|
9336
|
+
{
|
|
9337
|
+
"name": "",
|
|
9338
|
+
"type": "uint64",
|
|
9339
|
+
"internalType": "uint64"
|
|
9340
|
+
}
|
|
9341
|
+
],
|
|
9342
|
+
"outputs": [
|
|
9343
|
+
{
|
|
9344
|
+
"name": "buyHype",
|
|
9345
|
+
"type": "uint128",
|
|
9346
|
+
"internalType": "uint128"
|
|
9347
|
+
},
|
|
9348
|
+
{
|
|
9349
|
+
"name": "sellTokens",
|
|
9350
|
+
"type": "uint128",
|
|
9351
|
+
"internalType": "uint128"
|
|
9352
|
+
},
|
|
9353
|
+
{
|
|
9354
|
+
"name": "tokensForBuyers",
|
|
9355
|
+
"type": "uint128",
|
|
9356
|
+
"internalType": "uint128"
|
|
9357
|
+
},
|
|
9358
|
+
{
|
|
9359
|
+
"name": "hypeForSellers",
|
|
9360
|
+
"type": "uint128",
|
|
9361
|
+
"internalType": "uint128"
|
|
9362
|
+
},
|
|
9363
|
+
{
|
|
9364
|
+
"name": "cumStart",
|
|
9365
|
+
"type": "uint256",
|
|
9366
|
+
"internalType": "uint256"
|
|
9367
|
+
},
|
|
9368
|
+
{
|
|
9369
|
+
"name": "tStart",
|
|
9370
|
+
"type": "uint64",
|
|
9371
|
+
"internalType": "uint64"
|
|
9372
|
+
},
|
|
9373
|
+
{
|
|
9374
|
+
"name": "orders",
|
|
9375
|
+
"type": "uint32",
|
|
9376
|
+
"internalType": "uint32"
|
|
9377
|
+
},
|
|
9378
|
+
{
|
|
9379
|
+
"name": "settled",
|
|
9380
|
+
"type": "bool",
|
|
9381
|
+
"internalType": "bool"
|
|
9382
|
+
},
|
|
9383
|
+
{
|
|
9384
|
+
"name": "cancelled",
|
|
9385
|
+
"type": "bool",
|
|
9386
|
+
"internalType": "bool"
|
|
9387
|
+
}
|
|
9388
|
+
],
|
|
9389
|
+
"stateMutability": "view"
|
|
9390
|
+
},
|
|
9391
|
+
{
|
|
9392
|
+
"type": "function",
|
|
9393
|
+
"name": "claim",
|
|
9394
|
+
"inputs": [
|
|
9395
|
+
{
|
|
9396
|
+
"name": "ids",
|
|
9397
|
+
"type": "uint256[]",
|
|
9398
|
+
"internalType": "uint256[]"
|
|
9399
|
+
}
|
|
9400
|
+
],
|
|
9401
|
+
"outputs": [],
|
|
9402
|
+
"stateMutability": "nonpayable"
|
|
9403
|
+
},
|
|
9404
|
+
{
|
|
9405
|
+
"type": "function",
|
|
9406
|
+
"name": "currentRound",
|
|
9407
|
+
"inputs": [],
|
|
9408
|
+
"outputs": [
|
|
9409
|
+
{
|
|
9410
|
+
"name": "",
|
|
9411
|
+
"type": "uint64",
|
|
9412
|
+
"internalType": "uint64"
|
|
9413
|
+
}
|
|
9414
|
+
],
|
|
9415
|
+
"stateMutability": "view"
|
|
9416
|
+
},
|
|
9417
|
+
{
|
|
9418
|
+
"type": "function",
|
|
9419
|
+
"name": "hypePool",
|
|
9420
|
+
"inputs": [],
|
|
9421
|
+
"outputs": [
|
|
9422
|
+
{
|
|
9423
|
+
"name": "",
|
|
9424
|
+
"type": "address",
|
|
9425
|
+
"internalType": "contract ShieldedPool"
|
|
9426
|
+
}
|
|
9427
|
+
],
|
|
9428
|
+
"stateMutability": "view"
|
|
9429
|
+
},
|
|
9430
|
+
{
|
|
9431
|
+
"type": "function",
|
|
9432
|
+
"name": "isStandardSize",
|
|
9433
|
+
"inputs": [
|
|
9434
|
+
{
|
|
9435
|
+
"name": "x",
|
|
9436
|
+
"type": "uint256",
|
|
9437
|
+
"internalType": "uint256"
|
|
9438
|
+
}
|
|
9439
|
+
],
|
|
9440
|
+
"outputs": [
|
|
9441
|
+
{
|
|
9442
|
+
"name": "",
|
|
9443
|
+
"type": "bool",
|
|
9444
|
+
"internalType": "bool"
|
|
9445
|
+
}
|
|
9446
|
+
],
|
|
9447
|
+
"stateMutability": "pure"
|
|
9448
|
+
},
|
|
9449
|
+
{
|
|
9450
|
+
"type": "function",
|
|
9451
|
+
"name": "maxSlippageBps",
|
|
9452
|
+
"inputs": [],
|
|
9453
|
+
"outputs": [
|
|
9454
|
+
{
|
|
9455
|
+
"name": "",
|
|
9456
|
+
"type": "uint16",
|
|
9457
|
+
"internalType": "uint16"
|
|
9458
|
+
}
|
|
9459
|
+
],
|
|
9460
|
+
"stateMutability": "view"
|
|
9461
|
+
},
|
|
9462
|
+
{
|
|
9463
|
+
"type": "function",
|
|
9464
|
+
"name": "midPrice",
|
|
9465
|
+
"inputs": [
|
|
9466
|
+
{
|
|
9467
|
+
"name": "token",
|
|
9468
|
+
"type": "address",
|
|
9469
|
+
"internalType": "address"
|
|
9470
|
+
}
|
|
9471
|
+
],
|
|
9472
|
+
"outputs": [
|
|
9473
|
+
{
|
|
9474
|
+
"name": "",
|
|
9475
|
+
"type": "uint256",
|
|
9476
|
+
"internalType": "uint256"
|
|
9477
|
+
}
|
|
9478
|
+
],
|
|
9479
|
+
"stateMutability": "view"
|
|
9480
|
+
},
|
|
9481
|
+
{
|
|
9482
|
+
"type": "function",
|
|
9483
|
+
"name": "minOrder",
|
|
9484
|
+
"inputs": [],
|
|
9485
|
+
"outputs": [
|
|
9486
|
+
{
|
|
9487
|
+
"name": "",
|
|
9488
|
+
"type": "uint128",
|
|
9489
|
+
"internalType": "uint128"
|
|
9490
|
+
}
|
|
9491
|
+
],
|
|
9492
|
+
"stateMutability": "view"
|
|
9493
|
+
},
|
|
9494
|
+
{
|
|
9495
|
+
"type": "function",
|
|
9496
|
+
"name": "orders",
|
|
9497
|
+
"inputs": [
|
|
9498
|
+
{
|
|
9499
|
+
"name": "",
|
|
9500
|
+
"type": "uint256",
|
|
9501
|
+
"internalType": "uint256"
|
|
9502
|
+
}
|
|
9503
|
+
],
|
|
9504
|
+
"outputs": [
|
|
9505
|
+
{
|
|
9506
|
+
"name": "token",
|
|
9507
|
+
"type": "address",
|
|
9508
|
+
"internalType": "address"
|
|
9509
|
+
},
|
|
9510
|
+
{
|
|
9511
|
+
"name": "round",
|
|
9512
|
+
"type": "uint64",
|
|
9513
|
+
"internalType": "uint64"
|
|
9514
|
+
},
|
|
9515
|
+
{
|
|
9516
|
+
"name": "buy",
|
|
9517
|
+
"type": "bool",
|
|
9518
|
+
"internalType": "bool"
|
|
9519
|
+
},
|
|
9520
|
+
{
|
|
9521
|
+
"name": "done",
|
|
9522
|
+
"type": "bool",
|
|
9523
|
+
"internalType": "bool"
|
|
9524
|
+
},
|
|
9525
|
+
{
|
|
9526
|
+
"name": "size",
|
|
9527
|
+
"type": "uint128",
|
|
9528
|
+
"internalType": "uint128"
|
|
9529
|
+
},
|
|
9530
|
+
{
|
|
9531
|
+
"name": "net",
|
|
9532
|
+
"type": "uint128",
|
|
9533
|
+
"internalType": "uint128"
|
|
9534
|
+
},
|
|
9535
|
+
{
|
|
9536
|
+
"name": "outPubKey",
|
|
9537
|
+
"type": "uint256",
|
|
9538
|
+
"internalType": "uint256"
|
|
9539
|
+
},
|
|
9540
|
+
{
|
|
9541
|
+
"name": "outBlinding",
|
|
9542
|
+
"type": "uint256",
|
|
9543
|
+
"internalType": "uint256"
|
|
9544
|
+
},
|
|
9545
|
+
{
|
|
9546
|
+
"name": "outMemo",
|
|
9547
|
+
"type": "bytes",
|
|
9548
|
+
"internalType": "bytes"
|
|
9549
|
+
}
|
|
9550
|
+
],
|
|
9551
|
+
"stateMutability": "view"
|
|
9552
|
+
},
|
|
9553
|
+
{
|
|
9554
|
+
"type": "function",
|
|
9555
|
+
"name": "ordersCount",
|
|
9556
|
+
"inputs": [],
|
|
9557
|
+
"outputs": [
|
|
9558
|
+
{
|
|
9559
|
+
"name": "",
|
|
9560
|
+
"type": "uint256",
|
|
9561
|
+
"internalType": "uint256"
|
|
9562
|
+
}
|
|
9563
|
+
],
|
|
9564
|
+
"stateMutability": "view"
|
|
9565
|
+
},
|
|
9566
|
+
{
|
|
9567
|
+
"type": "function",
|
|
9568
|
+
"name": "placeBuy",
|
|
9569
|
+
"inputs": [
|
|
9570
|
+
{
|
|
9571
|
+
"name": "proof",
|
|
9572
|
+
"type": "tuple",
|
|
9573
|
+
"internalType": "struct ShieldedPool.Proof",
|
|
9574
|
+
"components": [
|
|
9575
|
+
{
|
|
9576
|
+
"name": "a",
|
|
9577
|
+
"type": "uint256[2]",
|
|
9578
|
+
"internalType": "uint256[2]"
|
|
9579
|
+
},
|
|
9580
|
+
{
|
|
9581
|
+
"name": "b",
|
|
9582
|
+
"type": "uint256[2][2]",
|
|
9583
|
+
"internalType": "uint256[2][2]"
|
|
9584
|
+
},
|
|
9585
|
+
{
|
|
9586
|
+
"name": "c",
|
|
9587
|
+
"type": "uint256[2]",
|
|
9588
|
+
"internalType": "uint256[2]"
|
|
9589
|
+
},
|
|
9590
|
+
{
|
|
9591
|
+
"name": "root",
|
|
9592
|
+
"type": "uint256",
|
|
9593
|
+
"internalType": "uint256"
|
|
9594
|
+
},
|
|
9595
|
+
{
|
|
9596
|
+
"name": "publicAmount",
|
|
9597
|
+
"type": "uint256",
|
|
9598
|
+
"internalType": "uint256"
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
"name": "extDataHash",
|
|
9602
|
+
"type": "uint256",
|
|
9603
|
+
"internalType": "uint256"
|
|
9604
|
+
},
|
|
9605
|
+
{
|
|
9606
|
+
"name": "inputNullifiers",
|
|
9607
|
+
"type": "uint256[2]",
|
|
9608
|
+
"internalType": "uint256[2]"
|
|
9609
|
+
},
|
|
9610
|
+
{
|
|
9611
|
+
"name": "outputCommitments",
|
|
9612
|
+
"type": "uint256[2]",
|
|
9613
|
+
"internalType": "uint256[2]"
|
|
9614
|
+
}
|
|
9615
|
+
]
|
|
9616
|
+
},
|
|
9617
|
+
{
|
|
9618
|
+
"name": "ext",
|
|
9619
|
+
"type": "tuple",
|
|
9620
|
+
"internalType": "struct ShieldedPool.ExtData",
|
|
9621
|
+
"components": [
|
|
9622
|
+
{
|
|
9623
|
+
"name": "recipient",
|
|
9624
|
+
"type": "address",
|
|
9625
|
+
"internalType": "address"
|
|
9626
|
+
},
|
|
9627
|
+
{
|
|
9628
|
+
"name": "extAmount",
|
|
9629
|
+
"type": "int256",
|
|
9630
|
+
"internalType": "int256"
|
|
9631
|
+
},
|
|
9632
|
+
{
|
|
9633
|
+
"name": "relayer",
|
|
9634
|
+
"type": "address",
|
|
9635
|
+
"internalType": "address"
|
|
9636
|
+
},
|
|
9637
|
+
{
|
|
9638
|
+
"name": "fee",
|
|
9639
|
+
"type": "uint256",
|
|
9640
|
+
"internalType": "uint256"
|
|
9641
|
+
},
|
|
9642
|
+
{
|
|
9643
|
+
"name": "encryptedOutput1",
|
|
9644
|
+
"type": "bytes",
|
|
9645
|
+
"internalType": "bytes"
|
|
9646
|
+
},
|
|
9647
|
+
{
|
|
9648
|
+
"name": "encryptedOutput2",
|
|
9649
|
+
"type": "bytes",
|
|
9650
|
+
"internalType": "bytes"
|
|
9651
|
+
},
|
|
9652
|
+
{
|
|
9653
|
+
"name": "data",
|
|
9654
|
+
"type": "bytes",
|
|
9655
|
+
"internalType": "bytes"
|
|
9656
|
+
}
|
|
9657
|
+
]
|
|
9658
|
+
}
|
|
9659
|
+
],
|
|
9660
|
+
"outputs": [
|
|
9661
|
+
{
|
|
9662
|
+
"name": "id",
|
|
9663
|
+
"type": "uint256",
|
|
9664
|
+
"internalType": "uint256"
|
|
9665
|
+
}
|
|
9666
|
+
],
|
|
9667
|
+
"stateMutability": "nonpayable"
|
|
9668
|
+
},
|
|
9669
|
+
{
|
|
9670
|
+
"type": "function",
|
|
9671
|
+
"name": "placeSell",
|
|
9672
|
+
"inputs": [
|
|
9673
|
+
{
|
|
9674
|
+
"name": "proof",
|
|
9675
|
+
"type": "tuple",
|
|
9676
|
+
"internalType": "struct SharedVault.Proof",
|
|
9677
|
+
"components": [
|
|
9678
|
+
{
|
|
9679
|
+
"name": "a",
|
|
9680
|
+
"type": "uint256[2]",
|
|
9681
|
+
"internalType": "uint256[2]"
|
|
9682
|
+
},
|
|
9683
|
+
{
|
|
9684
|
+
"name": "b",
|
|
9685
|
+
"type": "uint256[2][2]",
|
|
9686
|
+
"internalType": "uint256[2][2]"
|
|
9687
|
+
},
|
|
9688
|
+
{
|
|
9689
|
+
"name": "c",
|
|
9690
|
+
"type": "uint256[2]",
|
|
9691
|
+
"internalType": "uint256[2]"
|
|
9692
|
+
},
|
|
9693
|
+
{
|
|
9694
|
+
"name": "root",
|
|
9695
|
+
"type": "uint256",
|
|
9696
|
+
"internalType": "uint256"
|
|
9697
|
+
},
|
|
9698
|
+
{
|
|
9699
|
+
"name": "publicAmount",
|
|
9700
|
+
"type": "uint256",
|
|
9701
|
+
"internalType": "uint256"
|
|
9702
|
+
},
|
|
9703
|
+
{
|
|
9704
|
+
"name": "extDataHash",
|
|
9705
|
+
"type": "uint256",
|
|
9706
|
+
"internalType": "uint256"
|
|
9707
|
+
},
|
|
9708
|
+
{
|
|
9709
|
+
"name": "publicAsset",
|
|
9710
|
+
"type": "uint256",
|
|
9711
|
+
"internalType": "uint256"
|
|
9712
|
+
},
|
|
9713
|
+
{
|
|
9714
|
+
"name": "inputNullifiers",
|
|
9715
|
+
"type": "uint256[2]",
|
|
9716
|
+
"internalType": "uint256[2]"
|
|
9717
|
+
},
|
|
9718
|
+
{
|
|
9719
|
+
"name": "outputCommitments",
|
|
9720
|
+
"type": "uint256[2]",
|
|
9721
|
+
"internalType": "uint256[2]"
|
|
9722
|
+
}
|
|
9723
|
+
]
|
|
9724
|
+
},
|
|
9725
|
+
{
|
|
9726
|
+
"name": "ext",
|
|
9727
|
+
"type": "tuple",
|
|
9728
|
+
"internalType": "struct SharedVault.ExtData",
|
|
9729
|
+
"components": [
|
|
9730
|
+
{
|
|
9731
|
+
"name": "recipient",
|
|
9732
|
+
"type": "address",
|
|
9733
|
+
"internalType": "address"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
"name": "extAmount",
|
|
9737
|
+
"type": "int256",
|
|
9738
|
+
"internalType": "int256"
|
|
9739
|
+
},
|
|
9740
|
+
{
|
|
9741
|
+
"name": "relayer",
|
|
9742
|
+
"type": "address",
|
|
9743
|
+
"internalType": "address"
|
|
9744
|
+
},
|
|
9745
|
+
{
|
|
9746
|
+
"name": "fee",
|
|
9747
|
+
"type": "uint256",
|
|
9748
|
+
"internalType": "uint256"
|
|
9749
|
+
},
|
|
9750
|
+
{
|
|
9751
|
+
"name": "encryptedOutput1",
|
|
9752
|
+
"type": "bytes",
|
|
9753
|
+
"internalType": "bytes"
|
|
9754
|
+
},
|
|
9755
|
+
{
|
|
9756
|
+
"name": "encryptedOutput2",
|
|
9757
|
+
"type": "bytes",
|
|
9758
|
+
"internalType": "bytes"
|
|
9759
|
+
},
|
|
9760
|
+
{
|
|
9761
|
+
"name": "data",
|
|
9762
|
+
"type": "bytes",
|
|
9763
|
+
"internalType": "bytes"
|
|
9764
|
+
}
|
|
9765
|
+
]
|
|
9766
|
+
}
|
|
9767
|
+
],
|
|
9768
|
+
"outputs": [
|
|
9769
|
+
{
|
|
9770
|
+
"name": "id",
|
|
9771
|
+
"type": "uint256",
|
|
9772
|
+
"internalType": "uint256"
|
|
9773
|
+
}
|
|
9774
|
+
],
|
|
9775
|
+
"stateMutability": "nonpayable"
|
|
9776
|
+
},
|
|
9777
|
+
{
|
|
9778
|
+
"type": "function",
|
|
9779
|
+
"name": "refund",
|
|
9780
|
+
"inputs": [
|
|
9781
|
+
{
|
|
9782
|
+
"name": "ids",
|
|
9783
|
+
"type": "uint256[]",
|
|
9784
|
+
"internalType": "uint256[]"
|
|
9785
|
+
}
|
|
9786
|
+
],
|
|
9787
|
+
"outputs": [],
|
|
9788
|
+
"stateMutability": "nonpayable"
|
|
9789
|
+
},
|
|
9790
|
+
{
|
|
9791
|
+
"type": "function",
|
|
9792
|
+
"name": "refundAfter",
|
|
9793
|
+
"inputs": [],
|
|
9794
|
+
"outputs": [
|
|
9795
|
+
{
|
|
9796
|
+
"name": "",
|
|
9797
|
+
"type": "uint64",
|
|
9798
|
+
"internalType": "uint64"
|
|
9799
|
+
}
|
|
9800
|
+
],
|
|
9801
|
+
"stateMutability": "view"
|
|
9802
|
+
},
|
|
9803
|
+
{
|
|
9804
|
+
"type": "function",
|
|
9805
|
+
"name": "roundEnd",
|
|
9806
|
+
"inputs": [
|
|
9807
|
+
{
|
|
9808
|
+
"name": "round",
|
|
9809
|
+
"type": "uint64",
|
|
9810
|
+
"internalType": "uint64"
|
|
9811
|
+
}
|
|
9812
|
+
],
|
|
9813
|
+
"outputs": [
|
|
9814
|
+
{
|
|
9815
|
+
"name": "",
|
|
9816
|
+
"type": "uint256",
|
|
9817
|
+
"internalType": "uint256"
|
|
9818
|
+
}
|
|
9819
|
+
],
|
|
9820
|
+
"stateMutability": "view"
|
|
9821
|
+
},
|
|
9822
|
+
{
|
|
9823
|
+
"type": "function",
|
|
9824
|
+
"name": "roundSecs",
|
|
9825
|
+
"inputs": [],
|
|
9826
|
+
"outputs": [
|
|
9827
|
+
{
|
|
9828
|
+
"name": "",
|
|
9829
|
+
"type": "uint64",
|
|
9830
|
+
"internalType": "uint64"
|
|
9831
|
+
}
|
|
9832
|
+
],
|
|
9833
|
+
"stateMutability": "view"
|
|
9834
|
+
},
|
|
9835
|
+
{
|
|
9836
|
+
"type": "function",
|
|
9837
|
+
"name": "settle",
|
|
9838
|
+
"inputs": [
|
|
9839
|
+
{
|
|
9840
|
+
"name": "token",
|
|
9841
|
+
"type": "address",
|
|
9842
|
+
"internalType": "address"
|
|
9843
|
+
},
|
|
9844
|
+
{
|
|
9845
|
+
"name": "round",
|
|
9846
|
+
"type": "uint64",
|
|
9847
|
+
"internalType": "uint64"
|
|
9848
|
+
}
|
|
9849
|
+
],
|
|
9850
|
+
"outputs": [],
|
|
9851
|
+
"stateMutability": "nonpayable"
|
|
9852
|
+
},
|
|
9853
|
+
{
|
|
9854
|
+
"type": "function",
|
|
9855
|
+
"name": "shared",
|
|
9856
|
+
"inputs": [],
|
|
9857
|
+
"outputs": [
|
|
9858
|
+
{
|
|
9859
|
+
"name": "",
|
|
9860
|
+
"type": "address",
|
|
9861
|
+
"internalType": "contract SharedVault"
|
|
9862
|
+
}
|
|
9863
|
+
],
|
|
9864
|
+
"stateMutability": "view"
|
|
9865
|
+
},
|
|
9866
|
+
{
|
|
9867
|
+
"type": "function",
|
|
9868
|
+
"name": "twapOf",
|
|
9869
|
+
"inputs": [
|
|
9870
|
+
{
|
|
9871
|
+
"name": "token",
|
|
9872
|
+
"type": "address",
|
|
9873
|
+
"internalType": "address"
|
|
9874
|
+
},
|
|
9875
|
+
{
|
|
9876
|
+
"name": "round",
|
|
9877
|
+
"type": "uint64",
|
|
9878
|
+
"internalType": "uint64"
|
|
9879
|
+
}
|
|
9880
|
+
],
|
|
9881
|
+
"outputs": [
|
|
9882
|
+
{
|
|
9883
|
+
"name": "",
|
|
9884
|
+
"type": "uint256",
|
|
9885
|
+
"internalType": "uint256"
|
|
9886
|
+
}
|
|
9887
|
+
],
|
|
9888
|
+
"stateMutability": "view"
|
|
9889
|
+
},
|
|
9890
|
+
{
|
|
9891
|
+
"type": "function",
|
|
9892
|
+
"name": "whype",
|
|
9893
|
+
"inputs": [],
|
|
9894
|
+
"outputs": [
|
|
9895
|
+
{
|
|
9896
|
+
"name": "",
|
|
9897
|
+
"type": "address",
|
|
9898
|
+
"internalType": "contract WHYPE"
|
|
9899
|
+
}
|
|
9900
|
+
],
|
|
9901
|
+
"stateMutability": "view"
|
|
9902
|
+
},
|
|
9903
|
+
{
|
|
9904
|
+
"type": "event",
|
|
9905
|
+
"name": "BatchCancelled",
|
|
9906
|
+
"inputs": [
|
|
9907
|
+
{
|
|
9908
|
+
"name": "token",
|
|
9909
|
+
"type": "address",
|
|
9910
|
+
"indexed": true,
|
|
9911
|
+
"internalType": "address"
|
|
9912
|
+
},
|
|
9913
|
+
{
|
|
9914
|
+
"name": "round",
|
|
9915
|
+
"type": "uint64",
|
|
9916
|
+
"indexed": true,
|
|
9917
|
+
"internalType": "uint64"
|
|
9918
|
+
}
|
|
9919
|
+
],
|
|
9920
|
+
"anonymous": false
|
|
9921
|
+
},
|
|
9922
|
+
{
|
|
9923
|
+
"type": "event",
|
|
9924
|
+
"name": "BatchSettled",
|
|
9925
|
+
"inputs": [
|
|
9926
|
+
{
|
|
9927
|
+
"name": "token",
|
|
9928
|
+
"type": "address",
|
|
9929
|
+
"indexed": true,
|
|
9930
|
+
"internalType": "address"
|
|
9931
|
+
},
|
|
9932
|
+
{
|
|
9933
|
+
"name": "round",
|
|
9934
|
+
"type": "uint64",
|
|
9935
|
+
"indexed": true,
|
|
9936
|
+
"internalType": "uint64"
|
|
9937
|
+
},
|
|
9938
|
+
{
|
|
9939
|
+
"name": "buyHype",
|
|
9940
|
+
"type": "uint256",
|
|
9941
|
+
"indexed": false,
|
|
9942
|
+
"internalType": "uint256"
|
|
9943
|
+
},
|
|
9944
|
+
{
|
|
9945
|
+
"name": "sellTokens",
|
|
9946
|
+
"type": "uint256",
|
|
9947
|
+
"indexed": false,
|
|
9948
|
+
"internalType": "uint256"
|
|
9949
|
+
},
|
|
9950
|
+
{
|
|
9951
|
+
"name": "crossedHype",
|
|
9952
|
+
"type": "uint256",
|
|
9953
|
+
"indexed": false,
|
|
9954
|
+
"internalType": "uint256"
|
|
9955
|
+
},
|
|
9956
|
+
{
|
|
9957
|
+
"name": "tokensForBuyers",
|
|
9958
|
+
"type": "uint256",
|
|
9959
|
+
"indexed": false,
|
|
9960
|
+
"internalType": "uint256"
|
|
9961
|
+
},
|
|
9962
|
+
{
|
|
9963
|
+
"name": "hypeForSellers",
|
|
9964
|
+
"type": "uint256",
|
|
9965
|
+
"indexed": false,
|
|
9966
|
+
"internalType": "uint256"
|
|
9967
|
+
}
|
|
9968
|
+
],
|
|
9969
|
+
"anonymous": false
|
|
9970
|
+
},
|
|
9971
|
+
{
|
|
9972
|
+
"type": "event",
|
|
9973
|
+
"name": "OrderFilled",
|
|
9974
|
+
"inputs": [
|
|
9975
|
+
{
|
|
9976
|
+
"name": "id",
|
|
9977
|
+
"type": "uint256",
|
|
9978
|
+
"indexed": true,
|
|
9979
|
+
"internalType": "uint256"
|
|
9980
|
+
},
|
|
9981
|
+
{
|
|
9982
|
+
"name": "amountOut",
|
|
9983
|
+
"type": "uint256",
|
|
9984
|
+
"indexed": false,
|
|
9985
|
+
"internalType": "uint256"
|
|
9986
|
+
}
|
|
9987
|
+
],
|
|
9988
|
+
"anonymous": false
|
|
9989
|
+
},
|
|
9990
|
+
{
|
|
9991
|
+
"type": "event",
|
|
9992
|
+
"name": "OrderPlaced",
|
|
9993
|
+
"inputs": [
|
|
9994
|
+
{
|
|
9995
|
+
"name": "id",
|
|
9996
|
+
"type": "uint256",
|
|
9997
|
+
"indexed": true,
|
|
9998
|
+
"internalType": "uint256"
|
|
9999
|
+
},
|
|
10000
|
+
{
|
|
10001
|
+
"name": "token",
|
|
10002
|
+
"type": "address",
|
|
10003
|
+
"indexed": true,
|
|
10004
|
+
"internalType": "address"
|
|
10005
|
+
},
|
|
10006
|
+
{
|
|
10007
|
+
"name": "round",
|
|
10008
|
+
"type": "uint64",
|
|
10009
|
+
"indexed": true,
|
|
10010
|
+
"internalType": "uint64"
|
|
10011
|
+
},
|
|
10012
|
+
{
|
|
10013
|
+
"name": "buy",
|
|
10014
|
+
"type": "bool",
|
|
10015
|
+
"indexed": false,
|
|
10016
|
+
"internalType": "bool"
|
|
10017
|
+
},
|
|
10018
|
+
{
|
|
10019
|
+
"name": "size",
|
|
10020
|
+
"type": "uint256",
|
|
10021
|
+
"indexed": false,
|
|
10022
|
+
"internalType": "uint256"
|
|
10023
|
+
}
|
|
10024
|
+
],
|
|
10025
|
+
"anonymous": false
|
|
10026
|
+
},
|
|
10027
|
+
{
|
|
10028
|
+
"type": "event",
|
|
10029
|
+
"name": "OrderRefunded",
|
|
10030
|
+
"inputs": [
|
|
10031
|
+
{
|
|
10032
|
+
"name": "id",
|
|
10033
|
+
"type": "uint256",
|
|
10034
|
+
"indexed": true,
|
|
10035
|
+
"internalType": "uint256"
|
|
10036
|
+
}
|
|
10037
|
+
],
|
|
10038
|
+
"anonymous": false
|
|
10039
|
+
},
|
|
10040
|
+
{
|
|
10041
|
+
"type": "error",
|
|
10042
|
+
"name": "AlreadySettled",
|
|
10043
|
+
"inputs": []
|
|
10044
|
+
},
|
|
10045
|
+
{
|
|
10046
|
+
"type": "error",
|
|
10047
|
+
"name": "BadConfig",
|
|
10048
|
+
"inputs": []
|
|
10049
|
+
},
|
|
10050
|
+
{
|
|
10051
|
+
"type": "error",
|
|
10052
|
+
"name": "BadRecipient",
|
|
10053
|
+
"inputs": []
|
|
10054
|
+
},
|
|
10055
|
+
{
|
|
10056
|
+
"type": "error",
|
|
10057
|
+
"name": "NoMarket",
|
|
10058
|
+
"inputs": []
|
|
10059
|
+
},
|
|
10060
|
+
{
|
|
10061
|
+
"type": "error",
|
|
10062
|
+
"name": "NotSettled",
|
|
10063
|
+
"inputs": []
|
|
10064
|
+
},
|
|
10065
|
+
{
|
|
10066
|
+
"type": "error",
|
|
10067
|
+
"name": "NotStandardSize",
|
|
10068
|
+
"inputs": []
|
|
10069
|
+
},
|
|
10070
|
+
{
|
|
10071
|
+
"type": "error",
|
|
10072
|
+
"name": "PriceMoved",
|
|
10073
|
+
"inputs": []
|
|
10074
|
+
},
|
|
10075
|
+
{
|
|
10076
|
+
"type": "error",
|
|
10077
|
+
"name": "Reentrancy",
|
|
10078
|
+
"inputs": []
|
|
10079
|
+
},
|
|
10080
|
+
{
|
|
10081
|
+
"type": "error",
|
|
10082
|
+
"name": "RoundOpen",
|
|
10083
|
+
"inputs": []
|
|
10084
|
+
},
|
|
10085
|
+
{
|
|
10086
|
+
"type": "error",
|
|
10087
|
+
"name": "TooEarly",
|
|
10088
|
+
"inputs": []
|
|
10089
|
+
},
|
|
10090
|
+
{
|
|
10091
|
+
"type": "error",
|
|
10092
|
+
"name": "UnknownPool",
|
|
10093
|
+
"inputs": []
|
|
10094
|
+
}
|
|
10095
|
+
];
|