@ocap/client 1.30.26 → 1.31.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/node.d.ts CHANGED
@@ -430,6 +430,7 @@ signUpdateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.
430
430
  signMintTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>): Promise<GraphQLClient.Transaction>;
431
431
  signBurnTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>): Promise<GraphQLClient.Transaction>;
432
432
  multiSignExchangeV2Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>): Promise<GraphQLClient.Transaction>;
433
+ multiSignAccountMigrateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>): Promise<GraphQLClient.Transaction>;
433
434
  multiSignTransferV3Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>): Promise<GraphQLClient.Transaction>;
434
435
  multiSignAcquireAssetV3Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>): Promise<GraphQLClient.Transaction>;
435
436
  multiSignStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>): Promise<GraphQLClient.Transaction>;
@@ -466,6 +467,9 @@ getNetInfo(): Promise<GraphQLClient.ResponseGetNetInfo>
466
467
  getNodeInfo(): Promise<GraphQLClient.ResponseGetNodeInfo>
467
468
  getValidatorsInfo(): Promise<GraphQLClient.ResponseGetValidatorsInfo>
468
469
  getForgeStats(): Promise<GraphQLClient.ResponseGetForgeStats>
470
+ getLatestCheckpoint(params?: PartialDeep<GraphQLClient.GetLatestCheckpointParams>): Promise<GraphQLClient.ResponseGetLatestCheckpoint>
471
+ getLedgerEntry(params?: PartialDeep<GraphQLClient.GetLedgerEntryParams>): Promise<GraphQLClient.ResponseGetLedgerEntry>
472
+ getMerkleProof(params?: PartialDeep<GraphQLClient.GetMerkleProofParams>): Promise<GraphQLClient.ResponseGetMerkleProof>
469
473
  listAssetTransactions(params?: PartialDeep<GraphQLClient.ListAssetTransactionsParams>): Promise<GraphQLClient.ResponseListAssetTransactions>
470
474
  listAssets(params?: PartialDeep<GraphQLClient.ListAssetsParams>): Promise<GraphQLClient.ResponseListAssets>
471
475
  listBlocks(params?: PartialDeep<GraphQLClient.ListBlocksParams>): Promise<GraphQLClient.ResponseListBlocks>
