UNPKG

@radixdlt/account

Version:

A JavaScript client library for interacting with the Radix Distributed Ledger.

37 lines (31 loc) 861 B
import { PublicKeyT } from '@radixdlt/crypto' import { Network } from '@radixdlt/primitives' export type ResourceIdentifierT = Readonly<{ hash: Buffer __witness: 'isRRI' network: Network name: string toString: () => string equals: (other: ResourceIdentifierT) => boolean }> export enum AddressTypeT { VALIDATOR = 'VALIDATOR_ADDRESS', ACCOUNT = 'ACCOUNT_ADDRESS', } export type AbstractAddressT = Readonly<{ addressType: AddressTypeT network: Network publicKey: PublicKeyT toString: () => string equals: (other: AbstractAddressT) => boolean }> export type AccountAddressT = AbstractAddressT & Readonly<{ addressType: AddressTypeT.ACCOUNT equals: (other: AccountAddressT) => boolean }> export type ValidatorAddressT = AbstractAddressT & Readonly<{ addressType: AddressTypeT.VALIDATOR equals: (other: ValidatorAddressT) => boolean }>