flash-sdk 2.49.0-alpha.3 → 2.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PerpetualsClient.d.ts +3 -11
- package/dist/PerpetualsClient.js +85 -203
- package/dist/PoolConfig.json +0 -220
- package/dist/idl/perpetuals.d.ts +1 -112
- package/dist/idl/perpetuals.js +1 -112
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +0 -2
- package/package.json +1 -1
package/dist/PoolConfig.json
CHANGED
@@ -719,17 +719,6 @@
|
|
719
719
|
"pythTicker": "Crypto.JTO/USD",
|
720
720
|
"pythPriceId": "0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2"
|
721
721
|
},
|
722
|
-
{
|
723
|
-
"symbol": "W",
|
724
|
-
"mintKey": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",
|
725
|
-
"decimals": 6,
|
726
|
-
"usdPrecision": 4,
|
727
|
-
"tokenPrecision": 4,
|
728
|
-
"isStable": false,
|
729
|
-
"isVirtual": false,
|
730
|
-
"pythTicker": "Crypto.W/USD",
|
731
|
-
"pythPriceId": "0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389"
|
732
|
-
},
|
733
722
|
{
|
734
723
|
"symbol": "RAY",
|
735
724
|
"mintKey": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
|
@@ -818,22 +807,6 @@
|
|
818
807
|
"pythTicker": "Crypto.JTO/USD",
|
819
808
|
"pythPriceId": "0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2"
|
820
809
|
},
|
821
|
-
{
|
822
|
-
"custodyId": 4,
|
823
|
-
"custodyAccount": "58NxGYaVq1CXpNJUsvUDGgBeBtMcoGHP8u58KSk2bagE",
|
824
|
-
"tokenAccount": "4xooDvD4S1BJECjGnKmzNJQrtSxxXVpHRHLiZYc5xyC3",
|
825
|
-
"symbol": "W",
|
826
|
-
"mintKey": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",
|
827
|
-
"decimals": 6,
|
828
|
-
"usdPrecision": 4,
|
829
|
-
"tokenPrecision": 6,
|
830
|
-
"isStable": false,
|
831
|
-
"isVirtual": false,
|
832
|
-
"intOracleAddress": "F1xtMtakpmtDvtrGs7YXeJHAmQi4owUxNns5P5qsZN35",
|
833
|
-
"extOracleAddress": "BEMsCSQEGi2kwPA4mKnGjxnreijhMki7L4eeb96ypzF9",
|
834
|
-
"pythTicker": "Crypto.W/USD",
|
835
|
-
"pythPriceId": "0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389"
|
836
|
-
},
|
837
810
|
{
|
838
811
|
"custodyId": 5,
|
839
812
|
"custodyAccount": "AuzpQGWBNTYKXj4pe5WPoT95dc2T7ouMWpjcriF9t4XS",
|
@@ -952,34 +925,6 @@
|
|
952
925
|
"targetMint": "jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL",
|
953
926
|
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
954
927
|
},
|
955
|
-
{
|
956
|
-
"marketId": 6,
|
957
|
-
"marketAccount": "Dk2P1xDyewb9nxsMacw6gfuhTb3DqPZM1Sm97K66CTQK",
|
958
|
-
"marketCorrelation": true,
|
959
|
-
"pool": "D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH",
|
960
|
-
"targetCustody": "58NxGYaVq1CXpNJUsvUDGgBeBtMcoGHP8u58KSk2bagE",
|
961
|
-
"collateralCustody": "58NxGYaVq1CXpNJUsvUDGgBeBtMcoGHP8u58KSk2bagE",
|
962
|
-
"side": "long",
|
963
|
-
"maxLev": 50,
|
964
|
-
"targetCustodyId": 4,
|
965
|
-
"collateralCustodyId": 4,
|
966
|
-
"targetMint": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",
|
967
|
-
"collateralMint": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ"
|
968
|
-
},
|
969
|
-
{
|
970
|
-
"marketId": 7,
|
971
|
-
"marketAccount": "9mMAN4hFvw5AGB6eNay1WvNsGoyK9xcBafZ5tVbHcHQq",
|
972
|
-
"marketCorrelation": false,
|
973
|
-
"pool": "D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH",
|
974
|
-
"targetCustody": "58NxGYaVq1CXpNJUsvUDGgBeBtMcoGHP8u58KSk2bagE",
|
975
|
-
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
976
|
-
"side": "short",
|
977
|
-
"maxLev": 50,
|
978
|
-
"targetCustodyId": 4,
|
979
|
-
"collateralCustodyId": 0,
|
980
|
-
"targetMint": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ",
|
981
|
-
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
982
|
-
},
|
983
928
|
{
|
984
929
|
"marketId": 8,
|
985
930
|
"marketAccount": "aZCThBPnK1j8feCAKnVtS3QjULzNwPDy4a8V3FzbM9V",
|
@@ -1516,17 +1461,6 @@
|
|
1516
1461
|
"pythTicker": "Crypto.USDC/USD",
|
1517
1462
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
1518
1463
|
},
|
1519
|
-
{
|
1520
|
-
"symbol": "TRUMP",
|
1521
|
-
"mintKey": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1522
|
-
"decimals": 6,
|
1523
|
-
"usdPrecision": 4,
|
1524
|
-
"tokenPrecision": 4,
|
1525
|
-
"isStable": false,
|
1526
|
-
"isVirtual": false,
|
1527
|
-
"pythTicker": "Crypto.TRUMP/USD",
|
1528
|
-
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
1529
|
-
},
|
1530
1464
|
{
|
1531
1465
|
"symbol": "FARTCOIN",
|
1532
1466
|
"mintKey": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
|
@@ -1556,22 +1490,6 @@
|
|
1556
1490
|
"pythTicker": "Crypto.USDC/USD",
|
1557
1491
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
1558
1492
|
},
|
1559
|
-
{
|
1560
|
-
"custodyId": 1,
|
1561
|
-
"custodyAccount": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1562
|
-
"tokenAccount": "6m3KTmMtvmWMJvUDjxZ6RzHVikUJ6V6bDpYwjmHos3Vf",
|
1563
|
-
"symbol": "TRUMP",
|
1564
|
-
"mintKey": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1565
|
-
"decimals": 6,
|
1566
|
-
"usdPrecision": 4,
|
1567
|
-
"tokenPrecision": 4,
|
1568
|
-
"isStable": false,
|
1569
|
-
"isVirtual": false,
|
1570
|
-
"intOracleAddress": "Dku3XJ6sFEpoQtN1JYYgY64EtMMWEsz448Z4j1XPfcad",
|
1571
|
-
"extOracleAddress": "9vNb2tQoZ8bB4vzMbQLWViGwNaDJVtct13AGgno1wazp",
|
1572
|
-
"pythTicker": "Crypto.TRUMP/USD",
|
1573
|
-
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
1574
|
-
},
|
1575
1493
|
{
|
1576
1494
|
"custodyId": 2,
|
1577
1495
|
"custodyAccount": "EHzgXgb2azBXG9bgPT2GEPfe6FtyQwiJtPxMUwny4WFe",
|
@@ -1590,34 +1508,6 @@
|
|
1590
1508
|
}
|
1591
1509
|
],
|
1592
1510
|
"markets": [
|
1593
|
-
{
|
1594
|
-
"marketId": 0,
|
1595
|
-
"marketAccount": "53zJK3muUnpmp1LBZKYiiDsJLnqNw9vTWALVanaRMdyv",
|
1596
|
-
"marketCorrelation": true,
|
1597
|
-
"pool": "Crk3yzGpPCt9thXmV9wCkBM9nBq8EHhBct71ArkKY9wA",
|
1598
|
-
"targetCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1599
|
-
"collateralCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1600
|
-
"side": "long",
|
1601
|
-
"maxLev": 5,
|
1602
|
-
"targetCustodyId": 1,
|
1603
|
-
"collateralCustodyId": 1,
|
1604
|
-
"targetMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1605
|
-
"collateralMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
|
1606
|
-
},
|
1607
|
-
{
|
1608
|
-
"marketId": 1,
|
1609
|
-
"marketAccount": "DvK3NQLuwEH525Yw8XchJySNYWiy1gZNY4wfPENBakA3",
|
1610
|
-
"marketCorrelation": false,
|
1611
|
-
"pool": "Crk3yzGpPCt9thXmV9wCkBM9nBq8EHhBct71ArkKY9wA",
|
1612
|
-
"targetCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1613
|
-
"collateralCustody": "B1b3WnCbwrQC8yk6o5rVLGGJFD7BdQBLyaWsRw4Lqgp2",
|
1614
|
-
"side": "short",
|
1615
|
-
"maxLev": 5,
|
1616
|
-
"targetCustodyId": 1,
|
1617
|
-
"collateralCustodyId": 0,
|
1618
|
-
"targetMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1619
|
-
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
1620
|
-
},
|
1621
1511
|
{
|
1622
1512
|
"marketId": 2,
|
1623
1513
|
"marketAccount": "9PYLfK5KFQVKptGjZdUGWW3hs24g3TMcYAS3B73k3BDi",
|
@@ -2361,17 +2251,6 @@
|
|
2361
2251
|
"pythTicker": "Crypto.JTO/USD",
|
2362
2252
|
"pythPriceId": "0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2"
|
2363
2253
|
},
|
2364
|
-
{
|
2365
|
-
"symbol": "W",
|
2366
|
-
"mintKey": "wda4XRBjGzP2kbCuapvfseNnH49WNkTqLw5szmjjxDG",
|
2367
|
-
"decimals": 6,
|
2368
|
-
"usdPrecision": 4,
|
2369
|
-
"tokenPrecision": 4,
|
2370
|
-
"isStable": false,
|
2371
|
-
"isVirtual": false,
|
2372
|
-
"pythTicker": "Crypto.W/USD",
|
2373
|
-
"pythPriceId": "0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389"
|
2374
|
-
},
|
2375
2254
|
{
|
2376
2255
|
"symbol": "RAY",
|
2377
2256
|
"mintKey": "ray4PVwCwoM4ADM3qKar3Wy6v7eA2zcMtHWv7LAPGe8",
|
@@ -2460,22 +2339,6 @@
|
|
2460
2339
|
"pythTicker": "Crypto.JTO/USD",
|
2461
2340
|
"pythPriceId": "0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2"
|
2462
2341
|
},
|
2463
|
-
{
|
2464
|
-
"custodyId": 4,
|
2465
|
-
"custodyAccount": "7DLv5QVuRizNG4P5ak8jZRdn9PeSETSeGogzPMh6p3WU",
|
2466
|
-
"tokenAccount": "71EcBjgsDBQJHGrD3kUKRHbKVr6jWZgpee7aRrcsxH9K",
|
2467
|
-
"symbol": "W",
|
2468
|
-
"mintKey": "wda4XRBjGzP2kbCuapvfseNnH49WNkTqLw5szmjjxDG",
|
2469
|
-
"decimals": 6,
|
2470
|
-
"usdPrecision": 4,
|
2471
|
-
"tokenPrecision": 4,
|
2472
|
-
"isStable": false,
|
2473
|
-
"isVirtual": false,
|
2474
|
-
"intOracleAddress": "H4JgM7j6H19YrvzGmrx67LDQRemm4G1ocgjASBfB7WBR",
|
2475
|
-
"extOracleAddress": "BEMsCSQEGi2kwPA4mKnGjxnreijhMki7L4eeb96ypzF9",
|
2476
|
-
"pythTicker": "Crypto.W/USD",
|
2477
|
-
"pythPriceId": "0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389"
|
2478
|
-
},
|
2479
2342
|
{
|
2480
2343
|
"custodyId": 5,
|
2481
2344
|
"custodyAccount": "4t4CxpF8cjtgdiVKNgpsM5i7K3C1zUpvUcbG4hCToNfD",
|
@@ -2594,34 +2457,6 @@
|
|
2594
2457
|
"targetMint": "jtoLsU5JqXTYzPzRwGK7UmsNgy1EN6BwNRr6KMJKcXi",
|
2595
2458
|
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
2596
2459
|
},
|
2597
|
-
{
|
2598
|
-
"marketId": 6,
|
2599
|
-
"marketAccount": "9zvixTyYoxSeiEW1Acb3aScdi6HUPbSGQqTLa1PinAZb",
|
2600
|
-
"marketCorrelation": true,
|
2601
|
-
"pool": "FpRXePeSYyPZrBKrCSvLNSQGYT6gkgZXGDCBWVVRkNRT",
|
2602
|
-
"targetCustody": "7DLv5QVuRizNG4P5ak8jZRdn9PeSETSeGogzPMh6p3WU",
|
2603
|
-
"collateralCustody": "7DLv5QVuRizNG4P5ak8jZRdn9PeSETSeGogzPMh6p3WU",
|
2604
|
-
"side": "long",
|
2605
|
-
"maxLev": 50,
|
2606
|
-
"targetCustodyId": 4,
|
2607
|
-
"collateralCustodyId": 4,
|
2608
|
-
"targetMint": "wda4XRBjGzP2kbCuapvfseNnH49WNkTqLw5szmjjxDG",
|
2609
|
-
"collateralMint": "wda4XRBjGzP2kbCuapvfseNnH49WNkTqLw5szmjjxDG"
|
2610
|
-
},
|
2611
|
-
{
|
2612
|
-
"marketId": 7,
|
2613
|
-
"marketAccount": "7AcT3XJsLT97MeXUpai71zEuFGdg5QetbTDTQheWMqFT",
|
2614
|
-
"marketCorrelation": false,
|
2615
|
-
"pool": "FpRXePeSYyPZrBKrCSvLNSQGYT6gkgZXGDCBWVVRkNRT",
|
2616
|
-
"targetCustody": "7DLv5QVuRizNG4P5ak8jZRdn9PeSETSeGogzPMh6p3WU",
|
2617
|
-
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2618
|
-
"side": "short",
|
2619
|
-
"maxLev": 50,
|
2620
|
-
"targetCustodyId": 4,
|
2621
|
-
"collateralCustodyId": 0,
|
2622
|
-
"targetMint": "wda4XRBjGzP2kbCuapvfseNnH49WNkTqLw5szmjjxDG",
|
2623
|
-
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
2624
|
-
},
|
2625
2460
|
{
|
2626
2461
|
"marketId": 8,
|
2627
2462
|
"marketAccount": "CmKDkRzjB4sGiVqui7JPKL5wARFjcryPNFTbwDgPNxzB",
|
@@ -3158,17 +2993,6 @@
|
|
3158
2993
|
"pythTicker": "Crypto.USDC/USD",
|
3159
2994
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
3160
2995
|
},
|
3161
|
-
{
|
3162
|
-
"symbol": "TRUMP",
|
3163
|
-
"mintKey": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3164
|
-
"decimals": 6,
|
3165
|
-
"usdPrecision": 4,
|
3166
|
-
"tokenPrecision": 4,
|
3167
|
-
"isStable": false,
|
3168
|
-
"isVirtual": false,
|
3169
|
-
"pythTicker": "Crypto.TRUMP/USD",
|
3170
|
-
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
3171
|
-
},
|
3172
2996
|
{
|
3173
2997
|
"symbol": "FARTCOIN",
|
3174
2998
|
"mintKey": "fartpRHniUMJ2dG3AFkFcmvDHptBSqBbttYwE3hKv5t",
|
@@ -3198,22 +3022,6 @@
|
|
3198
3022
|
"pythTicker": "Crypto.USDC/USD",
|
3199
3023
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
3200
3024
|
},
|
3201
|
-
{
|
3202
|
-
"custodyId": 1,
|
3203
|
-
"custodyAccount": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3204
|
-
"tokenAccount": "DDKaMxvZmgUNHDjWPf12LZrMnWF4gLHFnvRYtK17kUCq",
|
3205
|
-
"symbol": "TRUMP",
|
3206
|
-
"mintKey": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3207
|
-
"decimals": 6,
|
3208
|
-
"usdPrecision": 4,
|
3209
|
-
"tokenPrecision": 4,
|
3210
|
-
"isStable": false,
|
3211
|
-
"isVirtual": false,
|
3212
|
-
"intOracleAddress": "2X5dR335kR9zvcS6XeYAoQ91X2i1eGvzBu2niPW8vFM5",
|
3213
|
-
"extOracleAddress": "9vNb2tQoZ8bB4vzMbQLWViGwNaDJVtct13AGgno1wazp",
|
3214
|
-
"pythTicker": "Crypto.TRUMP/USD",
|
3215
|
-
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
3216
|
-
},
|
3217
3025
|
{
|
3218
3026
|
"custodyId": 2,
|
3219
3027
|
"custodyAccount": "EbH7fBbcTojR5P8kPDEFeUnFRGr5SXKWaavqtCgpH9G4",
|
@@ -3232,34 +3040,6 @@
|
|
3232
3040
|
}
|
3233
3041
|
],
|
3234
3042
|
"markets": [
|
3235
|
-
{
|
3236
|
-
"marketId": 0,
|
3237
|
-
"marketAccount": "CZBZsoRS8zyoysWqQoQGQct12srenVvKdqG5cyFhyRJN",
|
3238
|
-
"marketCorrelation": true,
|
3239
|
-
"pool": "GJMj6ZeK8JYvwYNfurMKf6sEYZLkonqvYzXowcS6TL5D",
|
3240
|
-
"targetCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3241
|
-
"collateralCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3242
|
-
"side": "long",
|
3243
|
-
"maxLev": 5,
|
3244
|
-
"targetCustodyId": 1,
|
3245
|
-
"collateralCustodyId": 1,
|
3246
|
-
"targetMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3247
|
-
"collateralMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH"
|
3248
|
-
},
|
3249
|
-
{
|
3250
|
-
"marketId": 1,
|
3251
|
-
"marketAccount": "E2f2k4bMv6g4usjt9zAz43CudykXWGwjG8s6nYtJF8Yy",
|
3252
|
-
"marketCorrelation": false,
|
3253
|
-
"pool": "GJMj6ZeK8JYvwYNfurMKf6sEYZLkonqvYzXowcS6TL5D",
|
3254
|
-
"targetCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3255
|
-
"collateralCustody": "FheNnJ2RmuVCJFvHbhADFHwfQwnCX9nMhdsay1hxSmkv",
|
3256
|
-
"side": "short",
|
3257
|
-
"maxLev": 5,
|
3258
|
-
"targetCustodyId": 1,
|
3259
|
-
"collateralCustodyId": 0,
|
3260
|
-
"targetMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3261
|
-
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
3262
|
-
},
|
3263
3043
|
{
|
3264
3044
|
"marketId": 2,
|
3265
3045
|
"marketAccount": "B1ZSHUD97mU8DPG4LeWx7QcN4wV6KkTKNmv9hXU2Qb95",
|
package/dist/idl/perpetuals.d.ts
CHANGED
@@ -1520,44 +1520,6 @@ export type Perpetuals = {
|
|
1520
1520
|
];
|
1521
1521
|
"returns": "u8";
|
1522
1522
|
},
|
1523
|
-
{
|
1524
|
-
"name": "setInternalCurrentPrice";
|
1525
|
-
"accounts": [
|
1526
|
-
{
|
1527
|
-
"name": "authority";
|
1528
|
-
"isMut": true;
|
1529
|
-
"isSigner": true;
|
1530
|
-
}
|
1531
|
-
];
|
1532
|
-
"args": [
|
1533
|
-
{
|
1534
|
-
"name": "params";
|
1535
|
-
"type": {
|
1536
|
-
"defined": "SetInternalCurrentPriceParams";
|
1537
|
-
};
|
1538
|
-
}
|
1539
|
-
];
|
1540
|
-
"returns": "u8";
|
1541
|
-
},
|
1542
|
-
{
|
1543
|
-
"name": "setInternalEmaPrice";
|
1544
|
-
"accounts": [
|
1545
|
-
{
|
1546
|
-
"name": "authority";
|
1547
|
-
"isMut": true;
|
1548
|
-
"isSigner": true;
|
1549
|
-
}
|
1550
|
-
];
|
1551
|
-
"args": [
|
1552
|
-
{
|
1553
|
-
"name": "params";
|
1554
|
-
"type": {
|
1555
|
-
"defined": "SetInternalEmaPriceParams";
|
1556
|
-
};
|
1557
|
-
}
|
1558
|
-
];
|
1559
|
-
"returns": "u8";
|
1560
|
-
},
|
1561
1523
|
{
|
1562
1524
|
"name": "setInternalOraclePrice";
|
1563
1525
|
"accounts": [
|
@@ -8364,12 +8326,7 @@ export type Perpetuals = {
|
|
8364
8326
|
"name": "AddInternalOracleParams";
|
8365
8327
|
"type": {
|
8366
8328
|
"kind": "struct";
|
8367
|
-
"fields": [
|
8368
|
-
{
|
8369
|
-
"name": "expo";
|
8370
|
-
"type": "i32";
|
8371
|
-
}
|
8372
|
-
];
|
8329
|
+
"fields": [];
|
8373
8330
|
};
|
8374
8331
|
},
|
8375
8332
|
{
|
@@ -9747,38 +9704,6 @@ export type Perpetuals = {
|
|
9747
9704
|
];
|
9748
9705
|
};
|
9749
9706
|
},
|
9750
|
-
{
|
9751
|
-
"name": "SetInternalCurrentPriceParams";
|
9752
|
-
"type": {
|
9753
|
-
"kind": "struct";
|
9754
|
-
"fields": [
|
9755
|
-
{
|
9756
|
-
"name": "prices";
|
9757
|
-
"type": {
|
9758
|
-
"vec": {
|
9759
|
-
"defined": "InternalPrice";
|
9760
|
-
};
|
9761
|
-
};
|
9762
|
-
}
|
9763
|
-
];
|
9764
|
-
};
|
9765
|
-
},
|
9766
|
-
{
|
9767
|
-
"name": "SetInternalEmaPriceParams";
|
9768
|
-
"type": {
|
9769
|
-
"kind": "struct";
|
9770
|
-
"fields": [
|
9771
|
-
{
|
9772
|
-
"name": "prices";
|
9773
|
-
"type": {
|
9774
|
-
"vec": {
|
9775
|
-
"defined": "InternalEmaPrice";
|
9776
|
-
};
|
9777
|
-
};
|
9778
|
-
}
|
9779
|
-
];
|
9780
|
-
};
|
9781
|
-
},
|
9782
9707
|
{
|
9783
9708
|
"name": "SetInternalOraclePriceParams";
|
9784
9709
|
"type": {
|
@@ -10668,42 +10593,6 @@ export type Perpetuals = {
|
|
10668
10593
|
];
|
10669
10594
|
};
|
10670
10595
|
},
|
10671
|
-
{
|
10672
|
-
"name": "InternalPrice";
|
10673
|
-
"type": {
|
10674
|
-
"kind": "struct";
|
10675
|
-
"fields": [
|
10676
|
-
{
|
10677
|
-
"name": "price";
|
10678
|
-
"type": "u64";
|
10679
|
-
},
|
10680
|
-
{
|
10681
|
-
"name": "conf";
|
10682
|
-
"type": "u64";
|
10683
|
-
},
|
10684
|
-
{
|
10685
|
-
"name": "publishTime";
|
10686
|
-
"type": "i64";
|
10687
|
-
}
|
10688
|
-
];
|
10689
|
-
};
|
10690
|
-
},
|
10691
|
-
{
|
10692
|
-
"name": "InternalEmaPrice";
|
10693
|
-
"type": {
|
10694
|
-
"kind": "struct";
|
10695
|
-
"fields": [
|
10696
|
-
{
|
10697
|
-
"name": "emaPrice";
|
10698
|
-
"type": "u64";
|
10699
|
-
},
|
10700
|
-
{
|
10701
|
-
"name": "publishTime";
|
10702
|
-
"type": "i64";
|
10703
|
-
}
|
10704
|
-
];
|
10705
|
-
};
|
10706
|
-
},
|
10707
10596
|
{
|
10708
10597
|
"name": "BackupOracle";
|
10709
10598
|
"type": {
|
package/dist/idl/perpetuals.js
CHANGED
@@ -1523,44 +1523,6 @@ exports.IDL = {
|
|
1523
1523
|
],
|
1524
1524
|
"returns": "u8"
|
1525
1525
|
},
|
1526
|
-
{
|
1527
|
-
"name": "setInternalCurrentPrice",
|
1528
|
-
"accounts": [
|
1529
|
-
{
|
1530
|
-
"name": "authority",
|
1531
|
-
"isMut": true,
|
1532
|
-
"isSigner": true
|
1533
|
-
}
|
1534
|
-
],
|
1535
|
-
"args": [
|
1536
|
-
{
|
1537
|
-
"name": "params",
|
1538
|
-
"type": {
|
1539
|
-
"defined": "SetInternalCurrentPriceParams"
|
1540
|
-
}
|
1541
|
-
}
|
1542
|
-
],
|
1543
|
-
"returns": "u8"
|
1544
|
-
},
|
1545
|
-
{
|
1546
|
-
"name": "setInternalEmaPrice",
|
1547
|
-
"accounts": [
|
1548
|
-
{
|
1549
|
-
"name": "authority",
|
1550
|
-
"isMut": true,
|
1551
|
-
"isSigner": true
|
1552
|
-
}
|
1553
|
-
],
|
1554
|
-
"args": [
|
1555
|
-
{
|
1556
|
-
"name": "params",
|
1557
|
-
"type": {
|
1558
|
-
"defined": "SetInternalEmaPriceParams"
|
1559
|
-
}
|
1560
|
-
}
|
1561
|
-
],
|
1562
|
-
"returns": "u8"
|
1563
|
-
},
|
1564
1526
|
{
|
1565
1527
|
"name": "setInternalOraclePrice",
|
1566
1528
|
"accounts": [
|
@@ -8367,12 +8329,7 @@ exports.IDL = {
|
|
8367
8329
|
"name": "AddInternalOracleParams",
|
8368
8330
|
"type": {
|
8369
8331
|
"kind": "struct",
|
8370
|
-
"fields": [
|
8371
|
-
{
|
8372
|
-
"name": "expo",
|
8373
|
-
"type": "i32"
|
8374
|
-
}
|
8375
|
-
]
|
8332
|
+
"fields": []
|
8376
8333
|
}
|
8377
8334
|
},
|
8378
8335
|
{
|
@@ -9750,38 +9707,6 @@ exports.IDL = {
|
|
9750
9707
|
]
|
9751
9708
|
}
|
9752
9709
|
},
|
9753
|
-
{
|
9754
|
-
"name": "SetInternalCurrentPriceParams",
|
9755
|
-
"type": {
|
9756
|
-
"kind": "struct",
|
9757
|
-
"fields": [
|
9758
|
-
{
|
9759
|
-
"name": "prices",
|
9760
|
-
"type": {
|
9761
|
-
"vec": {
|
9762
|
-
"defined": "InternalPrice"
|
9763
|
-
}
|
9764
|
-
}
|
9765
|
-
}
|
9766
|
-
]
|
9767
|
-
}
|
9768
|
-
},
|
9769
|
-
{
|
9770
|
-
"name": "SetInternalEmaPriceParams",
|
9771
|
-
"type": {
|
9772
|
-
"kind": "struct",
|
9773
|
-
"fields": [
|
9774
|
-
{
|
9775
|
-
"name": "prices",
|
9776
|
-
"type": {
|
9777
|
-
"vec": {
|
9778
|
-
"defined": "InternalEmaPrice"
|
9779
|
-
}
|
9780
|
-
}
|
9781
|
-
}
|
9782
|
-
]
|
9783
|
-
}
|
9784
|
-
},
|
9785
9710
|
{
|
9786
9711
|
"name": "SetInternalOraclePriceParams",
|
9787
9712
|
"type": {
|
@@ -10671,42 +10596,6 @@ exports.IDL = {
|
|
10671
10596
|
]
|
10672
10597
|
}
|
10673
10598
|
},
|
10674
|
-
{
|
10675
|
-
"name": "InternalPrice",
|
10676
|
-
"type": {
|
10677
|
-
"kind": "struct",
|
10678
|
-
"fields": [
|
10679
|
-
{
|
10680
|
-
"name": "price",
|
10681
|
-
"type": "u64"
|
10682
|
-
},
|
10683
|
-
{
|
10684
|
-
"name": "conf",
|
10685
|
-
"type": "u64"
|
10686
|
-
},
|
10687
|
-
{
|
10688
|
-
"name": "publishTime",
|
10689
|
-
"type": "i64"
|
10690
|
-
}
|
10691
|
-
]
|
10692
|
-
}
|
10693
|
-
},
|
10694
|
-
{
|
10695
|
-
"name": "InternalEmaPrice",
|
10696
|
-
"type": {
|
10697
|
-
"kind": "struct",
|
10698
|
-
"fields": [
|
10699
|
-
{
|
10700
|
-
"name": "emaPrice",
|
10701
|
-
"type": "u64"
|
10702
|
-
},
|
10703
|
-
{
|
10704
|
-
"name": "publishTime",
|
10705
|
-
"type": "i64"
|
10706
|
-
}
|
10707
|
-
]
|
10708
|
-
}
|
10709
|
-
},
|
10710
10599
|
{
|
10711
10600
|
"name": "BackupOracle",
|
10712
10601
|
"type": {
|