@rialo/ts-cdk 0.4.0-alpha.1 → 0.5.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/index.d.mts +266 -1
- package/dist/index.d.ts +266 -1
- package/dist/index.js +296 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +293 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1707,6 +1707,65 @@ interface RexInfoAndDuties {
|
|
|
1707
1707
|
/** List of duties expecting updates or commitment. */
|
|
1708
1708
|
duties: RexDuty[];
|
|
1709
1709
|
}
|
|
1710
|
+
/**
|
|
1711
|
+
* Keypair metadata — public information about a derived keypair.
|
|
1712
|
+
* Does NOT contain secret material. Safe to pass around freely.
|
|
1713
|
+
*/
|
|
1714
|
+
interface DerivedKeypairInfo {
|
|
1715
|
+
/** Keypair index within the keyring. */
|
|
1716
|
+
index: number;
|
|
1717
|
+
/** Public key (32 bytes Ed25519). */
|
|
1718
|
+
pubkey: PublicKey;
|
|
1719
|
+
/** Base58-encoded public key string. */
|
|
1720
|
+
pubkeyString: string;
|
|
1721
|
+
/** HD derivation path, if available. */
|
|
1722
|
+
derivationPath?: string;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Program loader type.
|
|
1726
|
+
*/
|
|
1727
|
+
type LoaderType = "riscv" | "loaderV4";
|
|
1728
|
+
/**
|
|
1729
|
+
* Configuration for chunked program deployment.
|
|
1730
|
+
* retry delays are u64 to match the native Rust DeploymentConfig timers.
|
|
1731
|
+
* chunk-size and confirmation-batch-size are intentionally u32 (not usize)
|
|
1732
|
+
* because chunk sizes and batch counts never exceed 32-bit range in practice,
|
|
1733
|
+
* and u32 is the widest portable integer in WIT without crossing into u64.
|
|
1734
|
+
*/
|
|
1735
|
+
interface DeploymentConfig$1 {
|
|
1736
|
+
/** Size of each data chunk in bytes. */
|
|
1737
|
+
chunkSize?: number;
|
|
1738
|
+
/** Maximum number of retry attempts per chunk. */
|
|
1739
|
+
maxRetries?: number;
|
|
1740
|
+
/** Initial retry delay in milliseconds. */
|
|
1741
|
+
retryBaseDelayMs?: bigint;
|
|
1742
|
+
/** Maximum retry delay in milliseconds. */
|
|
1743
|
+
retryMaxDelayMs?: bigint;
|
|
1744
|
+
/** Number of confirmations to batch. */
|
|
1745
|
+
confirmationBatchSize?: number;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Account metadata for a program invocation instruction.
|
|
1749
|
+
*/
|
|
1750
|
+
interface InvocationAccountMeta {
|
|
1751
|
+
/** Account public key. */
|
|
1752
|
+
pubkey: PublicKey;
|
|
1753
|
+
/** Whether this account is a signer. */
|
|
1754
|
+
isSigner: boolean;
|
|
1755
|
+
/** Whether this account is writable. */
|
|
1756
|
+
isWritable: boolean;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* A fully assembled program instruction.
|
|
1760
|
+
*/
|
|
1761
|
+
interface ProgramInstruction {
|
|
1762
|
+
/** Program ID to invoke. */
|
|
1763
|
+
programId: PublicKey;
|
|
1764
|
+
/** Accounts required by the instruction. */
|
|
1765
|
+
accounts: InvocationAccountMeta[];
|
|
1766
|
+
/** Instruction data payload. */
|
|
1767
|
+
data: Uint8Array;
|
|
1768
|
+
}
|
|
1710
1769
|
|
|
1711
1770
|
/**
|
|
1712
1771
|
* Base client with JSON-RPC protocol handling.
|
|
@@ -4505,6 +4564,212 @@ declare function getMainnetUrl(): string;
|
|
|
4505
4564
|
*/
|
|
4506
4565
|
declare function getLocalnetUrl(): string;
|
|
4507
4566
|
|
|
4567
|
+
/**
|
|
4568
|
+
* A keyring managing one or more derived keypairs.
|
|
4569
|
+
* Secret material stays inside the keyring — callers interact via
|
|
4570
|
+
* indices and public metadata. No freely-passed keypair resources.
|
|
4571
|
+
*
|
|
4572
|
+
* No direct constructor — keyrings are created via KeyringProvider
|
|
4573
|
+
* (create, create-with-mnemonic, recover-from-mnemonic, load).
|
|
4574
|
+
* Active keypair contract: the active keypair is always index 0 at
|
|
4575
|
+
* creation time. Active-keypair switching is a facade operation not
|
|
4576
|
+
* in the generated contract.
|
|
4577
|
+
*/
|
|
4578
|
+
/**
|
|
4579
|
+
* Resource `keyring` — generated from spec.wit.
|
|
4580
|
+
*
|
|
4581
|
+
* Extend this class to provide a concrete `Keyring` implementation.
|
|
4582
|
+
* Instance methods are abstract; static methods throw by default (override in subclass).
|
|
4583
|
+
*/
|
|
4584
|
+
declare abstract class Keyring {
|
|
4585
|
+
/**
|
|
4586
|
+
* Sign a message with the active keypair.
|
|
4587
|
+
* Returns 64-byte Ed25519 signature.
|
|
4588
|
+
*/
|
|
4589
|
+
abstract sign(message: Uint8Array): Uint8Array;
|
|
4590
|
+
/**
|
|
4591
|
+
* Verify a signature with the active keypair.
|
|
4592
|
+
*/
|
|
4593
|
+
abstract verify(message: Uint8Array, sig: Uint8Array): boolean;
|
|
4594
|
+
/**
|
|
4595
|
+
* Active keypair's public key as base58 string.
|
|
4596
|
+
*/
|
|
4597
|
+
abstract pubkeyString(): string;
|
|
4598
|
+
/**
|
|
4599
|
+
* Active keypair's public key (32 bytes).
|
|
4600
|
+
*/
|
|
4601
|
+
abstract pubkey(): PublicKey;
|
|
4602
|
+
/**
|
|
4603
|
+
* Get public metadata for a keypair by index.
|
|
4604
|
+
*/
|
|
4605
|
+
abstract getKeypairInfo(index: number): DerivedKeypairInfo | undefined;
|
|
4606
|
+
/**
|
|
4607
|
+
* List all keypair indices, sorted ascending.
|
|
4608
|
+
*/
|
|
4609
|
+
abstract listKeypairs(): number[];
|
|
4610
|
+
/**
|
|
4611
|
+
* Get public metadata for all keypairs, sorted by ascending index.
|
|
4612
|
+
*/
|
|
4613
|
+
abstract getKeypairsInfo(): DerivedKeypairInfo[];
|
|
4614
|
+
/**
|
|
4615
|
+
* Sign with a specific keypair by index.
|
|
4616
|
+
*/
|
|
4617
|
+
abstract signWithKeypair(message: Uint8Array, index: number): Uint8Array;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* Concrete keyring implementation backed by an in-memory map of derived keypairs.
|
|
4622
|
+
*
|
|
4623
|
+
* Keyrings are created via {@link InMemoryKeyringProvider}, not directly.
|
|
4624
|
+
* The active keypair defaults to index 0. Use {@link setActiveKeypair} to change it.
|
|
4625
|
+
* Secret material stays inside the keyring — callers interact via indices and public metadata.
|
|
4626
|
+
*/
|
|
4627
|
+
declare class RialoKeyring extends Keyring {
|
|
4628
|
+
private readonly keypairs;
|
|
4629
|
+
private readonly derivationPaths;
|
|
4630
|
+
private activeIndex;
|
|
4631
|
+
constructor(keypairs: Map<number, Keypair>, derivationPaths: Map<number, string | undefined>);
|
|
4632
|
+
/**
|
|
4633
|
+
* Sets the active keypair index (facade operation, not in WIT contract).
|
|
4634
|
+
*
|
|
4635
|
+
* @param index - The keypair index to make active
|
|
4636
|
+
* @throws {RialoError} If the index does not exist in this keyring
|
|
4637
|
+
*/
|
|
4638
|
+
setActiveKeypair(index: number): void;
|
|
4639
|
+
private activeKeypair;
|
|
4640
|
+
sign(message: Uint8Array): Uint8Array;
|
|
4641
|
+
verify(message: Uint8Array, sig: Uint8Array): boolean;
|
|
4642
|
+
pubkeyString(): string;
|
|
4643
|
+
pubkey(): PublicKey;
|
|
4644
|
+
getKeypairInfo(index: number): DerivedKeypairInfo | undefined;
|
|
4645
|
+
listKeypairs(): number[];
|
|
4646
|
+
getKeypairsInfo(): DerivedKeypairInfo[];
|
|
4647
|
+
signWithKeypair(message: Uint8Array, index: number): Uint8Array;
|
|
4648
|
+
/**
|
|
4649
|
+
* Securely erases all secret key material from this keyring snapshot.
|
|
4650
|
+
*
|
|
4651
|
+
* Calls {@link Keypair.dispose} on every keypair, zeroing private key bytes.
|
|
4652
|
+
* After disposal, signing and secret-key export will throw. Verification
|
|
4653
|
+
* still works (uses only the public key). Does not affect provider-stored
|
|
4654
|
+
* state or other snapshots.
|
|
4655
|
+
*/
|
|
4656
|
+
dispose(): void;
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* Storage and lifecycle management for keyrings. All methods async (I/O).
|
|
4661
|
+
* No WIT constructor — concrete providers are language-specific
|
|
4662
|
+
* (e.g., InMemoryKeyringProvider::new(), new InMemoryKeyringProvider()).
|
|
4663
|
+
*/
|
|
4664
|
+
/**
|
|
4665
|
+
* Resource `keyring-provider` — generated from spec.wit.
|
|
4666
|
+
*
|
|
4667
|
+
* Extend this class to provide a concrete `KeyringProvider` implementation.
|
|
4668
|
+
* Instance methods are abstract; static methods throw by default (override in subclass).
|
|
4669
|
+
*/
|
|
4670
|
+
declare abstract class KeyringProvider {
|
|
4671
|
+
/**
|
|
4672
|
+
* Create a new keyring with a random keypair at index 0.
|
|
4673
|
+
*/
|
|
4674
|
+
abstract create(name: string, password: string): Promise<Keyring>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Create a keyring with a generated BIP39 mnemonic.
|
|
4677
|
+
* strength-bits: 128 (12 words) or 256 (24 words).
|
|
4678
|
+
* Initializes exactly one keypair at index 0 derived from the mnemonic.
|
|
4679
|
+
* Returns (keyring, mnemonic_phrase). The mnemonic is returned ONCE
|
|
4680
|
+
* for backup — it is NOT stored on the keyring contract.
|
|
4681
|
+
*/
|
|
4682
|
+
abstract createWithMnemonic(name: string, strengthBits: number, password: string): Promise<[Keyring, string]>;
|
|
4683
|
+
/**
|
|
4684
|
+
* Recover a keyring from an existing BIP39 mnemonic phrase.
|
|
4685
|
+
* Initializes one keypair at index 0 derived from the mnemonic.
|
|
4686
|
+
*/
|
|
4687
|
+
abstract recoverFromMnemonic(name: string, mnemonic: string, password: string): Promise<Keyring>;
|
|
4688
|
+
/**
|
|
4689
|
+
* Load an existing keyring by name. Active keypair defaults to index 0.
|
|
4690
|
+
*/
|
|
4691
|
+
abstract load(name: string, password: string): Promise<Keyring>;
|
|
4692
|
+
/**
|
|
4693
|
+
* List all keyring names, sorted alphabetically.
|
|
4694
|
+
*/
|
|
4695
|
+
abstract list(): Promise<string[]>;
|
|
4696
|
+
/**
|
|
4697
|
+
* Check if a keyring exists by name.
|
|
4698
|
+
*/
|
|
4699
|
+
abstract exists(name: string): Promise<boolean>;
|
|
4700
|
+
/**
|
|
4701
|
+
* Get the active keypair's public key for a keyring (without loading).
|
|
4702
|
+
*/
|
|
4703
|
+
abstract getPublicKey(name: string): Promise<PublicKey>;
|
|
4704
|
+
/**
|
|
4705
|
+
* List all keyrings with their active keypair's public info,
|
|
4706
|
+
* sorted alphabetically by keyring name.
|
|
4707
|
+
*/
|
|
4708
|
+
abstract listPublicKeys(): Promise<[string, DerivedKeypairInfo][]>;
|
|
4709
|
+
/**
|
|
4710
|
+
* List keypair metadata for a specific keyring, sorted by ascending index.
|
|
4711
|
+
*/
|
|
4712
|
+
abstract listKeypairs(keyringName: string): Promise<DerivedKeypairInfo[]>;
|
|
4713
|
+
/**
|
|
4714
|
+
* Derive a new keypair at the specified index.
|
|
4715
|
+
* Errors with DUPLICATE_KEYPAIR_INDEX if the index already exists.
|
|
4716
|
+
*/
|
|
4717
|
+
abstract deriveKeypair(keyringName: string, keypairIndex: number, password: string): Promise<DerivedKeypairInfo>;
|
|
4718
|
+
/**
|
|
4719
|
+
* Import an existing 32-byte Ed25519 secret key into a keyring.
|
|
4720
|
+
* Assigns the next available index (max(existing) + 1).
|
|
4721
|
+
*/
|
|
4722
|
+
abstract importSecretKey(keyringName: string, secretKey: Uint8Array, derivationPath: string | undefined, password: string): Promise<DerivedKeypairInfo>;
|
|
4723
|
+
/**
|
|
4724
|
+
* Get metadata for all keypairs in a keyring, sorted by ascending index.
|
|
4725
|
+
*/
|
|
4726
|
+
abstract getKeypairsInfo(name: string): Promise<DerivedKeypairInfo[]>;
|
|
4727
|
+
/**
|
|
4728
|
+
* Get metadata for a specific keypair by index.
|
|
4729
|
+
*/
|
|
4730
|
+
abstract getKeypairInfo(name: string, keypairIndex: number): Promise<DerivedKeypairInfo>;
|
|
4731
|
+
/**
|
|
4732
|
+
* Returns max(existing indices) + 1, or 0 if empty.
|
|
4733
|
+
* With sparse indices (e.g., 0 and 5 exist), returns 6, not 2.
|
|
4734
|
+
*/
|
|
4735
|
+
abstract nextKeypairIndex(name: string): Promise<number>;
|
|
4736
|
+
}
|
|
4737
|
+
|
|
4738
|
+
/**
|
|
4739
|
+
* In-memory keyring provider for testing and ephemeral use.
|
|
4740
|
+
*
|
|
4741
|
+
* **Security note:** This provider stores keyrings, passwords, and mnemonic
|
|
4742
|
+
* phrases in plaintext memory. It is designed for development, testing, and
|
|
4743
|
+
* ephemeral use cases — NOT for production secret storage. Key material
|
|
4744
|
+
* persists in the JS heap until garbage collected. For production use,
|
|
4745
|
+
* implement a provider backed by encrypted storage or a hardware security module.
|
|
4746
|
+
*
|
|
4747
|
+
* Keyrings are stored in memory only — not persisted between restarts.
|
|
4748
|
+
* Implements the full keyring-provider contract from the WIT spec.
|
|
4749
|
+
*/
|
|
4750
|
+
declare class InMemoryKeyringProvider extends KeyringProvider {
|
|
4751
|
+
private readonly keyrings;
|
|
4752
|
+
private getStored;
|
|
4753
|
+
private checkPassword;
|
|
4754
|
+
private buildKeyring;
|
|
4755
|
+
private toInfo;
|
|
4756
|
+
private nextIndex;
|
|
4757
|
+
create(name: string, password: string): Promise<Keyring>;
|
|
4758
|
+
createWithMnemonic(name: string, strengthBits: number, password: string): Promise<[Keyring, string]>;
|
|
4759
|
+
recoverFromMnemonic(name: string, mnemonicPhrase: string, password: string): Promise<Keyring>;
|
|
4760
|
+
load(name: string, password: string): Promise<Keyring>;
|
|
4761
|
+
list(): Promise<string[]>;
|
|
4762
|
+
exists(name: string): Promise<boolean>;
|
|
4763
|
+
getPublicKey(name: string): Promise<PublicKey>;
|
|
4764
|
+
listPublicKeys(): Promise<[string, DerivedKeypairInfo][]>;
|
|
4765
|
+
listKeypairs(keyringName: string): Promise<DerivedKeypairInfo[]>;
|
|
4766
|
+
deriveKeypair(keyringName: string, keypairIndex: number, password: string): Promise<DerivedKeypairInfo>;
|
|
4767
|
+
importSecretKey(keyringName: string, secretKey: Uint8Array, derivationPath: string | undefined, password: string): Promise<DerivedKeypairInfo>;
|
|
4768
|
+
getKeypairsInfo(name: string): Promise<DerivedKeypairInfo[]>;
|
|
4769
|
+
getKeypairInfo(name: string, keypairIndex: number): Promise<DerivedKeypairInfo>;
|
|
4770
|
+
nextKeypairIndex(name: string): Promise<number>;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4508
4773
|
/** RISC-V loader program ID (PolkaVM bytecode). */
|
|
4509
4774
|
declare const RISCV_LOADER_PROGRAM_ID = "RiscVLoader11111111111111111111111111111111";
|
|
4510
4775
|
/** LoaderV4 program ID (eBPF programs). */
|
|
@@ -4635,4 +4900,4 @@ declare function deployInstruction(programAddress: PublicKey, authority: PublicK
|
|
|
4635
4900
|
*/
|
|
4636
4901
|
declare function retractInstruction(programAddress: PublicKey, authority: PublicKey): Instruction;
|
|
4637
4902
|
|
|
4638
|
-
export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, type AllAccountsEntry, BASE_DERIVATION_PATH, BUFFER_BALANCE_FACTOR, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type BlockInfo, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type ClusterNodeInfo, type CompiledInstruction, type ConfigHashPrefix, type ConfirmTransactionOptions, type ConfirmedTransaction, type ConnectedNode, CryptoError, CryptoErrorCode, DEFAULT_CHUNK_SIZE, DEFAULT_CONFIRMATION_BATCH_SIZE, DEFAULT_MAX_RETRIES, DEFAULT_NUM_ACCOUNTS, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, type DeploymentConfig, DeploymentError, DeploymentErrorCode, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochConsensusConfigRequest, type EpochInfo, type EventData, type FeeResponse, type GetAccountsByOwnerConfig, type GetAllAccountsConfig, type GetBlockConfig, type GetSignaturesForAddressConfig, type GetTransactionsConfig, type GetValidatorAccountsRequest, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, type InferSchema, type Instruction, type IsBlockhashValidResponse, KELVIN_PER_RLO, type Kelvin, Keypair, KeypairSigner, LOADER_V4_PROGRAM_ID, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OptionalAccountInfo, type OwnerAccount, type PDA, PROGRAM_DATA_OFFSET, PUBLIC_KEY_LENGTH, type PaginationInfo, ProgramDeployment, type ProgramDeploymentOptions, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, RISCV_LOADER_PROGRAM_ID, type RexDuty, type RexInfoAndDuties, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, type RialoNetwork, RiscVLoaderInstruction, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type SecretSharingPubkey, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StakeAccountInfo, type StakeState, type StructField, type SubmitEpochChangeRequest, type SubmitEpochChangeResponse, type Subscription, type SubscriptionAccountMeta, type SubscriptionInstruction, type SubscriptionKind, SystemInstruction, type TimestampRange, type TokenBalance, Transaction, TransactionBuilder, type TransactionData, TransactionError, TransactionErrorCode, type TransactionInfo, type TransactionMessage, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TransactionStatusMetadata, type TransactionWithMeta, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type ValidatorAccountInfo, type ValidatorHealth, type ValidatorInfoRequest, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deployInstruction, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, retractInstruction, seedToBytes, serialize, serializeBorsh, serializeCompactU16, setProgramLengthInstruction, sleep, toBase64, transferInstruction, writeCompactU16, writeInstruction };
|
|
4903
|
+
export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, type AllAccountsEntry, BASE_DERIVATION_PATH, BUFFER_BALANCE_FACTOR, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type BlockInfo, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type ClusterNodeInfo, type CompiledInstruction, type ConfigHashPrefix, type ConfirmTransactionOptions, type ConfirmedTransaction, type ConnectedNode, CryptoError, CryptoErrorCode, DEFAULT_CHUNK_SIZE, DEFAULT_CONFIRMATION_BATCH_SIZE, DEFAULT_MAX_RETRIES, DEFAULT_NUM_ACCOUNTS, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, type DeploymentConfig, DeploymentError, DeploymentErrorCode, type DerivedKeypairInfo, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochConsensusConfigRequest, type EpochInfo, type EventData, type FeeResponse, type DeploymentConfig$1 as GeneratedDeploymentConfig, type GetAccountsByOwnerConfig, type GetAllAccountsConfig, type GetBlockConfig, type GetSignaturesForAddressConfig, type GetTransactionsConfig, type GetValidatorAccountsRequest, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, InMemoryKeyringProvider, type InferSchema, type Instruction, type InvocationAccountMeta, type IsBlockhashValidResponse, KELVIN_PER_RLO, type Kelvin, Keypair, KeypairSigner, Keyring, KeyringProvider, LOADER_V4_PROGRAM_ID, type LoaderType, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OptionalAccountInfo, type OwnerAccount, type PDA, PROGRAM_DATA_OFFSET, PUBLIC_KEY_LENGTH, type PaginationInfo, ProgramDeployment, type ProgramDeploymentOptions, type ProgramInstruction, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, RISCV_LOADER_PROGRAM_ID, type RexDuty, type RexInfoAndDuties, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, RialoKeyring, type RialoNetwork, RiscVLoaderInstruction, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type SecretSharingPubkey, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StakeAccountInfo, type StakeState, type StructField, type SubmitEpochChangeRequest, type SubmitEpochChangeResponse, type Subscription, type SubscriptionAccountMeta, type SubscriptionInstruction, type SubscriptionKind, SystemInstruction, type TimestampRange, type TokenBalance, Transaction, TransactionBuilder, type TransactionData, TransactionError, TransactionErrorCode, type TransactionInfo, type TransactionMessage, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TransactionStatusMetadata, type TransactionWithMeta, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type ValidatorAccountInfo, type ValidatorHealth, type ValidatorInfoRequest, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deployInstruction, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, retractInstruction, seedToBytes, serialize, serializeBorsh, serializeCompactU16, setProgramLengthInstruction, sleep, toBase64, transferInstruction, writeCompactU16, writeInstruction };
|
package/dist/index.d.ts
CHANGED
|
@@ -1707,6 +1707,65 @@ interface RexInfoAndDuties {
|
|
|
1707
1707
|
/** List of duties expecting updates or commitment. */
|
|
1708
1708
|
duties: RexDuty[];
|
|
1709
1709
|
}
|
|
1710
|
+
/**
|
|
1711
|
+
* Keypair metadata — public information about a derived keypair.
|
|
1712
|
+
* Does NOT contain secret material. Safe to pass around freely.
|
|
1713
|
+
*/
|
|
1714
|
+
interface DerivedKeypairInfo {
|
|
1715
|
+
/** Keypair index within the keyring. */
|
|
1716
|
+
index: number;
|
|
1717
|
+
/** Public key (32 bytes Ed25519). */
|
|
1718
|
+
pubkey: PublicKey;
|
|
1719
|
+
/** Base58-encoded public key string. */
|
|
1720
|
+
pubkeyString: string;
|
|
1721
|
+
/** HD derivation path, if available. */
|
|
1722
|
+
derivationPath?: string;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Program loader type.
|
|
1726
|
+
*/
|
|
1727
|
+
type LoaderType = "riscv" | "loaderV4";
|
|
1728
|
+
/**
|
|
1729
|
+
* Configuration for chunked program deployment.
|
|
1730
|
+
* retry delays are u64 to match the native Rust DeploymentConfig timers.
|
|
1731
|
+
* chunk-size and confirmation-batch-size are intentionally u32 (not usize)
|
|
1732
|
+
* because chunk sizes and batch counts never exceed 32-bit range in practice,
|
|
1733
|
+
* and u32 is the widest portable integer in WIT without crossing into u64.
|
|
1734
|
+
*/
|
|
1735
|
+
interface DeploymentConfig$1 {
|
|
1736
|
+
/** Size of each data chunk in bytes. */
|
|
1737
|
+
chunkSize?: number;
|
|
1738
|
+
/** Maximum number of retry attempts per chunk. */
|
|
1739
|
+
maxRetries?: number;
|
|
1740
|
+
/** Initial retry delay in milliseconds. */
|
|
1741
|
+
retryBaseDelayMs?: bigint;
|
|
1742
|
+
/** Maximum retry delay in milliseconds. */
|
|
1743
|
+
retryMaxDelayMs?: bigint;
|
|
1744
|
+
/** Number of confirmations to batch. */
|
|
1745
|
+
confirmationBatchSize?: number;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Account metadata for a program invocation instruction.
|
|
1749
|
+
*/
|
|
1750
|
+
interface InvocationAccountMeta {
|
|
1751
|
+
/** Account public key. */
|
|
1752
|
+
pubkey: PublicKey;
|
|
1753
|
+
/** Whether this account is a signer. */
|
|
1754
|
+
isSigner: boolean;
|
|
1755
|
+
/** Whether this account is writable. */
|
|
1756
|
+
isWritable: boolean;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* A fully assembled program instruction.
|
|
1760
|
+
*/
|
|
1761
|
+
interface ProgramInstruction {
|
|
1762
|
+
/** Program ID to invoke. */
|
|
1763
|
+
programId: PublicKey;
|
|
1764
|
+
/** Accounts required by the instruction. */
|
|
1765
|
+
accounts: InvocationAccountMeta[];
|
|
1766
|
+
/** Instruction data payload. */
|
|
1767
|
+
data: Uint8Array;
|
|
1768
|
+
}
|
|
1710
1769
|
|
|
1711
1770
|
/**
|
|
1712
1771
|
* Base client with JSON-RPC protocol handling.
|
|
@@ -4505,6 +4564,212 @@ declare function getMainnetUrl(): string;
|
|
|
4505
4564
|
*/
|
|
4506
4565
|
declare function getLocalnetUrl(): string;
|
|
4507
4566
|
|
|
4567
|
+
/**
|
|
4568
|
+
* A keyring managing one or more derived keypairs.
|
|
4569
|
+
* Secret material stays inside the keyring — callers interact via
|
|
4570
|
+
* indices and public metadata. No freely-passed keypair resources.
|
|
4571
|
+
*
|
|
4572
|
+
* No direct constructor — keyrings are created via KeyringProvider
|
|
4573
|
+
* (create, create-with-mnemonic, recover-from-mnemonic, load).
|
|
4574
|
+
* Active keypair contract: the active keypair is always index 0 at
|
|
4575
|
+
* creation time. Active-keypair switching is a facade operation not
|
|
4576
|
+
* in the generated contract.
|
|
4577
|
+
*/
|
|
4578
|
+
/**
|
|
4579
|
+
* Resource `keyring` — generated from spec.wit.
|
|
4580
|
+
*
|
|
4581
|
+
* Extend this class to provide a concrete `Keyring` implementation.
|
|
4582
|
+
* Instance methods are abstract; static methods throw by default (override in subclass).
|
|
4583
|
+
*/
|
|
4584
|
+
declare abstract class Keyring {
|
|
4585
|
+
/**
|
|
4586
|
+
* Sign a message with the active keypair.
|
|
4587
|
+
* Returns 64-byte Ed25519 signature.
|
|
4588
|
+
*/
|
|
4589
|
+
abstract sign(message: Uint8Array): Uint8Array;
|
|
4590
|
+
/**
|
|
4591
|
+
* Verify a signature with the active keypair.
|
|
4592
|
+
*/
|
|
4593
|
+
abstract verify(message: Uint8Array, sig: Uint8Array): boolean;
|
|
4594
|
+
/**
|
|
4595
|
+
* Active keypair's public key as base58 string.
|
|
4596
|
+
*/
|
|
4597
|
+
abstract pubkeyString(): string;
|
|
4598
|
+
/**
|
|
4599
|
+
* Active keypair's public key (32 bytes).
|
|
4600
|
+
*/
|
|
4601
|
+
abstract pubkey(): PublicKey;
|
|
4602
|
+
/**
|
|
4603
|
+
* Get public metadata for a keypair by index.
|
|
4604
|
+
*/
|
|
4605
|
+
abstract getKeypairInfo(index: number): DerivedKeypairInfo | undefined;
|
|
4606
|
+
/**
|
|
4607
|
+
* List all keypair indices, sorted ascending.
|
|
4608
|
+
*/
|
|
4609
|
+
abstract listKeypairs(): number[];
|
|
4610
|
+
/**
|
|
4611
|
+
* Get public metadata for all keypairs, sorted by ascending index.
|
|
4612
|
+
*/
|
|
4613
|
+
abstract getKeypairsInfo(): DerivedKeypairInfo[];
|
|
4614
|
+
/**
|
|
4615
|
+
* Sign with a specific keypair by index.
|
|
4616
|
+
*/
|
|
4617
|
+
abstract signWithKeypair(message: Uint8Array, index: number): Uint8Array;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* Concrete keyring implementation backed by an in-memory map of derived keypairs.
|
|
4622
|
+
*
|
|
4623
|
+
* Keyrings are created via {@link InMemoryKeyringProvider}, not directly.
|
|
4624
|
+
* The active keypair defaults to index 0. Use {@link setActiveKeypair} to change it.
|
|
4625
|
+
* Secret material stays inside the keyring — callers interact via indices and public metadata.
|
|
4626
|
+
*/
|
|
4627
|
+
declare class RialoKeyring extends Keyring {
|
|
4628
|
+
private readonly keypairs;
|
|
4629
|
+
private readonly derivationPaths;
|
|
4630
|
+
private activeIndex;
|
|
4631
|
+
constructor(keypairs: Map<number, Keypair>, derivationPaths: Map<number, string | undefined>);
|
|
4632
|
+
/**
|
|
4633
|
+
* Sets the active keypair index (facade operation, not in WIT contract).
|
|
4634
|
+
*
|
|
4635
|
+
* @param index - The keypair index to make active
|
|
4636
|
+
* @throws {RialoError} If the index does not exist in this keyring
|
|
4637
|
+
*/
|
|
4638
|
+
setActiveKeypair(index: number): void;
|
|
4639
|
+
private activeKeypair;
|
|
4640
|
+
sign(message: Uint8Array): Uint8Array;
|
|
4641
|
+
verify(message: Uint8Array, sig: Uint8Array): boolean;
|
|
4642
|
+
pubkeyString(): string;
|
|
4643
|
+
pubkey(): PublicKey;
|
|
4644
|
+
getKeypairInfo(index: number): DerivedKeypairInfo | undefined;
|
|
4645
|
+
listKeypairs(): number[];
|
|
4646
|
+
getKeypairsInfo(): DerivedKeypairInfo[];
|
|
4647
|
+
signWithKeypair(message: Uint8Array, index: number): Uint8Array;
|
|
4648
|
+
/**
|
|
4649
|
+
* Securely erases all secret key material from this keyring snapshot.
|
|
4650
|
+
*
|
|
4651
|
+
* Calls {@link Keypair.dispose} on every keypair, zeroing private key bytes.
|
|
4652
|
+
* After disposal, signing and secret-key export will throw. Verification
|
|
4653
|
+
* still works (uses only the public key). Does not affect provider-stored
|
|
4654
|
+
* state or other snapshots.
|
|
4655
|
+
*/
|
|
4656
|
+
dispose(): void;
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* Storage and lifecycle management for keyrings. All methods async (I/O).
|
|
4661
|
+
* No WIT constructor — concrete providers are language-specific
|
|
4662
|
+
* (e.g., InMemoryKeyringProvider::new(), new InMemoryKeyringProvider()).
|
|
4663
|
+
*/
|
|
4664
|
+
/**
|
|
4665
|
+
* Resource `keyring-provider` — generated from spec.wit.
|
|
4666
|
+
*
|
|
4667
|
+
* Extend this class to provide a concrete `KeyringProvider` implementation.
|
|
4668
|
+
* Instance methods are abstract; static methods throw by default (override in subclass).
|
|
4669
|
+
*/
|
|
4670
|
+
declare abstract class KeyringProvider {
|
|
4671
|
+
/**
|
|
4672
|
+
* Create a new keyring with a random keypair at index 0.
|
|
4673
|
+
*/
|
|
4674
|
+
abstract create(name: string, password: string): Promise<Keyring>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Create a keyring with a generated BIP39 mnemonic.
|
|
4677
|
+
* strength-bits: 128 (12 words) or 256 (24 words).
|
|
4678
|
+
* Initializes exactly one keypair at index 0 derived from the mnemonic.
|
|
4679
|
+
* Returns (keyring, mnemonic_phrase). The mnemonic is returned ONCE
|
|
4680
|
+
* for backup — it is NOT stored on the keyring contract.
|
|
4681
|
+
*/
|
|
4682
|
+
abstract createWithMnemonic(name: string, strengthBits: number, password: string): Promise<[Keyring, string]>;
|
|
4683
|
+
/**
|
|
4684
|
+
* Recover a keyring from an existing BIP39 mnemonic phrase.
|
|
4685
|
+
* Initializes one keypair at index 0 derived from the mnemonic.
|
|
4686
|
+
*/
|
|
4687
|
+
abstract recoverFromMnemonic(name: string, mnemonic: string, password: string): Promise<Keyring>;
|
|
4688
|
+
/**
|
|
4689
|
+
* Load an existing keyring by name. Active keypair defaults to index 0.
|
|
4690
|
+
*/
|
|
4691
|
+
abstract load(name: string, password: string): Promise<Keyring>;
|
|
4692
|
+
/**
|
|
4693
|
+
* List all keyring names, sorted alphabetically.
|
|
4694
|
+
*/
|
|
4695
|
+
abstract list(): Promise<string[]>;
|
|
4696
|
+
/**
|
|
4697
|
+
* Check if a keyring exists by name.
|
|
4698
|
+
*/
|
|
4699
|
+
abstract exists(name: string): Promise<boolean>;
|
|
4700
|
+
/**
|
|
4701
|
+
* Get the active keypair's public key for a keyring (without loading).
|
|
4702
|
+
*/
|
|
4703
|
+
abstract getPublicKey(name: string): Promise<PublicKey>;
|
|
4704
|
+
/**
|
|
4705
|
+
* List all keyrings with their active keypair's public info,
|
|
4706
|
+
* sorted alphabetically by keyring name.
|
|
4707
|
+
*/
|
|
4708
|
+
abstract listPublicKeys(): Promise<[string, DerivedKeypairInfo][]>;
|
|
4709
|
+
/**
|
|
4710
|
+
* List keypair metadata for a specific keyring, sorted by ascending index.
|
|
4711
|
+
*/
|
|
4712
|
+
abstract listKeypairs(keyringName: string): Promise<DerivedKeypairInfo[]>;
|
|
4713
|
+
/**
|
|
4714
|
+
* Derive a new keypair at the specified index.
|
|
4715
|
+
* Errors with DUPLICATE_KEYPAIR_INDEX if the index already exists.
|
|
4716
|
+
*/
|
|
4717
|
+
abstract deriveKeypair(keyringName: string, keypairIndex: number, password: string): Promise<DerivedKeypairInfo>;
|
|
4718
|
+
/**
|
|
4719
|
+
* Import an existing 32-byte Ed25519 secret key into a keyring.
|
|
4720
|
+
* Assigns the next available index (max(existing) + 1).
|
|
4721
|
+
*/
|
|
4722
|
+
abstract importSecretKey(keyringName: string, secretKey: Uint8Array, derivationPath: string | undefined, password: string): Promise<DerivedKeypairInfo>;
|
|
4723
|
+
/**
|
|
4724
|
+
* Get metadata for all keypairs in a keyring, sorted by ascending index.
|
|
4725
|
+
*/
|
|
4726
|
+
abstract getKeypairsInfo(name: string): Promise<DerivedKeypairInfo[]>;
|
|
4727
|
+
/**
|
|
4728
|
+
* Get metadata for a specific keypair by index.
|
|
4729
|
+
*/
|
|
4730
|
+
abstract getKeypairInfo(name: string, keypairIndex: number): Promise<DerivedKeypairInfo>;
|
|
4731
|
+
/**
|
|
4732
|
+
* Returns max(existing indices) + 1, or 0 if empty.
|
|
4733
|
+
* With sparse indices (e.g., 0 and 5 exist), returns 6, not 2.
|
|
4734
|
+
*/
|
|
4735
|
+
abstract nextKeypairIndex(name: string): Promise<number>;
|
|
4736
|
+
}
|
|
4737
|
+
|
|
4738
|
+
/**
|
|
4739
|
+
* In-memory keyring provider for testing and ephemeral use.
|
|
4740
|
+
*
|
|
4741
|
+
* **Security note:** This provider stores keyrings, passwords, and mnemonic
|
|
4742
|
+
* phrases in plaintext memory. It is designed for development, testing, and
|
|
4743
|
+
* ephemeral use cases — NOT for production secret storage. Key material
|
|
4744
|
+
* persists in the JS heap until garbage collected. For production use,
|
|
4745
|
+
* implement a provider backed by encrypted storage or a hardware security module.
|
|
4746
|
+
*
|
|
4747
|
+
* Keyrings are stored in memory only — not persisted between restarts.
|
|
4748
|
+
* Implements the full keyring-provider contract from the WIT spec.
|
|
4749
|
+
*/
|
|
4750
|
+
declare class InMemoryKeyringProvider extends KeyringProvider {
|
|
4751
|
+
private readonly keyrings;
|
|
4752
|
+
private getStored;
|
|
4753
|
+
private checkPassword;
|
|
4754
|
+
private buildKeyring;
|
|
4755
|
+
private toInfo;
|
|
4756
|
+
private nextIndex;
|
|
4757
|
+
create(name: string, password: string): Promise<Keyring>;
|
|
4758
|
+
createWithMnemonic(name: string, strengthBits: number, password: string): Promise<[Keyring, string]>;
|
|
4759
|
+
recoverFromMnemonic(name: string, mnemonicPhrase: string, password: string): Promise<Keyring>;
|
|
4760
|
+
load(name: string, password: string): Promise<Keyring>;
|
|
4761
|
+
list(): Promise<string[]>;
|
|
4762
|
+
exists(name: string): Promise<boolean>;
|
|
4763
|
+
getPublicKey(name: string): Promise<PublicKey>;
|
|
4764
|
+
listPublicKeys(): Promise<[string, DerivedKeypairInfo][]>;
|
|
4765
|
+
listKeypairs(keyringName: string): Promise<DerivedKeypairInfo[]>;
|
|
4766
|
+
deriveKeypair(keyringName: string, keypairIndex: number, password: string): Promise<DerivedKeypairInfo>;
|
|
4767
|
+
importSecretKey(keyringName: string, secretKey: Uint8Array, derivationPath: string | undefined, password: string): Promise<DerivedKeypairInfo>;
|
|
4768
|
+
getKeypairsInfo(name: string): Promise<DerivedKeypairInfo[]>;
|
|
4769
|
+
getKeypairInfo(name: string, keypairIndex: number): Promise<DerivedKeypairInfo>;
|
|
4770
|
+
nextKeypairIndex(name: string): Promise<number>;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4508
4773
|
/** RISC-V loader program ID (PolkaVM bytecode). */
|
|
4509
4774
|
declare const RISCV_LOADER_PROGRAM_ID = "RiscVLoader11111111111111111111111111111111";
|
|
4510
4775
|
/** LoaderV4 program ID (eBPF programs). */
|
|
@@ -4635,4 +4900,4 @@ declare function deployInstruction(programAddress: PublicKey, authority: PublicK
|
|
|
4635
4900
|
*/
|
|
4636
4901
|
declare function retractInstruction(programAddress: PublicKey, authority: PublicKey): Instruction;
|
|
4637
4902
|
|
|
4638
|
-
export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, type AllAccountsEntry, BASE_DERIVATION_PATH, BUFFER_BALANCE_FACTOR, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type BlockInfo, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type ClusterNodeInfo, type CompiledInstruction, type ConfigHashPrefix, type ConfirmTransactionOptions, type ConfirmedTransaction, type ConnectedNode, CryptoError, CryptoErrorCode, DEFAULT_CHUNK_SIZE, DEFAULT_CONFIRMATION_BATCH_SIZE, DEFAULT_MAX_RETRIES, DEFAULT_NUM_ACCOUNTS, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, type DeploymentConfig, DeploymentError, DeploymentErrorCode, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochConsensusConfigRequest, type EpochInfo, type EventData, type FeeResponse, type GetAccountsByOwnerConfig, type GetAllAccountsConfig, type GetBlockConfig, type GetSignaturesForAddressConfig, type GetTransactionsConfig, type GetValidatorAccountsRequest, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, type InferSchema, type Instruction, type IsBlockhashValidResponse, KELVIN_PER_RLO, type Kelvin, Keypair, KeypairSigner, LOADER_V4_PROGRAM_ID, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OptionalAccountInfo, type OwnerAccount, type PDA, PROGRAM_DATA_OFFSET, PUBLIC_KEY_LENGTH, type PaginationInfo, ProgramDeployment, type ProgramDeploymentOptions, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, RISCV_LOADER_PROGRAM_ID, type RexDuty, type RexInfoAndDuties, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, type RialoNetwork, RiscVLoaderInstruction, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type SecretSharingPubkey, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StakeAccountInfo, type StakeState, type StructField, type SubmitEpochChangeRequest, type SubmitEpochChangeResponse, type Subscription, type SubscriptionAccountMeta, type SubscriptionInstruction, type SubscriptionKind, SystemInstruction, type TimestampRange, type TokenBalance, Transaction, TransactionBuilder, type TransactionData, TransactionError, TransactionErrorCode, type TransactionInfo, type TransactionMessage, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TransactionStatusMetadata, type TransactionWithMeta, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type ValidatorAccountInfo, type ValidatorHealth, type ValidatorInfoRequest, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deployInstruction, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, retractInstruction, seedToBytes, serialize, serializeBorsh, serializeCompactU16, setProgramLengthInstruction, sleep, toBase64, transferInstruction, writeCompactU16, writeInstruction };
|
|
4903
|
+
export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, type AllAccountsEntry, BASE_DERIVATION_PATH, BUFFER_BALANCE_FACTOR, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type BlockInfo, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type ClusterNodeInfo, type CompiledInstruction, type ConfigHashPrefix, type ConfirmTransactionOptions, type ConfirmedTransaction, type ConnectedNode, CryptoError, CryptoErrorCode, DEFAULT_CHUNK_SIZE, DEFAULT_CONFIRMATION_BATCH_SIZE, DEFAULT_MAX_RETRIES, DEFAULT_NUM_ACCOUNTS, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, type DeploymentConfig, DeploymentError, DeploymentErrorCode, type DerivedKeypairInfo, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochConsensusConfigRequest, type EpochInfo, type EventData, type FeeResponse, type DeploymentConfig$1 as GeneratedDeploymentConfig, type GetAccountsByOwnerConfig, type GetAllAccountsConfig, type GetBlockConfig, type GetSignaturesForAddressConfig, type GetTransactionsConfig, type GetValidatorAccountsRequest, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, InMemoryKeyringProvider, type InferSchema, type Instruction, type InvocationAccountMeta, type IsBlockhashValidResponse, KELVIN_PER_RLO, type Kelvin, Keypair, KeypairSigner, Keyring, KeyringProvider, LOADER_V4_PROGRAM_ID, type LoaderType, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OptionalAccountInfo, type OwnerAccount, type PDA, PROGRAM_DATA_OFFSET, PUBLIC_KEY_LENGTH, type PaginationInfo, ProgramDeployment, type ProgramDeploymentOptions, type ProgramInstruction, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, RISCV_LOADER_PROGRAM_ID, type RexDuty, type RexInfoAndDuties, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, RialoKeyring, type RialoNetwork, RiscVLoaderInstruction, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type SecretSharingPubkey, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StakeAccountInfo, type StakeState, type StructField, type SubmitEpochChangeRequest, type SubmitEpochChangeResponse, type Subscription, type SubscriptionAccountMeta, type SubscriptionInstruction, type SubscriptionKind, SystemInstruction, type TimestampRange, type TokenBalance, Transaction, TransactionBuilder, type TransactionData, TransactionError, TransactionErrorCode, type TransactionInfo, type TransactionMessage, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TransactionStatusMetadata, type TransactionWithMeta, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type ValidatorAccountInfo, type ValidatorHealth, type ValidatorInfoRequest, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deployInstruction, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, retractInstruction, seedToBytes, serialize, serializeBorsh, serializeCompactU16, setProgramLengthInstruction, sleep, toBase64, transferInstruction, writeCompactU16, writeInstruction };
|