@ocap/client 1.18.26 → 1.18.28

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/browser.d.ts CHANGED
@@ -439,112 +439,90 @@ declare class GraphQLClient {
439
439
  ): Promise<GraphQLClient.Transaction>;
440
440
  getAccountState(
441
441
  params: PartialDeep<GraphQLClient.GetAccountStateParams>
442
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>>;
442
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountState>;
443
443
  getAssetState(
444
444
  params: PartialDeep<GraphQLClient.GetAssetStateParams>
445
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAssetState>>;
445
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetAssetState>;
446
446
  getFactoryState(
447
447
  params: PartialDeep<GraphQLClient.GetFactoryStateParams>
448
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetFactoryState>>;
448
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetFactoryState>;
449
449
  getDelegateState(
450
450
  params: PartialDeep<GraphQLClient.GetDelegateStateParams>
451
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetDelegateState>>;
451
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetDelegateState>;
452
452
  getTokenState(
453
453
  params: PartialDeep<GraphQLClient.GetTokenStateParams>
454
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetTokenState>>;
454
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetTokenState>;
455
455
  getEvidenceState(
456
456
  params: PartialDeep<GraphQLClient.GetEvidenceStateParams>
457
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState>>;
457
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetEvidenceState>;
458
458
  getForgeState(
459
459
  params: PartialDeep<GraphQLClient.GetForgeStateParams>
460
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState>>;
461
- getTx(
462
- params: PartialDeep<GraphQLClient.GetTxParams>
463
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetTx>>;
464
- getBlock(
465
- params: PartialDeep<GraphQLClient.GetBlockParams>
466
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetBlock>>;
467
- getBlocks(
468
- params: PartialDeep<GraphQLClient.GetBlocksParams>
469
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetBlocks>>;
460
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetForgeState>;
461
+ getTx(params: PartialDeep<GraphQLClient.GetTxParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetTx>;
462
+ getBlock(params: PartialDeep<GraphQLClient.GetBlockParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetBlock>;
463
+ getBlocks(params: PartialDeep<GraphQLClient.GetBlocksParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetBlocks>;
470
464
  getUnconfirmedTxs(
471
465
  params: PartialDeep<GraphQLClient.GetUnconfirmedTxsParams>
472
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs>>;
473
- getChainInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo>>;
474
- getConfig(
475
- params: PartialDeep<GraphQLClient.GetConfigParams>
476
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetConfig>>;
477
- getNetInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>>;
478
- getNodeInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>>;
479
- getValidatorsInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>>;
480
- getForgeStats(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>>;
466
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetUnconfirmedTxs>;
467
+ getChainInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetChainInfo>;
468
+ getConfig(params: PartialDeep<GraphQLClient.GetConfigParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetConfig>;
469
+ getNetInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetNetInfo>;
470
+ getNodeInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetNodeInfo>;
471
+ getValidatorsInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetValidatorsInfo>;
472
+ getForgeStats(): Promise<GraphQLClient.GraphQLClient.ResponseGetForgeStats>;
481
473
  listAssetTransactions(
482
474
  params: PartialDeep<GraphQLClient.ListAssetTransactionsParams>
483
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>>;
475
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListAssetTransactions>;
484
476
  listAssets(
485
477
  params: PartialDeep<GraphQLClient.ListAssetsParams>
486
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListAssets>>;
478
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListAssets>;
487
479
  listBlocks(
488
480
  params: PartialDeep<GraphQLClient.ListBlocksParams>
489
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListBlocks>>;
481
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListBlocks>;
490
482
  listTopAccounts(
491
483
  params: PartialDeep<GraphQLClient.ListTopAccountsParams>
492
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts>>;
484
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListTopAccounts>;
493
485
  listTransactions(
494
486
  params: PartialDeep<GraphQLClient.ListTransactionsParams>
495
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTransactions>>;
487
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListTransactions>;
496
488
  listTokens(
497
489
  params: PartialDeep<GraphQLClient.ListTokensParams>
498
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTokens>>;
490
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListTokens>;
499
491
  listFactories(
500
492
  params: PartialDeep<GraphQLClient.ListFactoriesParams>
501
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListFactories>>;
493
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListFactories>;
502
494
  getAccountTokens(
503
495
  params: PartialDeep<GraphQLClient.GetAccountTokensParams>
504
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountTokens>>;
496
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountTokens>;
505
497
  getStakeState(
506
498
  params: PartialDeep<GraphQLClient.GetStakeStateParams>
507
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetStakeState>>;
499
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetStakeState>;
508
500
  listStakes(
509
501
  params: PartialDeep<GraphQLClient.ListStakesParams>
510
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListStakes>>;
502
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListStakes>;
511
503
  getRollupState(
512
504
  params: PartialDeep<GraphQLClient.GetRollupStateParams>
513
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupState>>;
505
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupState>;
514
506
  listRollups(
515
507
  params: PartialDeep<GraphQLClient.ListRollupsParams>
516
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollups>>;
508
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListRollups>;
517
509
  getRollupBlock(
518
510
  params: PartialDeep<GraphQLClient.GetRollupBlockParams>
519
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupBlock>>;
511
+ ): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupBlock>;
520
512
  listRollupBlocks(
521
513
  params: PartialDeep<GraphQLClient.ListRollupBlocksParams>
522
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupBlocks>>;
514
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListRollupBlocks>;
523
515
  listRollupValidators(
524
516
  params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
525
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupValidators>>;
526
- search(
527
- params: PartialDeep<GraphQLClient.SearchParams>
528
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseSearch>>;
517
+ ): Promise<GraphQLClient.GraphQLClient.ResponseListRollupValidators>;
518
+ search(params: PartialDeep<GraphQLClient.SearchParams>): Promise<GraphQLClient.GraphQLClient.ResponseSearch>;
529
519
  estimateGas(
530
520
  params: PartialDeep<GraphQLClient.EstimateGasParams>
531
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseEstimateGas>>;
532
- sendTx(
533
- params: PartialDeep<GraphQLClient.SendTxParams>
534
- ): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseSendTx>>;
521
+ ): Promise<GraphQLClient.GraphQLClient.ResponseEstimateGas>;
522
+ sendTx(params: PartialDeep<GraphQLClient.SendTxParams>): Promise<GraphQLClient.GraphQLClient.ResponseSendTx>;
535
523
  }
536
524
 
537
525
  declare namespace GraphQLClient {
538
- interface QueryResult<T> {
539
- then(fn: (result: T) => any): Promise<any>;
540
- catch(fn: (err: Error) => any): Promise<any>;
541
- }
542
-
543
- interface SubscriptionResult<T> {
544
- then(fn: (result: GraphQLClient.Subscription<T>) => any): Promise<any>;
545
- catch(fn: (err: Error) => any): Promise<any>;
546
- }
547
-
548
526
  interface Subscription<T> {
549
527
  on(event: 'data', fn: (data: T) => any): this;
550
528
  on(event: 'error', fn: (err: Error) => void): this;