@ledgerhq/coin-module-framework 8.5.0 → 9.0.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/CHANGELOG.md +6 -0
- package/lib/api/types.d.ts +40 -30
- package/lib/api/types.d.ts.map +1 -1
- package/lib-es/api/types.d.ts +40 -30
- package/lib-es/api/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/types.ts +40 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ledgerhq/coin-module-framework
|
|
2
2
|
|
|
3
|
+
## 9.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#893](https://github.com/LedgerHQ/coin-modules/pull/893) [`9c2ae60`](https://github.com/LedgerHQ/coin-modules/commit/9c2ae60cd78d21b58af56f5926b3e141f5631b76) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - chore(framework): add `context` parameter to `listFeeOptions`
|
|
8
|
+
|
|
3
9
|
## 8.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/lib/api/types.d.ts
CHANGED
|
@@ -441,10 +441,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
441
441
|
*
|
|
442
442
|
* This must return the same result as {@link getBlockInfo} for the latest block height.
|
|
443
443
|
*
|
|
444
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
444
445
|
* @returns the latest block metadata (height, hash, time)
|
|
445
446
|
* @see getBlockInfo
|
|
446
447
|
* @see getBlock
|
|
447
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
448
448
|
*/
|
|
449
449
|
lastBlock: (context: Context<ConfigType>) => Promise<BlockInfo>;
|
|
450
450
|
/**
|
|
@@ -455,10 +455,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
455
455
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
456
456
|
* in such case.
|
|
457
457
|
*
|
|
458
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
458
459
|
* @param height the block height to query
|
|
459
460
|
* @returns the block metadata (height, hash, time)
|
|
460
461
|
* @throws "not supported" if the blockchain does not support querying historical blocks
|
|
461
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
462
462
|
*/
|
|
463
463
|
getBlockInfo: (context: Context<ConfigType>, height: number) => Promise<BlockInfo>;
|
|
464
464
|
/**
|
|
@@ -471,10 +471,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
471
471
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
472
472
|
* in such case.
|
|
473
473
|
*
|
|
474
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
474
475
|
* @param height the block height to query
|
|
475
476
|
* @returns the complete block with transactions
|
|
476
477
|
* @throws "not supported" if the blockchain does not support querying full blocks
|
|
477
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
478
478
|
*/
|
|
479
479
|
getBlock: (context: Context<ConfigType>, height: number) => Promise<Block>;
|
|
480
480
|
/**
|
|
@@ -489,20 +489,22 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
489
489
|
* This API is optional and may not be supported on all networks: implementations should raise a
|
|
490
490
|
* "not supported" error in such cases.
|
|
491
491
|
*
|
|
492
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
492
493
|
* @param params opaque, network-defined parameters for the read-only call
|
|
493
494
|
* @returns the opaque, network-defined result
|
|
494
495
|
* @throws "not supported" if the network or implementation does not support contract calls
|
|
495
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
496
496
|
*/
|
|
497
497
|
call: (context: Context<ConfigType>, params: CallParams) => Promise<CallResult>;
|
|
498
498
|
/**
|
|
499
499
|
* Get the list of validators available on the network.
|
|
500
|
-
*
|
|
500
|
+
*
|
|
501
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
502
|
+
* @param options optional parameters
|
|
503
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
501
504
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
502
505
|
* a date or transaction hash).
|
|
503
506
|
* The concrete implementation may return all validators in a single page when the underlying SDK
|
|
504
507
|
* does not provide cursor-based pagination.
|
|
505
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
506
508
|
*/
|
|
507
509
|
getValidators: (context: Context<ConfigType>, options?: {
|
|
508
510
|
cursor?: Cursor;
|
|
@@ -515,12 +517,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
515
517
|
*
|
|
516
518
|
* If account is not found, implementation must return an empty balance.
|
|
517
519
|
*
|
|
520
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
518
521
|
* @param address the account address
|
|
519
522
|
* @param options optional parameters to filter/restrict the returned balances (see {@link BalanceOptions})
|
|
520
523
|
* @returns an array of balances for all assets held by the address
|
|
521
524
|
* @see getStakes
|
|
522
525
|
* @see listOperations
|
|
523
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
524
526
|
*/
|
|
525
527
|
getBalance: (context: Context<ConfigType>, address: string, options?: BalanceOptions) => Promise<Balance[]>;
|
|
526
528
|
/**
|
|
@@ -528,11 +530,11 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
528
530
|
*
|
|
529
531
|
* If account is not found, implementation must return an empty result.
|
|
530
532
|
*
|
|
533
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
531
534
|
* @param address the owner account address
|
|
532
535
|
* @param options see {@link ListOperationsOptions}
|
|
533
536
|
* @returns a page of operations
|
|
534
537
|
* @see getBalance
|
|
535
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
536
538
|
*/
|
|
537
539
|
listOperations: (context: Context<ConfigType>, address: string, options: ListOperationsOptions) => Promise<Page<Operation>>;
|
|
538
540
|
/**
|
|
@@ -546,13 +548,14 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
546
548
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
547
549
|
* optional: implementation should raise a "not supported" error in such case.
|
|
548
550
|
*
|
|
551
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
549
552
|
* @param address the owner account address
|
|
550
|
-
* @param
|
|
553
|
+
* @param options optional parameters
|
|
554
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
551
555
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
552
556
|
* a date or transaction hash)
|
|
553
557
|
* @see getBalance
|
|
554
558
|
* @see getRewards
|
|
555
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
556
559
|
*/
|
|
557
560
|
getStakes: (context: Context<ConfigType>, address: string, options?: StakesOptions) => Promise<Page<Stake>>;
|
|
558
561
|
/**
|
|
@@ -571,13 +574,14 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
571
574
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
572
575
|
* optional: implementation should raise a "not supported" error in such case.
|
|
573
576
|
*
|
|
577
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
574
578
|
* @param address the account address (see doc, exact scope of the request is implementation dependent)
|
|
575
|
-
* @param
|
|
579
|
+
* @param options optional parameters
|
|
580
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
576
581
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
577
582
|
* a date or transaction hash)
|
|
578
583
|
* @see getBalance
|
|
579
584
|
* @see getStakes
|
|
580
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
581
585
|
*/
|
|
582
586
|
getRewards: (context: Context<ConfigType>, address: string, options?: {
|
|
583
587
|
cursor?: Cursor;
|
|
@@ -589,10 +593,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
589
593
|
* This API is optional: implementations that expose no extra metadata simply omit it, and callers
|
|
590
594
|
* must treat an absent method as `{ type: 'none' }`.
|
|
591
595
|
*
|
|
596
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
592
597
|
* @param address the account address
|
|
593
598
|
* @returns the network-specific account metadata (see {@link AccountInfo})
|
|
594
599
|
* @see getBalance
|
|
595
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
596
600
|
*/
|
|
597
601
|
getAccountInfo?: (context: Context<ConfigType>, address: string) => Promise<AccountInfo>;
|
|
598
602
|
/**
|
|
@@ -604,9 +608,9 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
604
608
|
* Implementations without an indexing enrollment backend must raise a "not supported" error.
|
|
605
609
|
*
|
|
606
610
|
* @see https://ledgerhq.atlassian.net/wiki/spaces/CF/pages/7282851852/Coin+modules+-+ADR-046+-+Register+method+account+enrollment+for+indexing
|
|
611
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
607
612
|
* @param address the account identifier to register (address for most families; Aleo view key when applicable)
|
|
608
613
|
* @returns the handle assigned by the selected indexing backend
|
|
609
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
610
614
|
*/
|
|
611
615
|
register: (context: Context<ConfigType>, address: string) => Promise<Registration>;
|
|
612
616
|
/**
|
|
@@ -615,11 +619,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
615
619
|
* The crafted transaction is ready to be signed by the hardware wallet and then combined
|
|
616
620
|
* with the signature using {@link combine}.
|
|
617
621
|
*
|
|
622
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
618
623
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
619
|
-
* @param
|
|
624
|
+
* @param options optional parameters
|
|
625
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
620
626
|
* @returns the crafted transaction with optional blockchain-specific details
|
|
621
627
|
* @see craftRawTransaction
|
|
622
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
623
628
|
*/
|
|
624
629
|
craftTransaction: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, options?: {
|
|
625
630
|
customFees?: FeeEstimation;
|
|
@@ -630,6 +635,7 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
630
635
|
* This is an alternative to {@link craftTransaction} for cases where the transaction
|
|
631
636
|
* is already built externally (e.g., by a dApp or smart contract interaction).
|
|
632
637
|
*
|
|
638
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
633
639
|
* @param transaction the raw transaction to wrap/prepare for signing
|
|
634
640
|
* @param sender the sender address
|
|
635
641
|
* @param publicKey the sender's public key
|
|
@@ -637,7 +643,6 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
637
643
|
* @returns the crafted transaction ready for signing
|
|
638
644
|
* @throws "not supported" if the blockchain does not support raw transaction crafting
|
|
639
645
|
* @see craftTransaction
|
|
640
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
641
646
|
*/
|
|
642
647
|
craftRawTransaction: (context: Context<ConfigType>, transaction: string, sender: string, publicKey: string, sequence: bigint) => Promise<CraftedTransaction>;
|
|
643
648
|
/**
|
|
@@ -645,12 +650,13 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
645
650
|
*
|
|
646
651
|
* The estimation should be based on current network conditions (e.g., gas price, fee rate).
|
|
647
652
|
*
|
|
653
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
648
654
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
649
|
-
* @param
|
|
655
|
+
* @param options optional parameters
|
|
656
|
+
* @param options.customFeesParameters optional blockchain-specific parameters to customize the fee estimation
|
|
650
657
|
* (e.g., gas limit, priority fee)
|
|
651
|
-
* @param options optional selection
|
|
658
|
+
* @param options.feeOption optional fee option selection; see {@link EstimateFeesOptions}
|
|
652
659
|
* @returns the estimated fees and optional parameters that can be passed to {@link craftTransaction}
|
|
653
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
654
660
|
*/
|
|
655
661
|
estimateFees: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, options?: {
|
|
656
662
|
customFeesParameters?: FeeEstimation['parameters'];
|
|
@@ -664,19 +670,21 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
664
670
|
* Optional: omitting this method implicitly exposes a single `standard` option; when implemented it
|
|
665
671
|
* must return the full list including `standard` (e.g. `[sponsored, standard]` or `[standard]`).
|
|
666
672
|
*
|
|
673
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
667
674
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
668
675
|
* @returns the available fee options (metadata only)
|
|
669
676
|
*/
|
|
670
|
-
listFeeOptions?: (transactionIntent: TransactionIntent<MemoType, TxDataType>) => Promise<FeeOptionMeta[]>;
|
|
677
|
+
listFeeOptions?: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>) => Promise<FeeOptionMeta[]>;
|
|
671
678
|
/**
|
|
672
679
|
* Combine a crafted transaction with a signature to produce a signed transaction ready for broadcast.
|
|
673
680
|
*
|
|
681
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
674
682
|
* @param tx the unsigned/crafted transaction (as returned by {@link craftTransaction})
|
|
675
683
|
* @param signature ordered list of signatures produced by the hardware wallet — root intent first,
|
|
676
684
|
* nested calls after. Single-signature blockchains must throw if `signature.length !== 1`.
|
|
677
|
-
* @param
|
|
685
|
+
* @param options optional parameters
|
|
686
|
+
* @param options.pubkey the public key used to sign (required for some blockchains to verify/embed in the transaction)
|
|
678
687
|
* @returns the signed transaction ready for {@link broadcast}
|
|
679
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
680
688
|
*/
|
|
681
689
|
combine: (context: Context<ConfigType>, tx: string, signature: string[], options?: {
|
|
682
690
|
pubkey?: string;
|
|
@@ -684,11 +692,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
684
692
|
/**
|
|
685
693
|
* Broadcast a signed transaction to the network.
|
|
686
694
|
*
|
|
695
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
687
696
|
* @param tx the signed transaction (encoding is blockchain dependent, typically hex-encoded)
|
|
688
|
-
* @param
|
|
697
|
+
* @param options optional parameters
|
|
698
|
+
* @param options.broadcastConfig optional configuration for the broadcast (e.g., retry settings)
|
|
689
699
|
* @returns the transaction hash/digest once successfully submitted to the network
|
|
690
700
|
* @throws if the transaction is rejected by the network (e.g., invalid signature, insufficient funds)
|
|
691
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
692
701
|
*/
|
|
693
702
|
broadcast: (context: Context<ConfigType>, tx: string, options?: {
|
|
694
703
|
broadcastConfig?: BroadcastConfig;
|
|
@@ -696,11 +705,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
696
705
|
/**
|
|
697
706
|
* Validate a transaction intent.
|
|
698
707
|
*
|
|
708
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
699
709
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
700
710
|
* @param balances current balances of the intent sender
|
|
701
|
-
* @param
|
|
711
|
+
* @param options optional parameters
|
|
712
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
702
713
|
* @returns additional values the intent has been validated with, and optional errors/warnings
|
|
703
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
704
714
|
*/
|
|
705
715
|
validateIntent: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, balances: Balance[], options?: {
|
|
706
716
|
customFees?: FeeEstimation;
|
|
@@ -708,27 +718,27 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
708
718
|
/**
|
|
709
719
|
* Get the next sequence number (nonce) for an address
|
|
710
720
|
*
|
|
721
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
711
722
|
* @param address the account address
|
|
712
723
|
* @returns the next usable sequence number
|
|
713
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
714
724
|
*/
|
|
715
725
|
getNextSequence: (context: Context<ConfigType>, address: string) => Promise<bigint>;
|
|
716
726
|
/**
|
|
717
727
|
* Validate whether an address is well-formed for the blockchain.
|
|
718
728
|
*
|
|
729
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
719
730
|
* @param address the address to validate
|
|
720
731
|
* @param parameters currency-specific validation parameters
|
|
721
732
|
* @returns `true` if the address is valid, `false` otherwise
|
|
722
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
723
733
|
*/
|
|
724
734
|
validateAddress: (context: Context<ConfigType>, address: string, parameters: Partial<AddressValidationCurrencyParameters>) => Promise<boolean>;
|
|
725
735
|
/**
|
|
726
736
|
* Get a blockchain specific payload. For Ethereum, it would be a calldata,
|
|
727
737
|
* for Solana, it would be instructions, and so on
|
|
728
738
|
*
|
|
739
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
729
740
|
* @param intent transaction intent
|
|
730
741
|
* @returns blockchain-specific {@link TxData} for this module
|
|
731
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
732
742
|
*/
|
|
733
743
|
craftTransactionData: (context: Context<ConfigType>, intent: TransactionIntent<MemoType, TxDataType>) => TxDataType;
|
|
734
744
|
};
|
package/lib/api/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAGxD,MAAM,MAAM,eAAe,GAAG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AAE,aAAa,CAAA;KAAE,KACrC,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAEnC;;;;;;OAMG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAEnF;;;;;;;OAOG;IACH,eAAe,EAAE,CACf,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAC5B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,OAAO,CAAC,mCAAmC,CAAC,KACrD,OAAO,CAAC,OAAO,CAAC,CAAA;IAErB;;;;;;;OAOG;IACH,oBAAoB,EAAE,CACpB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAC5B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,KAC5C,UAAU,CAAA;CAChB,CAAA"}
|
package/lib-es/api/types.d.ts
CHANGED
|
@@ -441,10 +441,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
441
441
|
*
|
|
442
442
|
* This must return the same result as {@link getBlockInfo} for the latest block height.
|
|
443
443
|
*
|
|
444
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
444
445
|
* @returns the latest block metadata (height, hash, time)
|
|
445
446
|
* @see getBlockInfo
|
|
446
447
|
* @see getBlock
|
|
447
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
448
448
|
*/
|
|
449
449
|
lastBlock: (context: Context<ConfigType>) => Promise<BlockInfo>;
|
|
450
450
|
/**
|
|
@@ -455,10 +455,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
455
455
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
456
456
|
* in such case.
|
|
457
457
|
*
|
|
458
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
458
459
|
* @param height the block height to query
|
|
459
460
|
* @returns the block metadata (height, hash, time)
|
|
460
461
|
* @throws "not supported" if the blockchain does not support querying historical blocks
|
|
461
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
462
462
|
*/
|
|
463
463
|
getBlockInfo: (context: Context<ConfigType>, height: number) => Promise<BlockInfo>;
|
|
464
464
|
/**
|
|
@@ -471,10 +471,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
471
471
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
472
472
|
* in such case.
|
|
473
473
|
*
|
|
474
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
474
475
|
* @param height the block height to query
|
|
475
476
|
* @returns the complete block with transactions
|
|
476
477
|
* @throws "not supported" if the blockchain does not support querying full blocks
|
|
477
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
478
478
|
*/
|
|
479
479
|
getBlock: (context: Context<ConfigType>, height: number) => Promise<Block>;
|
|
480
480
|
/**
|
|
@@ -489,20 +489,22 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
489
489
|
* This API is optional and may not be supported on all networks: implementations should raise a
|
|
490
490
|
* "not supported" error in such cases.
|
|
491
491
|
*
|
|
492
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
492
493
|
* @param params opaque, network-defined parameters for the read-only call
|
|
493
494
|
* @returns the opaque, network-defined result
|
|
494
495
|
* @throws "not supported" if the network or implementation does not support contract calls
|
|
495
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
496
496
|
*/
|
|
497
497
|
call: (context: Context<ConfigType>, params: CallParams) => Promise<CallResult>;
|
|
498
498
|
/**
|
|
499
499
|
* Get the list of validators available on the network.
|
|
500
|
-
*
|
|
500
|
+
*
|
|
501
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
502
|
+
* @param options optional parameters
|
|
503
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
501
504
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
502
505
|
* a date or transaction hash).
|
|
503
506
|
* The concrete implementation may return all validators in a single page when the underlying SDK
|
|
504
507
|
* does not provide cursor-based pagination.
|
|
505
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
506
508
|
*/
|
|
507
509
|
getValidators: (context: Context<ConfigType>, options?: {
|
|
508
510
|
cursor?: Cursor;
|
|
@@ -515,12 +517,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
515
517
|
*
|
|
516
518
|
* If account is not found, implementation must return an empty balance.
|
|
517
519
|
*
|
|
520
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
518
521
|
* @param address the account address
|
|
519
522
|
* @param options optional parameters to filter/restrict the returned balances (see {@link BalanceOptions})
|
|
520
523
|
* @returns an array of balances for all assets held by the address
|
|
521
524
|
* @see getStakes
|
|
522
525
|
* @see listOperations
|
|
523
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
524
526
|
*/
|
|
525
527
|
getBalance: (context: Context<ConfigType>, address: string, options?: BalanceOptions) => Promise<Balance[]>;
|
|
526
528
|
/**
|
|
@@ -528,11 +530,11 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
528
530
|
*
|
|
529
531
|
* If account is not found, implementation must return an empty result.
|
|
530
532
|
*
|
|
533
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
531
534
|
* @param address the owner account address
|
|
532
535
|
* @param options see {@link ListOperationsOptions}
|
|
533
536
|
* @returns a page of operations
|
|
534
537
|
* @see getBalance
|
|
535
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
536
538
|
*/
|
|
537
539
|
listOperations: (context: Context<ConfigType>, address: string, options: ListOperationsOptions) => Promise<Page<Operation>>;
|
|
538
540
|
/**
|
|
@@ -546,13 +548,14 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
546
548
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
547
549
|
* optional: implementation should raise a "not supported" error in such case.
|
|
548
550
|
*
|
|
551
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
549
552
|
* @param address the owner account address
|
|
550
|
-
* @param
|
|
553
|
+
* @param options optional parameters
|
|
554
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
551
555
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
552
556
|
* a date or transaction hash)
|
|
553
557
|
* @see getBalance
|
|
554
558
|
* @see getRewards
|
|
555
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
556
559
|
*/
|
|
557
560
|
getStakes: (context: Context<ConfigType>, address: string, options?: StakesOptions) => Promise<Page<Stake>>;
|
|
558
561
|
/**
|
|
@@ -571,13 +574,14 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
571
574
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
572
575
|
* optional: implementation should raise a "not supported" error in such case.
|
|
573
576
|
*
|
|
577
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
574
578
|
* @param address the account address (see doc, exact scope of the request is implementation dependent)
|
|
575
|
-
* @param
|
|
579
|
+
* @param options optional parameters
|
|
580
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
576
581
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
577
582
|
* a date or transaction hash)
|
|
578
583
|
* @see getBalance
|
|
579
584
|
* @see getStakes
|
|
580
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
581
585
|
*/
|
|
582
586
|
getRewards: (context: Context<ConfigType>, address: string, options?: {
|
|
583
587
|
cursor?: Cursor;
|
|
@@ -589,10 +593,10 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
589
593
|
* This API is optional: implementations that expose no extra metadata simply omit it, and callers
|
|
590
594
|
* must treat an absent method as `{ type: 'none' }`.
|
|
591
595
|
*
|
|
596
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
592
597
|
* @param address the account address
|
|
593
598
|
* @returns the network-specific account metadata (see {@link AccountInfo})
|
|
594
599
|
* @see getBalance
|
|
595
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
596
600
|
*/
|
|
597
601
|
getAccountInfo?: (context: Context<ConfigType>, address: string) => Promise<AccountInfo>;
|
|
598
602
|
/**
|
|
@@ -604,9 +608,9 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
604
608
|
* Implementations without an indexing enrollment backend must raise a "not supported" error.
|
|
605
609
|
*
|
|
606
610
|
* @see https://ledgerhq.atlassian.net/wiki/spaces/CF/pages/7282851852/Coin+modules+-+ADR-046+-+Register+method+account+enrollment+for+indexing
|
|
611
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
607
612
|
* @param address the account identifier to register (address for most families; Aleo view key when applicable)
|
|
608
613
|
* @returns the handle assigned by the selected indexing backend
|
|
609
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
610
614
|
*/
|
|
611
615
|
register: (context: Context<ConfigType>, address: string) => Promise<Registration>;
|
|
612
616
|
/**
|
|
@@ -615,11 +619,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
615
619
|
* The crafted transaction is ready to be signed by the hardware wallet and then combined
|
|
616
620
|
* with the signature using {@link combine}.
|
|
617
621
|
*
|
|
622
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
618
623
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
619
|
-
* @param
|
|
624
|
+
* @param options optional parameters
|
|
625
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
620
626
|
* @returns the crafted transaction with optional blockchain-specific details
|
|
621
627
|
* @see craftRawTransaction
|
|
622
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
623
628
|
*/
|
|
624
629
|
craftTransaction: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, options?: {
|
|
625
630
|
customFees?: FeeEstimation;
|
|
@@ -630,6 +635,7 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
630
635
|
* This is an alternative to {@link craftTransaction} for cases where the transaction
|
|
631
636
|
* is already built externally (e.g., by a dApp or smart contract interaction).
|
|
632
637
|
*
|
|
638
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
633
639
|
* @param transaction the raw transaction to wrap/prepare for signing
|
|
634
640
|
* @param sender the sender address
|
|
635
641
|
* @param publicKey the sender's public key
|
|
@@ -637,7 +643,6 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
637
643
|
* @returns the crafted transaction ready for signing
|
|
638
644
|
* @throws "not supported" if the blockchain does not support raw transaction crafting
|
|
639
645
|
* @see craftTransaction
|
|
640
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
641
646
|
*/
|
|
642
647
|
craftRawTransaction: (context: Context<ConfigType>, transaction: string, sender: string, publicKey: string, sequence: bigint) => Promise<CraftedTransaction>;
|
|
643
648
|
/**
|
|
@@ -645,12 +650,13 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
645
650
|
*
|
|
646
651
|
* The estimation should be based on current network conditions (e.g., gas price, fee rate).
|
|
647
652
|
*
|
|
653
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
648
654
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
649
|
-
* @param
|
|
655
|
+
* @param options optional parameters
|
|
656
|
+
* @param options.customFeesParameters optional blockchain-specific parameters to customize the fee estimation
|
|
650
657
|
* (e.g., gas limit, priority fee)
|
|
651
|
-
* @param options optional selection
|
|
658
|
+
* @param options.feeOption optional fee option selection; see {@link EstimateFeesOptions}
|
|
652
659
|
* @returns the estimated fees and optional parameters that can be passed to {@link craftTransaction}
|
|
653
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
654
660
|
*/
|
|
655
661
|
estimateFees: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, options?: {
|
|
656
662
|
customFeesParameters?: FeeEstimation['parameters'];
|
|
@@ -664,19 +670,21 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
664
670
|
* Optional: omitting this method implicitly exposes a single `standard` option; when implemented it
|
|
665
671
|
* must return the full list including `standard` (e.g. `[sponsored, standard]` or `[standard]`).
|
|
666
672
|
*
|
|
673
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
667
674
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
668
675
|
* @returns the available fee options (metadata only)
|
|
669
676
|
*/
|
|
670
|
-
listFeeOptions?: (transactionIntent: TransactionIntent<MemoType, TxDataType>) => Promise<FeeOptionMeta[]>;
|
|
677
|
+
listFeeOptions?: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>) => Promise<FeeOptionMeta[]>;
|
|
671
678
|
/**
|
|
672
679
|
* Combine a crafted transaction with a signature to produce a signed transaction ready for broadcast.
|
|
673
680
|
*
|
|
681
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
674
682
|
* @param tx the unsigned/crafted transaction (as returned by {@link craftTransaction})
|
|
675
683
|
* @param signature ordered list of signatures produced by the hardware wallet — root intent first,
|
|
676
684
|
* nested calls after. Single-signature blockchains must throw if `signature.length !== 1`.
|
|
677
|
-
* @param
|
|
685
|
+
* @param options optional parameters
|
|
686
|
+
* @param options.pubkey the public key used to sign (required for some blockchains to verify/embed in the transaction)
|
|
678
687
|
* @returns the signed transaction ready for {@link broadcast}
|
|
679
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
680
688
|
*/
|
|
681
689
|
combine: (context: Context<ConfigType>, tx: string, signature: string[], options?: {
|
|
682
690
|
pubkey?: string;
|
|
@@ -684,11 +692,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
684
692
|
/**
|
|
685
693
|
* Broadcast a signed transaction to the network.
|
|
686
694
|
*
|
|
695
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
687
696
|
* @param tx the signed transaction (encoding is blockchain dependent, typically hex-encoded)
|
|
688
|
-
* @param
|
|
697
|
+
* @param options optional parameters
|
|
698
|
+
* @param options.broadcastConfig optional configuration for the broadcast (e.g., retry settings)
|
|
689
699
|
* @returns the transaction hash/digest once successfully submitted to the network
|
|
690
700
|
* @throws if the transaction is rejected by the network (e.g., invalid signature, insufficient funds)
|
|
691
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
692
701
|
*/
|
|
693
702
|
broadcast: (context: Context<ConfigType>, tx: string, options?: {
|
|
694
703
|
broadcastConfig?: BroadcastConfig;
|
|
@@ -696,11 +705,12 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
696
705
|
/**
|
|
697
706
|
* Validate a transaction intent.
|
|
698
707
|
*
|
|
708
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
699
709
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
700
710
|
* @param balances current balances of the intent sender
|
|
701
|
-
* @param
|
|
711
|
+
* @param options optional parameters
|
|
712
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
702
713
|
* @returns additional values the intent has been validated with, and optional errors/warnings
|
|
703
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
704
714
|
*/
|
|
705
715
|
validateIntent: (context: Context<ConfigType>, transactionIntent: TransactionIntent<MemoType, TxDataType>, balances: Balance[], options?: {
|
|
706
716
|
customFees?: FeeEstimation;
|
|
@@ -708,27 +718,27 @@ export type CoinModuleApi<ConfigType extends CurrencyConfig, MemoType extends Me
|
|
|
708
718
|
/**
|
|
709
719
|
* Get the next sequence number (nonce) for an address
|
|
710
720
|
*
|
|
721
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
711
722
|
* @param address the account address
|
|
712
723
|
* @returns the next usable sequence number
|
|
713
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
714
724
|
*/
|
|
715
725
|
getNextSequence: (context: Context<ConfigType>, address: string) => Promise<bigint>;
|
|
716
726
|
/**
|
|
717
727
|
* Validate whether an address is well-formed for the blockchain.
|
|
718
728
|
*
|
|
729
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
719
730
|
* @param address the address to validate
|
|
720
731
|
* @param parameters currency-specific validation parameters
|
|
721
732
|
* @returns `true` if the address is valid, `false` otherwise
|
|
722
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
723
733
|
*/
|
|
724
734
|
validateAddress: (context: Context<ConfigType>, address: string, parameters: Partial<AddressValidationCurrencyParameters>) => Promise<boolean>;
|
|
725
735
|
/**
|
|
726
736
|
* Get a blockchain specific payload. For Ethereum, it would be a calldata,
|
|
727
737
|
* for Solana, it would be instructions, and so on
|
|
728
738
|
*
|
|
739
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
729
740
|
* @param intent transaction intent
|
|
730
741
|
* @returns blockchain-specific {@link TxData} for this module
|
|
731
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
732
742
|
*/
|
|
733
743
|
craftTransactionData: (context: Context<ConfigType>, intent: TransactionIntent<MemoType, TxDataType>) => TxDataType;
|
|
734
744
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAGxD,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAC3B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAE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K,OAAO,CAAC,MAAM,CAAC,CAAA;IAEnF;;;;;;;OAOG;IACH,eAAe,EAAE,CACf,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAC5B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,OAAO,CAAC,mCAAmC,CAAC,KACrD,OAAO,CAAC,OAAO,CAAC,CAAA;IAErB;;;;;;;OAOG;IACH,oBAAoB,EAAE,CACpB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAC5B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,KAC5C,UAAU,CAAA;CAChB,CAAA"}
|
package/package.json
CHANGED
package/src/api/types.ts
CHANGED
|
@@ -579,10 +579,10 @@ export type CoinModuleApi<
|
|
|
579
579
|
*
|
|
580
580
|
* This must return the same result as {@link getBlockInfo} for the latest block height.
|
|
581
581
|
*
|
|
582
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
582
583
|
* @returns the latest block metadata (height, hash, time)
|
|
583
584
|
* @see getBlockInfo
|
|
584
585
|
* @see getBlock
|
|
585
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
586
586
|
*/
|
|
587
587
|
lastBlock: (context: Context<ConfigType>) => Promise<BlockInfo>
|
|
588
588
|
|
|
@@ -594,10 +594,10 @@ export type CoinModuleApi<
|
|
|
594
594
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
595
595
|
* in such case.
|
|
596
596
|
*
|
|
597
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
597
598
|
* @param height the block height to query
|
|
598
599
|
* @returns the block metadata (height, hash, time)
|
|
599
600
|
* @throws "not supported" if the blockchain does not support querying historical blocks
|
|
600
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
601
601
|
*/
|
|
602
602
|
getBlockInfo: (context: Context<ConfigType>, height: number) => Promise<BlockInfo>
|
|
603
603
|
|
|
@@ -611,10 +611,10 @@ export type CoinModuleApi<
|
|
|
611
611
|
* This API is optional and may not be supported on all networks: implementation should raise a "not supported" error
|
|
612
612
|
* in such case.
|
|
613
613
|
*
|
|
614
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
614
615
|
* @param height the block height to query
|
|
615
616
|
* @returns the complete block with transactions
|
|
616
617
|
* @throws "not supported" if the blockchain does not support querying full blocks
|
|
617
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
618
618
|
*/
|
|
619
619
|
getBlock: (context: Context<ConfigType>, height: number) => Promise<Block>
|
|
620
620
|
|
|
@@ -630,21 +630,23 @@ export type CoinModuleApi<
|
|
|
630
630
|
* This API is optional and may not be supported on all networks: implementations should raise a
|
|
631
631
|
* "not supported" error in such cases.
|
|
632
632
|
*
|
|
633
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
633
634
|
* @param params opaque, network-defined parameters for the read-only call
|
|
634
635
|
* @returns the opaque, network-defined result
|
|
635
636
|
* @throws "not supported" if the network or implementation does not support contract calls
|
|
636
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
637
637
|
*/
|
|
638
638
|
call: (context: Context<ConfigType>, params: CallParams) => Promise<CallResult>
|
|
639
639
|
|
|
640
640
|
/**
|
|
641
641
|
* Get the list of validators available on the network.
|
|
642
|
-
*
|
|
642
|
+
*
|
|
643
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
644
|
+
* @param options optional parameters
|
|
645
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
643
646
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
644
647
|
* a date or transaction hash).
|
|
645
648
|
* The concrete implementation may return all validators in a single page when the underlying SDK
|
|
646
649
|
* does not provide cursor-based pagination.
|
|
647
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
648
650
|
*/
|
|
649
651
|
getValidators: (
|
|
650
652
|
context: Context<ConfigType>,
|
|
@@ -661,12 +663,12 @@ export type CoinModuleApi<
|
|
|
661
663
|
*
|
|
662
664
|
* If account is not found, implementation must return an empty balance.
|
|
663
665
|
*
|
|
666
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
664
667
|
* @param address the account address
|
|
665
668
|
* @param options optional parameters to filter/restrict the returned balances (see {@link BalanceOptions})
|
|
666
669
|
* @returns an array of balances for all assets held by the address
|
|
667
670
|
* @see getStakes
|
|
668
671
|
* @see listOperations
|
|
669
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
670
672
|
*/
|
|
671
673
|
getBalance: (
|
|
672
674
|
context: Context<ConfigType>,
|
|
@@ -679,11 +681,11 @@ export type CoinModuleApi<
|
|
|
679
681
|
*
|
|
680
682
|
* If account is not found, implementation must return an empty result.
|
|
681
683
|
*
|
|
684
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
682
685
|
* @param address the owner account address
|
|
683
686
|
* @param options see {@link ListOperationsOptions}
|
|
684
687
|
* @returns a page of operations
|
|
685
688
|
* @see getBalance
|
|
686
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
687
689
|
*/
|
|
688
690
|
listOperations: (
|
|
689
691
|
context: Context<ConfigType>,
|
|
@@ -702,13 +704,14 @@ export type CoinModuleApi<
|
|
|
702
704
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
703
705
|
* optional: implementation should raise a "not supported" error in such case.
|
|
704
706
|
*
|
|
707
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
705
708
|
* @param address the owner account address
|
|
706
|
-
* @param
|
|
709
|
+
* @param options optional parameters
|
|
710
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
707
711
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
708
712
|
* a date or transaction hash)
|
|
709
713
|
* @see getBalance
|
|
710
714
|
* @see getRewards
|
|
711
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
712
715
|
*/
|
|
713
716
|
getStakes: (
|
|
714
717
|
context: Context<ConfigType>,
|
|
@@ -732,13 +735,14 @@ export type CoinModuleApi<
|
|
|
732
735
|
* Since this API can make no sense/be complex to implement/require too many RPC calls on some blockchains, it is
|
|
733
736
|
* optional: implementation should raise a "not supported" error in such case.
|
|
734
737
|
*
|
|
738
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
735
739
|
* @param address the account address (see doc, exact scope of the request is implementation dependent)
|
|
736
|
-
* @param
|
|
740
|
+
* @param options optional parameters
|
|
741
|
+
* @param options.cursor a pagination cursor to resume listing (the implementation must guarantee the cursor is not volatile,
|
|
737
742
|
* i.e. it can be used long after the last request and still provide consistent results - for instance,
|
|
738
743
|
* a date or transaction hash)
|
|
739
744
|
* @see getBalance
|
|
740
745
|
* @see getStakes
|
|
741
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
742
746
|
*/
|
|
743
747
|
getRewards: (
|
|
744
748
|
context: Context<ConfigType>,
|
|
@@ -753,10 +757,10 @@ export type CoinModuleApi<
|
|
|
753
757
|
* This API is optional: implementations that expose no extra metadata simply omit it, and callers
|
|
754
758
|
* must treat an absent method as `{ type: 'none' }`.
|
|
755
759
|
*
|
|
760
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
756
761
|
* @param address the account address
|
|
757
762
|
* @returns the network-specific account metadata (see {@link AccountInfo})
|
|
758
763
|
* @see getBalance
|
|
759
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
760
764
|
*/
|
|
761
765
|
getAccountInfo?: (context: Context<ConfigType>, address: string) => Promise<AccountInfo>
|
|
762
766
|
|
|
@@ -769,9 +773,9 @@ export type CoinModuleApi<
|
|
|
769
773
|
* Implementations without an indexing enrollment backend must raise a "not supported" error.
|
|
770
774
|
*
|
|
771
775
|
* @see https://ledgerhq.atlassian.net/wiki/spaces/CF/pages/7282851852/Coin+modules+-+ADR-046+-+Register+method+account+enrollment+for+indexing
|
|
776
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
772
777
|
* @param address the account identifier to register (address for most families; Aleo view key when applicable)
|
|
773
778
|
* @returns the handle assigned by the selected indexing backend
|
|
774
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
775
779
|
*/
|
|
776
780
|
register: (context: Context<ConfigType>, address: string) => Promise<Registration>
|
|
777
781
|
|
|
@@ -783,11 +787,12 @@ export type CoinModuleApi<
|
|
|
783
787
|
* The crafted transaction is ready to be signed by the hardware wallet and then combined
|
|
784
788
|
* with the signature using {@link combine}.
|
|
785
789
|
*
|
|
790
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
786
791
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
787
|
-
* @param
|
|
792
|
+
* @param options optional parameters
|
|
793
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
788
794
|
* @returns the crafted transaction with optional blockchain-specific details
|
|
789
795
|
* @see craftRawTransaction
|
|
790
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
791
796
|
*/
|
|
792
797
|
craftTransaction: (
|
|
793
798
|
context: Context<ConfigType>,
|
|
@@ -801,6 +806,7 @@ export type CoinModuleApi<
|
|
|
801
806
|
* This is an alternative to {@link craftTransaction} for cases where the transaction
|
|
802
807
|
* is already built externally (e.g., by a dApp or smart contract interaction).
|
|
803
808
|
*
|
|
809
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
804
810
|
* @param transaction the raw transaction to wrap/prepare for signing
|
|
805
811
|
* @param sender the sender address
|
|
806
812
|
* @param publicKey the sender's public key
|
|
@@ -808,7 +814,6 @@ export type CoinModuleApi<
|
|
|
808
814
|
* @returns the crafted transaction ready for signing
|
|
809
815
|
* @throws "not supported" if the blockchain does not support raw transaction crafting
|
|
810
816
|
* @see craftTransaction
|
|
811
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
812
817
|
*/
|
|
813
818
|
craftRawTransaction: (
|
|
814
819
|
context: Context<ConfigType>,
|
|
@@ -823,12 +828,13 @@ export type CoinModuleApi<
|
|
|
823
828
|
*
|
|
824
829
|
* The estimation should be based on current network conditions (e.g., gas price, fee rate).
|
|
825
830
|
*
|
|
831
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
826
832
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
827
|
-
* @param
|
|
833
|
+
* @param options optional parameters
|
|
834
|
+
* @param options.customFeesParameters optional blockchain-specific parameters to customize the fee estimation
|
|
828
835
|
* (e.g., gas limit, priority fee)
|
|
829
|
-
* @param options optional selection
|
|
836
|
+
* @param options.feeOption optional fee option selection; see {@link EstimateFeesOptions}
|
|
830
837
|
* @returns the estimated fees and optional parameters that can be passed to {@link craftTransaction}
|
|
831
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
832
838
|
*/
|
|
833
839
|
estimateFees: (
|
|
834
840
|
context: Context<ConfigType>,
|
|
@@ -847,22 +853,25 @@ export type CoinModuleApi<
|
|
|
847
853
|
* Optional: omitting this method implicitly exposes a single `standard` option; when implemented it
|
|
848
854
|
* must return the full list including `standard` (e.g. `[sponsored, standard]` or `[standard]`).
|
|
849
855
|
*
|
|
856
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
850
857
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
851
858
|
* @returns the available fee options (metadata only)
|
|
852
859
|
*/
|
|
853
860
|
listFeeOptions?: (
|
|
861
|
+
context: Context<ConfigType>,
|
|
854
862
|
transactionIntent: TransactionIntent<MemoType, TxDataType>
|
|
855
863
|
) => Promise<FeeOptionMeta[]>
|
|
856
864
|
|
|
857
865
|
/**
|
|
858
866
|
* Combine a crafted transaction with a signature to produce a signed transaction ready for broadcast.
|
|
859
867
|
*
|
|
868
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
860
869
|
* @param tx the unsigned/crafted transaction (as returned by {@link craftTransaction})
|
|
861
870
|
* @param signature ordered list of signatures produced by the hardware wallet — root intent first,
|
|
862
871
|
* nested calls after. Single-signature blockchains must throw if `signature.length !== 1`.
|
|
863
|
-
* @param
|
|
872
|
+
* @param options optional parameters
|
|
873
|
+
* @param options.pubkey the public key used to sign (required for some blockchains to verify/embed in the transaction)
|
|
864
874
|
* @returns the signed transaction ready for {@link broadcast}
|
|
865
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
866
875
|
*/
|
|
867
876
|
combine: (
|
|
868
877
|
context: Context<ConfigType>,
|
|
@@ -874,11 +883,12 @@ export type CoinModuleApi<
|
|
|
874
883
|
/**
|
|
875
884
|
* Broadcast a signed transaction to the network.
|
|
876
885
|
*
|
|
886
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
877
887
|
* @param tx the signed transaction (encoding is blockchain dependent, typically hex-encoded)
|
|
878
|
-
* @param
|
|
888
|
+
* @param options optional parameters
|
|
889
|
+
* @param options.broadcastConfig optional configuration for the broadcast (e.g., retry settings)
|
|
879
890
|
* @returns the transaction hash/digest once successfully submitted to the network
|
|
880
891
|
* @throws if the transaction is rejected by the network (e.g., invalid signature, insufficient funds)
|
|
881
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
882
892
|
*/
|
|
883
893
|
broadcast: (
|
|
884
894
|
context: Context<ConfigType>,
|
|
@@ -889,11 +899,12 @@ export type CoinModuleApi<
|
|
|
889
899
|
/**
|
|
890
900
|
* Validate a transaction intent.
|
|
891
901
|
*
|
|
902
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
892
903
|
* @param transactionIntent the transaction intent describing what the user wants to do
|
|
893
904
|
* @param balances current balances of the intent sender
|
|
894
|
-
* @param
|
|
905
|
+
* @param options optional parameters
|
|
906
|
+
* @param options.customFees custom fees to use instead of the default estimation
|
|
895
907
|
* @returns additional values the intent has been validated with, and optional errors/warnings
|
|
896
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
897
908
|
*/
|
|
898
909
|
validateIntent: (
|
|
899
910
|
context: Context<ConfigType>,
|
|
@@ -905,19 +916,19 @@ export type CoinModuleApi<
|
|
|
905
916
|
/**
|
|
906
917
|
* Get the next sequence number (nonce) for an address
|
|
907
918
|
*
|
|
919
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
908
920
|
* @param address the account address
|
|
909
921
|
* @returns the next usable sequence number
|
|
910
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
911
922
|
*/
|
|
912
923
|
getNextSequence: (context: Context<ConfigType>, address: string) => Promise<bigint>
|
|
913
924
|
|
|
914
925
|
/**
|
|
915
926
|
* Validate whether an address is well-formed for the blockchain.
|
|
916
927
|
*
|
|
928
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
917
929
|
* @param address the address to validate
|
|
918
930
|
* @param parameters currency-specific validation parameters
|
|
919
931
|
* @returns `true` if the address is valid, `false` otherwise
|
|
920
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
921
932
|
*/
|
|
922
933
|
validateAddress: (
|
|
923
934
|
context: Context<ConfigType>,
|
|
@@ -929,9 +940,9 @@ export type CoinModuleApi<
|
|
|
929
940
|
* Get a blockchain specific payload. For Ethereum, it would be a calldata,
|
|
930
941
|
* for Solana, it would be instructions, and so on
|
|
931
942
|
*
|
|
943
|
+
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
932
944
|
* @param intent transaction intent
|
|
933
945
|
* @returns blockchain-specific {@link TxData} for this module
|
|
934
|
-
* @param context the {@link Context} carrying the coin config accessor and logger
|
|
935
946
|
*/
|
|
936
947
|
craftTransactionData: (
|
|
937
948
|
context: Context<ConfigType>,
|