flash-sdk 2.48.8-alpha.0 → 2.49.0-alpha.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 +8 -4
- package/dist/PerpetualsClient.js +513 -604
- package/dist/PoolConfig.json +220 -0
- package/dist/ViewHelper.js +3 -3
- package/dist/backupOracle.js +3 -3
- package/dist/idl/perpetuals.d.ts +55 -0
- package/dist/idl/perpetuals.js +55 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/alt.d.ts +1 -0
- package/dist/utils/rpc.js +50 -50
- package/package.json +1 -1
package/dist/PoolConfig.json
CHANGED
@@ -385,6 +385,17 @@
|
|
385
385
|
"pythTicker": "FX.GBP/USD",
|
386
386
|
"pythPriceId": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1"
|
387
387
|
},
|
388
|
+
{
|
389
|
+
"symbol": "AUD",
|
390
|
+
"mintKey": "AUDdbsJZpT1pFErezhe9pvcf97XnvD8oo8etZbeFbBX",
|
391
|
+
"decimals": 6,
|
392
|
+
"usdPrecision": 4,
|
393
|
+
"tokenPrecision": 6,
|
394
|
+
"isStable": false,
|
395
|
+
"isVirtual": true,
|
396
|
+
"pythTicker": "FX.AUD/USD",
|
397
|
+
"pythPriceId": "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80"
|
398
|
+
},
|
388
399
|
{
|
389
400
|
"symbol": "CRUDEOIL",
|
390
401
|
"mintKey": "o1Lw5djE8o6wMbPXU7U8Us8a6DJhWJc9WrWWUc1LHAo",
|
@@ -478,6 +489,22 @@
|
|
478
489
|
"pythTicker": "FX.GBP/USD",
|
479
490
|
"pythPriceId": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1"
|
480
491
|
},
|
492
|
+
{
|
493
|
+
"custodyId": 5,
|
494
|
+
"custodyAccount": "AFrALLNuCbBBnhUvEjxrK96e8yjComh2xuTak1y5TEJL",
|
495
|
+
"tokenAccount": "6yofaNof5vxFfpRMmrmGK2Qge5aSUTAvUW15cL7z8fB1",
|
496
|
+
"symbol": "AUD",
|
497
|
+
"mintKey": "AUDdbsJZpT1pFErezhe9pvcf97XnvD8oo8etZbeFbBX",
|
498
|
+
"decimals": 6,
|
499
|
+
"usdPrecision": 4,
|
500
|
+
"tokenPrecision": 6,
|
501
|
+
"isStable": false,
|
502
|
+
"isVirtual": true,
|
503
|
+
"intOracleAddress": "3RDtyt5bEFEmWwh99mDN7amsn1uz4eVQ8CJuXzAGaKL8",
|
504
|
+
"extOracleAddress": "6pPXqXcgFFoLEcXfedWJy3ypNZVJ1F3mgipaDFsvZ1co",
|
505
|
+
"pythTicker": "FX.AUD/USD",
|
506
|
+
"pythPriceId": "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80"
|
507
|
+
},
|
481
508
|
{
|
482
509
|
"custodyId": 6,
|
483
510
|
"custodyAccount": "5mggznCHoC98t2xXNYPVR8cqNhRhYdhV7qGWqMoY6YSJ",
|
@@ -608,6 +635,34 @@
|
|
608
635
|
"targetMint": "GBPvXsT3uQVBmipvhhU5NW1JfhMJ2maYqLAbPzUq5NnY",
|
609
636
|
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
610
637
|
},
|
638
|
+
{
|
639
|
+
"marketId": 8,
|
640
|
+
"marketAccount": "CxC8u5SBCtu9a53x7jSZtaAuJoKYA2ukXLuMuB9NtqoQ",
|
641
|
+
"marketCorrelation": false,
|
642
|
+
"pool": "KwhpybQPe9xuZFmAfcjLHj3ukownWex1ratyascAC1X",
|
643
|
+
"targetCustody": "AFrALLNuCbBBnhUvEjxrK96e8yjComh2xuTak1y5TEJL",
|
644
|
+
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
645
|
+
"side": "long",
|
646
|
+
"maxLev": 100,
|
647
|
+
"targetCustodyId": 5,
|
648
|
+
"collateralCustodyId": 0,
|
649
|
+
"targetMint": "AUDdbsJZpT1pFErezhe9pvcf97XnvD8oo8etZbeFbBX",
|
650
|
+
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"marketId": 9,
|
654
|
+
"marketAccount": "JCwYots22PTcPn2XQz9un15kMj6tqEYjUKgQaay5sMY1",
|
655
|
+
"marketCorrelation": false,
|
656
|
+
"pool": "KwhpybQPe9xuZFmAfcjLHj3ukownWex1ratyascAC1X",
|
657
|
+
"targetCustody": "AFrALLNuCbBBnhUvEjxrK96e8yjComh2xuTak1y5TEJL",
|
658
|
+
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
659
|
+
"side": "short",
|
660
|
+
"maxLev": 100,
|
661
|
+
"targetCustodyId": 5,
|
662
|
+
"collateralCustodyId": 0,
|
663
|
+
"targetMint": "AUDdbsJZpT1pFErezhe9pvcf97XnvD8oo8etZbeFbBX",
|
664
|
+
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
665
|
+
},
|
611
666
|
{
|
612
667
|
"marketId": 10,
|
613
668
|
"marketAccount": "5D2t4gqE8BjbvJaz5NUShUo3EVkqJD72P5YTzgV7n5nj",
|
@@ -1516,6 +1571,17 @@
|
|
1516
1571
|
"pythTicker": "Crypto.USDC/USD",
|
1517
1572
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
1518
1573
|
},
|
1574
|
+
{
|
1575
|
+
"symbol": "TRUMP",
|
1576
|
+
"mintKey": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1577
|
+
"decimals": 6,
|
1578
|
+
"usdPrecision": 4,
|
1579
|
+
"tokenPrecision": 4,
|
1580
|
+
"isStable": false,
|
1581
|
+
"isVirtual": false,
|
1582
|
+
"pythTicker": "Crypto.TRUMP/USD",
|
1583
|
+
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
1584
|
+
},
|
1519
1585
|
{
|
1520
1586
|
"symbol": "FARTCOIN",
|
1521
1587
|
"mintKey": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
|
@@ -1545,6 +1611,22 @@
|
|
1545
1611
|
"pythTicker": "Crypto.USDC/USD",
|
1546
1612
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
1547
1613
|
},
|
1614
|
+
{
|
1615
|
+
"custodyId": 1,
|
1616
|
+
"custodyAccount": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1617
|
+
"tokenAccount": "6m3KTmMtvmWMJvUDjxZ6RzHVikUJ6V6bDpYwjmHos3Vf",
|
1618
|
+
"symbol": "TRUMP",
|
1619
|
+
"mintKey": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1620
|
+
"decimals": 6,
|
1621
|
+
"usdPrecision": 4,
|
1622
|
+
"tokenPrecision": 4,
|
1623
|
+
"isStable": false,
|
1624
|
+
"isVirtual": false,
|
1625
|
+
"intOracleAddress": "Dku3XJ6sFEpoQtN1JYYgY64EtMMWEsz448Z4j1XPfcad",
|
1626
|
+
"extOracleAddress": "9vNb2tQoZ8bB4vzMbQLWViGwNaDJVtct13AGgno1wazp",
|
1627
|
+
"pythTicker": "Crypto.TRUMP/USD",
|
1628
|
+
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
1629
|
+
},
|
1548
1630
|
{
|
1549
1631
|
"custodyId": 2,
|
1550
1632
|
"custodyAccount": "EHzgXgb2azBXG9bgPT2GEPfe6FtyQwiJtPxMUwny4WFe",
|
@@ -1563,6 +1645,34 @@
|
|
1563
1645
|
}
|
1564
1646
|
],
|
1565
1647
|
"markets": [
|
1648
|
+
{
|
1649
|
+
"marketId": 0,
|
1650
|
+
"marketAccount": "53zJK3muUnpmp1LBZKYiiDsJLnqNw9vTWALVanaRMdyv",
|
1651
|
+
"marketCorrelation": true,
|
1652
|
+
"pool": "Crk3yzGpPCt9thXmV9wCkBM9nBq8EHhBct71ArkKY9wA",
|
1653
|
+
"targetCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1654
|
+
"collateralCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1655
|
+
"side": "long",
|
1656
|
+
"maxLev": 5,
|
1657
|
+
"targetCustodyId": 1,
|
1658
|
+
"collateralCustodyId": 1,
|
1659
|
+
"targetMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1660
|
+
"collateralMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
|
1661
|
+
},
|
1662
|
+
{
|
1663
|
+
"marketId": 1,
|
1664
|
+
"marketAccount": "DvK3NQLuwEH525Yw8XchJySNYWiy1gZNY4wfPENBakA3",
|
1665
|
+
"marketCorrelation": false,
|
1666
|
+
"pool": "Crk3yzGpPCt9thXmV9wCkBM9nBq8EHhBct71ArkKY9wA",
|
1667
|
+
"targetCustody": "Ckt7Bzzq5S1aKukXZqMZov9i2gxJGAT2Yn4AunqkKdDP",
|
1668
|
+
"collateralCustody": "B1b3WnCbwrQC8yk6o5rVLGGJFD7BdQBLyaWsRw4Lqgp2",
|
1669
|
+
"side": "short",
|
1670
|
+
"maxLev": 5,
|
1671
|
+
"targetCustodyId": 1,
|
1672
|
+
"collateralCustodyId": 0,
|
1673
|
+
"targetMint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
|
1674
|
+
"collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
|
1675
|
+
},
|
1566
1676
|
{
|
1567
1677
|
"marketId": 2,
|
1568
1678
|
"marketAccount": "9PYLfK5KFQVKptGjZdUGWW3hs24g3TMcYAS3B73k3BDi",
|
@@ -1972,6 +2082,17 @@
|
|
1972
2082
|
"pythTicker": "FX.GBP/USD",
|
1973
2083
|
"pythPriceId": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1"
|
1974
2084
|
},
|
2085
|
+
{
|
2086
|
+
"symbol": "AUD",
|
2087
|
+
"mintKey": "auduqqUHqZC3DRmZaAtzccTs3NTi1fSYp5rgg4uYwFz",
|
2088
|
+
"decimals": 6,
|
2089
|
+
"usdPrecision": 4,
|
2090
|
+
"tokenPrecision": 4,
|
2091
|
+
"isStable": false,
|
2092
|
+
"isVirtual": true,
|
2093
|
+
"pythTicker": "FX.AUD/USD",
|
2094
|
+
"pythPriceId": "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80"
|
2095
|
+
},
|
1975
2096
|
{
|
1976
2097
|
"symbol": "CRUDEOIL",
|
1977
2098
|
"mintKey": "oi1DkCGa5CVm379ZuznLMevqjg7KGWnDDFB96JXAi7a",
|
@@ -2065,6 +2186,22 @@
|
|
2065
2186
|
"pythTicker": "FX.GBP/USD",
|
2066
2187
|
"pythPriceId": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1"
|
2067
2188
|
},
|
2189
|
+
{
|
2190
|
+
"custodyId": 5,
|
2191
|
+
"custodyAccount": "GcMKm7441Vx3rtUuE4qQzV7tWmv8mHWShZ9CerasWuwc",
|
2192
|
+
"tokenAccount": "B4z3UgMM4KnCyWbrju8HWhLX7b7xd1TSrdheLMDtTj2N",
|
2193
|
+
"symbol": "AUD",
|
2194
|
+
"mintKey": "auduqqUHqZC3DRmZaAtzccTs3NTi1fSYp5rgg4uYwFz",
|
2195
|
+
"decimals": 6,
|
2196
|
+
"usdPrecision": 4,
|
2197
|
+
"tokenPrecision": 4,
|
2198
|
+
"isStable": false,
|
2199
|
+
"isVirtual": true,
|
2200
|
+
"intOracleAddress": "BttDaqMMzPPvUvakrRsddcjJxiTs2qTmrCcWvk5nvtc9",
|
2201
|
+
"extOracleAddress": "6pPXqXcgFFoLEcXfedWJy3ypNZVJ1F3mgipaDFsvZ1co",
|
2202
|
+
"pythTicker": "FX.AUD/USD",
|
2203
|
+
"pythPriceId": "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80"
|
2204
|
+
},
|
2068
2205
|
{
|
2069
2206
|
"custodyId": 6,
|
2070
2207
|
"custodyAccount": "7B6jnXZTsMtCzcrwFv1Pnr4WpGu8tkw6rqBThucG4Pkw",
|
@@ -2195,6 +2332,34 @@
|
|
2195
2332
|
"targetMint": "gbpLV6AqxQGSMFsuSfcutvWnfjLUqKq63GoXLAHXXKV",
|
2196
2333
|
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
2197
2334
|
},
|
2335
|
+
{
|
2336
|
+
"marketId": 8,
|
2337
|
+
"marketAccount": "6yCsUoaTU4JVNikkEXfCV7KKDh7FcMY23hcvKk9dqhqf",
|
2338
|
+
"marketCorrelation": false,
|
2339
|
+
"pool": "5MCtcNsF3dxna8ArzMamyciWDV3TBkiAzY1NqLtNiXvw",
|
2340
|
+
"targetCustody": "GcMKm7441Vx3rtUuE4qQzV7tWmv8mHWShZ9CerasWuwc",
|
2341
|
+
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2342
|
+
"side": "long",
|
2343
|
+
"maxLev": 200,
|
2344
|
+
"targetCustodyId": 5,
|
2345
|
+
"collateralCustodyId": 0,
|
2346
|
+
"targetMint": "auduqqUHqZC3DRmZaAtzccTs3NTi1fSYp5rgg4uYwFz",
|
2347
|
+
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
2348
|
+
},
|
2349
|
+
{
|
2350
|
+
"marketId": 9,
|
2351
|
+
"marketAccount": "BnA1TVMsE4jsrdCwo38n6EwpRCkKzVxwVhXE7izmBd8F",
|
2352
|
+
"marketCorrelation": false,
|
2353
|
+
"pool": "5MCtcNsF3dxna8ArzMamyciWDV3TBkiAzY1NqLtNiXvw",
|
2354
|
+
"targetCustody": "GcMKm7441Vx3rtUuE4qQzV7tWmv8mHWShZ9CerasWuwc",
|
2355
|
+
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2356
|
+
"side": "short",
|
2357
|
+
"maxLev": 200,
|
2358
|
+
"targetCustodyId": 5,
|
2359
|
+
"collateralCustodyId": 0,
|
2360
|
+
"targetMint": "auduqqUHqZC3DRmZaAtzccTs3NTi1fSYp5rgg4uYwFz",
|
2361
|
+
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
2362
|
+
},
|
2198
2363
|
{
|
2199
2364
|
"marketId": 10,
|
2200
2365
|
"marketAccount": "9LuTyn29Ro7atJmGfu31F77dcQ3vATT5GovTair6stWF",
|
@@ -3103,6 +3268,17 @@
|
|
3103
3268
|
"pythTicker": "Crypto.USDC/USD",
|
3104
3269
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
3105
3270
|
},
|
3271
|
+
{
|
3272
|
+
"symbol": "TRUMP",
|
3273
|
+
"mintKey": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3274
|
+
"decimals": 6,
|
3275
|
+
"usdPrecision": 4,
|
3276
|
+
"tokenPrecision": 4,
|
3277
|
+
"isStable": false,
|
3278
|
+
"isVirtual": false,
|
3279
|
+
"pythTicker": "Crypto.TRUMP/USD",
|
3280
|
+
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
3281
|
+
},
|
3106
3282
|
{
|
3107
3283
|
"symbol": "FARTCOIN",
|
3108
3284
|
"mintKey": "fartpRHniUMJ2dG3AFkFcmvDHptBSqBbttYwE3hKv5t",
|
@@ -3132,6 +3308,22 @@
|
|
3132
3308
|
"pythTicker": "Crypto.USDC/USD",
|
3133
3309
|
"pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
|
3134
3310
|
},
|
3311
|
+
{
|
3312
|
+
"custodyId": 1,
|
3313
|
+
"custodyAccount": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3314
|
+
"tokenAccount": "DDKaMxvZmgUNHDjWPf12LZrMnWF4gLHFnvRYtK17kUCq",
|
3315
|
+
"symbol": "TRUMP",
|
3316
|
+
"mintKey": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3317
|
+
"decimals": 6,
|
3318
|
+
"usdPrecision": 4,
|
3319
|
+
"tokenPrecision": 4,
|
3320
|
+
"isStable": false,
|
3321
|
+
"isVirtual": false,
|
3322
|
+
"intOracleAddress": "2X5dR335kR9zvcS6XeYAoQ91X2i1eGvzBu2niPW8vFM5",
|
3323
|
+
"extOracleAddress": "9vNb2tQoZ8bB4vzMbQLWViGwNaDJVtct13AGgno1wazp",
|
3324
|
+
"pythTicker": "Crypto.TRUMP/USD",
|
3325
|
+
"pythPriceId": "0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a"
|
3326
|
+
},
|
3135
3327
|
{
|
3136
3328
|
"custodyId": 2,
|
3137
3329
|
"custodyAccount": "EbH7fBbcTojR5P8kPDEFeUnFRGr5SXKWaavqtCgpH9G4",
|
@@ -3150,6 +3342,34 @@
|
|
3150
3342
|
}
|
3151
3343
|
],
|
3152
3344
|
"markets": [
|
3345
|
+
{
|
3346
|
+
"marketId": 0,
|
3347
|
+
"marketAccount": "CZBZsoRS8zyoysWqQoQGQct12srenVvKdqG5cyFhyRJN",
|
3348
|
+
"marketCorrelation": true,
|
3349
|
+
"pool": "GJMj6ZeK8JYvwYNfurMKf6sEYZLkonqvYzXowcS6TL5D",
|
3350
|
+
"targetCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3351
|
+
"collateralCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3352
|
+
"side": "long",
|
3353
|
+
"maxLev": 5,
|
3354
|
+
"targetCustodyId": 1,
|
3355
|
+
"collateralCustodyId": 1,
|
3356
|
+
"targetMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3357
|
+
"collateralMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH"
|
3358
|
+
},
|
3359
|
+
{
|
3360
|
+
"marketId": 1,
|
3361
|
+
"marketAccount": "E2f2k4bMv6g4usjt9zAz43CudykXWGwjG8s6nYtJF8Yy",
|
3362
|
+
"marketCorrelation": false,
|
3363
|
+
"pool": "GJMj6ZeK8JYvwYNfurMKf6sEYZLkonqvYzXowcS6TL5D",
|
3364
|
+
"targetCustody": "2dLnRMbXfMx8DnGb6CbM3BrLv4F78SWLx7uWRTZPTZ1y",
|
3365
|
+
"collateralCustody": "FheNnJ2RmuVCJFvHbhADFHwfQwnCX9nMhdsay1hxSmkv",
|
3366
|
+
"side": "short",
|
3367
|
+
"maxLev": 5,
|
3368
|
+
"targetCustodyId": 1,
|
3369
|
+
"collateralCustodyId": 0,
|
3370
|
+
"targetMint": "trmpE3o2TJpkvszv7hZvFw72ynYYfyoVJXjJajfK5VH",
|
3371
|
+
"collateralMint": "Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"
|
3372
|
+
},
|
3153
3373
|
{
|
3154
3374
|
"marketId": 2,
|
3155
3375
|
"marketAccount": "B1ZSHUD97mU8DPG4LeWx7QcN4wV6KkTKNmv9hXU2Qb95",
|
package/dist/ViewHelper.js
CHANGED
@@ -82,10 +82,10 @@ var ViewHelper = (function () {
|
|
82
82
|
console.log("decode error::", error);
|
83
83
|
}
|
84
84
|
};
|
85
|
-
ViewHelper.prototype.simulateTransaction = function (
|
86
|
-
|
85
|
+
ViewHelper.prototype.simulateTransaction = function (transaction, userPublicKey) {
|
86
|
+
if (userPublicKey === void 0) { userPublicKey = undefined; }
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
87
88
|
var latestBlockhash, messageV0, transaction2;
|
88
|
-
if (userPublicKey === void 0) { userPublicKey = undefined; }
|
89
89
|
return __generator(this, function (_a) {
|
90
90
|
switch (_a.label) {
|
91
91
|
case 0:
|
package/dist/backupOracle.js
CHANGED
@@ -129,10 +129,10 @@ var getBackupOracleInstruction = function (program, poolConfig, backupOracleSecr
|
|
129
129
|
}
|
130
130
|
};
|
131
131
|
exports.getBackupOracleInstruction = getBackupOracleInstruction;
|
132
|
-
function createBackupOracleInstruction(
|
133
|
-
|
132
|
+
function createBackupOracleInstruction(poolAddress, overrideCheck) {
|
133
|
+
if (overrideCheck === void 0) { overrideCheck = false; }
|
134
|
+
return __awaiter(this, void 0, void 0, function () {
|
134
135
|
var backupOracleData, backUpOracleInstruction, error_1;
|
135
|
-
if (overrideCheck === void 0) { overrideCheck = false; }
|
136
136
|
return __generator(this, function (_a) {
|
137
137
|
switch (_a.label) {
|
138
138
|
case 0:
|
package/dist/idl/perpetuals.d.ts
CHANGED
@@ -1520,6 +1520,25 @@ 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
|
+
},
|
1523
1542
|
{
|
1524
1543
|
"name": "setInternalOraclePrice";
|
1525
1544
|
"accounts": [
|
@@ -9704,6 +9723,22 @@ export type Perpetuals = {
|
|
9704
9723
|
];
|
9705
9724
|
};
|
9706
9725
|
},
|
9726
|
+
{
|
9727
|
+
"name": "SetInternalCurrentPriceParams";
|
9728
|
+
"type": {
|
9729
|
+
"kind": "struct";
|
9730
|
+
"fields": [
|
9731
|
+
{
|
9732
|
+
"name": "prices";
|
9733
|
+
"type": {
|
9734
|
+
"vec": {
|
9735
|
+
"defined": "InternalPrice";
|
9736
|
+
};
|
9737
|
+
};
|
9738
|
+
}
|
9739
|
+
];
|
9740
|
+
};
|
9741
|
+
},
|
9707
9742
|
{
|
9708
9743
|
"name": "SetInternalOraclePriceParams";
|
9709
9744
|
"type": {
|
@@ -10593,6 +10628,26 @@ export type Perpetuals = {
|
|
10593
10628
|
];
|
10594
10629
|
};
|
10595
10630
|
},
|
10631
|
+
{
|
10632
|
+
"name": "InternalPrice";
|
10633
|
+
"type": {
|
10634
|
+
"kind": "struct";
|
10635
|
+
"fields": [
|
10636
|
+
{
|
10637
|
+
"name": "price";
|
10638
|
+
"type": "u64";
|
10639
|
+
},
|
10640
|
+
{
|
10641
|
+
"name": "conf";
|
10642
|
+
"type": "u64";
|
10643
|
+
},
|
10644
|
+
{
|
10645
|
+
"name": "publishTime";
|
10646
|
+
"type": "i64";
|
10647
|
+
}
|
10648
|
+
];
|
10649
|
+
};
|
10650
|
+
},
|
10596
10651
|
{
|
10597
10652
|
"name": "BackupOracle";
|
10598
10653
|
"type": {
|
package/dist/idl/perpetuals.js
CHANGED
@@ -1523,6 +1523,25 @@ 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
|
+
},
|
1526
1545
|
{
|
1527
1546
|
"name": "setInternalOraclePrice",
|
1528
1547
|
"accounts": [
|
@@ -9707,6 +9726,22 @@ exports.IDL = {
|
|
9707
9726
|
]
|
9708
9727
|
}
|
9709
9728
|
},
|
9729
|
+
{
|
9730
|
+
"name": "SetInternalCurrentPriceParams",
|
9731
|
+
"type": {
|
9732
|
+
"kind": "struct",
|
9733
|
+
"fields": [
|
9734
|
+
{
|
9735
|
+
"name": "prices",
|
9736
|
+
"type": {
|
9737
|
+
"vec": {
|
9738
|
+
"defined": "InternalPrice"
|
9739
|
+
}
|
9740
|
+
}
|
9741
|
+
}
|
9742
|
+
]
|
9743
|
+
}
|
9744
|
+
},
|
9710
9745
|
{
|
9711
9746
|
"name": "SetInternalOraclePriceParams",
|
9712
9747
|
"type": {
|
@@ -10596,6 +10631,26 @@ exports.IDL = {
|
|
10596
10631
|
]
|
10597
10632
|
}
|
10598
10633
|
},
|
10634
|
+
{
|
10635
|
+
"name": "InternalPrice",
|
10636
|
+
"type": {
|
10637
|
+
"kind": "struct",
|
10638
|
+
"fields": [
|
10639
|
+
{
|
10640
|
+
"name": "price",
|
10641
|
+
"type": "u64"
|
10642
|
+
},
|
10643
|
+
{
|
10644
|
+
"name": "conf",
|
10645
|
+
"type": "u64"
|
10646
|
+
},
|
10647
|
+
{
|
10648
|
+
"name": "publishTime",
|
10649
|
+
"type": "i64"
|
10650
|
+
}
|
10651
|
+
]
|
10652
|
+
}
|
10653
|
+
},
|
10599
10654
|
{
|
10600
10655
|
"name": "BackupOracle",
|
10601
10656
|
"type": {
|