@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 +35 -57
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/lib/node.d.ts +35 -57
- package/package.json +12 -12
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.
|
|
442
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountState>;
|
|
443
443
|
getAssetState(
|
|
444
444
|
params: PartialDeep<GraphQLClient.GetAssetStateParams>
|
|
445
|
-
): Promise<GraphQLClient.
|
|
445
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetAssetState>;
|
|
446
446
|
getFactoryState(
|
|
447
447
|
params: PartialDeep<GraphQLClient.GetFactoryStateParams>
|
|
448
|
-
): Promise<GraphQLClient.
|
|
448
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetFactoryState>;
|
|
449
449
|
getDelegateState(
|
|
450
450
|
params: PartialDeep<GraphQLClient.GetDelegateStateParams>
|
|
451
|
-
): Promise<GraphQLClient.
|
|
451
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetDelegateState>;
|
|
452
452
|
getTokenState(
|
|
453
453
|
params: PartialDeep<GraphQLClient.GetTokenStateParams>
|
|
454
|
-
): Promise<GraphQLClient.
|
|
454
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetTokenState>;
|
|
455
455
|
getEvidenceState(
|
|
456
456
|
params: PartialDeep<GraphQLClient.GetEvidenceStateParams>
|
|
457
|
-
): Promise<GraphQLClient.
|
|
457
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetEvidenceState>;
|
|
458
458
|
getForgeState(
|
|
459
459
|
params: PartialDeep<GraphQLClient.GetForgeStateParams>
|
|
460
|
-
): Promise<GraphQLClient.
|
|
461
|
-
getTx(
|
|
462
|
-
|
|
463
|
-
): Promise<GraphQLClient.
|
|
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.
|
|
473
|
-
getChainInfo(): Promise<GraphQLClient.
|
|
474
|
-
getConfig(
|
|
475
|
-
|
|
476
|
-
): Promise<GraphQLClient.
|
|
477
|
-
|
|
478
|
-
|
|
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.
|
|
475
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListAssetTransactions>;
|
|
484
476
|
listAssets(
|
|
485
477
|
params: PartialDeep<GraphQLClient.ListAssetsParams>
|
|
486
|
-
): Promise<GraphQLClient.
|
|
478
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListAssets>;
|
|
487
479
|
listBlocks(
|
|
488
480
|
params: PartialDeep<GraphQLClient.ListBlocksParams>
|
|
489
|
-
): Promise<GraphQLClient.
|
|
481
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListBlocks>;
|
|
490
482
|
listTopAccounts(
|
|
491
483
|
params: PartialDeep<GraphQLClient.ListTopAccountsParams>
|
|
492
|
-
): Promise<GraphQLClient.
|
|
484
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListTopAccounts>;
|
|
493
485
|
listTransactions(
|
|
494
486
|
params: PartialDeep<GraphQLClient.ListTransactionsParams>
|
|
495
|
-
): Promise<GraphQLClient.
|
|
487
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListTransactions>;
|
|
496
488
|
listTokens(
|
|
497
489
|
params: PartialDeep<GraphQLClient.ListTokensParams>
|
|
498
|
-
): Promise<GraphQLClient.
|
|
490
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListTokens>;
|
|
499
491
|
listFactories(
|
|
500
492
|
params: PartialDeep<GraphQLClient.ListFactoriesParams>
|
|
501
|
-
): Promise<GraphQLClient.
|
|
493
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListFactories>;
|
|
502
494
|
getAccountTokens(
|
|
503
495
|
params: PartialDeep<GraphQLClient.GetAccountTokensParams>
|
|
504
|
-
): Promise<GraphQLClient.
|
|
496
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountTokens>;
|
|
505
497
|
getStakeState(
|
|
506
498
|
params: PartialDeep<GraphQLClient.GetStakeStateParams>
|
|
507
|
-
): Promise<GraphQLClient.
|
|
499
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetStakeState>;
|
|
508
500
|
listStakes(
|
|
509
501
|
params: PartialDeep<GraphQLClient.ListStakesParams>
|
|
510
|
-
): Promise<GraphQLClient.
|
|
502
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListStakes>;
|
|
511
503
|
getRollupState(
|
|
512
504
|
params: PartialDeep<GraphQLClient.GetRollupStateParams>
|
|
513
|
-
): Promise<GraphQLClient.
|
|
505
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupState>;
|
|
514
506
|
listRollups(
|
|
515
507
|
params: PartialDeep<GraphQLClient.ListRollupsParams>
|
|
516
|
-
): Promise<GraphQLClient.
|
|
508
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListRollups>;
|
|
517
509
|
getRollupBlock(
|
|
518
510
|
params: PartialDeep<GraphQLClient.GetRollupBlockParams>
|
|
519
|
-
): Promise<GraphQLClient.
|
|
511
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupBlock>;
|
|
520
512
|
listRollupBlocks(
|
|
521
513
|
params: PartialDeep<GraphQLClient.ListRollupBlocksParams>
|
|
522
|
-
): Promise<GraphQLClient.
|
|
514
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListRollupBlocks>;
|
|
523
515
|
listRollupValidators(
|
|
524
516
|
params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
|
|
525
|
-
): Promise<GraphQLClient.
|
|
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.
|
|
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;
|