@emurgo/cardano-serialization-lib-nodejs
Advanced tools
Comparing version 0.1.1 to 0.2.0
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {Transaction} tx | ||
* @returns {number} | ||
* @param {TransactionHash} tx_body_hash | ||
* @param {ByronAddress} addr | ||
* @param {LegacyDaedalusPrivateKey} key | ||
* @returns {BootstrapWitness} | ||
*/ | ||
export function min_fee(tx: Transaction): number; | ||
export function make_daedalus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: LegacyDaedalusPrivateKey): BootstrapWitness; | ||
/** | ||
* @param {TransactionHash} tx_body_hash | ||
* @param {ByronAddress} addr | ||
* @param {Bip32PrivateKey} key | ||
* @returns {BootstrapWitness} | ||
*/ | ||
export enum MIRPot { | ||
Reserves, | ||
Treasury, | ||
} | ||
export class AddrKeyHash { | ||
free(): void; | ||
export function make_icarus_bootstrap_witness(tx_body_hash: TransactionHash, addr: ByronAddress, key: Bip32PrivateKey): BootstrapWitness; | ||
/** | ||
* @returns {Uint8Array} | ||
* @param {TransactionHash} tx_body_hash | ||
* @param {PrivateKey} sk | ||
* @returns {Vkeywitness} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
export function make_vkey_witness(tx_body_hash: TransactionHash, sk: PrivateKey): Vkeywitness; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {AddrKeyHash} | ||
* @param {TransactionMetadata} metadata | ||
* @returns {MetadataHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): AddrKeyHash; | ||
} | ||
export class AddrKeyHashes { | ||
free(): void; | ||
export function hash_metadata(metadata: TransactionMetadata): MetadataHash; | ||
/** | ||
* @returns {Uint8Array} | ||
* @param {TransactionBody} tx_body | ||
* @returns {TransactionHash} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
export function hash_transaction(tx_body: TransactionBody): TransactionHash; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {AddrKeyHashes} | ||
* @param {Transaction} tx | ||
* @param {LinearFee} linear_fee | ||
* @returns {BigNum} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): AddrKeyHashes; | ||
export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum; | ||
/** | ||
* @returns {AddrKeyHashes} | ||
*/ | ||
static new(): AddrKeyHashes; | ||
export enum CertificateKind { | ||
StakeRegistration, | ||
StakeDeregistration, | ||
StakeDelegation, | ||
PoolRegistration, | ||
PoolRetirement, | ||
GenesisKeyDelegation, | ||
MoveInstantaneousRewardsCert, | ||
} | ||
/** | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
export enum MIRPot { | ||
Reserves, | ||
Treasury, | ||
} | ||
/** | ||
* @param {number} index | ||
* @returns {AddrKeyHash} | ||
*/ | ||
get(index: number): AddrKeyHash; | ||
export enum RelayKind { | ||
SingleHostAddr, | ||
SingleHostName, | ||
MultiHostName, | ||
} | ||
/** | ||
* @param {AddrKeyHash} elem | ||
*/ | ||
add(elem: AddrKeyHash): void; | ||
export enum TransactionMetadatumKind { | ||
MapTransactionMetadatumToTransactionMetadatum, | ||
ArrTransactionMetadatum, | ||
Int, | ||
Bytes, | ||
Text, | ||
} | ||
/** | ||
*/ | ||
export enum MultisigScriptKind { | ||
MsigPubkey, | ||
MsigAll, | ||
MsigAny, | ||
MsigNOfK, | ||
} | ||
/** | ||
*/ | ||
export class Address { | ||
free(): void; | ||
/** | ||
* @param {Uint8Array} data | ||
* @returns {Address} | ||
* @param {Uint8Array} data | ||
* @returns {Address} | ||
*/ | ||
static from_bytes(data: Uint8Array): Address; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @param {string} bech_str | ||
* @returns {Address} | ||
* @param {string} bech_str | ||
* @returns {Address} | ||
*/ | ||
static from_bech32(bech_str: string): Address; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
network_id(): number; | ||
} | ||
/** | ||
*/ | ||
export class BaseAddress { | ||
free(): void; | ||
/** | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @param {StakeCredential} stake | ||
* @returns {BaseAddress} | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @param {StakeCredential} stake | ||
* @returns {BaseAddress} | ||
*/ | ||
static new(network: number, payment: StakeCredential, stake: StakeCredential): BaseAddress; | ||
/** | ||
* @returns {StakeCredential} | ||
* @returns {StakeCredential} | ||
*/ | ||
payment_cred(): StakeCredential; | ||
/** | ||
* @returns {StakeCredential} | ||
* @returns {StakeCredential} | ||
*/ | ||
stake_cred(): StakeCredential; | ||
/** | ||
* @returns {Address} | ||
* @returns {Address} | ||
*/ | ||
to_address(): Address; | ||
/** | ||
* @param {Address} addr | ||
* @returns {BaseAddress | undefined} | ||
*/ | ||
static from_address(addr: Address): BaseAddress | undefined; | ||
} | ||
/** | ||
*/ | ||
export class BigNum { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {BigNum} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): BigNum; | ||
/** | ||
* @param {BigInt} value | ||
* @returns {BigNum} | ||
*/ | ||
static new(value: BigInt): BigNum; | ||
/** | ||
* @returns {BigInt} | ||
*/ | ||
unwrap(): BigInt; | ||
/** | ||
* @param {string} string | ||
* @returns {BigNum} | ||
*/ | ||
static from_str(string: string): BigNum; | ||
/** | ||
* @returns {string} | ||
*/ | ||
to_str(): string; | ||
/** | ||
* @param {BigNum} other | ||
* @returns {BigNum} | ||
*/ | ||
checked_mul(other: BigNum): BigNum; | ||
/** | ||
* @param {BigNum} other | ||
* @returns {BigNum} | ||
*/ | ||
checked_add(other: BigNum): BigNum; | ||
/** | ||
* @param {BigNum} other | ||
* @returns {BigNum} | ||
*/ | ||
checked_sub(other: BigNum): BigNum; | ||
} | ||
/** | ||
*/ | ||
export class Bip32PrivateKey { | ||
@@ -123,43 +206,49 @@ free(): void; | ||
* the public key may fail (if the derivation index is invalid). | ||
* @param {number} index | ||
* @returns {Bip32PrivateKey} | ||
* @param {number} index | ||
* @returns {Bip32PrivateKey} | ||
*/ | ||
derive(index: number): Bip32PrivateKey; | ||
/** | ||
* @returns {Bip32PrivateKey} | ||
* @returns {Bip32PrivateKey} | ||
*/ | ||
static generate_ed25519_bip32(): Bip32PrivateKey; | ||
/** | ||
* @returns {PrivateKey} | ||
* @returns {PrivateKey} | ||
*/ | ||
to_raw_key(): PrivateKey; | ||
/** | ||
* @returns {Bip32PublicKey} | ||
* @returns {Bip32PublicKey} | ||
*/ | ||
to_public(): Bip32PublicKey; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Bip32PrivateKey} | ||
* @param {Uint8Array} bytes | ||
* @returns {Bip32PrivateKey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Bip32PrivateKey; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @param {string} bech32_str | ||
* @returns {Bip32PrivateKey} | ||
* @param {string} bech32_str | ||
* @returns {Bip32PrivateKey} | ||
*/ | ||
static from_bech32(bech32_str: string): Bip32PrivateKey; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @param {Uint8Array} entropy | ||
* @param {Uint8Array} password | ||
* @returns {Bip32PrivateKey} | ||
* @param {Uint8Array} entropy | ||
* @param {Uint8Array} password | ||
* @returns {Bip32PrivateKey} | ||
*/ | ||
static from_bip39_entropy(entropy: Uint8Array, password: Uint8Array): Bip32PrivateKey; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
chaincode(): Uint8Array; | ||
} | ||
/** | ||
*/ | ||
export class Bip32PublicKey { | ||
@@ -191,712 +280,1030 @@ free(): void; | ||
* the public key may fail (if the derivation index is invalid). | ||
* @param {number} index | ||
* @returns {Bip32PublicKey} | ||
* @param {number} index | ||
* @returns {Bip32PublicKey} | ||
*/ | ||
derive(index: number): Bip32PublicKey; | ||
/** | ||
* @returns {PublicKey} | ||
* @returns {PublicKey} | ||
*/ | ||
to_raw_key(): PublicKey; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Bip32PublicKey} | ||
* @param {Uint8Array} bytes | ||
* @returns {Bip32PublicKey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Bip32PublicKey; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @param {string} bech32_str | ||
* @returns {Bip32PublicKey} | ||
* @param {string} bech32_str | ||
* @returns {Bip32PublicKey} | ||
*/ | ||
static from_bech32(bech32_str: string): Bip32PublicKey; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @returns {AddrKeyHash} | ||
* @returns {Uint8Array} | ||
*/ | ||
hash(): AddrKeyHash; | ||
chaincode(): Uint8Array; | ||
} | ||
/** | ||
*/ | ||
export class BootstrapWitness { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {BootstrapWitness} | ||
* @param {Uint8Array} bytes | ||
* @returns {BootstrapWitness} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): BootstrapWitness; | ||
/** | ||
* @param {Vkey} vkey | ||
* @param {Ed25519Signature} signature | ||
* @param {Uint8Array} index_2 | ||
* @param {Uint8Array} index_3 | ||
* @param {Uint8Array} index_4 | ||
* @returns {BootstrapWitness} | ||
* @returns {Vkey} | ||
*/ | ||
static new(vkey: Vkey, signature: Ed25519Signature, index_2: Uint8Array, index_3: Uint8Array, index_4: Uint8Array): BootstrapWitness; | ||
vkey(): Vkey; | ||
/** | ||
* @returns {Ed25519Signature} | ||
*/ | ||
signature(): Ed25519Signature; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
chain_code(): Uint8Array; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
attributes(): Uint8Array; | ||
/** | ||
* @param {Vkey} vkey | ||
* @param {Ed25519Signature} signature | ||
* @param {Uint8Array} chain_code | ||
* @param {Uint8Array} attributes | ||
* @returns {BootstrapWitness} | ||
*/ | ||
static new(vkey: Vkey, signature: Ed25519Signature, chain_code: Uint8Array, attributes: Uint8Array): BootstrapWitness; | ||
} | ||
/** | ||
*/ | ||
export class BootstrapWitnesses { | ||
free(): void; | ||
/** | ||
* @returns {BootstrapWitnesses} | ||
* @returns {BootstrapWitnesses} | ||
*/ | ||
static new(): BootstrapWitnesses; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {BootstrapWitness} | ||
* @param {number} index | ||
* @returns {BootstrapWitness} | ||
*/ | ||
get(index: number): BootstrapWitness; | ||
/** | ||
* @param {BootstrapWitness} elem | ||
* @param {BootstrapWitness} elem | ||
*/ | ||
add(elem: BootstrapWitness): void; | ||
} | ||
/** | ||
*/ | ||
export class ByronAddress { | ||
free(): void; | ||
/** | ||
* @returns {string} | ||
*/ | ||
to_base58(): string; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {ByronAddress} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): ByronAddress; | ||
/** | ||
* @returns {number} | ||
*/ | ||
network_id(): number; | ||
/** | ||
* @param {string} s | ||
* @returns {ByronAddress} | ||
*/ | ||
static from_base58(s: string): ByronAddress; | ||
/** | ||
* @param {Bip32PublicKey} key | ||
* @param {number} network | ||
* @returns {ByronAddress} | ||
*/ | ||
static from_icarus_key(key: Bip32PublicKey, network: number): ByronAddress; | ||
/** | ||
* @param {string} s | ||
* @returns {boolean} | ||
*/ | ||
static is_valid(s: string): boolean; | ||
/** | ||
* @returns {Address} | ||
*/ | ||
to_address(): Address; | ||
/** | ||
* @param {Address} addr | ||
* @returns {ByronAddress | undefined} | ||
*/ | ||
static from_address(addr: Address): ByronAddress | undefined; | ||
} | ||
/** | ||
*/ | ||
export class Certificate { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Certificate} | ||
* @param {Uint8Array} bytes | ||
* @returns {Certificate} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Certificate; | ||
/** | ||
* @param {StakeRegistration} stake_registration | ||
* @returns {Certificate} | ||
* @param {StakeRegistration} stake_registration | ||
* @returns {Certificate} | ||
*/ | ||
static new_stake_registration(stake_registration: StakeRegistration): Certificate; | ||
/** | ||
* @param {StakeDeregistration} stake_deregistration | ||
* @returns {Certificate} | ||
* @param {StakeDeregistration} stake_deregistration | ||
* @returns {Certificate} | ||
*/ | ||
static new_stake_deregistration(stake_deregistration: StakeDeregistration): Certificate; | ||
/** | ||
* @param {StakeDelegation} stake_delegation | ||
* @returns {Certificate} | ||
* @param {StakeDelegation} stake_delegation | ||
* @returns {Certificate} | ||
*/ | ||
static new_stake_delegation(stake_delegation: StakeDelegation): Certificate; | ||
/** | ||
* @param {PoolRegistration} pool_registration | ||
* @returns {Certificate} | ||
* @param {PoolRegistration} pool_registration | ||
* @returns {Certificate} | ||
*/ | ||
static new_pool_registration(pool_registration: PoolRegistration): Certificate; | ||
/** | ||
* @param {PoolRetirement} pool_retirement | ||
* @returns {Certificate} | ||
* @param {PoolRetirement} pool_retirement | ||
* @returns {Certificate} | ||
*/ | ||
static new_pool_retirement(pool_retirement: PoolRetirement): Certificate; | ||
/** | ||
* @param {GenesisKeyDelegation} genesis_key_delegation | ||
* @returns {Certificate} | ||
* @param {GenesisKeyDelegation} genesis_key_delegation | ||
* @returns {Certificate} | ||
*/ | ||
static new_genesis_key_delegation(genesis_key_delegation: GenesisKeyDelegation): Certificate; | ||
/** | ||
* @param {MoveInstantaneousRewardsCert} move_instantaneous_rewards_cert | ||
* @returns {Certificate} | ||
* @param {MoveInstantaneousRewardsCert} move_instantaneous_rewards_cert | ||
* @returns {Certificate} | ||
*/ | ||
static new_move_instantaneous_rewards_cert(move_instantaneous_rewards_cert: MoveInstantaneousRewardsCert): Certificate; | ||
/** | ||
* @returns {number} | ||
*/ | ||
kind(): number; | ||
/** | ||
* @returns {StakeRegistration | undefined} | ||
*/ | ||
as_stake_registration(): StakeRegistration | undefined; | ||
/** | ||
* @returns {StakeDeregistration | undefined} | ||
*/ | ||
as_stake_deregistration(): StakeDeregistration | undefined; | ||
/** | ||
* @returns {StakeDelegation | undefined} | ||
*/ | ||
as_stake_delegation(): StakeDelegation | undefined; | ||
/** | ||
* @returns {PoolRegistration | undefined} | ||
*/ | ||
as_pool_registration(): PoolRegistration | undefined; | ||
/** | ||
* @returns {PoolRetirement | undefined} | ||
*/ | ||
as_pool_retirement(): PoolRetirement | undefined; | ||
/** | ||
* @returns {GenesisKeyDelegation | undefined} | ||
*/ | ||
as_genesis_key_delegation(): GenesisKeyDelegation | undefined; | ||
/** | ||
* @returns {MoveInstantaneousRewardsCert | undefined} | ||
*/ | ||
as_move_instantaneous_rewards_cert(): MoveInstantaneousRewardsCert | undefined; | ||
} | ||
/** | ||
*/ | ||
export class Certificates { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Certificates} | ||
* @param {Uint8Array} bytes | ||
* @returns {Certificates} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Certificates; | ||
/** | ||
* @returns {Certificates} | ||
* @returns {Certificates} | ||
*/ | ||
static new(): Certificates; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {Certificate} | ||
* @param {number} index | ||
* @returns {Certificate} | ||
*/ | ||
get(index: number): Certificate; | ||
/** | ||
* @param {Certificate} elem | ||
* @param {Certificate} elem | ||
*/ | ||
add(elem: Certificate): void; | ||
} | ||
export class Coin { | ||
/** | ||
*/ | ||
export class Ed25519KeyHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Coin} | ||
* @param {Uint8Array} bytes | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Coin; | ||
static from_bytes(bytes: Uint8Array): Ed25519KeyHash; | ||
} | ||
/** | ||
* @param {BigInt} value | ||
* @returns {Coin} | ||
*/ | ||
static new(value: BigInt): Coin; | ||
export class Ed25519KeyHashes { | ||
free(): void; | ||
/** | ||
* @param {string} string | ||
* @returns {Coin} | ||
* @returns {Uint8Array} | ||
*/ | ||
static from_str(string: string): Coin; | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @returns {string} | ||
* @param {Uint8Array} bytes | ||
* @returns {Ed25519KeyHashes} | ||
*/ | ||
to_str(): string; | ||
static from_bytes(bytes: Uint8Array): Ed25519KeyHashes; | ||
/** | ||
* @param {Coin} other | ||
* @returns {Coin} | ||
* @returns {Ed25519KeyHashes} | ||
*/ | ||
checked_add(other: Coin): Coin; | ||
static new(): Ed25519KeyHashes; | ||
/** | ||
* @param {Coin} other | ||
* @returns {Coin} | ||
* @returns {number} | ||
*/ | ||
checked_sub(other: Coin): Coin; | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
get(index: number): Ed25519KeyHash; | ||
/** | ||
* @param {Ed25519KeyHash} elem | ||
*/ | ||
add(elem: Ed25519KeyHash): void; | ||
} | ||
/** | ||
*/ | ||
export class Ed25519Signature { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_hex(): string; | ||
/** | ||
* @param {string} bech32_str | ||
* @returns {Ed25519Signature} | ||
* @param {string} bech32_str | ||
* @returns {Ed25519Signature} | ||
*/ | ||
static from_bech32(bech32_str: string): Ed25519Signature; | ||
/** | ||
* @param {string} input | ||
* @returns {Ed25519Signature} | ||
* @param {string} input | ||
* @returns {Ed25519Signature} | ||
*/ | ||
static from_hex(input: string): Ed25519Signature; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Ed25519Signature} | ||
* @param {Uint8Array} bytes | ||
* @returns {Ed25519Signature} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Ed25519Signature; | ||
} | ||
/** | ||
*/ | ||
export class EnterpriseAddress { | ||
free(): void; | ||
/** | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @returns {EnterpriseAddress} | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @returns {EnterpriseAddress} | ||
*/ | ||
static new(network: number, payment: StakeCredential): EnterpriseAddress; | ||
/** | ||
* @returns {StakeCredential} | ||
* @returns {StakeCredential} | ||
*/ | ||
payment_cred(): StakeCredential; | ||
/** | ||
* @returns {Address} | ||
* @returns {Address} | ||
*/ | ||
to_address(): Address; | ||
/** | ||
* @param {Address} addr | ||
* @returns {EnterpriseAddress | undefined} | ||
*/ | ||
static from_address(addr: Address): EnterpriseAddress | undefined; | ||
} | ||
/** | ||
*/ | ||
export class GenesisDelegateHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisDelegateHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisDelegateHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): GenesisDelegateHash; | ||
} | ||
/** | ||
*/ | ||
export class GenesisHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): GenesisHash; | ||
} | ||
/** | ||
*/ | ||
export class GenesisKeyDelegation { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisKeyDelegation} | ||
* @param {Uint8Array} bytes | ||
* @returns {GenesisKeyDelegation} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): GenesisKeyDelegation; | ||
/** | ||
* @param {GenesisHash} genesishash | ||
* @param {GenesisDelegateHash} genesis_delegate_hash | ||
* @returns {GenesisKeyDelegation} | ||
* @returns {GenesisHash} | ||
*/ | ||
genesishash(): GenesisHash; | ||
/** | ||
* @returns {GenesisDelegateHash} | ||
*/ | ||
genesis_delegate_hash(): GenesisDelegateHash; | ||
/** | ||
* @param {GenesisHash} genesishash | ||
* @param {GenesisDelegateHash} genesis_delegate_hash | ||
* @returns {GenesisKeyDelegation} | ||
*/ | ||
static new(genesishash: GenesisHash, genesis_delegate_hash: GenesisDelegateHash): GenesisKeyDelegation; | ||
} | ||
/** | ||
*/ | ||
export class Int { | ||
free(): void; | ||
/** | ||
* @param {BigInt} x | ||
* @returns {Int} | ||
* @param {BigNum} x | ||
* @returns {Int} | ||
*/ | ||
static new(x: BigInt): Int; | ||
static new(x: BigNum): Int; | ||
/** | ||
* @param {BigInt} x | ||
* @returns {Int} | ||
* @param {BigNum} x | ||
* @returns {Int} | ||
*/ | ||
static new_negative(x: BigInt): Int; | ||
static new_negative(x: BigNum): Int; | ||
} | ||
/** | ||
*/ | ||
export class Ipv4 { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Ipv4} | ||
* @param {Uint8Array} bytes | ||
* @returns {Ipv4} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Ipv4; | ||
/** | ||
* @param {Uint8Array} data | ||
* @returns {Ipv4} | ||
* @param {Uint8Array} data | ||
* @returns {Ipv4} | ||
*/ | ||
static new(data: Uint8Array): Ipv4; | ||
} | ||
/** | ||
*/ | ||
export class Ipv6 { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Ipv6} | ||
* @param {Uint8Array} bytes | ||
* @returns {Ipv6} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Ipv6; | ||
/** | ||
* @param {Uint8Array} data | ||
* @returns {Ipv6} | ||
* @param {Uint8Array} data | ||
* @returns {Ipv6} | ||
*/ | ||
static new(data: Uint8Array): Ipv6; | ||
} | ||
/** | ||
*/ | ||
export class LegacyDaedalusPrivateKey { | ||
free(): void; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {LegacyDaedalusPrivateKey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): LegacyDaedalusPrivateKey; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @returns {Uint8Array} | ||
*/ | ||
chaincode(): Uint8Array; | ||
} | ||
/** | ||
*/ | ||
export class LinearFee { | ||
free(): void; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
constant(): BigNum; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
coefficient(): BigNum; | ||
/** | ||
* @param {BigNum} coefficient | ||
* @param {BigNum} constant | ||
* @returns {LinearFee} | ||
*/ | ||
static new(coefficient: BigNum, constant: BigNum): LinearFee; | ||
} | ||
/** | ||
*/ | ||
export class MapTransactionMetadatumToTransactionMetadatum { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
* @param {Uint8Array} bytes | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MapTransactionMetadatumToTransactionMetadatum; | ||
/** | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum} | ||
*/ | ||
static new(): MapTransactionMetadatumToTransactionMetadatum; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
* @param {TransactionMetadatum} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
*/ | ||
insert(key: TransactionMetadatum, value: TransactionMetadatum): TransactionMetadatum | undefined; | ||
/** | ||
* @param {TransactionMetadatum} key | ||
* @returns {TransactionMetadatum | undefined} | ||
*/ | ||
get(key: TransactionMetadatum): TransactionMetadatum | undefined; | ||
} | ||
/** | ||
*/ | ||
export class MetadataHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MetadataHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {MetadataHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MetadataHash; | ||
} | ||
/** | ||
*/ | ||
export class MoveInstantaneousReward { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MoveInstantaneousReward} | ||
* @param {Uint8Array} bytes | ||
* @returns {MoveInstantaneousReward} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MoveInstantaneousReward; | ||
/** | ||
* @param {number} pot | ||
* @returns {MoveInstantaneousReward} | ||
* @param {number} pot | ||
* @returns {MoveInstantaneousReward} | ||
*/ | ||
static new(pot: number): MoveInstantaneousReward; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {StakeCredential} key | ||
* @param {Coin} value | ||
* @returns {Coin | undefined} | ||
* @param {StakeCredential} key | ||
* @param {BigNum} value | ||
* @returns {BigNum | undefined} | ||
*/ | ||
insert(key: StakeCredential, value: Coin): Coin | undefined; | ||
insert(key: StakeCredential, value: BigNum): BigNum | undefined; | ||
} | ||
/** | ||
*/ | ||
export class MoveInstantaneousRewardsCert { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MoveInstantaneousRewardsCert} | ||
* @param {Uint8Array} bytes | ||
* @returns {MoveInstantaneousRewardsCert} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MoveInstantaneousRewardsCert; | ||
/** | ||
* @param {MoveInstantaneousReward} move_instantaneous_reward | ||
* @returns {MoveInstantaneousRewardsCert} | ||
* @returns {MoveInstantaneousReward} | ||
*/ | ||
move_instantaneous_reward(): MoveInstantaneousReward; | ||
/** | ||
* @param {MoveInstantaneousReward} move_instantaneous_reward | ||
* @returns {MoveInstantaneousRewardsCert} | ||
*/ | ||
static new(move_instantaneous_reward: MoveInstantaneousReward): MoveInstantaneousRewardsCert; | ||
} | ||
/** | ||
*/ | ||
export class MsigAll { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigAll} | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigAll} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MsigAll; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigAll} | ||
* @returns {MultisigScripts} | ||
*/ | ||
multisig_scripts(): MultisigScripts; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigAll} | ||
*/ | ||
static new(multisig_scripts: MultisigScripts): MsigAll; | ||
} | ||
/** | ||
*/ | ||
export class MsigAny { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigAny} | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigAny} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MsigAny; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigAny} | ||
* @returns {MultisigScripts} | ||
*/ | ||
multisig_scripts(): MultisigScripts; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigAny} | ||
*/ | ||
static new(multisig_scripts: MultisigScripts): MsigAny; | ||
} | ||
/** | ||
*/ | ||
export class MsigNOfK { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigNOfK} | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigNOfK} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MsigNOfK; | ||
/** | ||
* @param {number} n | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigNOfK} | ||
* @returns {number} | ||
*/ | ||
n(): number; | ||
/** | ||
* @returns {MultisigScripts} | ||
*/ | ||
multisig_scripts(): MultisigScripts; | ||
/** | ||
* @param {number} n | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MsigNOfK} | ||
*/ | ||
static new(n: number, multisig_scripts: MultisigScripts): MsigNOfK; | ||
} | ||
/** | ||
*/ | ||
export class MsigPubkey { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigPubkey} | ||
* @param {Uint8Array} bytes | ||
* @returns {MsigPubkey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MsigPubkey; | ||
/** | ||
* @param {AddrKeyHash} addr_keyhash | ||
* @returns {MsigPubkey} | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
static new(addr_keyhash: AddrKeyHash): MsigPubkey; | ||
addr_keyhash(): Ed25519KeyHash; | ||
/** | ||
* @param {Ed25519KeyHash} addr_keyhash | ||
* @returns {MsigPubkey} | ||
*/ | ||
static new(addr_keyhash: Ed25519KeyHash): MsigPubkey; | ||
} | ||
/** | ||
*/ | ||
export class MultiHostName { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MultiHostName} | ||
* @param {Uint8Array} bytes | ||
* @returns {MultiHostName} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MultiHostName; | ||
/** | ||
* @param {string} dns_name | ||
* @returns {MultiHostName} | ||
* @returns {string} | ||
*/ | ||
dns_name(): string; | ||
/** | ||
* @param {string} dns_name | ||
* @returns {MultiHostName} | ||
*/ | ||
static new(dns_name: string): MultiHostName; | ||
} | ||
/** | ||
*/ | ||
export class MultisigScript { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MultisigScript} | ||
* @param {Uint8Array} bytes | ||
* @returns {MultisigScript} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MultisigScript; | ||
/** | ||
* @param {AddrKeyHash} addr_keyhash | ||
* @returns {MultisigScript} | ||
* @param {Ed25519KeyHash} addr_keyhash | ||
* @returns {MultisigScript} | ||
*/ | ||
static new_msig_pubkey(addr_keyhash: AddrKeyHash): MultisigScript; | ||
static new_msig_pubkey(addr_keyhash: Ed25519KeyHash): MultisigScript; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
*/ | ||
static new_msig_all(multisig_scripts: MultisigScripts): MultisigScript; | ||
/** | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
*/ | ||
static new_msig_any(multisig_scripts: MultisigScripts): MultisigScript; | ||
/** | ||
* @param {number} n | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
* @param {number} n | ||
* @param {MultisigScripts} multisig_scripts | ||
* @returns {MultisigScript} | ||
*/ | ||
static new_msig_n_of_k(n: number, multisig_scripts: MultisigScripts): MultisigScript; | ||
/** | ||
* @returns {number} | ||
*/ | ||
kind(): number; | ||
/** | ||
* @returns {MsigPubkey | undefined} | ||
*/ | ||
as_multisig_script0(): MsigPubkey | undefined; | ||
/** | ||
* @returns {MsigAll | undefined} | ||
*/ | ||
as_multisig_script1(): MsigAll | undefined; | ||
/** | ||
* @returns {MsigAny | undefined} | ||
*/ | ||
as_multisig_script2(): MsigAny | undefined; | ||
/** | ||
* @returns {MsigNOfK | undefined} | ||
*/ | ||
as_multisig_script3(): MsigNOfK | undefined; | ||
} | ||
/** | ||
*/ | ||
export class MultisigScripts { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {MultisigScripts} | ||
* @param {Uint8Array} bytes | ||
* @returns {MultisigScripts} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): MultisigScripts; | ||
/** | ||
* @returns {MultisigScripts} | ||
* @returns {MultisigScripts} | ||
*/ | ||
static new(): MultisigScripts; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {MultisigScript} | ||
* @param {number} index | ||
* @returns {MultisigScript} | ||
*/ | ||
get(index: number): MultisigScript; | ||
/** | ||
* @param {MultisigScript} elem | ||
* @param {MultisigScript} elem | ||
*/ | ||
add(elem: MultisigScript): void; | ||
} | ||
/** | ||
*/ | ||
export class Pointer { | ||
free(): void; | ||
/** | ||
* @param {BigInt} slot | ||
* @param {BigInt} tx_index | ||
* @param {BigInt} cert_index | ||
* @returns {Pointer} | ||
* @param {number} slot | ||
* @param {number} tx_index | ||
* @param {number} cert_index | ||
* @returns {Pointer} | ||
*/ | ||
static new(slot: BigInt, tx_index: BigInt, cert_index: BigInt): Pointer; | ||
static new(slot: number, tx_index: number, cert_index: number): Pointer; | ||
} | ||
/** | ||
*/ | ||
export class PointerAddress { | ||
free(): void; | ||
/** | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @param {Pointer} stake | ||
* @returns {PointerAddress} | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @param {Pointer} stake | ||
* @returns {PointerAddress} | ||
*/ | ||
static new(network: number, payment: StakeCredential, stake: Pointer): PointerAddress; | ||
/** | ||
* @returns {StakeCredential} | ||
* @returns {StakeCredential} | ||
*/ | ||
payment_cred(): StakeCredential; | ||
/** | ||
* @returns {Pointer} | ||
* @returns {Pointer} | ||
*/ | ||
stake_ponter(): Pointer; | ||
/** | ||
* @returns {Address} | ||
* @returns {Address} | ||
*/ | ||
to_address(): Address; | ||
} | ||
export class PoolKeyHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @param {Address} addr | ||
* @returns {PointerAddress | undefined} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
static from_address(addr: Address): PointerAddress | undefined; | ||
} | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolKeyHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PoolKeyHash; | ||
} | ||
export class PoolMetadata { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolMetadata} | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolMetadata} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PoolMetadata; | ||
/** | ||
* @param {string} url | ||
* @param {MetadataHash} metadata_hash | ||
* @returns {PoolMetadata} | ||
* @returns {string} | ||
*/ | ||
url(): string; | ||
/** | ||
* @returns {MetadataHash} | ||
*/ | ||
metadata_hash(): MetadataHash; | ||
/** | ||
* @param {string} url | ||
* @param {MetadataHash} metadata_hash | ||
* @returns {PoolMetadata} | ||
*/ | ||
static new(url: string, metadata_hash: MetadataHash): PoolMetadata; | ||
} | ||
/** | ||
*/ | ||
export class PoolParams { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolParams} | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolParams} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PoolParams; | ||
/** | ||
* @param {PoolKeyHash} operator | ||
* @param {VRFKeyHash} vrf_keyhash | ||
* @param {Coin} pledge | ||
* @param {Coin} cost | ||
* @param {UnitInterval} margin | ||
* @param {RewardAddress} reward_account | ||
* @param {AddrKeyHashes} pool_owners | ||
* @param {Relays} relays | ||
* @param {PoolMetadata | undefined} pool_metadata | ||
* @returns {PoolParams} | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
static new(operator: PoolKeyHash, vrf_keyhash: VRFKeyHash, pledge: Coin, cost: Coin, margin: UnitInterval, reward_account: RewardAddress, pool_owners: AddrKeyHashes, relays: Relays, pool_metadata?: PoolMetadata): PoolParams; | ||
operator(): Ed25519KeyHash; | ||
/** | ||
* @returns {VRFKeyHash} | ||
*/ | ||
vrf_keyhash(): VRFKeyHash; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
pledge(): BigNum; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
cost(): BigNum; | ||
/** | ||
* @returns {UnitInterval} | ||
*/ | ||
margin(): UnitInterval; | ||
/** | ||
* @returns {RewardAddress} | ||
*/ | ||
reward_account(): RewardAddress; | ||
/** | ||
* @returns {Ed25519KeyHashes} | ||
*/ | ||
pool_owners(): Ed25519KeyHashes; | ||
/** | ||
* @returns {Relays} | ||
*/ | ||
relays(): Relays; | ||
/** | ||
* @returns {PoolMetadata | undefined} | ||
*/ | ||
pool_metadata(): PoolMetadata | undefined; | ||
/** | ||
* @param {Ed25519KeyHash} operator | ||
* @param {VRFKeyHash} vrf_keyhash | ||
* @param {BigNum} pledge | ||
* @param {BigNum} cost | ||
* @param {UnitInterval} margin | ||
* @param {RewardAddress} reward_account | ||
* @param {Ed25519KeyHashes} pool_owners | ||
* @param {Relays} relays | ||
* @param {PoolMetadata | undefined} pool_metadata | ||
* @returns {PoolParams} | ||
*/ | ||
static new(operator: Ed25519KeyHash, vrf_keyhash: VRFKeyHash, pledge: BigNum, cost: BigNum, margin: UnitInterval, reward_account: RewardAddress, pool_owners: Ed25519KeyHashes, relays: Relays, pool_metadata?: PoolMetadata): PoolParams; | ||
} | ||
/** | ||
*/ | ||
export class PoolRegistration { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolRegistration} | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolRegistration} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PoolRegistration; | ||
/** | ||
* @param {PoolParams} pool_params | ||
* @returns {PoolRegistration} | ||
* @returns {PoolParams} | ||
*/ | ||
pool_params(): PoolParams; | ||
/** | ||
* @param {PoolParams} pool_params | ||
* @returns {PoolRegistration} | ||
*/ | ||
static new(pool_params: PoolParams): PoolRegistration; | ||
} | ||
/** | ||
*/ | ||
export class PoolRetirement { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolRetirement} | ||
* @param {Uint8Array} bytes | ||
* @returns {PoolRetirement} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PoolRetirement; | ||
/** | ||
* @param {PoolKeyHash} pool_keyhash | ||
* @param {number} epoch | ||
* @returns {PoolRetirement} | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
static new(pool_keyhash: PoolKeyHash, epoch: number): PoolRetirement; | ||
pool_keyhash(): Ed25519KeyHash; | ||
/** | ||
* @returns {number} | ||
*/ | ||
epoch(): number; | ||
/** | ||
* @param {Ed25519KeyHash} pool_keyhash | ||
* @param {number} epoch | ||
* @returns {PoolRetirement} | ||
*/ | ||
static new(pool_keyhash: Ed25519KeyHash, epoch: number): PoolRetirement; | ||
} | ||
/** | ||
*/ | ||
export class PrivateKey { | ||
free(): void; | ||
/** | ||
* @returns {PublicKey} | ||
* @returns {PublicKey} | ||
*/ | ||
to_public(): PublicKey; | ||
/** | ||
* @returns {PrivateKey} | ||
* @returns {PrivateKey} | ||
*/ | ||
static generate_ed25519(): PrivateKey; | ||
/** | ||
* @returns {PrivateKey} | ||
* @returns {PrivateKey} | ||
*/ | ||
static generate_ed25519extended(): PrivateKey; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PrivateKey} | ||
* @param {Uint8Array} bytes | ||
* @returns {PrivateKey} | ||
*/ | ||
static from_extended_bytes(bytes: Uint8Array): PrivateKey; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PrivateKey} | ||
* @param {Uint8Array} bytes | ||
* @returns {PrivateKey} | ||
*/ | ||
static from_normal_bytes(bytes: Uint8Array): PrivateKey; | ||
/** | ||
* @param {Uint8Array} message | ||
* @returns {Ed25519Signature} | ||
* @param {Uint8Array} message | ||
* @returns {Ed25519Signature} | ||
*/ | ||
sign(message: Uint8Array): Ed25519Signature; | ||
} | ||
/** | ||
* ED25519 key used as public key | ||
*/ | ||
export class PublicKey { | ||
@@ -910,30 +1317,32 @@ free(): void; | ||
* ``` | ||
* @param {string} bech32_str | ||
* @returns {PublicKey} | ||
* @param {string} bech32_str | ||
* @returns {PublicKey} | ||
*/ | ||
static from_bech32(bech32_str: string): PublicKey; | ||
/** | ||
* @returns {string} | ||
* @returns {string} | ||
*/ | ||
to_bech32(): string; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
as_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {PublicKey} | ||
* @param {Uint8Array} bytes | ||
* @returns {PublicKey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): PublicKey; | ||
/** | ||
* @param {Uint8Array} data | ||
* @param {Ed25519Signature} signature | ||
* @returns {boolean} | ||
* @param {Uint8Array} data | ||
* @param {Ed25519Signature} signature | ||
* @returns {boolean} | ||
*/ | ||
verify(data: Uint8Array, signature: Ed25519Signature): boolean; | ||
/** | ||
* @returns {AddrKeyHash} | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
hash(): AddrKeyHash; | ||
hash(): Ed25519KeyHash; | ||
} | ||
/** | ||
*/ | ||
export class PublicKeys { | ||
@@ -945,610 +1354,912 @@ free(): void; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
size(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {PublicKey} | ||
* @param {number} index | ||
* @returns {PublicKey} | ||
*/ | ||
get(index: number): PublicKey; | ||
/** | ||
* @param {PublicKey} key | ||
* @param {PublicKey} key | ||
*/ | ||
add(key: PublicKey): void; | ||
} | ||
/** | ||
*/ | ||
export class Relay { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Relay} | ||
* @param {Uint8Array} bytes | ||
* @returns {Relay} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Relay; | ||
/** | ||
* @param {SingleHostAddr} single_host_addr | ||
* @returns {Relay} | ||
* @param {SingleHostAddr} single_host_addr | ||
* @returns {Relay} | ||
*/ | ||
static new_single_host_addr(single_host_addr: SingleHostAddr): Relay; | ||
/** | ||
* @param {SingleHostName} single_host_name | ||
* @returns {Relay} | ||
* @param {SingleHostName} single_host_name | ||
* @returns {Relay} | ||
*/ | ||
static new_single_host_name(single_host_name: SingleHostName): Relay; | ||
/** | ||
* @param {MultiHostName} multi_host_name | ||
* @returns {Relay} | ||
* @param {MultiHostName} multi_host_name | ||
* @returns {Relay} | ||
*/ | ||
static new_multi_host_name(multi_host_name: MultiHostName): Relay; | ||
/** | ||
* @returns {number} | ||
*/ | ||
kind(): number; | ||
/** | ||
* @returns {SingleHostAddr | undefined} | ||
*/ | ||
as_single_host_addr(): SingleHostAddr | undefined; | ||
/** | ||
* @returns {SingleHostName | undefined} | ||
*/ | ||
as_single_host_name(): SingleHostName | undefined; | ||
/** | ||
* @returns {MultiHostName | undefined} | ||
*/ | ||
as_multi_host_name(): MultiHostName | undefined; | ||
} | ||
/** | ||
*/ | ||
export class Relays { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Relays} | ||
* @param {Uint8Array} bytes | ||
* @returns {Relays} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Relays; | ||
/** | ||
* @returns {Relays} | ||
* @returns {Relays} | ||
*/ | ||
static new(): Relays; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {Relay} | ||
* @param {number} index | ||
* @returns {Relay} | ||
*/ | ||
get(index: number): Relay; | ||
/** | ||
* @param {Relay} elem | ||
* @param {Relay} elem | ||
*/ | ||
add(elem: Relay): void; | ||
} | ||
/** | ||
*/ | ||
export class RewardAddress { | ||
free(): void; | ||
/** | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @returns {RewardAddress} | ||
* @param {number} network | ||
* @param {StakeCredential} payment | ||
* @returns {RewardAddress} | ||
*/ | ||
static new(network: number, payment: StakeCredential): RewardAddress; | ||
/** | ||
* @returns {StakeCredential} | ||
* @returns {StakeCredential} | ||
*/ | ||
payment_cred(): StakeCredential; | ||
/** | ||
* @returns {Address} | ||
* @returns {Address} | ||
*/ | ||
to_address(): Address; | ||
/** | ||
* @param {Address} addr | ||
* @returns {RewardAddress | undefined} | ||
*/ | ||
static from_address(addr: Address): RewardAddress | undefined; | ||
} | ||
/** | ||
*/ | ||
export class ScriptHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {ScriptHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {ScriptHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): ScriptHash; | ||
} | ||
/** | ||
*/ | ||
export class SingleHostAddr { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {SingleHostAddr} | ||
* @param {Uint8Array} bytes | ||
* @returns {SingleHostAddr} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): SingleHostAddr; | ||
/** | ||
* @param {number | undefined} port | ||
* @param {Ipv4 | undefined} ipv4 | ||
* @param {Ipv6 | undefined} ipv6 | ||
* @returns {SingleHostAddr} | ||
* @returns {number | undefined} | ||
*/ | ||
port(): number | undefined; | ||
/** | ||
* @returns {Ipv4 | undefined} | ||
*/ | ||
ipv4(): Ipv4 | undefined; | ||
/** | ||
* @returns {Ipv6 | undefined} | ||
*/ | ||
ipv6(): Ipv6 | undefined; | ||
/** | ||
* @param {number | undefined} port | ||
* @param {Ipv4 | undefined} ipv4 | ||
* @param {Ipv6 | undefined} ipv6 | ||
* @returns {SingleHostAddr} | ||
*/ | ||
static new(port?: number, ipv4?: Ipv4, ipv6?: Ipv6): SingleHostAddr; | ||
} | ||
/** | ||
*/ | ||
export class SingleHostName { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {SingleHostName} | ||
* @param {Uint8Array} bytes | ||
* @returns {SingleHostName} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): SingleHostName; | ||
/** | ||
* @param {number | undefined} port | ||
* @param {string} dns_name | ||
* @returns {SingleHostName} | ||
* @returns {number | undefined} | ||
*/ | ||
port(): number | undefined; | ||
/** | ||
* @returns {string} | ||
*/ | ||
dns_name(): string; | ||
/** | ||
* @param {number | undefined} port | ||
* @param {string} dns_name | ||
* @returns {SingleHostName} | ||
*/ | ||
static new(port: number | undefined, dns_name: string): SingleHostName; | ||
} | ||
/** | ||
*/ | ||
export class StakeCredential { | ||
free(): void; | ||
/** | ||
* @param {AddrKeyHash} hash | ||
* @returns {StakeCredential} | ||
* @param {Ed25519KeyHash} hash | ||
* @returns {StakeCredential} | ||
*/ | ||
static from_keyhash(hash: AddrKeyHash): StakeCredential; | ||
static from_keyhash(hash: Ed25519KeyHash): StakeCredential; | ||
/** | ||
* @param {ScriptHash} hash | ||
* @returns {StakeCredential} | ||
* @param {ScriptHash} hash | ||
* @returns {StakeCredential} | ||
*/ | ||
static from_scripthash(hash: ScriptHash): StakeCredential; | ||
/** | ||
* @returns {AddrKeyHash | undefined} | ||
* @returns {Ed25519KeyHash | undefined} | ||
*/ | ||
to_keyhash(): AddrKeyHash | undefined; | ||
to_keyhash(): Ed25519KeyHash | undefined; | ||
/** | ||
* @returns {ScriptHash | undefined} | ||
* @returns {ScriptHash | undefined} | ||
*/ | ||
to_scripthash(): ScriptHash | undefined; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
kind(): number; | ||
} | ||
/** | ||
*/ | ||
export class StakeDelegation { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeDelegation} | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeDelegation} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): StakeDelegation; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @param {PoolKeyHash} pool_keyhash | ||
* @returns {StakeDelegation} | ||
* @returns {StakeCredential} | ||
*/ | ||
static new(stake_credential: StakeCredential, pool_keyhash: PoolKeyHash): StakeDelegation; | ||
stake_credential(): StakeCredential; | ||
/** | ||
* @returns {Ed25519KeyHash} | ||
*/ | ||
pool_keyhash(): Ed25519KeyHash; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @param {Ed25519KeyHash} pool_keyhash | ||
* @returns {StakeDelegation} | ||
*/ | ||
static new(stake_credential: StakeCredential, pool_keyhash: Ed25519KeyHash): StakeDelegation; | ||
} | ||
/** | ||
*/ | ||
export class StakeDeregistration { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeDeregistration} | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeDeregistration} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): StakeDeregistration; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @returns {StakeDeregistration} | ||
* @returns {StakeCredential} | ||
*/ | ||
stake_credential(): StakeCredential; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @returns {StakeDeregistration} | ||
*/ | ||
static new(stake_credential: StakeCredential): StakeDeregistration; | ||
} | ||
/** | ||
*/ | ||
export class StakeRegistration { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeRegistration} | ||
* @param {Uint8Array} bytes | ||
* @returns {StakeRegistration} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): StakeRegistration; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @returns {StakeRegistration} | ||
* @returns {StakeCredential} | ||
*/ | ||
stake_credential(): StakeCredential; | ||
/** | ||
* @param {StakeCredential} stake_credential | ||
* @returns {StakeRegistration} | ||
*/ | ||
static new(stake_credential: StakeCredential): StakeRegistration; | ||
} | ||
/** | ||
*/ | ||
export class Transaction { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Transaction} | ||
* @param {Uint8Array} bytes | ||
* @returns {Transaction} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Transaction; | ||
/** | ||
* @param {TransactionBody} body | ||
* @param {TransactionWitnessSet} witness_set | ||
* @param {TransactionMetadata | undefined} metadata | ||
* @returns {Transaction} | ||
* @returns {TransactionBody} | ||
*/ | ||
body(): TransactionBody; | ||
/** | ||
* @returns {TransactionWitnessSet} | ||
*/ | ||
witness_set(): TransactionWitnessSet; | ||
/** | ||
* @returns {TransactionMetadata | undefined} | ||
*/ | ||
metadata(): TransactionMetadata | undefined; | ||
/** | ||
* @param {TransactionBody} body | ||
* @param {TransactionWitnessSet} witness_set | ||
* @param {TransactionMetadata | undefined} metadata | ||
* @returns {Transaction} | ||
*/ | ||
static new(body: TransactionBody, witness_set: TransactionWitnessSet, metadata?: TransactionMetadata): Transaction; | ||
} | ||
/** | ||
*/ | ||
export class TransactionBody { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionBody} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionBody} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionBody; | ||
/** | ||
* @param {Certificates} certs | ||
* @returns {TransactionInputs} | ||
*/ | ||
inputs(): TransactionInputs; | ||
/** | ||
* @returns {TransactionOutputs} | ||
*/ | ||
outputs(): TransactionOutputs; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
fee(): BigNum; | ||
/** | ||
* @returns {number} | ||
*/ | ||
ttl(): number; | ||
/** | ||
* @param {Certificates} certs | ||
*/ | ||
set_certs(certs: Certificates): void; | ||
/** | ||
* @param {Withdrawals} withdrawals | ||
* @returns {Certificates | undefined} | ||
*/ | ||
certs(): Certificates | undefined; | ||
/** | ||
* @param {Withdrawals} withdrawals | ||
*/ | ||
set_withdrawals(withdrawals: Withdrawals): void; | ||
/** | ||
* @param {MetadataHash} metadata_hash | ||
* @returns {Withdrawals | undefined} | ||
*/ | ||
withdrawals(): Withdrawals | undefined; | ||
/** | ||
* @param {MetadataHash} metadata_hash | ||
*/ | ||
set_metadata_hash(metadata_hash: MetadataHash): void; | ||
/** | ||
* @param {TransactionInputs} inputs | ||
* @param {TransactionOutputs} outputs | ||
* @param {Coin} fee | ||
* @param {number} ttl | ||
* @returns {TransactionBody} | ||
* @returns {MetadataHash | undefined} | ||
*/ | ||
static new(inputs: TransactionInputs, outputs: TransactionOutputs, fee: Coin, ttl: number): TransactionBody; | ||
metadata_hash(): MetadataHash | undefined; | ||
/** | ||
* @returns {TransactionHash} | ||
* @param {TransactionInputs} inputs | ||
* @param {TransactionOutputs} outputs | ||
* @param {BigNum} fee | ||
* @param {number} ttl | ||
* @returns {TransactionBody} | ||
*/ | ||
hash(): TransactionHash; | ||
static new(inputs: TransactionInputs, outputs: TransactionOutputs, fee: BigNum, ttl: number): TransactionBody; | ||
} | ||
/** | ||
* @param {PrivateKey} sk | ||
* @returns {Vkeywitness} | ||
*/ | ||
sign(sk: PrivateKey): Vkeywitness; | ||
export class TransactionBuilder { | ||
free(): void; | ||
/** | ||
* @param {Ed25519KeyHash} hash | ||
* @param {TransactionInput} input | ||
* @param {BigNum} amount | ||
*/ | ||
add_key_input(hash: Ed25519KeyHash, input: TransactionInput, amount: BigNum): void; | ||
/** | ||
* @param {ScriptHash} hash | ||
* @param {TransactionInput} input | ||
* @param {BigNum} amount | ||
*/ | ||
add_script_input(hash: ScriptHash, input: TransactionInput, amount: BigNum): void; | ||
/** | ||
* @param {ByronAddress} hash | ||
* @param {TransactionInput} input | ||
* @param {BigNum} amount | ||
*/ | ||
add_bootstrap_input(hash: ByronAddress, input: TransactionInput, amount: BigNum): void; | ||
/** | ||
* @param {TransactionOutput} output | ||
*/ | ||
add_output(output: TransactionOutput): void; | ||
/** | ||
* @param {BigNum} fee | ||
*/ | ||
set_fee(fee: BigNum): void; | ||
/** | ||
* @param {number} ttl | ||
*/ | ||
set_ttl(ttl: number): void; | ||
/** | ||
* @param {Certificates} certs | ||
*/ | ||
set_certs(certs: Certificates): void; | ||
/** | ||
* @param {Withdrawals} withdrawals | ||
*/ | ||
set_withdrawals(withdrawals: Withdrawals): void; | ||
/** | ||
* @param {TransactionMetadata} metadata | ||
*/ | ||
set_metadata(metadata: TransactionMetadata): void; | ||
/** | ||
* @param {LinearFee} linear_fee | ||
* @param {BigNum} minimum_utxo_val | ||
* @returns {TransactionBuilder} | ||
*/ | ||
static new(linear_fee: LinearFee, minimum_utxo_val: BigNum): TransactionBuilder; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
get_input_total(): BigNum; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
get_feeless_output_total(): BigNum; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
get_fee_or_calc(): BigNum; | ||
/** | ||
* @param {Address} address | ||
* @returns {boolean} | ||
*/ | ||
add_change_if_needed(address: Address): boolean; | ||
/** | ||
* @returns {TransactionBody} | ||
*/ | ||
build(): TransactionBody; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
estimate_fee(): BigNum; | ||
} | ||
/** | ||
*/ | ||
export class TransactionHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionHash; | ||
} | ||
/** | ||
*/ | ||
export class TransactionInput { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionInput} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionInput} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionInput; | ||
/** | ||
* @param {TransactionHash} transaction_id | ||
* @param {number} index | ||
* @returns {TransactionInput} | ||
* @returns {TransactionHash} | ||
*/ | ||
transaction_id(): TransactionHash; | ||
/** | ||
* @returns {number} | ||
*/ | ||
index(): number; | ||
/** | ||
* @param {TransactionHash} transaction_id | ||
* @param {number} index | ||
* @returns {TransactionInput} | ||
*/ | ||
static new(transaction_id: TransactionHash, index: number): TransactionInput; | ||
} | ||
/** | ||
*/ | ||
export class TransactionInputs { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionInputs} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionInputs} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionInputs; | ||
/** | ||
* @returns {TransactionInputs} | ||
* @returns {TransactionInputs} | ||
*/ | ||
static new(): TransactionInputs; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {TransactionInput} | ||
* @param {number} index | ||
* @returns {TransactionInput} | ||
*/ | ||
get(index: number): TransactionInput; | ||
/** | ||
* @param {TransactionInput} elem | ||
* @param {TransactionInput} elem | ||
*/ | ||
add(elem: TransactionInput): void; | ||
} | ||
/** | ||
*/ | ||
export class TransactionMetadata { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadata} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadata} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionMetadata; | ||
/** | ||
* @returns {TransactionMetadata} | ||
* @returns {TransactionMetadata} | ||
*/ | ||
static new(): TransactionMetadata; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {BigInt} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
* @param {BigNum} key | ||
* @param {TransactionMetadatum} value | ||
* @returns {TransactionMetadatum | undefined} | ||
*/ | ||
insert(key: BigInt, value: TransactionMetadatum): TransactionMetadatum | undefined; | ||
insert(key: BigNum, value: TransactionMetadatum): TransactionMetadatum | undefined; | ||
/** | ||
* @param {BigNum} key | ||
* @returns {TransactionMetadatum | undefined} | ||
*/ | ||
get(key: BigNum): TransactionMetadatum | undefined; | ||
} | ||
/** | ||
*/ | ||
export class TransactionMetadatum { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatum} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionMetadatum; | ||
/** | ||
* @param {MapTransactionMetadatumToTransactionMetadatum} map_transaction_metadatum_to_transaction_metadatum | ||
* @returns {TransactionMetadatum} | ||
* @param {MapTransactionMetadatumToTransactionMetadatum} map_transaction_metadatum_to_transaction_metadatum | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_map_transaction_metadatum_to_transaction_metadatum(map_transaction_metadatum_to_transaction_metadatum: MapTransactionMetadatumToTransactionMetadatum): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatums} arr_transaction_metadatum | ||
* @returns {TransactionMetadatum} | ||
* @param {TransactionMetadatums} arr_transaction_metadatum | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_arr_transaction_metadatum(arr_transaction_metadatum: TransactionMetadatums): TransactionMetadatum; | ||
/** | ||
* @param {Int} int | ||
* @returns {TransactionMetadatum} | ||
* @param {Int} int | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_int(int: Int): TransactionMetadatum; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatum} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_bytes(bytes: Uint8Array): TransactionMetadatum; | ||
/** | ||
* @param {string} text | ||
* @returns {TransactionMetadatum} | ||
* @param {string} text | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
static new_text(text: string): TransactionMetadatum; | ||
/** | ||
* @returns {number} | ||
*/ | ||
kind(): number; | ||
/** | ||
* @returns {MapTransactionMetadatumToTransactionMetadatum | undefined} | ||
*/ | ||
as_map_transaction_metadatum_to_transaction_metadatum(): MapTransactionMetadatumToTransactionMetadatum | undefined; | ||
/** | ||
* @returns {TransactionMetadatums | undefined} | ||
*/ | ||
as_arr_transaction_metadatum(): TransactionMetadatums | undefined; | ||
/** | ||
* @returns {Int | undefined} | ||
*/ | ||
as_int(): Int | undefined; | ||
/** | ||
* @returns {Uint8Array | undefined} | ||
*/ | ||
as_bytes(): Uint8Array | undefined; | ||
/** | ||
* @returns {string | undefined} | ||
*/ | ||
as_text(): string | undefined; | ||
} | ||
/** | ||
*/ | ||
export class TransactionMetadatums { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatums} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionMetadatums} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionMetadatums; | ||
/** | ||
* @returns {TransactionMetadatums} | ||
* @returns {TransactionMetadatums} | ||
*/ | ||
static new(): TransactionMetadatums; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {TransactionMetadatum} | ||
* @param {number} index | ||
* @returns {TransactionMetadatum} | ||
*/ | ||
get(index: number): TransactionMetadatum; | ||
/** | ||
* @param {TransactionMetadatum} elem | ||
* @param {TransactionMetadatum} elem | ||
*/ | ||
add(elem: TransactionMetadatum): void; | ||
} | ||
/** | ||
*/ | ||
export class TransactionOutput { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionOutput} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionOutput} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionOutput; | ||
/** | ||
* @param {Address} address | ||
* @param {Coin} amount | ||
* @returns {TransactionOutput} | ||
* @returns {Address} | ||
*/ | ||
static new(address: Address, amount: Coin): TransactionOutput; | ||
address(): Address; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
amount(): BigNum; | ||
/** | ||
* @param {Address} address | ||
* @param {BigNum} amount | ||
* @returns {TransactionOutput} | ||
*/ | ||
static new(address: Address, amount: BigNum): TransactionOutput; | ||
} | ||
/** | ||
*/ | ||
export class TransactionOutputs { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionOutputs} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionOutputs} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionOutputs; | ||
/** | ||
* @returns {TransactionOutputs} | ||
* @returns {TransactionOutputs} | ||
*/ | ||
static new(): TransactionOutputs; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {TransactionOutput} | ||
* @param {number} index | ||
* @returns {TransactionOutput} | ||
*/ | ||
get(index: number): TransactionOutput; | ||
/** | ||
* @param {TransactionOutput} elem | ||
* @param {TransactionOutput} elem | ||
*/ | ||
add(elem: TransactionOutput): void; | ||
} | ||
/** | ||
*/ | ||
export class TransactionWitnessSet { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionWitnessSet} | ||
* @param {Uint8Array} bytes | ||
* @returns {TransactionWitnessSet} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): TransactionWitnessSet; | ||
/** | ||
* @param {Vkeywitnesses} vkeys | ||
* @param {Vkeywitnesses} vkeys | ||
*/ | ||
set_vkeys(vkeys: Vkeywitnesses): void; | ||
/** | ||
* @param {MultisigScripts} scripts | ||
* @returns {Vkeywitnesses | undefined} | ||
*/ | ||
vkeys(): Vkeywitnesses | undefined; | ||
/** | ||
* @param {MultisigScripts} scripts | ||
*/ | ||
set_scripts(scripts: MultisigScripts): void; | ||
/** | ||
* @param {BootstrapWitnesses} bootstraps | ||
* @returns {MultisigScripts | undefined} | ||
*/ | ||
scripts(): MultisigScripts | undefined; | ||
/** | ||
* @param {BootstrapWitnesses} bootstraps | ||
*/ | ||
set_bootstraps(bootstraps: BootstrapWitnesses): void; | ||
/** | ||
* @returns {TransactionWitnessSet} | ||
* @returns {BootstrapWitnesses | undefined} | ||
*/ | ||
bootstraps(): BootstrapWitnesses | undefined; | ||
/** | ||
* @returns {TransactionWitnessSet} | ||
*/ | ||
static new(): TransactionWitnessSet; | ||
} | ||
/** | ||
*/ | ||
export class UnitInterval { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {UnitInterval} | ||
* @param {Uint8Array} bytes | ||
* @returns {UnitInterval} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): UnitInterval; | ||
/** | ||
* @param {BigInt} index_0 | ||
* @param {BigInt} index_1 | ||
* @returns {UnitInterval} | ||
* @returns {BigNum} | ||
*/ | ||
static new(index_0: BigInt, index_1: BigInt): UnitInterval; | ||
numerator(): BigNum; | ||
/** | ||
* @returns {BigNum} | ||
*/ | ||
denominator(): BigNum; | ||
/** | ||
* @param {BigNum} numerator | ||
* @param {BigNum} denominator | ||
* @returns {UnitInterval} | ||
*/ | ||
static new(numerator: BigNum, denominator: BigNum): UnitInterval; | ||
} | ||
/** | ||
*/ | ||
export class VRFKeyHash { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {VRFKeyHash} | ||
* @param {Uint8Array} bytes | ||
* @returns {VRFKeyHash} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): VRFKeyHash; | ||
} | ||
/** | ||
*/ | ||
export class Vkey { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Vkey} | ||
* @param {Uint8Array} bytes | ||
* @returns {Vkey} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Vkey; | ||
/** | ||
* @param {PublicKey} pk | ||
* @returns {Vkey} | ||
* @param {PublicKey} pk | ||
* @returns {Vkey} | ||
*/ | ||
static new(pk: PublicKey): Vkey; | ||
/** | ||
* @returns {PublicKey} | ||
*/ | ||
public_key(): PublicKey; | ||
} | ||
/** | ||
*/ | ||
export class Vkeywitness { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Vkeywitness} | ||
* @param {Uint8Array} bytes | ||
* @returns {Vkeywitness} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Vkeywitness; | ||
/** | ||
* @param {Vkey} vkey | ||
* @param {Ed25519Signature} signature | ||
* @returns {Vkeywitness} | ||
* @param {Vkey} vkey | ||
* @param {Ed25519Signature} signature | ||
* @returns {Vkeywitness} | ||
*/ | ||
static new(vkey: Vkey, signature: Ed25519Signature): Vkeywitness; | ||
/** | ||
* @returns {Vkey} | ||
*/ | ||
vkey(): Vkey; | ||
/** | ||
* @returns {Ed25519Signature} | ||
*/ | ||
signature(): Ed25519Signature; | ||
} | ||
/** | ||
*/ | ||
export class Vkeywitnesses { | ||
free(): void; | ||
/** | ||
* @returns {Vkeywitnesses} | ||
* @returns {Vkeywitnesses} | ||
*/ | ||
static new(): Vkeywitnesses; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {number} index | ||
* @returns {Vkeywitness} | ||
* @param {number} index | ||
* @returns {Vkeywitness} | ||
*/ | ||
get(index: number): Vkeywitness; | ||
/** | ||
* @param {Vkeywitness} elem | ||
* @param {Vkeywitness} elem | ||
*/ | ||
add(elem: Vkeywitness): void; | ||
} | ||
/** | ||
*/ | ||
export class Withdrawals { | ||
free(): void; | ||
/** | ||
* @returns {Uint8Array} | ||
* @returns {Uint8Array} | ||
*/ | ||
to_bytes(): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {Withdrawals} | ||
* @param {Uint8Array} bytes | ||
* @returns {Withdrawals} | ||
*/ | ||
static from_bytes(bytes: Uint8Array): Withdrawals; | ||
/** | ||
* @returns {Withdrawals} | ||
* @returns {Withdrawals} | ||
*/ | ||
static new(): Withdrawals; | ||
/** | ||
* @returns {number} | ||
* @returns {number} | ||
*/ | ||
len(): number; | ||
/** | ||
* @param {RewardAddress} key | ||
* @param {Coin} value | ||
* @returns {Coin | undefined} | ||
* @param {RewardAddress} key | ||
* @param {BigNum} value | ||
* @returns {BigNum | undefined} | ||
*/ | ||
insert(key: RewardAddress, value: Coin): Coin | undefined; | ||
insert(key: RewardAddress, value: BigNum): BigNum | undefined; | ||
/** | ||
* @param {RewardAddress} key | ||
* @returns {BigNum | undefined} | ||
*/ | ||
get(key: RewardAddress): BigNum | undefined; | ||
} |
{ | ||
"name": "@emurgo/cardano-serialization-lib-nodejs", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "cardano_serialization_lib_bg.wasm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1134601
7260