@@ -1332,6 +1336,7 @@ interface DelegateConfig {
1332
1336
  interface DelegateLimit {
1333
1337
  tokens: GraphQLClient.TokenLimit[];
1334
1338
  assets: GraphQLClient.AssetLimit[];
1339
+ unlimited: boolean;
1335
1340
  }
1336
1341
 
1337
1342
  interface DelegateOp {
@@ -1774,6 +1779,45 @@ interface LeaveRollupTx {
1774
1779
  data: GraphQLClient.Any;
1775
1780
  }
1776
1781
 
1782
+ interface LedgerCheckpoint {
1783
+ height: number;
1784
+ sequence: number;
1785
+ prevSequence: number;
1786
+ txRoot: string;
1787
+ txCount: number;
1788
+ stateRoot: string;
1789
+ timestamp: string;
1790
+ prevCheckpoint: string;
1791
+ proposer: string;
1792
+ hash: string;
1793
+ signature: string;
1794
+ }
1795
+
1796
+ interface LedgerEntry {
1797
+ sequence: number;
1798
+ hash: string;
1799
+ from: string;
1800
+ nonce: number;
1801
+ pk: string;
1802
+ signature: string;
1803
+ txRaw: string;
1804
+ tx: any;
1805
+ txType: string;
1806
+ timestamp: string;
1807
+ chainId: string;
1808
+ entryHash: string;
1809
+ txExtra: any;
1810
+ stateCommitHash: string;
1811
+ finalized: boolean;
1812
+ }
1813
+
1814
+ interface LedgerMerkleProof {
1815
+ index: number;
1816
+ leaf: string;
1817
+ proof: string[];
1818
+ root: string;
1819
+ }
1820
+
1777
1821
  interface MigrateRollupTx {
1778
1822
  rollup: string;
1779
1823
  to: string;
@@ -1804,6 +1848,7 @@ interface Multisig {
1804
1848
  pk: string;
1805
1849
  signature: string;
1806
1850
  delegator: string;
1851
+ extra: string;
1807
1852
  data: GraphQLClient.Any;
1808
1853
  }
1809
1854
 
@@ -1963,6 +2008,22 @@ interface ResponseGetForgeStats {
1963
2008
  forgeStats: GraphQLClient.ForgeStats;
1964
2009
  }
1965
2010
 
2011
+ interface ResponseGetLatestCheckpoint {
2012
+ code: string;
2013
+ checkpoint: GraphQLClient.LedgerCheckpoint;
2014
+ }
2015
+
2016
+ interface ResponseGetLedgerEntry {
2017
+ code: string;
2018
+ entry: GraphQLClient.LedgerEntry;
2019
+ }
2020
+
2021
+ interface ResponseGetMerkleProof {
2022
+ code: string;
2023
+ proof: GraphQLClient.LedgerMerkleProof;
2024
+ checkpoint: GraphQLClient.LedgerCheckpoint;
2025
+ }
2026
+
1966
2027
  interface ResponseGetNetInfo {
1967
2028
  code: string;
1968
2029
  netInfo: GraphQLClient.NetInfo;
@@ -2112,6 +2173,7 @@ interface ResponseSearch {
2112
2173
  interface ResponseSendTx {
2113
2174
  code: string;
2114
2175
  hash: string;
2176
+ warning: GraphQLClient.TxSecurityWarning;
2115
2177
  }
2116
2178
 
2117
2179
  interface ResponseVerifyAccountRisk {
@@ -2329,6 +2391,16 @@ interface TokenLimit {
2329
2391
  lastTx: number;
2330
2392
  decimal: number;
2331
2393
  symbol: string;
2394
+ maxPerTx: string;
2395
+ windowLimit: string;
2396
+ windowSeconds: number;
2397
+ windowStart: number;
2398
+ windowSpent: string;
2399
+ coSignAllowance: string;
2400
+ coSignRequired: boolean;
2401
+ requirePinnedPayee: boolean;
2402
+ notifyBeforeDebit: boolean;
2403
+ notifyLeadSeconds: number;
2332
2404
  }
2333
2405
 
2334
2406
  interface TokenMeta {
@@ -2456,6 +2528,29 @@ interface TxGasConfig {
2456
2528
  stakeLockPeriod: number;
2457
2529
  }
2458
2530
 
2531
+ interface TxGasQuotaTelemetry {
2532
+ loadRatio: number;
2533
+ remainingNormalQuota: number;
2534
+ currentGasMultiplier: number;
2535
+ nextTxEstimatedGas: string;
2536
+ recommendedBackoffMs: number;
2537
+ stakeRequiredFor1x: string;
2538
+ }
2539
+
2540
+ interface TxSecurityWarning {
2541
+ tier: string;
2542
+ code: string;
2543
+ message: string;
2544
+ actor: string;
2545
+ strikeCount: number;
2546
+ warningThreshold: number;
2547
+ throttleThreshold: number;
2548
+ slashThreshold: number;
2549
+ gasStakeQuotaRemaining: number;
2550
+ cooldownUntilMs: number;
2551
+ telemetry: GraphQLClient.TxGasQuotaTelemetry;
2552
+ }
2553
+
2459
2554
  interface TxStakeConfig {
2460
2555
  createToken: string;
2461
2556
  createCreditToken: string;
@@ -2662,6 +2757,19 @@ interface GetConfigParams {
2662
2757
  parsed: boolean;
2663
2758
  }
2664
2759
 
2760
+ interface GetLatestCheckpointParams {
2761
+ height: number;
2762
+ }
2763
+
2764
+ interface GetLedgerEntryParams {
2765
+ hash: string;
2766
+ sequence: number;
2767
+ }
2768
+
2769
+ interface GetMerkleProofParams {
2770
+ sequence: number;
2771
+ }
2772
+
2665
2773
  interface ListAssetTransactionsParams {
2666
2774
  address: string;
2667
2775
  paging: GraphQLClient.PageInput;