@d8x/perpetuals-sdk 0.0.5 → 0.0.7

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.
@@ -1,4 +1,66 @@
1
1
  [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "uint8",
8
+ "name": "poolId",
9
+ "type": "uint8"
10
+ },
11
+ {
12
+ "indexed": false,
13
+ "internalType": "address",
14
+ "name": "oldOwner",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "indexed": false,
19
+ "internalType": "address",
20
+ "name": "newOwner",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "indexed": false,
25
+ "internalType": "uint32",
26
+ "name": "numLots",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "BrokerLotsTransferred",
31
+ "type": "event"
32
+ },
33
+ {
34
+ "anonymous": false,
35
+ "inputs": [
36
+ {
37
+ "indexed": true,
38
+ "internalType": "uint8",
39
+ "name": "poolId",
40
+ "type": "uint8"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "address",
45
+ "name": "oldOwner",
46
+ "type": "address"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "address",
51
+ "name": "newOwner",
52
+ "type": "address"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "int128",
57
+ "name": "fVolume",
58
+ "type": "int128"
59
+ }
60
+ ],
61
+ "name": "BrokerVolumeTransferred",
62
+ "type": "event"
63
+ },
2
64
  {
3
65
  "anonymous": false,
4
66
  "inputs": [
@@ -365,6 +427,63 @@
365
427
  "name": "SetBrokerCollateralLotSize",
366
428
  "type": "event"
367
429
  },
430
+ {
431
+ "anonymous": false,
432
+ "inputs": [
433
+ {
434
+ "indexed": false,
435
+ "internalType": "uint32[]",
436
+ "name": "designations",
437
+ "type": "uint32[]"
438
+ },
439
+ {
440
+ "indexed": false,
441
+ "internalType": "uint16[]",
442
+ "name": "fees",
443
+ "type": "uint16[]"
444
+ }
445
+ ],
446
+ "name": "SetBrokerDesignations",
447
+ "type": "event"
448
+ },
449
+ {
450
+ "anonymous": false,
451
+ "inputs": [
452
+ {
453
+ "indexed": false,
454
+ "internalType": "uint256[]",
455
+ "name": "tiers",
456
+ "type": "uint256[]"
457
+ },
458
+ {
459
+ "indexed": false,
460
+ "internalType": "uint16[]",
461
+ "name": "feesTbps",
462
+ "type": "uint16[]"
463
+ }
464
+ ],
465
+ "name": "SetBrokerTiers",
466
+ "type": "event"
467
+ },
468
+ {
469
+ "anonymous": false,
470
+ "inputs": [
471
+ {
472
+ "indexed": false,
473
+ "internalType": "uint256[]",
474
+ "name": "tiers",
475
+ "type": "uint256[]"
476
+ },
477
+ {
478
+ "indexed": false,
479
+ "internalType": "uint16[]",
480
+ "name": "feesTbps",
481
+ "type": "uint16[]"
482
+ }
483
+ ],
484
+ "name": "SetBrokerVolumeTiers",
485
+ "type": "event"
486
+ },
368
487
  {
369
488
  "anonymous": false,
370
489
  "inputs": [
@@ -604,6 +723,57 @@
604
723
  "name": "SetTargetPoolSizeUpdateTime",
605
724
  "type": "event"
606
725
  },
726
+ {
727
+ "anonymous": false,
728
+ "inputs": [
729
+ {
730
+ "indexed": false,
731
+ "internalType": "uint256[]",
732
+ "name": "tiers",
733
+ "type": "uint256[]"
734
+ },
735
+ {
736
+ "indexed": false,
737
+ "internalType": "uint16[]",
738
+ "name": "feesTbps",
739
+ "type": "uint16[]"
740
+ }
741
+ ],
742
+ "name": "SetTraderTiers",
743
+ "type": "event"
744
+ },
745
+ {
746
+ "anonymous": false,
747
+ "inputs": [
748
+ {
749
+ "indexed": false,
750
+ "internalType": "uint256[]",
751
+ "name": "tiers",
752
+ "type": "uint256[]"
753
+ },
754
+ {
755
+ "indexed": false,
756
+ "internalType": "uint16[]",
757
+ "name": "feesTbps",
758
+ "type": "uint16[]"
759
+ }
760
+ ],
761
+ "name": "SetTraderVolumeTiers",
762
+ "type": "event"
763
+ },
764
+ {
765
+ "anonymous": false,
766
+ "inputs": [
767
+ {
768
+ "indexed": false,
769
+ "internalType": "address",
770
+ "name": "tokenAddr",
771
+ "type": "address"
772
+ }
773
+ ],
774
+ "name": "SetUtilityToken",
775
+ "type": "event"
776
+ },
607
777
  {
608
778
  "anonymous": false,
609
779
  "inputs": [
@@ -2334,6 +2504,54 @@
2334
2504
  "stateMutability": "view",
2335
2505
  "type": "function"
2336
2506
  },
2507
+ {
2508
+ "inputs": [
2509
+ {
2510
+ "internalType": "uint8",
2511
+ "name": "_poolId",
2512
+ "type": "uint8"
2513
+ },
2514
+ {
2515
+ "internalType": "address",
2516
+ "name": "_brokerAddr",
2517
+ "type": "address"
2518
+ }
2519
+ ],
2520
+ "name": "getCurrentBrokerVolume",
2521
+ "outputs": [
2522
+ {
2523
+ "internalType": "int128",
2524
+ "name": "",
2525
+ "type": "int128"
2526
+ }
2527
+ ],
2528
+ "stateMutability": "view",
2529
+ "type": "function"
2530
+ },
2531
+ {
2532
+ "inputs": [
2533
+ {
2534
+ "internalType": "uint8",
2535
+ "name": "_poolId",
2536
+ "type": "uint8"
2537
+ },
2538
+ {
2539
+ "internalType": "address",
2540
+ "name": "_traderAddr",
2541
+ "type": "address"
2542
+ }
2543
+ ],
2544
+ "name": "getCurrentTraderVolume",
2545
+ "outputs": [
2546
+ {
2547
+ "internalType": "int128",
2548
+ "name": "",
2549
+ "type": "int128"
2550
+ }
2551
+ ],
2552
+ "stateMutability": "view",
2553
+ "type": "function"
2554
+ },
2337
2555
  {
2338
2556
  "inputs": [
2339
2557
  {
@@ -3699,6 +3917,30 @@
3699
3917
  "stateMutability": "view",
3700
3918
  "type": "function"
3701
3919
  },
3920
+ {
3921
+ "inputs": [
3922
+ {
3923
+ "internalType": "uint24",
3924
+ "name": "_iPerpetualId",
3925
+ "type": "uint24"
3926
+ },
3927
+ {
3928
+ "internalType": "int128",
3929
+ "name": "_fTradeAmountBC",
3930
+ "type": "int128"
3931
+ }
3932
+ ],
3933
+ "name": "queryPerpetualPrice",
3934
+ "outputs": [
3935
+ {
3936
+ "internalType": "int128",
3937
+ "name": "",
3938
+ "type": "int128"
3939
+ }
3940
+ ],
3941
+ "stateMutability": "view",
3942
+ "type": "function"
3943
+ },
3702
3944
  {
3703
3945
  "inputs": [
3704
3946
  {
@@ -3931,6 +4173,29 @@
3931
4173
  "stateMutability": "nonpayable",
3932
4174
  "type": "function"
3933
4175
  },
4176
+ {
4177
+ "inputs": [
4178
+ {
4179
+ "internalType": "uint8",
4180
+ "name": "_poolId",
4181
+ "type": "uint8"
4182
+ },
4183
+ {
4184
+ "internalType": "address",
4185
+ "name": "_brokerAddr",
4186
+ "type": "address"
4187
+ },
4188
+ {
4189
+ "internalType": "uint16",
4190
+ "name": "_feeTbps",
4191
+ "type": "uint16"
4192
+ }
4193
+ ],
4194
+ "name": "setInitialVolumeForFee",
4195
+ "outputs": [],
4196
+ "stateMutability": "nonpayable",
4197
+ "type": "function"
4198
+ },
3934
4199
  {
3935
4200
  "inputs": [
3936
4201
  {
@@ -4450,6 +4715,47 @@
4450
4715
  "stateMutability": "nonpayable",
4451
4716
  "type": "function"
4452
4717
  },
4718
+ {
4719
+ "inputs": [
4720
+ {
4721
+ "internalType": "uint8",
4722
+ "name": "_poolId",
4723
+ "type": "uint8"
4724
+ },
4725
+ {
4726
+ "internalType": "address",
4727
+ "name": "_transferToAddr",
4728
+ "type": "address"
4729
+ },
4730
+ {
4731
+ "internalType": "uint32",
4732
+ "name": "_lots",
4733
+ "type": "uint32"
4734
+ }
4735
+ ],
4736
+ "name": "transferBrokerLots",
4737
+ "outputs": [],
4738
+ "stateMutability": "nonpayable",
4739
+ "type": "function"
4740
+ },
4741
+ {
4742
+ "inputs": [
4743
+ {
4744
+ "internalType": "uint8",
4745
+ "name": "_poolId",
4746
+ "type": "uint8"
4747
+ },
4748
+ {
4749
+ "internalType": "address",
4750
+ "name": "_transferToAddr",
4751
+ "type": "address"
4752
+ }
4753
+ ],
4754
+ "name": "transferBrokerOwnership",
4755
+ "outputs": [],
4756
+ "stateMutability": "nonpayable",
4757
+ "type": "function"
4758
+ },
4453
4759
  {
4454
4760
  "inputs": [
4455
4761
  {
@@ -3,7 +3,7 @@
3
3
  "proxyAddr": "0x51b05809eF1E84BB963D84ff95FB5E625d88152d",
4
4
  "nodeURL": "https://rpc-mumbai.maticvigil.com/",
5
5
  "proxyABILocation": "../abi/IPerpetualManager.json",
6
- "limitOrderBookFactoryAddr": "0xd63Faf780687795EBac85ce248a45E457752f021",
6
+ "limitOrderBookFactoryAddr": "0x92B6967Ea9b6A0375013649dBd3d0CD9DceeEf4d",
7
7
  "limitOrderBookFactoryABILocation": "../abi/LimitOrderBookFactory.json",
8
8
  "limitOrderBookABILocation": "../abi/LimitOrderBook.json"
9
9
  }
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "name": "@d8x/perpetuals-sdk",
29
29
  "description": "Node TypeScript SDK for D8X Perpetual Futures",
30
- "version": "0.0.5",
30
+ "version": "0.0.7",
31
31
  "main": "./dist/index.js",
32
32
  "types": "./dist/index.d.ts",
33
33
  "directories": {