@gainsnetwork/sdk 1.1.0-rc1 → 1.1.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/lib/backend/tradingVariables/backend.types.d.ts +4 -11
- package/lib/backend/tradingVariables/converter.d.ts +3 -7
- package/lib/backend/tradingVariables/converter.js +7 -14
- package/lib/backend/tradingVariables/index.js +2 -5
- package/lib/backend/tradingVariables/types.d.ts +2 -4
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +299 -608
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +313 -1996
- package/lib/contracts/utils/pairs.d.ts +2 -13
- package/lib/contracts/utils/pairs.js +11 -70
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/trade/fees/trading/builder.d.ts +2 -1
- package/lib/trade/fees/trading/builder.js +2 -1
- package/lib/trade/fees/trading/types.d.ts +1 -3
- package/lib/trade/liquidation/builder.js +1 -1
- package/lib/trade/liquidation/types.d.ts +2 -7
- package/lib/trade/pnl/index.js +2 -0
- package/lib/trade/priceImpact/cumulVol/builder.js +7 -8
- package/lib/trade/priceImpact/cumulVol/converter.d.ts +0 -63
- package/lib/trade/priceImpact/cumulVol/converter.js +1 -97
- package/lib/trade/priceImpact/cumulVol/index.d.ts +0 -3
- package/lib/trade/priceImpact/cumulVol/index.js +4 -107
- package/package.json +1 -1
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +0 -979
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +0 -2
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
- package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
- package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +0 -806
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +0 -2
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +0 -88
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +0 -1654
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +0 -82
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +0 -1273
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
- package/lib/markets/oi/fetcher.d.ts +0 -58
- package/lib/markets/oi/fetcher.js +0 -181
- package/lib/markets/oi/validation.d.ts +0 -80
- package/lib/markets/oi/validation.js +0 -172
- package/lib/markets/price/signedPrices.d.ts +0 -36
- package/lib/markets/price/signedPrices.js +0 -181
- package/lib/pricing/depthBands/converter.d.ts +0 -65
- package/lib/pricing/depthBands/converter.js +0 -155
- package/lib/pricing/depthBands/decoder.d.ts +0 -32
- package/lib/pricing/depthBands/decoder.js +0 -109
- package/lib/pricing/depthBands/encoder.d.ts +0 -19
- package/lib/pricing/depthBands/encoder.js +0 -105
- package/lib/pricing/depthBands/index.d.ts +0 -8
- package/lib/pricing/depthBands/index.js +0 -26
- package/lib/pricing/depthBands/types.d.ts +0 -49
- package/lib/pricing/depthBands/types.js +0 -10
- package/lib/pricing/depthBands/validator.d.ts +0 -22
- package/lib/pricing/depthBands/validator.js +0 -113
- package/lib/pricing/depthBands.d.ts +0 -39
- package/lib/pricing/depthBands.js +0 -92
- package/lib/pricing/index.d.ts +0 -4
- package/lib/pricing/index.js +0 -20
- package/lib/trade/effectiveLeverage/builder.d.ts +0 -23
- package/lib/trade/effectiveLeverage/builder.js +0 -30
- package/lib/trade/fees/holdingFees/index.d.ts +0 -46
- package/lib/trade/fees/holdingFees/index.js +0 -105
- package/lib/trade/fees/holdingFees/types.d.ts +0 -23
- package/lib/trade/fees/holdingFees/types.js +0 -5
- package/lib/trade/fees/trading/holdingFees.d.ts +0 -28
- package/lib/trade/fees/trading/holdingFees.js +0 -66
- package/lib/trade/fees/trading/holdingFeesStructured.d.ts +0 -28
- package/lib/trade/fees/trading/holdingFeesStructured.js +0 -66
- package/lib/trade/priceImpact/cumulVol/types.d.ts +0 -11
- package/lib/trade/priceImpact/cumulVol/types.js +0 -2
|
@@ -1146,31 +1146,6 @@ const _abi = [
|
|
|
1146
1146
|
type: "function",
|
|
1147
1147
|
signature: "0x678b3fb0",
|
|
1148
1148
|
},
|
|
1149
|
-
{
|
|
1150
|
-
inputs: [
|
|
1151
|
-
{
|
|
1152
|
-
internalType: "uint16",
|
|
1153
|
-
name: "_pairIndex",
|
|
1154
|
-
type: "uint16",
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
internalType: "bool",
|
|
1158
|
-
name: "_isCounterTrade",
|
|
1159
|
-
type: "bool",
|
|
1160
|
-
},
|
|
1161
|
-
],
|
|
1162
|
-
name: "getEffectiveTotalPositionSizeFeeP",
|
|
1163
|
-
outputs: [
|
|
1164
|
-
{
|
|
1165
|
-
internalType: "uint256",
|
|
1166
|
-
name: "",
|
|
1167
|
-
type: "uint256",
|
|
1168
|
-
},
|
|
1169
|
-
],
|
|
1170
|
-
stateMutability: "view",
|
|
1171
|
-
type: "function",
|
|
1172
|
-
signature: "0xace26965",
|
|
1173
|
-
},
|
|
1174
1149
|
{
|
|
1175
1150
|
inputs: [],
|
|
1176
1151
|
name: "getGlobalTradeFeeParams",
|
|
@@ -3720,21 +3695,6 @@ const _abi = [
|
|
|
3720
3695
|
type: "function",
|
|
3721
3696
|
signature: "0xfed8a190",
|
|
3722
3697
|
},
|
|
3723
|
-
{
|
|
3724
|
-
inputs: [],
|
|
3725
|
-
name: "DepthBandsAboveMax",
|
|
3726
|
-
type: "error",
|
|
3727
|
-
},
|
|
3728
|
-
{
|
|
3729
|
-
inputs: [],
|
|
3730
|
-
name: "DepthBandsIncomplete",
|
|
3731
|
-
type: "error",
|
|
3732
|
-
},
|
|
3733
|
-
{
|
|
3734
|
-
inputs: [],
|
|
3735
|
-
name: "WrongDepthBandsOrder",
|
|
3736
|
-
type: "error",
|
|
3737
|
-
},
|
|
3738
3698
|
{
|
|
3739
3699
|
inputs: [],
|
|
3740
3700
|
name: "WrongWindowsCount",
|
|
@@ -3765,26 +3725,6 @@ const _abi = [
|
|
|
3765
3725
|
type: "event",
|
|
3766
3726
|
signature: "0x2742ec28d0252b4477106a77a10b04e1c1ecd2b568c7168d56c3a3154d3a3122",
|
|
3767
3727
|
},
|
|
3768
|
-
{
|
|
3769
|
-
anonymous: false,
|
|
3770
|
-
inputs: [
|
|
3771
|
-
{
|
|
3772
|
-
indexed: false,
|
|
3773
|
-
internalType: "uint256",
|
|
3774
|
-
name: "slot1",
|
|
3775
|
-
type: "uint256",
|
|
3776
|
-
},
|
|
3777
|
-
{
|
|
3778
|
-
indexed: false,
|
|
3779
|
-
internalType: "uint256",
|
|
3780
|
-
name: "slot2",
|
|
3781
|
-
type: "uint256",
|
|
3782
|
-
},
|
|
3783
|
-
],
|
|
3784
|
-
name: "DepthBandsMappingUpdated",
|
|
3785
|
-
type: "event",
|
|
3786
|
-
signature: "0x22391293f5705268ac47df15d88a7704e1267eff228801ac480dbe5ecf5ea3ef",
|
|
3787
|
-
},
|
|
3788
3728
|
{
|
|
3789
3729
|
anonymous: false,
|
|
3790
3730
|
inputs: [
|
|
@@ -3911,44 +3851,6 @@ const _abi = [
|
|
|
3911
3851
|
type: "event",
|
|
3912
3852
|
signature: "0xbe433d32d9112c2fcf91407f28314200753b05ef3e9c85b8a0e9d135e77a6c29",
|
|
3913
3853
|
},
|
|
3914
|
-
{
|
|
3915
|
-
anonymous: false,
|
|
3916
|
-
inputs: [
|
|
3917
|
-
{
|
|
3918
|
-
indexed: true,
|
|
3919
|
-
internalType: "uint256",
|
|
3920
|
-
name: "pairIndex",
|
|
3921
|
-
type: "uint256",
|
|
3922
|
-
},
|
|
3923
|
-
{
|
|
3924
|
-
indexed: false,
|
|
3925
|
-
internalType: "uint256",
|
|
3926
|
-
name: "aboveSlot1",
|
|
3927
|
-
type: "uint256",
|
|
3928
|
-
},
|
|
3929
|
-
{
|
|
3930
|
-
indexed: false,
|
|
3931
|
-
internalType: "uint256",
|
|
3932
|
-
name: "aboveSlot2",
|
|
3933
|
-
type: "uint256",
|
|
3934
|
-
},
|
|
3935
|
-
{
|
|
3936
|
-
indexed: false,
|
|
3937
|
-
internalType: "uint256",
|
|
3938
|
-
name: "belowSlot1",
|
|
3939
|
-
type: "uint256",
|
|
3940
|
-
},
|
|
3941
|
-
{
|
|
3942
|
-
indexed: false,
|
|
3943
|
-
internalType: "uint256",
|
|
3944
|
-
name: "belowSlot2",
|
|
3945
|
-
type: "uint256",
|
|
3946
|
-
},
|
|
3947
|
-
],
|
|
3948
|
-
name: "PairDepthBandsUpdated",
|
|
3949
|
-
type: "event",
|
|
3950
|
-
signature: "0x7a9ee81b0015d0b7824d14757416905ea9ace5b9ad54dc08cb426cd0ae3dff9f",
|
|
3951
|
-
},
|
|
3952
3854
|
{
|
|
3953
3855
|
anonymous: false,
|
|
3954
3856
|
inputs: [
|
|
@@ -4308,39 +4210,6 @@ const _abi = [
|
|
|
4308
4210
|
type: "function",
|
|
4309
4211
|
signature: "0x81688f7b",
|
|
4310
4212
|
},
|
|
4311
|
-
{
|
|
4312
|
-
inputs: [],
|
|
4313
|
-
name: "getDepthBandsMapping",
|
|
4314
|
-
outputs: [
|
|
4315
|
-
{
|
|
4316
|
-
internalType: "uint256",
|
|
4317
|
-
name: "slot1",
|
|
4318
|
-
type: "uint256",
|
|
4319
|
-
},
|
|
4320
|
-
{
|
|
4321
|
-
internalType: "uint256",
|
|
4322
|
-
name: "slot2",
|
|
4323
|
-
type: "uint256",
|
|
4324
|
-
},
|
|
4325
|
-
],
|
|
4326
|
-
stateMutability: "view",
|
|
4327
|
-
type: "function",
|
|
4328
|
-
signature: "0xd40e0d20",
|
|
4329
|
-
},
|
|
4330
|
-
{
|
|
4331
|
-
inputs: [],
|
|
4332
|
-
name: "getDepthBandsMappingDecoded",
|
|
4333
|
-
outputs: [
|
|
4334
|
-
{
|
|
4335
|
-
internalType: "uint16[]",
|
|
4336
|
-
name: "bands",
|
|
4337
|
-
type: "uint16[]",
|
|
4338
|
-
},
|
|
4339
|
-
],
|
|
4340
|
-
stateMutability: "view",
|
|
4341
|
-
type: "function",
|
|
4342
|
-
signature: "0x9615d82a",
|
|
4343
|
-
},
|
|
4344
4213
|
{
|
|
4345
4214
|
inputs: [],
|
|
4346
4215
|
name: "getNegPnlCumulVolMultiplier",
|
|
@@ -4470,48 +4339,6 @@ const _abi = [
|
|
|
4470
4339
|
type: "function",
|
|
4471
4340
|
signature: "0xb56df676",
|
|
4472
4341
|
},
|
|
4473
|
-
{
|
|
4474
|
-
inputs: [
|
|
4475
|
-
{
|
|
4476
|
-
internalType: "uint256[]",
|
|
4477
|
-
name: "_indices",
|
|
4478
|
-
type: "uint256[]",
|
|
4479
|
-
},
|
|
4480
|
-
],
|
|
4481
|
-
name: "getPairDepthBands",
|
|
4482
|
-
outputs: [
|
|
4483
|
-
{
|
|
4484
|
-
components: [
|
|
4485
|
-
{
|
|
4486
|
-
internalType: "uint256",
|
|
4487
|
-
name: "aboveSlot1",
|
|
4488
|
-
type: "uint256",
|
|
4489
|
-
},
|
|
4490
|
-
{
|
|
4491
|
-
internalType: "uint256",
|
|
4492
|
-
name: "aboveSlot2",
|
|
4493
|
-
type: "uint256",
|
|
4494
|
-
},
|
|
4495
|
-
{
|
|
4496
|
-
internalType: "uint256",
|
|
4497
|
-
name: "belowSlot1",
|
|
4498
|
-
type: "uint256",
|
|
4499
|
-
},
|
|
4500
|
-
{
|
|
4501
|
-
internalType: "uint256",
|
|
4502
|
-
name: "belowSlot2",
|
|
4503
|
-
type: "uint256",
|
|
4504
|
-
},
|
|
4505
|
-
],
|
|
4506
|
-
internalType: "struct IPriceImpact.PairDepthBands[]",
|
|
4507
|
-
name: "",
|
|
4508
|
-
type: "tuple[]",
|
|
4509
|
-
},
|
|
4510
|
-
],
|
|
4511
|
-
stateMutability: "view",
|
|
4512
|
-
type: "function",
|
|
4513
|
-
signature: "0x42105561",
|
|
4514
|
-
},
|
|
4515
4342
|
{
|
|
4516
4343
|
inputs: [
|
|
4517
4344
|
{
|
|
@@ -4520,74 +4347,29 @@ const _abi = [
|
|
|
4520
4347
|
type: "uint256",
|
|
4521
4348
|
},
|
|
4522
4349
|
],
|
|
4523
|
-
name: "
|
|
4350
|
+
name: "getPairDepth",
|
|
4524
4351
|
outputs: [
|
|
4525
4352
|
{
|
|
4526
4353
|
components: [
|
|
4527
4354
|
{
|
|
4528
|
-
internalType: "
|
|
4529
|
-
name: "
|
|
4530
|
-
type: "
|
|
4531
|
-
},
|
|
4532
|
-
{
|
|
4533
|
-
internalType: "uint256",
|
|
4534
|
-
name: "aboveSlot2",
|
|
4535
|
-
type: "uint256",
|
|
4536
|
-
},
|
|
4537
|
-
{
|
|
4538
|
-
internalType: "uint256",
|
|
4539
|
-
name: "belowSlot1",
|
|
4540
|
-
type: "uint256",
|
|
4355
|
+
internalType: "uint128",
|
|
4356
|
+
name: "onePercentDepthAboveUsd",
|
|
4357
|
+
type: "uint128",
|
|
4541
4358
|
},
|
|
4542
4359
|
{
|
|
4543
|
-
internalType: "
|
|
4544
|
-
name: "
|
|
4545
|
-
type: "
|
|
4360
|
+
internalType: "uint128",
|
|
4361
|
+
name: "onePercentDepthBelowUsd",
|
|
4362
|
+
type: "uint128",
|
|
4546
4363
|
},
|
|
4547
4364
|
],
|
|
4548
|
-
internalType: "struct IPriceImpact.
|
|
4365
|
+
internalType: "struct IPriceImpact.PairDepth",
|
|
4549
4366
|
name: "",
|
|
4550
4367
|
type: "tuple",
|
|
4551
4368
|
},
|
|
4552
4369
|
],
|
|
4553
4370
|
stateMutability: "view",
|
|
4554
4371
|
type: "function",
|
|
4555
|
-
signature: "
|
|
4556
|
-
},
|
|
4557
|
-
{
|
|
4558
|
-
inputs: [
|
|
4559
|
-
{
|
|
4560
|
-
internalType: "uint256",
|
|
4561
|
-
name: "_pairIndex",
|
|
4562
|
-
type: "uint256",
|
|
4563
|
-
},
|
|
4564
|
-
],
|
|
4565
|
-
name: "getPairDepthBandsDecoded",
|
|
4566
|
-
outputs: [
|
|
4567
|
-
{
|
|
4568
|
-
internalType: "uint256",
|
|
4569
|
-
name: "totalDepthAboveUsd",
|
|
4570
|
-
type: "uint256",
|
|
4571
|
-
},
|
|
4572
|
-
{
|
|
4573
|
-
internalType: "uint256",
|
|
4574
|
-
name: "totalDepthBelowUsd",
|
|
4575
|
-
type: "uint256",
|
|
4576
|
-
},
|
|
4577
|
-
{
|
|
4578
|
-
internalType: "uint16[]",
|
|
4579
|
-
name: "bandsAbove",
|
|
4580
|
-
type: "uint16[]",
|
|
4581
|
-
},
|
|
4582
|
-
{
|
|
4583
|
-
internalType: "uint16[]",
|
|
4584
|
-
name: "bandsBelow",
|
|
4585
|
-
type: "uint16[]",
|
|
4586
|
-
},
|
|
4587
|
-
],
|
|
4588
|
-
stateMutability: "view",
|
|
4589
|
-
type: "function",
|
|
4590
|
-
signature: "0x2b363e71",
|
|
4372
|
+
signature: "0x375bb2bb",
|
|
4591
4373
|
},
|
|
4592
4374
|
{
|
|
4593
4375
|
inputs: [
|
|
@@ -4597,32 +4379,29 @@ const _abi = [
|
|
|
4597
4379
|
type: "uint256[]",
|
|
4598
4380
|
},
|
|
4599
4381
|
],
|
|
4600
|
-
name: "
|
|
4382
|
+
name: "getPairDepths",
|
|
4601
4383
|
outputs: [
|
|
4602
4384
|
{
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
internalType: "uint16[][]",
|
|
4619
|
-
name: "bandsBelow",
|
|
4620
|
-
type: "uint16[][]",
|
|
4385
|
+
components: [
|
|
4386
|
+
{
|
|
4387
|
+
internalType: "uint128",
|
|
4388
|
+
name: "onePercentDepthAboveUsd",
|
|
4389
|
+
type: "uint128",
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
internalType: "uint128",
|
|
4393
|
+
name: "onePercentDepthBelowUsd",
|
|
4394
|
+
type: "uint128",
|
|
4395
|
+
},
|
|
4396
|
+
],
|
|
4397
|
+
internalType: "struct IPriceImpact.PairDepth[]",
|
|
4398
|
+
name: "",
|
|
4399
|
+
type: "tuple[]",
|
|
4621
4400
|
},
|
|
4622
4401
|
],
|
|
4623
4402
|
stateMutability: "view",
|
|
4624
4403
|
type: "function",
|
|
4625
|
-
signature: "
|
|
4404
|
+
signature: "0x0d569f27",
|
|
4626
4405
|
},
|
|
4627
4406
|
{
|
|
4628
4407
|
inputs: [
|
|
@@ -5051,25 +4830,6 @@ const _abi = [
|
|
|
5051
4830
|
type: "function",
|
|
5052
4831
|
signature: "0x5a1449ab",
|
|
5053
4832
|
},
|
|
5054
|
-
{
|
|
5055
|
-
inputs: [
|
|
5056
|
-
{
|
|
5057
|
-
internalType: "uint256",
|
|
5058
|
-
name: "_slot1",
|
|
5059
|
-
type: "uint256",
|
|
5060
|
-
},
|
|
5061
|
-
{
|
|
5062
|
-
internalType: "uint256",
|
|
5063
|
-
name: "_slot2",
|
|
5064
|
-
type: "uint256",
|
|
5065
|
-
},
|
|
5066
|
-
],
|
|
5067
|
-
name: "initializeDepthBandsMapping",
|
|
5068
|
-
outputs: [],
|
|
5069
|
-
stateMutability: "nonpayable",
|
|
5070
|
-
type: "function",
|
|
5071
|
-
signature: "0xbb8f07af",
|
|
5072
|
-
},
|
|
5073
4833
|
{
|
|
5074
4834
|
inputs: [
|
|
5075
4835
|
{
|
|
@@ -5151,25 +4911,6 @@ const _abi = [
|
|
|
5151
4911
|
type: "function",
|
|
5152
4912
|
signature: "0xa7d518fc",
|
|
5153
4913
|
},
|
|
5154
|
-
{
|
|
5155
|
-
inputs: [
|
|
5156
|
-
{
|
|
5157
|
-
internalType: "uint256",
|
|
5158
|
-
name: "_slot1",
|
|
5159
|
-
type: "uint256",
|
|
5160
|
-
},
|
|
5161
|
-
{
|
|
5162
|
-
internalType: "uint256",
|
|
5163
|
-
name: "_slot2",
|
|
5164
|
-
type: "uint256",
|
|
5165
|
-
},
|
|
5166
|
-
],
|
|
5167
|
-
name: "setDepthBandsMapping",
|
|
5168
|
-
outputs: [],
|
|
5169
|
-
stateMutability: "nonpayable",
|
|
5170
|
-
type: "function",
|
|
5171
|
-
signature: "0x7e8462f7",
|
|
5172
|
-
},
|
|
5173
4914
|
{
|
|
5174
4915
|
inputs: [
|
|
5175
4916
|
{
|
|
@@ -5230,38 +4971,21 @@ const _abi = [
|
|
|
5230
4971
|
type: "uint256[]",
|
|
5231
4972
|
},
|
|
5232
4973
|
{
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
name: "aboveSlot2",
|
|
5242
|
-
type: "uint256",
|
|
5243
|
-
},
|
|
5244
|
-
{
|
|
5245
|
-
internalType: "uint256",
|
|
5246
|
-
name: "belowSlot1",
|
|
5247
|
-
type: "uint256",
|
|
5248
|
-
},
|
|
5249
|
-
{
|
|
5250
|
-
internalType: "uint256",
|
|
5251
|
-
name: "belowSlot2",
|
|
5252
|
-
type: "uint256",
|
|
5253
|
-
},
|
|
5254
|
-
],
|
|
5255
|
-
internalType: "struct IPriceImpact.PairDepthBands[]",
|
|
5256
|
-
name: "_depthBands",
|
|
5257
|
-
type: "tuple[]",
|
|
4974
|
+
internalType: "uint128[]",
|
|
4975
|
+
name: "_depthsAboveUsd",
|
|
4976
|
+
type: "uint128[]",
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
internalType: "uint128[]",
|
|
4980
|
+
name: "_depthsBelowUsd",
|
|
4981
|
+
type: "uint128[]",
|
|
5258
4982
|
},
|
|
5259
4983
|
],
|
|
5260
|
-
name: "
|
|
4984
|
+
name: "setPairDepths",
|
|
5261
4985
|
outputs: [],
|
|
5262
4986
|
stateMutability: "nonpayable",
|
|
5263
4987
|
type: "function",
|
|
5264
|
-
signature: "
|
|
4988
|
+
signature: "0x6474b399",
|
|
5265
4989
|
},
|
|
5266
4990
|
{
|
|
5267
4991
|
inputs: [
|
|
@@ -7254,36 +6978,6 @@ const _abi = [
|
|
|
7254
6978
|
type: "function",
|
|
7255
6979
|
signature: "0x78a70ec6",
|
|
7256
6980
|
},
|
|
7257
|
-
{
|
|
7258
|
-
inputs: [
|
|
7259
|
-
{
|
|
7260
|
-
internalType: "address",
|
|
7261
|
-
name: "_trader",
|
|
7262
|
-
type: "address",
|
|
7263
|
-
},
|
|
7264
|
-
{
|
|
7265
|
-
internalType: "uint32",
|
|
7266
|
-
name: "_index",
|
|
7267
|
-
type: "uint32",
|
|
7268
|
-
},
|
|
7269
|
-
{
|
|
7270
|
-
internalType: "enum ITradingStorage.PendingOrderType",
|
|
7271
|
-
name: "_orderType",
|
|
7272
|
-
type: "uint8",
|
|
7273
|
-
},
|
|
7274
|
-
],
|
|
7275
|
-
name: "getLookbackFromBlock",
|
|
7276
|
-
outputs: [
|
|
7277
|
-
{
|
|
7278
|
-
internalType: "uint32",
|
|
7279
|
-
name: "",
|
|
7280
|
-
type: "uint32",
|
|
7281
|
-
},
|
|
7282
|
-
],
|
|
7283
|
-
stateMutability: "view",
|
|
7284
|
-
type: "function",
|
|
7285
|
-
signature: "0x2b7d6e9d",
|
|
7286
|
-
},
|
|
7287
6981
|
{
|
|
7288
6982
|
inputs: [
|
|
7289
6983
|
{
|
|
@@ -8951,102 +8645,6 @@ const _abi = [
|
|
|
8951
8645
|
type: "function",
|
|
8952
8646
|
signature: "0xb78f4b36",
|
|
8953
8647
|
},
|
|
8954
|
-
{
|
|
8955
|
-
inputs: [
|
|
8956
|
-
{
|
|
8957
|
-
components: [
|
|
8958
|
-
{
|
|
8959
|
-
internalType: "address",
|
|
8960
|
-
name: "user",
|
|
8961
|
-
type: "address",
|
|
8962
|
-
},
|
|
8963
|
-
{
|
|
8964
|
-
internalType: "uint32",
|
|
8965
|
-
name: "index",
|
|
8966
|
-
type: "uint32",
|
|
8967
|
-
},
|
|
8968
|
-
{
|
|
8969
|
-
internalType: "uint16",
|
|
8970
|
-
name: "pairIndex",
|
|
8971
|
-
type: "uint16",
|
|
8972
|
-
},
|
|
8973
|
-
{
|
|
8974
|
-
internalType: "uint24",
|
|
8975
|
-
name: "leverage",
|
|
8976
|
-
type: "uint24",
|
|
8977
|
-
},
|
|
8978
|
-
{
|
|
8979
|
-
internalType: "bool",
|
|
8980
|
-
name: "long",
|
|
8981
|
-
type: "bool",
|
|
8982
|
-
},
|
|
8983
|
-
{
|
|
8984
|
-
internalType: "bool",
|
|
8985
|
-
name: "isOpen",
|
|
8986
|
-
type: "bool",
|
|
8987
|
-
},
|
|
8988
|
-
{
|
|
8989
|
-
internalType: "uint8",
|
|
8990
|
-
name: "collateralIndex",
|
|
8991
|
-
type: "uint8",
|
|
8992
|
-
},
|
|
8993
|
-
{
|
|
8994
|
-
internalType: "enum ITradingStorage.TradeType",
|
|
8995
|
-
name: "tradeType",
|
|
8996
|
-
type: "uint8",
|
|
8997
|
-
},
|
|
8998
|
-
{
|
|
8999
|
-
internalType: "uint120",
|
|
9000
|
-
name: "collateralAmount",
|
|
9001
|
-
type: "uint120",
|
|
9002
|
-
},
|
|
9003
|
-
{
|
|
9004
|
-
internalType: "uint64",
|
|
9005
|
-
name: "openPrice",
|
|
9006
|
-
type: "uint64",
|
|
9007
|
-
},
|
|
9008
|
-
{
|
|
9009
|
-
internalType: "uint64",
|
|
9010
|
-
name: "tp",
|
|
9011
|
-
type: "uint64",
|
|
9012
|
-
},
|
|
9013
|
-
{
|
|
9014
|
-
internalType: "uint64",
|
|
9015
|
-
name: "sl",
|
|
9016
|
-
type: "uint64",
|
|
9017
|
-
},
|
|
9018
|
-
{
|
|
9019
|
-
internalType: "bool",
|
|
9020
|
-
name: "isCounterTrade",
|
|
9021
|
-
type: "bool",
|
|
9022
|
-
},
|
|
9023
|
-
{
|
|
9024
|
-
internalType: "uint160",
|
|
9025
|
-
name: "positionSizeToken",
|
|
9026
|
-
type: "uint160",
|
|
9027
|
-
},
|
|
9028
|
-
{
|
|
9029
|
-
internalType: "uint24",
|
|
9030
|
-
name: "__placeholder",
|
|
9031
|
-
type: "uint24",
|
|
9032
|
-
},
|
|
9033
|
-
],
|
|
9034
|
-
internalType: "struct ITradingStorage.Trade",
|
|
9035
|
-
name: "_trade",
|
|
9036
|
-
type: "tuple",
|
|
9037
|
-
},
|
|
9038
|
-
{
|
|
9039
|
-
internalType: "enum ITradingStorage.PendingOrderType",
|
|
9040
|
-
name: "_orderType",
|
|
9041
|
-
type: "uint8",
|
|
9042
|
-
},
|
|
9043
|
-
],
|
|
9044
|
-
name: "validateOpenTradeOrder",
|
|
9045
|
-
outputs: [],
|
|
9046
|
-
stateMutability: "pure",
|
|
9047
|
-
type: "function",
|
|
9048
|
-
signature: "0x63f58b1a",
|
|
9049
|
-
},
|
|
9050
8648
|
{
|
|
9051
8649
|
inputs: [],
|
|
9052
8650
|
name: "NoPendingTriggerRewards",
|
|
@@ -9327,11 +8925,6 @@ const _abi = [
|
|
|
9327
8925
|
name: "WaitTimeout",
|
|
9328
8926
|
type: "error",
|
|
9329
8927
|
},
|
|
9330
|
-
{
|
|
9331
|
-
inputs: [],
|
|
9332
|
-
name: "WrongFromBlock",
|
|
9333
|
-
type: "error",
|
|
9334
|
-
},
|
|
9335
8928
|
{
|
|
9336
8929
|
inputs: [],
|
|
9337
8930
|
name: "WrongLeverage",
|
|
@@ -10971,89 +10564,6 @@ const _abi = [
|
|
|
10971
10564
|
type: "function",
|
|
10972
10565
|
signature: "0xeb9359aa",
|
|
10973
10566
|
},
|
|
10974
|
-
{
|
|
10975
|
-
inputs: [
|
|
10976
|
-
{
|
|
10977
|
-
internalType: "uint256",
|
|
10978
|
-
name: "_packed",
|
|
10979
|
-
type: "uint256",
|
|
10980
|
-
},
|
|
10981
|
-
{
|
|
10982
|
-
components: [
|
|
10983
|
-
{
|
|
10984
|
-
internalType: "uint8",
|
|
10985
|
-
name: "signerId",
|
|
10986
|
-
type: "uint8",
|
|
10987
|
-
},
|
|
10988
|
-
{
|
|
10989
|
-
internalType: "uint32",
|
|
10990
|
-
name: "expiryTs",
|
|
10991
|
-
type: "uint32",
|
|
10992
|
-
},
|
|
10993
|
-
{
|
|
10994
|
-
internalType: "bool",
|
|
10995
|
-
name: "isLookback",
|
|
10996
|
-
type: "bool",
|
|
10997
|
-
},
|
|
10998
|
-
{
|
|
10999
|
-
internalType: "uint32",
|
|
11000
|
-
name: "fromBlock",
|
|
11001
|
-
type: "uint32",
|
|
11002
|
-
},
|
|
11003
|
-
{
|
|
11004
|
-
internalType: "bytes",
|
|
11005
|
-
name: "signature",
|
|
11006
|
-
type: "bytes",
|
|
11007
|
-
},
|
|
11008
|
-
{
|
|
11009
|
-
internalType: "uint16[]",
|
|
11010
|
-
name: "pairIndices",
|
|
11011
|
-
type: "uint16[]",
|
|
11012
|
-
},
|
|
11013
|
-
{
|
|
11014
|
-
components: [
|
|
11015
|
-
{
|
|
11016
|
-
internalType: "uint56",
|
|
11017
|
-
name: "open",
|
|
11018
|
-
type: "uint56",
|
|
11019
|
-
},
|
|
11020
|
-
{
|
|
11021
|
-
internalType: "uint56",
|
|
11022
|
-
name: "high",
|
|
11023
|
-
type: "uint56",
|
|
11024
|
-
},
|
|
11025
|
-
{
|
|
11026
|
-
internalType: "uint56",
|
|
11027
|
-
name: "low",
|
|
11028
|
-
type: "uint56",
|
|
11029
|
-
},
|
|
11030
|
-
{
|
|
11031
|
-
internalType: "uint56",
|
|
11032
|
-
name: "current",
|
|
11033
|
-
type: "uint56",
|
|
11034
|
-
},
|
|
11035
|
-
{
|
|
11036
|
-
internalType: "uint32",
|
|
11037
|
-
name: "ts",
|
|
11038
|
-
type: "uint32",
|
|
11039
|
-
},
|
|
11040
|
-
],
|
|
11041
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
11042
|
-
name: "prices",
|
|
11043
|
-
type: "tuple[]",
|
|
11044
|
-
},
|
|
11045
|
-
],
|
|
11046
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
11047
|
-
name: "_signedPairPrices",
|
|
11048
|
-
type: "tuple[]",
|
|
11049
|
-
},
|
|
11050
|
-
],
|
|
11051
|
-
name: "triggerOrderWithSignatures",
|
|
11052
|
-
outputs: [],
|
|
11053
|
-
stateMutability: "nonpayable",
|
|
11054
|
-
type: "function",
|
|
11055
|
-
signature: "0xc7e2b2a9",
|
|
11056
|
-
},
|
|
11057
10567
|
{
|
|
11058
10568
|
inputs: [
|
|
11059
10569
|
{
|
|
@@ -12531,104 +12041,127 @@ const _abi = [
|
|
|
12531
12041
|
name: "_a",
|
|
12532
12042
|
type: "tuple",
|
|
12533
12043
|
},
|
|
12044
|
+
],
|
|
12045
|
+
name: "executeTriggerOpenOrderCallback",
|
|
12046
|
+
outputs: [],
|
|
12047
|
+
stateMutability: "nonpayable",
|
|
12048
|
+
type: "function",
|
|
12049
|
+
signature: "0x5578478f",
|
|
12050
|
+
},
|
|
12051
|
+
{
|
|
12052
|
+
inputs: [
|
|
12053
|
+
{
|
|
12054
|
+
internalType: "uint8",
|
|
12055
|
+
name: "_collateralIndex",
|
|
12056
|
+
type: "uint8",
|
|
12057
|
+
},
|
|
12058
|
+
],
|
|
12059
|
+
name: "getPendingGovFeesCollateral",
|
|
12060
|
+
outputs: [
|
|
12061
|
+
{
|
|
12062
|
+
internalType: "uint256",
|
|
12063
|
+
name: "",
|
|
12064
|
+
type: "uint256",
|
|
12065
|
+
},
|
|
12066
|
+
],
|
|
12067
|
+
stateMutability: "view",
|
|
12068
|
+
type: "function",
|
|
12069
|
+
signature: "0x2c6fe6d1",
|
|
12070
|
+
},
|
|
12071
|
+
{
|
|
12072
|
+
inputs: [],
|
|
12073
|
+
name: "getVaultClosingFeeP",
|
|
12074
|
+
outputs: [
|
|
12075
|
+
{
|
|
12076
|
+
internalType: "uint8",
|
|
12077
|
+
name: "",
|
|
12078
|
+
type: "uint8",
|
|
12079
|
+
},
|
|
12080
|
+
],
|
|
12081
|
+
stateMutability: "view",
|
|
12082
|
+
type: "function",
|
|
12083
|
+
signature: "0xa5b26e46",
|
|
12084
|
+
},
|
|
12085
|
+
{
|
|
12086
|
+
inputs: [
|
|
12534
12087
|
{
|
|
12535
12088
|
components: [
|
|
12536
12089
|
{
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12090
|
+
components: [
|
|
12091
|
+
{
|
|
12092
|
+
internalType: "address",
|
|
12093
|
+
name: "user",
|
|
12094
|
+
type: "address",
|
|
12095
|
+
},
|
|
12096
|
+
{
|
|
12097
|
+
internalType: "uint32",
|
|
12098
|
+
name: "index",
|
|
12099
|
+
type: "uint32",
|
|
12100
|
+
},
|
|
12101
|
+
],
|
|
12102
|
+
internalType: "struct ITradingStorage.Id",
|
|
12103
|
+
name: "orderId",
|
|
12104
|
+
type: "tuple",
|
|
12540
12105
|
},
|
|
12541
12106
|
{
|
|
12542
|
-
internalType: "
|
|
12543
|
-
name: "
|
|
12544
|
-
type: "
|
|
12545
|
-
},
|
|
12546
|
-
{
|
|
12547
|
-
internalType: "uint16",
|
|
12548
|
-
name: "pairIndex",
|
|
12549
|
-
type: "uint16",
|
|
12550
|
-
},
|
|
12551
|
-
{
|
|
12552
|
-
internalType: "uint24",
|
|
12553
|
-
name: "leverage",
|
|
12554
|
-
type: "uint24",
|
|
12555
|
-
},
|
|
12556
|
-
{
|
|
12557
|
-
internalType: "bool",
|
|
12558
|
-
name: "long",
|
|
12559
|
-
type: "bool",
|
|
12560
|
-
},
|
|
12561
|
-
{
|
|
12562
|
-
internalType: "bool",
|
|
12563
|
-
name: "isOpen",
|
|
12564
|
-
type: "bool",
|
|
12565
|
-
},
|
|
12566
|
-
{
|
|
12567
|
-
internalType: "uint8",
|
|
12568
|
-
name: "collateralIndex",
|
|
12569
|
-
type: "uint8",
|
|
12570
|
-
},
|
|
12571
|
-
{
|
|
12572
|
-
internalType: "enum ITradingStorage.TradeType",
|
|
12573
|
-
name: "tradeType",
|
|
12574
|
-
type: "uint8",
|
|
12575
|
-
},
|
|
12576
|
-
{
|
|
12577
|
-
internalType: "uint120",
|
|
12578
|
-
name: "collateralAmount",
|
|
12579
|
-
type: "uint120",
|
|
12107
|
+
internalType: "uint64",
|
|
12108
|
+
name: "open",
|
|
12109
|
+
type: "uint64",
|
|
12580
12110
|
},
|
|
12581
12111
|
{
|
|
12582
12112
|
internalType: "uint64",
|
|
12583
|
-
name: "
|
|
12113
|
+
name: "high",
|
|
12584
12114
|
type: "uint64",
|
|
12585
12115
|
},
|
|
12586
12116
|
{
|
|
12587
12117
|
internalType: "uint64",
|
|
12588
|
-
name: "
|
|
12118
|
+
name: "low",
|
|
12589
12119
|
type: "uint64",
|
|
12590
12120
|
},
|
|
12591
12121
|
{
|
|
12592
12122
|
internalType: "uint64",
|
|
12593
|
-
name: "
|
|
12123
|
+
name: "current",
|
|
12594
12124
|
type: "uint64",
|
|
12595
12125
|
},
|
|
12596
|
-
{
|
|
12597
|
-
internalType: "bool",
|
|
12598
|
-
name: "isCounterTrade",
|
|
12599
|
-
type: "bool",
|
|
12600
|
-
},
|
|
12601
|
-
{
|
|
12602
|
-
internalType: "uint160",
|
|
12603
|
-
name: "positionSizeToken",
|
|
12604
|
-
type: "uint160",
|
|
12605
|
-
},
|
|
12606
|
-
{
|
|
12607
|
-
internalType: "uint24",
|
|
12608
|
-
name: "__placeholder",
|
|
12609
|
-
type: "uint24",
|
|
12610
|
-
},
|
|
12611
12126
|
],
|
|
12612
|
-
internalType: "struct
|
|
12613
|
-
name: "
|
|
12127
|
+
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
12128
|
+
name: "_a",
|
|
12614
12129
|
type: "tuple",
|
|
12615
12130
|
},
|
|
12131
|
+
],
|
|
12132
|
+
name: "increasePositionSizeMarketCallback",
|
|
12133
|
+
outputs: [],
|
|
12134
|
+
stateMutability: "nonpayable",
|
|
12135
|
+
type: "function",
|
|
12136
|
+
signature: "0x488ce21e",
|
|
12137
|
+
},
|
|
12138
|
+
{
|
|
12139
|
+
inputs: [
|
|
12616
12140
|
{
|
|
12617
|
-
internalType: "
|
|
12618
|
-
name: "
|
|
12141
|
+
internalType: "uint8",
|
|
12142
|
+
name: "_vaultClosingFeeP",
|
|
12619
12143
|
type: "uint8",
|
|
12620
12144
|
},
|
|
12145
|
+
],
|
|
12146
|
+
name: "initializeCallbacks",
|
|
12147
|
+
outputs: [],
|
|
12148
|
+
stateMutability: "nonpayable",
|
|
12149
|
+
type: "function",
|
|
12150
|
+
signature: "0xec98ec83",
|
|
12151
|
+
},
|
|
12152
|
+
{
|
|
12153
|
+
inputs: [
|
|
12621
12154
|
{
|
|
12622
12155
|
internalType: "address",
|
|
12623
|
-
name: "
|
|
12156
|
+
name: "_treasury",
|
|
12624
12157
|
type: "address",
|
|
12625
12158
|
},
|
|
12626
12159
|
],
|
|
12627
|
-
name: "
|
|
12160
|
+
name: "initializeTreasuryAddress",
|
|
12628
12161
|
outputs: [],
|
|
12629
12162
|
stateMutability: "nonpayable",
|
|
12630
12163
|
type: "function",
|
|
12631
|
-
signature: "
|
|
12164
|
+
signature: "0x63a21e54",
|
|
12632
12165
|
},
|
|
12633
12166
|
{
|
|
12634
12167
|
inputs: [
|
|
@@ -12677,11 +12210,11 @@ const _abi = [
|
|
|
12677
12210
|
type: "tuple",
|
|
12678
12211
|
},
|
|
12679
12212
|
],
|
|
12680
|
-
name: "
|
|
12213
|
+
name: "manualHoldingFeesRealizationCallback",
|
|
12681
12214
|
outputs: [],
|
|
12682
12215
|
stateMutability: "nonpayable",
|
|
12683
12216
|
type: "function",
|
|
12684
|
-
signature: "
|
|
12217
|
+
signature: "0x46be8fd9",
|
|
12685
12218
|
},
|
|
12686
12219
|
{
|
|
12687
12220
|
inputs: [
|
|
@@ -12729,138 +12262,12 @@ const _abi = [
|
|
|
12729
12262
|
name: "_a",
|
|
12730
12263
|
type: "tuple",
|
|
12731
12264
|
},
|
|
12732
|
-
{
|
|
12733
|
-
components: [
|
|
12734
|
-
{
|
|
12735
|
-
internalType: "address",
|
|
12736
|
-
name: "user",
|
|
12737
|
-
type: "address",
|
|
12738
|
-
},
|
|
12739
|
-
{
|
|
12740
|
-
internalType: "uint32",
|
|
12741
|
-
name: "index",
|
|
12742
|
-
type: "uint32",
|
|
12743
|
-
},
|
|
12744
|
-
{
|
|
12745
|
-
internalType: "uint16",
|
|
12746
|
-
name: "pairIndex",
|
|
12747
|
-
type: "uint16",
|
|
12748
|
-
},
|
|
12749
|
-
{
|
|
12750
|
-
internalType: "uint24",
|
|
12751
|
-
name: "leverage",
|
|
12752
|
-
type: "uint24",
|
|
12753
|
-
},
|
|
12754
|
-
{
|
|
12755
|
-
internalType: "bool",
|
|
12756
|
-
name: "long",
|
|
12757
|
-
type: "bool",
|
|
12758
|
-
},
|
|
12759
|
-
{
|
|
12760
|
-
internalType: "bool",
|
|
12761
|
-
name: "isOpen",
|
|
12762
|
-
type: "bool",
|
|
12763
|
-
},
|
|
12764
|
-
{
|
|
12765
|
-
internalType: "uint8",
|
|
12766
|
-
name: "collateralIndex",
|
|
12767
|
-
type: "uint8",
|
|
12768
|
-
},
|
|
12769
|
-
{
|
|
12770
|
-
internalType: "enum ITradingStorage.TradeType",
|
|
12771
|
-
name: "tradeType",
|
|
12772
|
-
type: "uint8",
|
|
12773
|
-
},
|
|
12774
|
-
{
|
|
12775
|
-
internalType: "uint120",
|
|
12776
|
-
name: "collateralAmount",
|
|
12777
|
-
type: "uint120",
|
|
12778
|
-
},
|
|
12779
|
-
{
|
|
12780
|
-
internalType: "uint64",
|
|
12781
|
-
name: "openPrice",
|
|
12782
|
-
type: "uint64",
|
|
12783
|
-
},
|
|
12784
|
-
{
|
|
12785
|
-
internalType: "uint64",
|
|
12786
|
-
name: "tp",
|
|
12787
|
-
type: "uint64",
|
|
12788
|
-
},
|
|
12789
|
-
{
|
|
12790
|
-
internalType: "uint64",
|
|
12791
|
-
name: "sl",
|
|
12792
|
-
type: "uint64",
|
|
12793
|
-
},
|
|
12794
|
-
{
|
|
12795
|
-
internalType: "bool",
|
|
12796
|
-
name: "isCounterTrade",
|
|
12797
|
-
type: "bool",
|
|
12798
|
-
},
|
|
12799
|
-
{
|
|
12800
|
-
internalType: "uint160",
|
|
12801
|
-
name: "positionSizeToken",
|
|
12802
|
-
type: "uint160",
|
|
12803
|
-
},
|
|
12804
|
-
{
|
|
12805
|
-
internalType: "uint24",
|
|
12806
|
-
name: "__placeholder",
|
|
12807
|
-
type: "uint24",
|
|
12808
|
-
},
|
|
12809
|
-
],
|
|
12810
|
-
internalType: "struct ITradingStorage.Trade",
|
|
12811
|
-
name: "_trade",
|
|
12812
|
-
type: "tuple",
|
|
12813
|
-
},
|
|
12814
|
-
{
|
|
12815
|
-
internalType: "enum ITradingStorage.PendingOrderType",
|
|
12816
|
-
name: "_orderType",
|
|
12817
|
-
type: "uint8",
|
|
12818
|
-
},
|
|
12819
|
-
{
|
|
12820
|
-
internalType: "address",
|
|
12821
|
-
name: "_initiator",
|
|
12822
|
-
type: "address",
|
|
12823
|
-
},
|
|
12824
12265
|
],
|
|
12825
|
-
name: "
|
|
12266
|
+
name: "manualNegativePnlRealizationCallback",
|
|
12826
12267
|
outputs: [],
|
|
12827
12268
|
stateMutability: "nonpayable",
|
|
12828
12269
|
type: "function",
|
|
12829
|
-
signature: "
|
|
12830
|
-
},
|
|
12831
|
-
{
|
|
12832
|
-
inputs: [
|
|
12833
|
-
{
|
|
12834
|
-
internalType: "uint8",
|
|
12835
|
-
name: "_collateralIndex",
|
|
12836
|
-
type: "uint8",
|
|
12837
|
-
},
|
|
12838
|
-
],
|
|
12839
|
-
name: "getPendingGovFeesCollateral",
|
|
12840
|
-
outputs: [
|
|
12841
|
-
{
|
|
12842
|
-
internalType: "uint256",
|
|
12843
|
-
name: "",
|
|
12844
|
-
type: "uint256",
|
|
12845
|
-
},
|
|
12846
|
-
],
|
|
12847
|
-
stateMutability: "view",
|
|
12848
|
-
type: "function",
|
|
12849
|
-
signature: "0x2c6fe6d1",
|
|
12850
|
-
},
|
|
12851
|
-
{
|
|
12852
|
-
inputs: [],
|
|
12853
|
-
name: "getVaultClosingFeeP",
|
|
12854
|
-
outputs: [
|
|
12855
|
-
{
|
|
12856
|
-
internalType: "uint8",
|
|
12857
|
-
name: "",
|
|
12858
|
-
type: "uint8",
|
|
12859
|
-
},
|
|
12860
|
-
],
|
|
12861
|
-
stateMutability: "view",
|
|
12862
|
-
type: "function",
|
|
12863
|
-
signature: "0xa5b26e46",
|
|
12270
|
+
signature: "0x70c4e0c1",
|
|
12864
12271
|
},
|
|
12865
12272
|
{
|
|
12866
12273
|
inputs: [
|
|
@@ -12909,39 +12316,11 @@ const _abi = [
|
|
|
12909
12316
|
type: "tuple",
|
|
12910
12317
|
},
|
|
12911
12318
|
],
|
|
12912
|
-
name: "
|
|
12913
|
-
outputs: [],
|
|
12914
|
-
stateMutability: "nonpayable",
|
|
12915
|
-
type: "function",
|
|
12916
|
-
signature: "0x488ce21e",
|
|
12917
|
-
},
|
|
12918
|
-
{
|
|
12919
|
-
inputs: [
|
|
12920
|
-
{
|
|
12921
|
-
internalType: "uint8",
|
|
12922
|
-
name: "_vaultClosingFeeP",
|
|
12923
|
-
type: "uint8",
|
|
12924
|
-
},
|
|
12925
|
-
],
|
|
12926
|
-
name: "initializeCallbacks",
|
|
12927
|
-
outputs: [],
|
|
12928
|
-
stateMutability: "nonpayable",
|
|
12929
|
-
type: "function",
|
|
12930
|
-
signature: "0xec98ec83",
|
|
12931
|
-
},
|
|
12932
|
-
{
|
|
12933
|
-
inputs: [
|
|
12934
|
-
{
|
|
12935
|
-
internalType: "address",
|
|
12936
|
-
name: "_treasury",
|
|
12937
|
-
type: "address",
|
|
12938
|
-
},
|
|
12939
|
-
],
|
|
12940
|
-
name: "initializeTreasuryAddress",
|
|
12319
|
+
name: "openTradeMarketCallback",
|
|
12941
12320
|
outputs: [],
|
|
12942
12321
|
stateMutability: "nonpayable",
|
|
12943
12322
|
type: "function",
|
|
12944
|
-
signature: "
|
|
12323
|
+
signature: "0x0a1cbdba",
|
|
12945
12324
|
},
|
|
12946
12325
|
{
|
|
12947
12326
|
inputs: [
|
|
@@ -12990,11 +12369,11 @@ const _abi = [
|
|
|
12990
12369
|
type: "tuple",
|
|
12991
12370
|
},
|
|
12992
12371
|
],
|
|
12993
|
-
name: "
|
|
12372
|
+
name: "pnlWithdrawalCallback",
|
|
12994
12373
|
outputs: [],
|
|
12995
12374
|
stateMutability: "nonpayable",
|
|
12996
12375
|
type: "function",
|
|
12997
|
-
signature: "
|
|
12376
|
+
signature: "0x56b9584b",
|
|
12998
12377
|
},
|
|
12999
12378
|
{
|
|
13000
12379
|
inputs: [
|
|
@@ -13043,170 +12422,11 @@ const _abi = [
|
|
|
13043
12422
|
type: "tuple",
|
|
13044
12423
|
},
|
|
13045
12424
|
],
|
|
13046
|
-
name: "
|
|
12425
|
+
name: "updateLeverageCallback",
|
|
13047
12426
|
outputs: [],
|
|
13048
12427
|
stateMutability: "nonpayable",
|
|
13049
12428
|
type: "function",
|
|
13050
|
-
signature: "
|
|
13051
|
-
},
|
|
13052
|
-
{
|
|
13053
|
-
inputs: [
|
|
13054
|
-
{
|
|
13055
|
-
components: [
|
|
13056
|
-
{
|
|
13057
|
-
components: [
|
|
13058
|
-
{
|
|
13059
|
-
internalType: "address",
|
|
13060
|
-
name: "user",
|
|
13061
|
-
type: "address",
|
|
13062
|
-
},
|
|
13063
|
-
{
|
|
13064
|
-
internalType: "uint32",
|
|
13065
|
-
name: "index",
|
|
13066
|
-
type: "uint32",
|
|
13067
|
-
},
|
|
13068
|
-
],
|
|
13069
|
-
internalType: "struct ITradingStorage.Id",
|
|
13070
|
-
name: "orderId",
|
|
13071
|
-
type: "tuple",
|
|
13072
|
-
},
|
|
13073
|
-
{
|
|
13074
|
-
internalType: "uint64",
|
|
13075
|
-
name: "open",
|
|
13076
|
-
type: "uint64",
|
|
13077
|
-
},
|
|
13078
|
-
{
|
|
13079
|
-
internalType: "uint64",
|
|
13080
|
-
name: "high",
|
|
13081
|
-
type: "uint64",
|
|
13082
|
-
},
|
|
13083
|
-
{
|
|
13084
|
-
internalType: "uint64",
|
|
13085
|
-
name: "low",
|
|
13086
|
-
type: "uint64",
|
|
13087
|
-
},
|
|
13088
|
-
{
|
|
13089
|
-
internalType: "uint64",
|
|
13090
|
-
name: "current",
|
|
13091
|
-
type: "uint64",
|
|
13092
|
-
},
|
|
13093
|
-
],
|
|
13094
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
13095
|
-
name: "_a",
|
|
13096
|
-
type: "tuple",
|
|
13097
|
-
},
|
|
13098
|
-
],
|
|
13099
|
-
name: "openTradeMarketCallback",
|
|
13100
|
-
outputs: [],
|
|
13101
|
-
stateMutability: "nonpayable",
|
|
13102
|
-
type: "function",
|
|
13103
|
-
signature: "0x0a1cbdba",
|
|
13104
|
-
},
|
|
13105
|
-
{
|
|
13106
|
-
inputs: [
|
|
13107
|
-
{
|
|
13108
|
-
components: [
|
|
13109
|
-
{
|
|
13110
|
-
components: [
|
|
13111
|
-
{
|
|
13112
|
-
internalType: "address",
|
|
13113
|
-
name: "user",
|
|
13114
|
-
type: "address",
|
|
13115
|
-
},
|
|
13116
|
-
{
|
|
13117
|
-
internalType: "uint32",
|
|
13118
|
-
name: "index",
|
|
13119
|
-
type: "uint32",
|
|
13120
|
-
},
|
|
13121
|
-
],
|
|
13122
|
-
internalType: "struct ITradingStorage.Id",
|
|
13123
|
-
name: "orderId",
|
|
13124
|
-
type: "tuple",
|
|
13125
|
-
},
|
|
13126
|
-
{
|
|
13127
|
-
internalType: "uint64",
|
|
13128
|
-
name: "open",
|
|
13129
|
-
type: "uint64",
|
|
13130
|
-
},
|
|
13131
|
-
{
|
|
13132
|
-
internalType: "uint64",
|
|
13133
|
-
name: "high",
|
|
13134
|
-
type: "uint64",
|
|
13135
|
-
},
|
|
13136
|
-
{
|
|
13137
|
-
internalType: "uint64",
|
|
13138
|
-
name: "low",
|
|
13139
|
-
type: "uint64",
|
|
13140
|
-
},
|
|
13141
|
-
{
|
|
13142
|
-
internalType: "uint64",
|
|
13143
|
-
name: "current",
|
|
13144
|
-
type: "uint64",
|
|
13145
|
-
},
|
|
13146
|
-
],
|
|
13147
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
13148
|
-
name: "_a",
|
|
13149
|
-
type: "tuple",
|
|
13150
|
-
},
|
|
13151
|
-
],
|
|
13152
|
-
name: "pnlWithdrawalCallback",
|
|
13153
|
-
outputs: [],
|
|
13154
|
-
stateMutability: "nonpayable",
|
|
13155
|
-
type: "function",
|
|
13156
|
-
signature: "0x56b9584b",
|
|
13157
|
-
},
|
|
13158
|
-
{
|
|
13159
|
-
inputs: [
|
|
13160
|
-
{
|
|
13161
|
-
components: [
|
|
13162
|
-
{
|
|
13163
|
-
components: [
|
|
13164
|
-
{
|
|
13165
|
-
internalType: "address",
|
|
13166
|
-
name: "user",
|
|
13167
|
-
type: "address",
|
|
13168
|
-
},
|
|
13169
|
-
{
|
|
13170
|
-
internalType: "uint32",
|
|
13171
|
-
name: "index",
|
|
13172
|
-
type: "uint32",
|
|
13173
|
-
},
|
|
13174
|
-
],
|
|
13175
|
-
internalType: "struct ITradingStorage.Id",
|
|
13176
|
-
name: "orderId",
|
|
13177
|
-
type: "tuple",
|
|
13178
|
-
},
|
|
13179
|
-
{
|
|
13180
|
-
internalType: "uint64",
|
|
13181
|
-
name: "open",
|
|
13182
|
-
type: "uint64",
|
|
13183
|
-
},
|
|
13184
|
-
{
|
|
13185
|
-
internalType: "uint64",
|
|
13186
|
-
name: "high",
|
|
13187
|
-
type: "uint64",
|
|
13188
|
-
},
|
|
13189
|
-
{
|
|
13190
|
-
internalType: "uint64",
|
|
13191
|
-
name: "low",
|
|
13192
|
-
type: "uint64",
|
|
13193
|
-
},
|
|
13194
|
-
{
|
|
13195
|
-
internalType: "uint64",
|
|
13196
|
-
name: "current",
|
|
13197
|
-
type: "uint64",
|
|
13198
|
-
},
|
|
13199
|
-
],
|
|
13200
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
13201
|
-
name: "_a",
|
|
13202
|
-
type: "tuple",
|
|
13203
|
-
},
|
|
13204
|
-
],
|
|
13205
|
-
name: "updateLeverageCallback",
|
|
13206
|
-
outputs: [],
|
|
13207
|
-
stateMutability: "nonpayable",
|
|
13208
|
-
type: "function",
|
|
13209
|
-
signature: "0xdf43c382",
|
|
12429
|
+
signature: "0xdf43c382",
|
|
13210
12430
|
},
|
|
13211
12431
|
{
|
|
13212
12432
|
inputs: [
|
|
@@ -15356,6 +14576,45 @@ const _abi = [
|
|
|
15356
14576
|
type: "function",
|
|
15357
14577
|
signature: "0x1a733ea0",
|
|
15358
14578
|
},
|
|
14579
|
+
{
|
|
14580
|
+
inputs: [
|
|
14581
|
+
{
|
|
14582
|
+
internalType: "uint8",
|
|
14583
|
+
name: "_collateralIndex",
|
|
14584
|
+
type: "uint8",
|
|
14585
|
+
},
|
|
14586
|
+
{
|
|
14587
|
+
internalType: "address",
|
|
14588
|
+
name: "_trader",
|
|
14589
|
+
type: "address",
|
|
14590
|
+
},
|
|
14591
|
+
{
|
|
14592
|
+
internalType: "uint16",
|
|
14593
|
+
name: "_pairIndex",
|
|
14594
|
+
type: "uint16",
|
|
14595
|
+
},
|
|
14596
|
+
{
|
|
14597
|
+
internalType: "uint32",
|
|
14598
|
+
name: "_index",
|
|
14599
|
+
type: "uint32",
|
|
14600
|
+
},
|
|
14601
|
+
{
|
|
14602
|
+
internalType: "bool",
|
|
14603
|
+
name: "_long",
|
|
14604
|
+
type: "bool",
|
|
14605
|
+
},
|
|
14606
|
+
{
|
|
14607
|
+
internalType: "uint256",
|
|
14608
|
+
name: "_currentPairPrice",
|
|
14609
|
+
type: "uint256",
|
|
14610
|
+
},
|
|
14611
|
+
],
|
|
14612
|
+
name: "resetTradeBorrowingFees",
|
|
14613
|
+
outputs: [],
|
|
14614
|
+
stateMutability: "nonpayable",
|
|
14615
|
+
type: "function",
|
|
14616
|
+
signature: "0x2e47dc6a",
|
|
14617
|
+
},
|
|
15359
14618
|
{
|
|
15360
14619
|
inputs: [
|
|
15361
14620
|
{
|
|
@@ -15539,81 +14798,12 @@ const _abi = [
|
|
|
15539
14798
|
name: "_value",
|
|
15540
14799
|
type: "tuple",
|
|
15541
14800
|
},
|
|
15542
|
-
{
|
|
15543
|
-
components: [
|
|
15544
|
-
{
|
|
15545
|
-
internalType: "uint8",
|
|
15546
|
-
name: "signerId",
|
|
15547
|
-
type: "uint8",
|
|
15548
|
-
},
|
|
15549
|
-
{
|
|
15550
|
-
internalType: "uint32",
|
|
15551
|
-
name: "expiryTs",
|
|
15552
|
-
type: "uint32",
|
|
15553
|
-
},
|
|
15554
|
-
{
|
|
15555
|
-
internalType: "bool",
|
|
15556
|
-
name: "isLookback",
|
|
15557
|
-
type: "bool",
|
|
15558
|
-
},
|
|
15559
|
-
{
|
|
15560
|
-
internalType: "uint32",
|
|
15561
|
-
name: "fromBlock",
|
|
15562
|
-
type: "uint32",
|
|
15563
|
-
},
|
|
15564
|
-
{
|
|
15565
|
-
internalType: "bytes",
|
|
15566
|
-
name: "signature",
|
|
15567
|
-
type: "bytes",
|
|
15568
|
-
},
|
|
15569
|
-
{
|
|
15570
|
-
internalType: "uint16[]",
|
|
15571
|
-
name: "pairIndices",
|
|
15572
|
-
type: "uint16[]",
|
|
15573
|
-
},
|
|
15574
|
-
{
|
|
15575
|
-
components: [
|
|
15576
|
-
{
|
|
15577
|
-
internalType: "uint56",
|
|
15578
|
-
name: "open",
|
|
15579
|
-
type: "uint56",
|
|
15580
|
-
},
|
|
15581
|
-
{
|
|
15582
|
-
internalType: "uint56",
|
|
15583
|
-
name: "high",
|
|
15584
|
-
type: "uint56",
|
|
15585
|
-
},
|
|
15586
|
-
{
|
|
15587
|
-
internalType: "uint56",
|
|
15588
|
-
name: "low",
|
|
15589
|
-
type: "uint56",
|
|
15590
|
-
},
|
|
15591
|
-
{
|
|
15592
|
-
internalType: "uint56",
|
|
15593
|
-
name: "current",
|
|
15594
|
-
type: "uint56",
|
|
15595
|
-
},
|
|
15596
|
-
{
|
|
15597
|
-
internalType: "uint32",
|
|
15598
|
-
name: "ts",
|
|
15599
|
-
type: "uint32",
|
|
15600
|
-
},
|
|
15601
|
-
],
|
|
15602
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
15603
|
-
name: "prices",
|
|
15604
|
-
type: "tuple[]",
|
|
15605
|
-
},
|
|
15606
|
-
],
|
|
15607
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
15608
|
-
name: "_signedPairPrices",
|
|
15609
|
-
type: "tuple[]",
|
|
15610
|
-
},
|
|
15611
14801
|
],
|
|
15612
14802
|
name: "setBorrowingPairParams",
|
|
15613
14803
|
outputs: [],
|
|
15614
14804
|
stateMutability: "nonpayable",
|
|
15615
14805
|
type: "function",
|
|
15616
|
-
signature: "
|
|
14806
|
+
signature: "0x33b516cf",
|
|
15617
14807
|
},
|
|
15618
14808
|
{
|
|
15619
14809
|
inputs: [
|
|
@@ -15654,84 +14844,15 @@ const _abi = [
|
|
|
15654
14844
|
name: "_values",
|
|
15655
14845
|
type: "tuple[]",
|
|
15656
14846
|
},
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
name: "expiryTs",
|
|
15667
|
-
type: "uint32",
|
|
15668
|
-
},
|
|
15669
|
-
{
|
|
15670
|
-
internalType: "bool",
|
|
15671
|
-
name: "isLookback",
|
|
15672
|
-
type: "bool",
|
|
15673
|
-
},
|
|
15674
|
-
{
|
|
15675
|
-
internalType: "uint32",
|
|
15676
|
-
name: "fromBlock",
|
|
15677
|
-
type: "uint32",
|
|
15678
|
-
},
|
|
15679
|
-
{
|
|
15680
|
-
internalType: "bytes",
|
|
15681
|
-
name: "signature",
|
|
15682
|
-
type: "bytes",
|
|
15683
|
-
},
|
|
15684
|
-
{
|
|
15685
|
-
internalType: "uint16[]",
|
|
15686
|
-
name: "pairIndices",
|
|
15687
|
-
type: "uint16[]",
|
|
15688
|
-
},
|
|
15689
|
-
{
|
|
15690
|
-
components: [
|
|
15691
|
-
{
|
|
15692
|
-
internalType: "uint56",
|
|
15693
|
-
name: "open",
|
|
15694
|
-
type: "uint56",
|
|
15695
|
-
},
|
|
15696
|
-
{
|
|
15697
|
-
internalType: "uint56",
|
|
15698
|
-
name: "high",
|
|
15699
|
-
type: "uint56",
|
|
15700
|
-
},
|
|
15701
|
-
{
|
|
15702
|
-
internalType: "uint56",
|
|
15703
|
-
name: "low",
|
|
15704
|
-
type: "uint56",
|
|
15705
|
-
},
|
|
15706
|
-
{
|
|
15707
|
-
internalType: "uint56",
|
|
15708
|
-
name: "current",
|
|
15709
|
-
type: "uint56",
|
|
15710
|
-
},
|
|
15711
|
-
{
|
|
15712
|
-
internalType: "uint32",
|
|
15713
|
-
name: "ts",
|
|
15714
|
-
type: "uint32",
|
|
15715
|
-
},
|
|
15716
|
-
],
|
|
15717
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
15718
|
-
name: "prices",
|
|
15719
|
-
type: "tuple[]",
|
|
15720
|
-
},
|
|
15721
|
-
],
|
|
15722
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
15723
|
-
name: "_signedPairPrices",
|
|
15724
|
-
type: "tuple[]",
|
|
15725
|
-
},
|
|
15726
|
-
],
|
|
15727
|
-
name: "setBorrowingPairParamsArray",
|
|
15728
|
-
outputs: [],
|
|
15729
|
-
stateMutability: "nonpayable",
|
|
15730
|
-
type: "function",
|
|
15731
|
-
signature: "0xd4b813f2",
|
|
15732
|
-
},
|
|
15733
|
-
{
|
|
15734
|
-
inputs: [
|
|
14847
|
+
],
|
|
14848
|
+
name: "setBorrowingPairParamsArray",
|
|
14849
|
+
outputs: [],
|
|
14850
|
+
stateMutability: "nonpayable",
|
|
14851
|
+
type: "function",
|
|
14852
|
+
signature: "0xeb1802f8",
|
|
14853
|
+
},
|
|
14854
|
+
{
|
|
14855
|
+
inputs: [
|
|
15735
14856
|
{
|
|
15736
14857
|
internalType: "uint8",
|
|
15737
14858
|
name: "_collateralIndex",
|
|
@@ -15799,76 +14920,21 @@ const _abi = [
|
|
|
15799
14920
|
type: "function",
|
|
15800
14921
|
signature: "0x801c7961",
|
|
15801
14922
|
},
|
|
15802
|
-
{
|
|
15803
|
-
inputs: [],
|
|
15804
|
-
name: "DuplicateOrUnsortedPairIndices",
|
|
15805
|
-
type: "error",
|
|
15806
|
-
},
|
|
15807
|
-
{
|
|
15808
|
-
inputs: [],
|
|
15809
|
-
name: "ExpiryTooFar",
|
|
15810
|
-
type: "error",
|
|
15811
|
-
},
|
|
15812
|
-
{
|
|
15813
|
-
inputs: [],
|
|
15814
|
-
name: "FromBlockMismatch",
|
|
15815
|
-
type: "error",
|
|
15816
|
-
},
|
|
15817
14923
|
{
|
|
15818
14924
|
inputs: [],
|
|
15819
14925
|
name: "InvalidCandle",
|
|
15820
14926
|
type: "error",
|
|
15821
14927
|
},
|
|
15822
|
-
{
|
|
15823
|
-
inputs: [],
|
|
15824
|
-
name: "InvalidCurrentPrice",
|
|
15825
|
-
type: "error",
|
|
15826
|
-
},
|
|
15827
|
-
{
|
|
15828
|
-
inputs: [],
|
|
15829
|
-
name: "InvalidExpiryTimestamp",
|
|
15830
|
-
type: "error",
|
|
15831
|
-
},
|
|
15832
14928
|
{
|
|
15833
14929
|
inputs: [],
|
|
15834
14930
|
name: "InvalidPoolType",
|
|
15835
14931
|
type: "error",
|
|
15836
14932
|
},
|
|
15837
|
-
{
|
|
15838
|
-
inputs: [],
|
|
15839
|
-
name: "InvalidSignature",
|
|
15840
|
-
type: "error",
|
|
15841
|
-
},
|
|
15842
|
-
{
|
|
15843
|
-
inputs: [],
|
|
15844
|
-
name: "LookbackMismatch",
|
|
15845
|
-
type: "error",
|
|
15846
|
-
},
|
|
15847
|
-
{
|
|
15848
|
-
inputs: [],
|
|
15849
|
-
name: "MinAnswersNotReached",
|
|
15850
|
-
type: "error",
|
|
15851
|
-
},
|
|
15852
14933
|
{
|
|
15853
14934
|
inputs: [],
|
|
15854
14935
|
name: "OracleAlreadyListed",
|
|
15855
14936
|
type: "error",
|
|
15856
14937
|
},
|
|
15857
|
-
{
|
|
15858
|
-
inputs: [],
|
|
15859
|
-
name: "PairAndCurrentPriceLengthMismatch",
|
|
15860
|
-
type: "error",
|
|
15861
|
-
},
|
|
15862
|
-
{
|
|
15863
|
-
inputs: [],
|
|
15864
|
-
name: "PairIndexMismatchBetweenSigners",
|
|
15865
|
-
type: "error",
|
|
15866
|
-
},
|
|
15867
|
-
{
|
|
15868
|
-
inputs: [],
|
|
15869
|
-
name: "PairLengthMismatchBetweenSigners",
|
|
15870
|
-
type: "error",
|
|
15871
|
-
},
|
|
15872
14938
|
{
|
|
15873
14939
|
inputs: [],
|
|
15874
14940
|
name: "RequestAlreadyPending",
|
|
@@ -15889,16 +14955,6 @@ const _abi = [
|
|
|
15889
14955
|
name: "WrongCollateralUsdDecimals",
|
|
15890
14956
|
type: "error",
|
|
15891
14957
|
},
|
|
15892
|
-
{
|
|
15893
|
-
inputs: [],
|
|
15894
|
-
name: "WrongSignaturesCount",
|
|
15895
|
-
type: "error",
|
|
15896
|
-
},
|
|
15897
|
-
{
|
|
15898
|
-
inputs: [],
|
|
15899
|
-
name: "WrongSignerIdOrder",
|
|
15900
|
-
type: "error",
|
|
15901
|
-
},
|
|
15902
14958
|
{
|
|
15903
14959
|
anonymous: false,
|
|
15904
14960
|
inputs: [
|
|
@@ -16184,6 +15240,20 @@ const _abi = [
|
|
|
16184
15240
|
type: "event",
|
|
16185
15241
|
signature: "0x36f00e7308d970ca7446a252b7a1dd9c9cb50ea4559b602e595fc53967ac9dd9",
|
|
16186
15242
|
},
|
|
15243
|
+
{
|
|
15244
|
+
anonymous: false,
|
|
15245
|
+
inputs: [
|
|
15246
|
+
{
|
|
15247
|
+
indexed: false,
|
|
15248
|
+
internalType: "bytes32",
|
|
15249
|
+
name: "jobId",
|
|
15250
|
+
type: "bytes32",
|
|
15251
|
+
},
|
|
15252
|
+
],
|
|
15253
|
+
name: "ParamUpdateJobIdUpdated",
|
|
15254
|
+
type: "event",
|
|
15255
|
+
signature: "0x47b440e213065ce71d2660828d52a17e40915af406469be6b9af861a9465427b",
|
|
15256
|
+
},
|
|
16187
15257
|
{
|
|
16188
15258
|
anonymous: false,
|
|
16189
15259
|
inputs: [
|
|
@@ -16500,104 +15570,6 @@ const _abi = [
|
|
|
16500
15570
|
type: "event",
|
|
16501
15571
|
signature: "0xb388bf2f3f0bb2fde6ffeb60ae5f6ade4679631a026ce552771baebbb0ddb682",
|
|
16502
15572
|
},
|
|
16503
|
-
{
|
|
16504
|
-
anonymous: false,
|
|
16505
|
-
inputs: [
|
|
16506
|
-
{
|
|
16507
|
-
indexed: true,
|
|
16508
|
-
internalType: "uint16",
|
|
16509
|
-
name: "pairIndex",
|
|
16510
|
-
type: "uint16",
|
|
16511
|
-
},
|
|
16512
|
-
{
|
|
16513
|
-
indexed: false,
|
|
16514
|
-
internalType: "bool",
|
|
16515
|
-
name: "isLookback",
|
|
16516
|
-
type: "bool",
|
|
16517
|
-
},
|
|
16518
|
-
{
|
|
16519
|
-
indexed: false,
|
|
16520
|
-
internalType: "uint32",
|
|
16521
|
-
name: "fromBlock",
|
|
16522
|
-
type: "uint32",
|
|
16523
|
-
},
|
|
16524
|
-
{
|
|
16525
|
-
indexed: false,
|
|
16526
|
-
internalType: "bool",
|
|
16527
|
-
name: "minFilteredAnswersReached",
|
|
16528
|
-
type: "bool",
|
|
16529
|
-
},
|
|
16530
|
-
{
|
|
16531
|
-
components: [
|
|
16532
|
-
{
|
|
16533
|
-
internalType: "uint56",
|
|
16534
|
-
name: "open",
|
|
16535
|
-
type: "uint56",
|
|
16536
|
-
},
|
|
16537
|
-
{
|
|
16538
|
-
internalType: "uint56",
|
|
16539
|
-
name: "high",
|
|
16540
|
-
type: "uint56",
|
|
16541
|
-
},
|
|
16542
|
-
{
|
|
16543
|
-
internalType: "uint56",
|
|
16544
|
-
name: "low",
|
|
16545
|
-
type: "uint56",
|
|
16546
|
-
},
|
|
16547
|
-
{
|
|
16548
|
-
internalType: "uint56",
|
|
16549
|
-
name: "current",
|
|
16550
|
-
type: "uint56",
|
|
16551
|
-
},
|
|
16552
|
-
{
|
|
16553
|
-
internalType: "uint32",
|
|
16554
|
-
name: "ts",
|
|
16555
|
-
type: "uint32",
|
|
16556
|
-
},
|
|
16557
|
-
],
|
|
16558
|
-
indexed: false,
|
|
16559
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
16560
|
-
name: "unfilteredAnswers",
|
|
16561
|
-
type: "tuple[]",
|
|
16562
|
-
},
|
|
16563
|
-
{
|
|
16564
|
-
components: [
|
|
16565
|
-
{
|
|
16566
|
-
internalType: "uint56",
|
|
16567
|
-
name: "open",
|
|
16568
|
-
type: "uint56",
|
|
16569
|
-
},
|
|
16570
|
-
{
|
|
16571
|
-
internalType: "uint56",
|
|
16572
|
-
name: "high",
|
|
16573
|
-
type: "uint56",
|
|
16574
|
-
},
|
|
16575
|
-
{
|
|
16576
|
-
internalType: "uint56",
|
|
16577
|
-
name: "low",
|
|
16578
|
-
type: "uint56",
|
|
16579
|
-
},
|
|
16580
|
-
{
|
|
16581
|
-
internalType: "uint56",
|
|
16582
|
-
name: "current",
|
|
16583
|
-
type: "uint56",
|
|
16584
|
-
},
|
|
16585
|
-
{
|
|
16586
|
-
internalType: "uint32",
|
|
16587
|
-
name: "ts",
|
|
16588
|
-
type: "uint32",
|
|
16589
|
-
},
|
|
16590
|
-
],
|
|
16591
|
-
indexed: false,
|
|
16592
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
16593
|
-
name: "filteredAnswers",
|
|
16594
|
-
type: "tuple[]",
|
|
16595
|
-
},
|
|
16596
|
-
],
|
|
16597
|
-
name: "SignedPricesReceived",
|
|
16598
|
-
type: "event",
|
|
16599
|
-
signature: "0x86de8981b0d1c326788b6cf0a05a146dad3a99f57d2df4af213f32de34ce8bf4",
|
|
16600
|
-
},
|
|
16601
15573
|
{
|
|
16602
15574
|
anonymous: false,
|
|
16603
15575
|
inputs: [
|
|
@@ -16693,14 +15665,6 @@ const _abi = [
|
|
|
16693
15665
|
type: "function",
|
|
16694
15666
|
signature: "0x6f37d263",
|
|
16695
15667
|
},
|
|
16696
|
-
{
|
|
16697
|
-
inputs: [],
|
|
16698
|
-
name: "cleanUpSignedPairPrices",
|
|
16699
|
-
outputs: [],
|
|
16700
|
-
stateMutability: "nonpayable",
|
|
16701
|
-
type: "function",
|
|
16702
|
-
signature: "0x1c302ec1",
|
|
16703
|
-
},
|
|
16704
15668
|
{
|
|
16705
15669
|
inputs: [
|
|
16706
15670
|
{
|
|
@@ -16881,31 +15845,6 @@ const _abi = [
|
|
|
16881
15845
|
type: "function",
|
|
16882
15846
|
signature: "0xa91fa361",
|
|
16883
15847
|
},
|
|
16884
|
-
{
|
|
16885
|
-
inputs: [
|
|
16886
|
-
{
|
|
16887
|
-
internalType: "uint8",
|
|
16888
|
-
name: "_collateralIndex",
|
|
16889
|
-
type: "uint8",
|
|
16890
|
-
},
|
|
16891
|
-
{
|
|
16892
|
-
internalType: "uint256",
|
|
16893
|
-
name: "_gnsPriceCollateral",
|
|
16894
|
-
type: "uint256",
|
|
16895
|
-
},
|
|
16896
|
-
],
|
|
16897
|
-
name: "getGnsPriceUsd",
|
|
16898
|
-
outputs: [
|
|
16899
|
-
{
|
|
16900
|
-
internalType: "uint256",
|
|
16901
|
-
name: "",
|
|
16902
|
-
type: "uint256",
|
|
16903
|
-
},
|
|
16904
|
-
],
|
|
16905
|
-
stateMutability: "view",
|
|
16906
|
-
type: "function",
|
|
16907
|
-
signature: "0x6e27030b",
|
|
16908
|
-
},
|
|
16909
15848
|
{
|
|
16910
15849
|
inputs: [
|
|
16911
15850
|
{
|
|
@@ -17112,121 +16051,29 @@ const _abi = [
|
|
|
17112
16051
|
type: "function",
|
|
17113
16052
|
signature: "0x40884c52",
|
|
17114
16053
|
},
|
|
16054
|
+
{
|
|
16055
|
+
inputs: [],
|
|
16056
|
+
name: "getParamUpdateJobId",
|
|
16057
|
+
outputs: [
|
|
16058
|
+
{
|
|
16059
|
+
internalType: "bytes32",
|
|
16060
|
+
name: "",
|
|
16061
|
+
type: "bytes32",
|
|
16062
|
+
},
|
|
16063
|
+
],
|
|
16064
|
+
stateMutability: "view",
|
|
16065
|
+
type: "function",
|
|
16066
|
+
signature: "0xc4296c90",
|
|
16067
|
+
},
|
|
17115
16068
|
{
|
|
17116
16069
|
inputs: [
|
|
17117
16070
|
{
|
|
17118
|
-
internalType: "
|
|
17119
|
-
name: "
|
|
17120
|
-
type: "
|
|
16071
|
+
internalType: "bytes32",
|
|
16072
|
+
name: "_id",
|
|
16073
|
+
type: "bytes32",
|
|
17121
16074
|
},
|
|
17122
16075
|
],
|
|
17123
|
-
name: "
|
|
17124
|
-
outputs: [
|
|
17125
|
-
{
|
|
17126
|
-
components: [
|
|
17127
|
-
{
|
|
17128
|
-
components: [
|
|
17129
|
-
{
|
|
17130
|
-
internalType: "address",
|
|
17131
|
-
name: "user",
|
|
17132
|
-
type: "address",
|
|
17133
|
-
},
|
|
17134
|
-
{
|
|
17135
|
-
internalType: "uint32",
|
|
17136
|
-
name: "index",
|
|
17137
|
-
type: "uint32",
|
|
17138
|
-
},
|
|
17139
|
-
],
|
|
17140
|
-
internalType: "struct ITradingStorage.Id",
|
|
17141
|
-
name: "orderId",
|
|
17142
|
-
type: "tuple",
|
|
17143
|
-
},
|
|
17144
|
-
{
|
|
17145
|
-
internalType: "uint64",
|
|
17146
|
-
name: "open",
|
|
17147
|
-
type: "uint64",
|
|
17148
|
-
},
|
|
17149
|
-
{
|
|
17150
|
-
internalType: "uint64",
|
|
17151
|
-
name: "high",
|
|
17152
|
-
type: "uint64",
|
|
17153
|
-
},
|
|
17154
|
-
{
|
|
17155
|
-
internalType: "uint64",
|
|
17156
|
-
name: "low",
|
|
17157
|
-
type: "uint64",
|
|
17158
|
-
},
|
|
17159
|
-
{
|
|
17160
|
-
internalType: "uint64",
|
|
17161
|
-
name: "current",
|
|
17162
|
-
type: "uint64",
|
|
17163
|
-
},
|
|
17164
|
-
],
|
|
17165
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
17166
|
-
name: "",
|
|
17167
|
-
type: "tuple",
|
|
17168
|
-
},
|
|
17169
|
-
],
|
|
17170
|
-
stateMutability: "view",
|
|
17171
|
-
type: "function",
|
|
17172
|
-
signature: "0xed5becb6",
|
|
17173
|
-
},
|
|
17174
|
-
{
|
|
17175
|
-
inputs: [
|
|
17176
|
-
{
|
|
17177
|
-
internalType: "uint16",
|
|
17178
|
-
name: "_pairIndex",
|
|
17179
|
-
type: "uint16",
|
|
17180
|
-
},
|
|
17181
|
-
],
|
|
17182
|
-
name: "getPairSignedOrderAnswersTemporary",
|
|
17183
|
-
outputs: [
|
|
17184
|
-
{
|
|
17185
|
-
components: [
|
|
17186
|
-
{
|
|
17187
|
-
internalType: "uint56",
|
|
17188
|
-
name: "open",
|
|
17189
|
-
type: "uint56",
|
|
17190
|
-
},
|
|
17191
|
-
{
|
|
17192
|
-
internalType: "uint56",
|
|
17193
|
-
name: "high",
|
|
17194
|
-
type: "uint56",
|
|
17195
|
-
},
|
|
17196
|
-
{
|
|
17197
|
-
internalType: "uint56",
|
|
17198
|
-
name: "low",
|
|
17199
|
-
type: "uint56",
|
|
17200
|
-
},
|
|
17201
|
-
{
|
|
17202
|
-
internalType: "uint56",
|
|
17203
|
-
name: "current",
|
|
17204
|
-
type: "uint56",
|
|
17205
|
-
},
|
|
17206
|
-
{
|
|
17207
|
-
internalType: "uint32",
|
|
17208
|
-
name: "ts",
|
|
17209
|
-
type: "uint32",
|
|
17210
|
-
},
|
|
17211
|
-
],
|
|
17212
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
17213
|
-
name: "",
|
|
17214
|
-
type: "tuple[]",
|
|
17215
|
-
},
|
|
17216
|
-
],
|
|
17217
|
-
stateMutability: "view",
|
|
17218
|
-
type: "function",
|
|
17219
|
-
signature: "0x4ed0ed84",
|
|
17220
|
-
},
|
|
17221
|
-
{
|
|
17222
|
-
inputs: [
|
|
17223
|
-
{
|
|
17224
|
-
internalType: "bytes32",
|
|
17225
|
-
name: "_id",
|
|
17226
|
-
type: "bytes32",
|
|
17227
|
-
},
|
|
17228
|
-
],
|
|
17229
|
-
name: "getPendingRequest",
|
|
16076
|
+
name: "getPendingRequest",
|
|
17230
16077
|
outputs: [
|
|
17231
16078
|
{
|
|
17232
16079
|
internalType: "address",
|
|
@@ -17541,20 +16388,6 @@ const _abi = [
|
|
|
17541
16388
|
type: "function",
|
|
17542
16389
|
signature: "0x3fad1834",
|
|
17543
16390
|
},
|
|
17544
|
-
{
|
|
17545
|
-
inputs: [],
|
|
17546
|
-
name: "getSignedPairIndicesTemporary",
|
|
17547
|
-
outputs: [
|
|
17548
|
-
{
|
|
17549
|
-
internalType: "uint16[]",
|
|
17550
|
-
name: "",
|
|
17551
|
-
type: "uint16[]",
|
|
17552
|
-
},
|
|
17553
|
-
],
|
|
17554
|
-
stateMutability: "view",
|
|
17555
|
-
type: "function",
|
|
17556
|
-
signature: "0x988fcc05",
|
|
17557
|
-
},
|
|
17558
16391
|
{
|
|
17559
16392
|
inputs: [],
|
|
17560
16393
|
name: "getTwapInterval",
|
|
@@ -17627,6 +16460,20 @@ const _abi = [
|
|
|
17627
16460
|
type: "function",
|
|
17628
16461
|
signature: "0x94db9ef7",
|
|
17629
16462
|
},
|
|
16463
|
+
{
|
|
16464
|
+
inputs: [
|
|
16465
|
+
{
|
|
16466
|
+
internalType: "bytes32",
|
|
16467
|
+
name: "_jobId",
|
|
16468
|
+
type: "bytes32",
|
|
16469
|
+
},
|
|
16470
|
+
],
|
|
16471
|
+
name: "initializeParamUpdateJobId",
|
|
16472
|
+
outputs: [],
|
|
16473
|
+
stateMutability: "nonpayable",
|
|
16474
|
+
type: "function",
|
|
16475
|
+
signature: "0x299e40a4",
|
|
16476
|
+
},
|
|
17630
16477
|
{
|
|
17631
16478
|
inputs: [
|
|
17632
16479
|
{
|
|
@@ -17796,6 +16643,20 @@ const _abi = [
|
|
|
17796
16643
|
type: "function",
|
|
17797
16644
|
signature: "0xaa564b10",
|
|
17798
16645
|
},
|
|
16646
|
+
{
|
|
16647
|
+
inputs: [
|
|
16648
|
+
{
|
|
16649
|
+
internalType: "bytes32",
|
|
16650
|
+
name: "_jobId",
|
|
16651
|
+
type: "bytes32",
|
|
16652
|
+
},
|
|
16653
|
+
],
|
|
16654
|
+
name: "setParamUpdateJobId",
|
|
16655
|
+
outputs: [],
|
|
16656
|
+
stateMutability: "nonpayable",
|
|
16657
|
+
type: "function",
|
|
16658
|
+
signature: "0x989f7ceb",
|
|
16659
|
+
},
|
|
17799
16660
|
{
|
|
17800
16661
|
inputs: [
|
|
17801
16662
|
{
|
|
@@ -17888,89 +16749,6 @@ const _abi = [
|
|
|
17888
16749
|
type: "function",
|
|
17889
16750
|
signature: "0xb166a495",
|
|
17890
16751
|
},
|
|
17891
|
-
{
|
|
17892
|
-
inputs: [
|
|
17893
|
-
{
|
|
17894
|
-
components: [
|
|
17895
|
-
{
|
|
17896
|
-
internalType: "uint8",
|
|
17897
|
-
name: "signerId",
|
|
17898
|
-
type: "uint8",
|
|
17899
|
-
},
|
|
17900
|
-
{
|
|
17901
|
-
internalType: "uint32",
|
|
17902
|
-
name: "expiryTs",
|
|
17903
|
-
type: "uint32",
|
|
17904
|
-
},
|
|
17905
|
-
{
|
|
17906
|
-
internalType: "bool",
|
|
17907
|
-
name: "isLookback",
|
|
17908
|
-
type: "bool",
|
|
17909
|
-
},
|
|
17910
|
-
{
|
|
17911
|
-
internalType: "uint32",
|
|
17912
|
-
name: "fromBlock",
|
|
17913
|
-
type: "uint32",
|
|
17914
|
-
},
|
|
17915
|
-
{
|
|
17916
|
-
internalType: "bytes",
|
|
17917
|
-
name: "signature",
|
|
17918
|
-
type: "bytes",
|
|
17919
|
-
},
|
|
17920
|
-
{
|
|
17921
|
-
internalType: "uint16[]",
|
|
17922
|
-
name: "pairIndices",
|
|
17923
|
-
type: "uint16[]",
|
|
17924
|
-
},
|
|
17925
|
-
{
|
|
17926
|
-
components: [
|
|
17927
|
-
{
|
|
17928
|
-
internalType: "uint56",
|
|
17929
|
-
name: "open",
|
|
17930
|
-
type: "uint56",
|
|
17931
|
-
},
|
|
17932
|
-
{
|
|
17933
|
-
internalType: "uint56",
|
|
17934
|
-
name: "high",
|
|
17935
|
-
type: "uint56",
|
|
17936
|
-
},
|
|
17937
|
-
{
|
|
17938
|
-
internalType: "uint56",
|
|
17939
|
-
name: "low",
|
|
17940
|
-
type: "uint56",
|
|
17941
|
-
},
|
|
17942
|
-
{
|
|
17943
|
-
internalType: "uint56",
|
|
17944
|
-
name: "current",
|
|
17945
|
-
type: "uint56",
|
|
17946
|
-
},
|
|
17947
|
-
{
|
|
17948
|
-
internalType: "uint32",
|
|
17949
|
-
name: "ts",
|
|
17950
|
-
type: "uint32",
|
|
17951
|
-
},
|
|
17952
|
-
],
|
|
17953
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
17954
|
-
name: "prices",
|
|
17955
|
-
type: "tuple[]",
|
|
17956
|
-
},
|
|
17957
|
-
],
|
|
17958
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
17959
|
-
name: "_signedPairPrices",
|
|
17960
|
-
type: "tuple[]",
|
|
17961
|
-
},
|
|
17962
|
-
{
|
|
17963
|
-
internalType: "bool",
|
|
17964
|
-
name: "_isLookback",
|
|
17965
|
-
type: "bool",
|
|
17966
|
-
},
|
|
17967
|
-
],
|
|
17968
|
-
name: "validateSignedPairPrices",
|
|
17969
|
-
outputs: [],
|
|
17970
|
-
stateMutability: "nonpayable",
|
|
17971
|
-
type: "function",
|
|
17972
|
-
signature: "0x73b0d136",
|
|
17973
|
-
},
|
|
17974
16752
|
{
|
|
17975
16753
|
inputs: [],
|
|
17976
16754
|
name: "InvalidShareSum",
|
|
@@ -20037,36 +18815,53 @@ const _abi = [
|
|
|
20037
18815
|
{
|
|
20038
18816
|
components: [
|
|
20039
18817
|
{
|
|
20040
|
-
|
|
20041
|
-
|
|
20042
|
-
|
|
18818
|
+
components: [
|
|
18819
|
+
{
|
|
18820
|
+
internalType: "address",
|
|
18821
|
+
name: "user",
|
|
18822
|
+
type: "address",
|
|
18823
|
+
},
|
|
18824
|
+
{
|
|
18825
|
+
internalType: "uint32",
|
|
18826
|
+
name: "index",
|
|
18827
|
+
type: "uint32",
|
|
18828
|
+
},
|
|
18829
|
+
],
|
|
18830
|
+
internalType: "struct ITradingStorage.Id",
|
|
18831
|
+
name: "orderId",
|
|
18832
|
+
type: "tuple",
|
|
20043
18833
|
},
|
|
20044
18834
|
{
|
|
20045
|
-
internalType: "
|
|
20046
|
-
name: "
|
|
20047
|
-
type: "
|
|
18835
|
+
internalType: "uint64",
|
|
18836
|
+
name: "open",
|
|
18837
|
+
type: "uint64",
|
|
20048
18838
|
},
|
|
20049
18839
|
{
|
|
20050
|
-
internalType: "
|
|
20051
|
-
name: "
|
|
20052
|
-
type: "
|
|
18840
|
+
internalType: "uint64",
|
|
18841
|
+
name: "high",
|
|
18842
|
+
type: "uint64",
|
|
20053
18843
|
},
|
|
20054
18844
|
{
|
|
20055
|
-
internalType: "
|
|
20056
|
-
name: "
|
|
20057
|
-
type: "
|
|
18845
|
+
internalType: "uint64",
|
|
18846
|
+
name: "low",
|
|
18847
|
+
type: "uint64",
|
|
18848
|
+
},
|
|
18849
|
+
{
|
|
18850
|
+
internalType: "uint64",
|
|
18851
|
+
name: "current",
|
|
18852
|
+
type: "uint64",
|
|
20058
18853
|
},
|
|
20059
18854
|
],
|
|
20060
|
-
internalType: "struct
|
|
20061
|
-
name: "
|
|
18855
|
+
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
18856
|
+
name: "_answer",
|
|
20062
18857
|
type: "tuple",
|
|
20063
18858
|
},
|
|
20064
18859
|
],
|
|
20065
|
-
name: "
|
|
18860
|
+
name: "pendingParamUpdateCallback",
|
|
20066
18861
|
outputs: [],
|
|
20067
18862
|
stateMutability: "nonpayable",
|
|
20068
18863
|
type: "function",
|
|
20069
|
-
signature: "
|
|
18864
|
+
signature: "0x5246b961",
|
|
20070
18865
|
},
|
|
20071
18866
|
{
|
|
20072
18867
|
inputs: [
|
|
@@ -20151,6 +18946,35 @@ const _abi = [
|
|
|
20151
18946
|
type: "function",
|
|
20152
18947
|
signature: "0xfd84264d",
|
|
20153
18948
|
},
|
|
18949
|
+
{
|
|
18950
|
+
inputs: [
|
|
18951
|
+
{
|
|
18952
|
+
internalType: "uint8",
|
|
18953
|
+
name: "_collateralIndex",
|
|
18954
|
+
type: "uint8",
|
|
18955
|
+
},
|
|
18956
|
+
{
|
|
18957
|
+
internalType: "uint16",
|
|
18958
|
+
name: "_pairIndex",
|
|
18959
|
+
type: "uint16",
|
|
18960
|
+
},
|
|
18961
|
+
{
|
|
18962
|
+
internalType: "enum IFundingFees.ParamUpdateType",
|
|
18963
|
+
name: "_updateType",
|
|
18964
|
+
type: "uint8",
|
|
18965
|
+
},
|
|
18966
|
+
{
|
|
18967
|
+
internalType: "uint224",
|
|
18968
|
+
name: "_newValue",
|
|
18969
|
+
type: "uint224",
|
|
18970
|
+
},
|
|
18971
|
+
],
|
|
18972
|
+
name: "requestParamUpdate",
|
|
18973
|
+
outputs: [],
|
|
18974
|
+
stateMutability: "nonpayable",
|
|
18975
|
+
type: "function",
|
|
18976
|
+
signature: "0x41f84f2b",
|
|
18977
|
+
},
|
|
20154
18978
|
{
|
|
20155
18979
|
inputs: [
|
|
20156
18980
|
{
|
|
@@ -20168,81 +18992,12 @@ const _abi = [
|
|
|
20168
18992
|
name: "_absoluteRatePerSecondCap",
|
|
20169
18993
|
type: "uint24[]",
|
|
20170
18994
|
},
|
|
20171
|
-
{
|
|
20172
|
-
components: [
|
|
20173
|
-
{
|
|
20174
|
-
internalType: "uint8",
|
|
20175
|
-
name: "signerId",
|
|
20176
|
-
type: "uint8",
|
|
20177
|
-
},
|
|
20178
|
-
{
|
|
20179
|
-
internalType: "uint32",
|
|
20180
|
-
name: "expiryTs",
|
|
20181
|
-
type: "uint32",
|
|
20182
|
-
},
|
|
20183
|
-
{
|
|
20184
|
-
internalType: "bool",
|
|
20185
|
-
name: "isLookback",
|
|
20186
|
-
type: "bool",
|
|
20187
|
-
},
|
|
20188
|
-
{
|
|
20189
|
-
internalType: "uint32",
|
|
20190
|
-
name: "fromBlock",
|
|
20191
|
-
type: "uint32",
|
|
20192
|
-
},
|
|
20193
|
-
{
|
|
20194
|
-
internalType: "bytes",
|
|
20195
|
-
name: "signature",
|
|
20196
|
-
type: "bytes",
|
|
20197
|
-
},
|
|
20198
|
-
{
|
|
20199
|
-
internalType: "uint16[]",
|
|
20200
|
-
name: "pairIndices",
|
|
20201
|
-
type: "uint16[]",
|
|
20202
|
-
},
|
|
20203
|
-
{
|
|
20204
|
-
components: [
|
|
20205
|
-
{
|
|
20206
|
-
internalType: "uint56",
|
|
20207
|
-
name: "open",
|
|
20208
|
-
type: "uint56",
|
|
20209
|
-
},
|
|
20210
|
-
{
|
|
20211
|
-
internalType: "uint56",
|
|
20212
|
-
name: "high",
|
|
20213
|
-
type: "uint56",
|
|
20214
|
-
},
|
|
20215
|
-
{
|
|
20216
|
-
internalType: "uint56",
|
|
20217
|
-
name: "low",
|
|
20218
|
-
type: "uint56",
|
|
20219
|
-
},
|
|
20220
|
-
{
|
|
20221
|
-
internalType: "uint56",
|
|
20222
|
-
name: "current",
|
|
20223
|
-
type: "uint56",
|
|
20224
|
-
},
|
|
20225
|
-
{
|
|
20226
|
-
internalType: "uint32",
|
|
20227
|
-
name: "ts",
|
|
20228
|
-
type: "uint32",
|
|
20229
|
-
},
|
|
20230
|
-
],
|
|
20231
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20232
|
-
name: "prices",
|
|
20233
|
-
type: "tuple[]",
|
|
20234
|
-
},
|
|
20235
|
-
],
|
|
20236
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20237
|
-
name: "_signedPairPrices",
|
|
20238
|
-
type: "tuple[]",
|
|
20239
|
-
},
|
|
20240
18995
|
],
|
|
20241
18996
|
name: "setAbsoluteRatePerSecondCap",
|
|
20242
18997
|
outputs: [],
|
|
20243
18998
|
stateMutability: "nonpayable",
|
|
20244
18999
|
type: "function",
|
|
20245
|
-
signature: "
|
|
19000
|
+
signature: "0x1cff93a8",
|
|
20246
19001
|
},
|
|
20247
19002
|
{
|
|
20248
19003
|
inputs: [
|
|
@@ -20261,81 +19016,12 @@ const _abi = [
|
|
|
20261
19016
|
name: "_absoluteVelocityPerYearCap",
|
|
20262
19017
|
type: "uint24[]",
|
|
20263
19018
|
},
|
|
20264
|
-
{
|
|
20265
|
-
components: [
|
|
20266
|
-
{
|
|
20267
|
-
internalType: "uint8",
|
|
20268
|
-
name: "signerId",
|
|
20269
|
-
type: "uint8",
|
|
20270
|
-
},
|
|
20271
|
-
{
|
|
20272
|
-
internalType: "uint32",
|
|
20273
|
-
name: "expiryTs",
|
|
20274
|
-
type: "uint32",
|
|
20275
|
-
},
|
|
20276
|
-
{
|
|
20277
|
-
internalType: "bool",
|
|
20278
|
-
name: "isLookback",
|
|
20279
|
-
type: "bool",
|
|
20280
|
-
},
|
|
20281
|
-
{
|
|
20282
|
-
internalType: "uint32",
|
|
20283
|
-
name: "fromBlock",
|
|
20284
|
-
type: "uint32",
|
|
20285
|
-
},
|
|
20286
|
-
{
|
|
20287
|
-
internalType: "bytes",
|
|
20288
|
-
name: "signature",
|
|
20289
|
-
type: "bytes",
|
|
20290
|
-
},
|
|
20291
|
-
{
|
|
20292
|
-
internalType: "uint16[]",
|
|
20293
|
-
name: "pairIndices",
|
|
20294
|
-
type: "uint16[]",
|
|
20295
|
-
},
|
|
20296
|
-
{
|
|
20297
|
-
components: [
|
|
20298
|
-
{
|
|
20299
|
-
internalType: "uint56",
|
|
20300
|
-
name: "open",
|
|
20301
|
-
type: "uint56",
|
|
20302
|
-
},
|
|
20303
|
-
{
|
|
20304
|
-
internalType: "uint56",
|
|
20305
|
-
name: "high",
|
|
20306
|
-
type: "uint56",
|
|
20307
|
-
},
|
|
20308
|
-
{
|
|
20309
|
-
internalType: "uint56",
|
|
20310
|
-
name: "low",
|
|
20311
|
-
type: "uint56",
|
|
20312
|
-
},
|
|
20313
|
-
{
|
|
20314
|
-
internalType: "uint56",
|
|
20315
|
-
name: "current",
|
|
20316
|
-
type: "uint56",
|
|
20317
|
-
},
|
|
20318
|
-
{
|
|
20319
|
-
internalType: "uint32",
|
|
20320
|
-
name: "ts",
|
|
20321
|
-
type: "uint32",
|
|
20322
|
-
},
|
|
20323
|
-
],
|
|
20324
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20325
|
-
name: "prices",
|
|
20326
|
-
type: "tuple[]",
|
|
20327
|
-
},
|
|
20328
|
-
],
|
|
20329
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20330
|
-
name: "_signedPairPrices",
|
|
20331
|
-
type: "tuple[]",
|
|
20332
|
-
},
|
|
20333
19019
|
],
|
|
20334
19020
|
name: "setAbsoluteVelocityPerYearCap",
|
|
20335
19021
|
outputs: [],
|
|
20336
19022
|
stateMutability: "nonpayable",
|
|
20337
19023
|
type: "function",
|
|
20338
|
-
signature: "
|
|
19024
|
+
signature: "0x96ebeace",
|
|
20339
19025
|
},
|
|
20340
19026
|
{
|
|
20341
19027
|
inputs: [
|
|
@@ -20354,81 +19040,12 @@ const _abi = [
|
|
|
20354
19040
|
name: "_aprMultiplierEnabled",
|
|
20355
19041
|
type: "bool[]",
|
|
20356
19042
|
},
|
|
20357
|
-
{
|
|
20358
|
-
components: [
|
|
20359
|
-
{
|
|
20360
|
-
internalType: "uint8",
|
|
20361
|
-
name: "signerId",
|
|
20362
|
-
type: "uint8",
|
|
20363
|
-
},
|
|
20364
|
-
{
|
|
20365
|
-
internalType: "uint32",
|
|
20366
|
-
name: "expiryTs",
|
|
20367
|
-
type: "uint32",
|
|
20368
|
-
},
|
|
20369
|
-
{
|
|
20370
|
-
internalType: "bool",
|
|
20371
|
-
name: "isLookback",
|
|
20372
|
-
type: "bool",
|
|
20373
|
-
},
|
|
20374
|
-
{
|
|
20375
|
-
internalType: "uint32",
|
|
20376
|
-
name: "fromBlock",
|
|
20377
|
-
type: "uint32",
|
|
20378
|
-
},
|
|
20379
|
-
{
|
|
20380
|
-
internalType: "bytes",
|
|
20381
|
-
name: "signature",
|
|
20382
|
-
type: "bytes",
|
|
20383
|
-
},
|
|
20384
|
-
{
|
|
20385
|
-
internalType: "uint16[]",
|
|
20386
|
-
name: "pairIndices",
|
|
20387
|
-
type: "uint16[]",
|
|
20388
|
-
},
|
|
20389
|
-
{
|
|
20390
|
-
components: [
|
|
20391
|
-
{
|
|
20392
|
-
internalType: "uint56",
|
|
20393
|
-
name: "open",
|
|
20394
|
-
type: "uint56",
|
|
20395
|
-
},
|
|
20396
|
-
{
|
|
20397
|
-
internalType: "uint56",
|
|
20398
|
-
name: "high",
|
|
20399
|
-
type: "uint56",
|
|
20400
|
-
},
|
|
20401
|
-
{
|
|
20402
|
-
internalType: "uint56",
|
|
20403
|
-
name: "low",
|
|
20404
|
-
type: "uint56",
|
|
20405
|
-
},
|
|
20406
|
-
{
|
|
20407
|
-
internalType: "uint56",
|
|
20408
|
-
name: "current",
|
|
20409
|
-
type: "uint56",
|
|
20410
|
-
},
|
|
20411
|
-
{
|
|
20412
|
-
internalType: "uint32",
|
|
20413
|
-
name: "ts",
|
|
20414
|
-
type: "uint32",
|
|
20415
|
-
},
|
|
20416
|
-
],
|
|
20417
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20418
|
-
name: "prices",
|
|
20419
|
-
type: "tuple[]",
|
|
20420
|
-
},
|
|
20421
|
-
],
|
|
20422
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20423
|
-
name: "_signedPairPrices",
|
|
20424
|
-
type: "tuple[]",
|
|
20425
|
-
},
|
|
20426
19043
|
],
|
|
20427
19044
|
name: "setAprMultiplierEnabled",
|
|
20428
19045
|
outputs: [],
|
|
20429
19046
|
stateMutability: "nonpayable",
|
|
20430
19047
|
type: "function",
|
|
20431
|
-
signature: "
|
|
19048
|
+
signature: "0xe8cf0b70",
|
|
20432
19049
|
},
|
|
20433
19050
|
{
|
|
20434
19051
|
inputs: [
|
|
@@ -20447,81 +19064,12 @@ const _abi = [
|
|
|
20447
19064
|
name: "_borrowingRatePerSecondP",
|
|
20448
19065
|
type: "uint24[]",
|
|
20449
19066
|
},
|
|
20450
|
-
{
|
|
20451
|
-
components: [
|
|
20452
|
-
{
|
|
20453
|
-
internalType: "uint8",
|
|
20454
|
-
name: "signerId",
|
|
20455
|
-
type: "uint8",
|
|
20456
|
-
},
|
|
20457
|
-
{
|
|
20458
|
-
internalType: "uint32",
|
|
20459
|
-
name: "expiryTs",
|
|
20460
|
-
type: "uint32",
|
|
20461
|
-
},
|
|
20462
|
-
{
|
|
20463
|
-
internalType: "bool",
|
|
20464
|
-
name: "isLookback",
|
|
20465
|
-
type: "bool",
|
|
20466
|
-
},
|
|
20467
|
-
{
|
|
20468
|
-
internalType: "uint32",
|
|
20469
|
-
name: "fromBlock",
|
|
20470
|
-
type: "uint32",
|
|
20471
|
-
},
|
|
20472
|
-
{
|
|
20473
|
-
internalType: "bytes",
|
|
20474
|
-
name: "signature",
|
|
20475
|
-
type: "bytes",
|
|
20476
|
-
},
|
|
20477
|
-
{
|
|
20478
|
-
internalType: "uint16[]",
|
|
20479
|
-
name: "pairIndices",
|
|
20480
|
-
type: "uint16[]",
|
|
20481
|
-
},
|
|
20482
|
-
{
|
|
20483
|
-
components: [
|
|
20484
|
-
{
|
|
20485
|
-
internalType: "uint56",
|
|
20486
|
-
name: "open",
|
|
20487
|
-
type: "uint56",
|
|
20488
|
-
},
|
|
20489
|
-
{
|
|
20490
|
-
internalType: "uint56",
|
|
20491
|
-
name: "high",
|
|
20492
|
-
type: "uint56",
|
|
20493
|
-
},
|
|
20494
|
-
{
|
|
20495
|
-
internalType: "uint56",
|
|
20496
|
-
name: "low",
|
|
20497
|
-
type: "uint56",
|
|
20498
|
-
},
|
|
20499
|
-
{
|
|
20500
|
-
internalType: "uint56",
|
|
20501
|
-
name: "current",
|
|
20502
|
-
type: "uint56",
|
|
20503
|
-
},
|
|
20504
|
-
{
|
|
20505
|
-
internalType: "uint32",
|
|
20506
|
-
name: "ts",
|
|
20507
|
-
type: "uint32",
|
|
20508
|
-
},
|
|
20509
|
-
],
|
|
20510
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20511
|
-
name: "prices",
|
|
20512
|
-
type: "tuple[]",
|
|
20513
|
-
},
|
|
20514
|
-
],
|
|
20515
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20516
|
-
name: "_signedPairPrices",
|
|
20517
|
-
type: "tuple[]",
|
|
20518
|
-
},
|
|
20519
19067
|
],
|
|
20520
19068
|
name: "setBorrowingRatePerSecondP",
|
|
20521
19069
|
outputs: [],
|
|
20522
19070
|
stateMutability: "nonpayable",
|
|
20523
19071
|
type: "function",
|
|
20524
|
-
signature: "
|
|
19072
|
+
signature: "0xdbb69ab4",
|
|
20525
19073
|
},
|
|
20526
19074
|
{
|
|
20527
19075
|
inputs: [
|
|
@@ -20540,81 +19088,12 @@ const _abi = [
|
|
|
20540
19088
|
name: "_fundingFeesEnabled",
|
|
20541
19089
|
type: "bool[]",
|
|
20542
19090
|
},
|
|
20543
|
-
{
|
|
20544
|
-
components: [
|
|
20545
|
-
{
|
|
20546
|
-
internalType: "uint8",
|
|
20547
|
-
name: "signerId",
|
|
20548
|
-
type: "uint8",
|
|
20549
|
-
},
|
|
20550
|
-
{
|
|
20551
|
-
internalType: "uint32",
|
|
20552
|
-
name: "expiryTs",
|
|
20553
|
-
type: "uint32",
|
|
20554
|
-
},
|
|
20555
|
-
{
|
|
20556
|
-
internalType: "bool",
|
|
20557
|
-
name: "isLookback",
|
|
20558
|
-
type: "bool",
|
|
20559
|
-
},
|
|
20560
|
-
{
|
|
20561
|
-
internalType: "uint32",
|
|
20562
|
-
name: "fromBlock",
|
|
20563
|
-
type: "uint32",
|
|
20564
|
-
},
|
|
20565
|
-
{
|
|
20566
|
-
internalType: "bytes",
|
|
20567
|
-
name: "signature",
|
|
20568
|
-
type: "bytes",
|
|
20569
|
-
},
|
|
20570
|
-
{
|
|
20571
|
-
internalType: "uint16[]",
|
|
20572
|
-
name: "pairIndices",
|
|
20573
|
-
type: "uint16[]",
|
|
20574
|
-
},
|
|
20575
|
-
{
|
|
20576
|
-
components: [
|
|
20577
|
-
{
|
|
20578
|
-
internalType: "uint56",
|
|
20579
|
-
name: "open",
|
|
20580
|
-
type: "uint56",
|
|
20581
|
-
},
|
|
20582
|
-
{
|
|
20583
|
-
internalType: "uint56",
|
|
20584
|
-
name: "high",
|
|
20585
|
-
type: "uint56",
|
|
20586
|
-
},
|
|
20587
|
-
{
|
|
20588
|
-
internalType: "uint56",
|
|
20589
|
-
name: "low",
|
|
20590
|
-
type: "uint56",
|
|
20591
|
-
},
|
|
20592
|
-
{
|
|
20593
|
-
internalType: "uint56",
|
|
20594
|
-
name: "current",
|
|
20595
|
-
type: "uint56",
|
|
20596
|
-
},
|
|
20597
|
-
{
|
|
20598
|
-
internalType: "uint32",
|
|
20599
|
-
name: "ts",
|
|
20600
|
-
type: "uint32",
|
|
20601
|
-
},
|
|
20602
|
-
],
|
|
20603
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20604
|
-
name: "prices",
|
|
20605
|
-
type: "tuple[]",
|
|
20606
|
-
},
|
|
20607
|
-
],
|
|
20608
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20609
|
-
name: "_signedPairPrices",
|
|
20610
|
-
type: "tuple[]",
|
|
20611
|
-
},
|
|
20612
19091
|
],
|
|
20613
19092
|
name: "setFundingFeesEnabled",
|
|
20614
19093
|
outputs: [],
|
|
20615
19094
|
stateMutability: "nonpayable",
|
|
20616
19095
|
type: "function",
|
|
20617
|
-
signature: "
|
|
19096
|
+
signature: "0x7b4ee84d",
|
|
20618
19097
|
},
|
|
20619
19098
|
{
|
|
20620
19099
|
inputs: [
|
|
@@ -20657,81 +19136,12 @@ const _abi = [
|
|
|
20657
19136
|
name: "_skewCoefficientPerYear",
|
|
20658
19137
|
type: "uint112[]",
|
|
20659
19138
|
},
|
|
20660
|
-
{
|
|
20661
|
-
components: [
|
|
20662
|
-
{
|
|
20663
|
-
internalType: "uint8",
|
|
20664
|
-
name: "signerId",
|
|
20665
|
-
type: "uint8",
|
|
20666
|
-
},
|
|
20667
|
-
{
|
|
20668
|
-
internalType: "uint32",
|
|
20669
|
-
name: "expiryTs",
|
|
20670
|
-
type: "uint32",
|
|
20671
|
-
},
|
|
20672
|
-
{
|
|
20673
|
-
internalType: "bool",
|
|
20674
|
-
name: "isLookback",
|
|
20675
|
-
type: "bool",
|
|
20676
|
-
},
|
|
20677
|
-
{
|
|
20678
|
-
internalType: "uint32",
|
|
20679
|
-
name: "fromBlock",
|
|
20680
|
-
type: "uint32",
|
|
20681
|
-
},
|
|
20682
|
-
{
|
|
20683
|
-
internalType: "bytes",
|
|
20684
|
-
name: "signature",
|
|
20685
|
-
type: "bytes",
|
|
20686
|
-
},
|
|
20687
|
-
{
|
|
20688
|
-
internalType: "uint16[]",
|
|
20689
|
-
name: "pairIndices",
|
|
20690
|
-
type: "uint16[]",
|
|
20691
|
-
},
|
|
20692
|
-
{
|
|
20693
|
-
components: [
|
|
20694
|
-
{
|
|
20695
|
-
internalType: "uint56",
|
|
20696
|
-
name: "open",
|
|
20697
|
-
type: "uint56",
|
|
20698
|
-
},
|
|
20699
|
-
{
|
|
20700
|
-
internalType: "uint56",
|
|
20701
|
-
name: "high",
|
|
20702
|
-
type: "uint56",
|
|
20703
|
-
},
|
|
20704
|
-
{
|
|
20705
|
-
internalType: "uint56",
|
|
20706
|
-
name: "low",
|
|
20707
|
-
type: "uint56",
|
|
20708
|
-
},
|
|
20709
|
-
{
|
|
20710
|
-
internalType: "uint56",
|
|
20711
|
-
name: "current",
|
|
20712
|
-
type: "uint56",
|
|
20713
|
-
},
|
|
20714
|
-
{
|
|
20715
|
-
internalType: "uint32",
|
|
20716
|
-
name: "ts",
|
|
20717
|
-
type: "uint32",
|
|
20718
|
-
},
|
|
20719
|
-
],
|
|
20720
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20721
|
-
name: "prices",
|
|
20722
|
-
type: "tuple[]",
|
|
20723
|
-
},
|
|
20724
|
-
],
|
|
20725
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20726
|
-
name: "_signedPairPrices",
|
|
20727
|
-
type: "tuple[]",
|
|
20728
|
-
},
|
|
20729
19139
|
],
|
|
20730
19140
|
name: "setSkewCoefficientPerYear",
|
|
20731
19141
|
outputs: [],
|
|
20732
19142
|
stateMutability: "nonpayable",
|
|
20733
19143
|
type: "function",
|
|
20734
|
-
signature: "
|
|
19144
|
+
signature: "0xb6fa94a3",
|
|
20735
19145
|
},
|
|
20736
19146
|
{
|
|
20737
19147
|
inputs: [
|
|
@@ -20750,81 +19160,12 @@ const _abi = [
|
|
|
20750
19160
|
name: "_thetaThresholdUsd",
|
|
20751
19161
|
type: "uint32[]",
|
|
20752
19162
|
},
|
|
20753
|
-
{
|
|
20754
|
-
components: [
|
|
20755
|
-
{
|
|
20756
|
-
internalType: "uint8",
|
|
20757
|
-
name: "signerId",
|
|
20758
|
-
type: "uint8",
|
|
20759
|
-
},
|
|
20760
|
-
{
|
|
20761
|
-
internalType: "uint32",
|
|
20762
|
-
name: "expiryTs",
|
|
20763
|
-
type: "uint32",
|
|
20764
|
-
},
|
|
20765
|
-
{
|
|
20766
|
-
internalType: "bool",
|
|
20767
|
-
name: "isLookback",
|
|
20768
|
-
type: "bool",
|
|
20769
|
-
},
|
|
20770
|
-
{
|
|
20771
|
-
internalType: "uint32",
|
|
20772
|
-
name: "fromBlock",
|
|
20773
|
-
type: "uint32",
|
|
20774
|
-
},
|
|
20775
|
-
{
|
|
20776
|
-
internalType: "bytes",
|
|
20777
|
-
name: "signature",
|
|
20778
|
-
type: "bytes",
|
|
20779
|
-
},
|
|
20780
|
-
{
|
|
20781
|
-
internalType: "uint16[]",
|
|
20782
|
-
name: "pairIndices",
|
|
20783
|
-
type: "uint16[]",
|
|
20784
|
-
},
|
|
20785
|
-
{
|
|
20786
|
-
components: [
|
|
20787
|
-
{
|
|
20788
|
-
internalType: "uint56",
|
|
20789
|
-
name: "open",
|
|
20790
|
-
type: "uint56",
|
|
20791
|
-
},
|
|
20792
|
-
{
|
|
20793
|
-
internalType: "uint56",
|
|
20794
|
-
name: "high",
|
|
20795
|
-
type: "uint56",
|
|
20796
|
-
},
|
|
20797
|
-
{
|
|
20798
|
-
internalType: "uint56",
|
|
20799
|
-
name: "low",
|
|
20800
|
-
type: "uint56",
|
|
20801
|
-
},
|
|
20802
|
-
{
|
|
20803
|
-
internalType: "uint56",
|
|
20804
|
-
name: "current",
|
|
20805
|
-
type: "uint56",
|
|
20806
|
-
},
|
|
20807
|
-
{
|
|
20808
|
-
internalType: "uint32",
|
|
20809
|
-
name: "ts",
|
|
20810
|
-
type: "uint32",
|
|
20811
|
-
},
|
|
20812
|
-
],
|
|
20813
|
-
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20814
|
-
name: "prices",
|
|
20815
|
-
type: "tuple[]",
|
|
20816
|
-
},
|
|
20817
|
-
],
|
|
20818
|
-
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20819
|
-
name: "_signedPairPrices",
|
|
20820
|
-
type: "tuple[]",
|
|
20821
|
-
},
|
|
20822
19163
|
],
|
|
20823
19164
|
name: "setThetaThresholdUsd",
|
|
20824
19165
|
outputs: [],
|
|
20825
19166
|
stateMutability: "nonpayable",
|
|
20826
19167
|
type: "function",
|
|
20827
|
-
signature: "
|
|
19168
|
+
signature: "0x3adcbe28",
|
|
20828
19169
|
},
|
|
20829
19170
|
{
|
|
20830
19171
|
inputs: [
|
|
@@ -20961,30 +19302,6 @@ const _abi = [
|
|
|
20961
19302
|
type: "function",
|
|
20962
19303
|
signature: "0x2e4f2b16",
|
|
20963
19304
|
},
|
|
20964
|
-
{
|
|
20965
|
-
inputs: [
|
|
20966
|
-
{
|
|
20967
|
-
internalType: "address",
|
|
20968
|
-
name: "_trader",
|
|
20969
|
-
type: "address",
|
|
20970
|
-
},
|
|
20971
|
-
{
|
|
20972
|
-
internalType: "uint32",
|
|
20973
|
-
name: "_index",
|
|
20974
|
-
type: "uint32",
|
|
20975
|
-
},
|
|
20976
|
-
{
|
|
20977
|
-
internalType: "uint256",
|
|
20978
|
-
name: "_deltaCollateral",
|
|
20979
|
-
type: "uint256",
|
|
20980
|
-
},
|
|
20981
|
-
],
|
|
20982
|
-
name: "storeUiRealizedTradingFeesCollateral",
|
|
20983
|
-
outputs: [],
|
|
20984
|
-
stateMutability: "nonpayable",
|
|
20985
|
-
type: "function",
|
|
20986
|
-
signature: "0x24f84e39",
|
|
20987
|
-
},
|
|
20988
19305
|
{
|
|
20989
19306
|
inputs: [
|
|
20990
19307
|
{
|