From 96f12589d83421d0ad1ed9e17a145e4fb00809d0 Mon Sep 17 00:00:00 2001 From: William King Noel Bot Date: Tue, 5 Nov 2024 09:13:59 +0000 Subject: [PATCH] deploy: 3f76688dcdb3c7cf9b8f6549246c6613643c974e --- typescript/index.html | 20 +++++++++---------- typescript/interfaces/ChainPointer.html | 2 +- typescript/interfaces/ErrInspectAddress.html | 2 +- .../interfaces/InspectAddressByron.html | 8 ++++---- .../interfaces/InspectAddressIcarus.html | 6 +++--- .../interfaces/InspectAddressShelley.html | 6 +++--- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/typescript/index.html b/typescript/index.html index 861dcbda..aa197b60 100644 --- a/typescript/index.html +++ b/typescript/index.html @@ -1,27 +1,27 @@ cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

cardano-addresses

This module is a TypeScript/JavaScript binding for the cardano-addresses package.

-

Index

Type aliases

Address: string
+

Index

Type aliases

Address: string

A Cardano address, encoded as bech32, base58, or hexadecimal.

-
AddressStyle: "Shelley" | "Icarus" | "Byron"
+
AddressStyle: "Shelley" | "Icarus" | "Byron"

Supported address formats for the Cardano Shelley era.

-
Bytes: string
+
Bytes: string

Hex-encoded bytes.

TODO: what's the best way of representing bytestrings in TypeScript?

-
+

The return value of inspectAddress.

-
KeyHash: Bytes
+
KeyHash: Bytes

Verification key hash.

-
ScriptHash: Bytes
+
ScriptHash: Bytes

Hash of a script.

-
StakeReference: "none" | "by value" | "by pointer"
+
StakeReference: "none" | "by value" | "by pointer"

How the stake at this address will be delegated.

-
XPub: string
+
XPub: string

A bech32-encoded extended public key.

TODO: Add proper XPub type, which is the result of bech32 parsing a string.

-

Functions

  • inspectAddress(address: string, rootXPub?: string): Promise<InspectAddress>

Functions

  • inspectAddress(address: string, rootXPub?: string): Promise<InspectAddress>
  • Get information about a Cardano address. Three address formats are supported: Shelley, Icarus, and Byron.

    If the address can't be parsed, the promise will be rejected with @@ -33,5 +33,5 @@ key. This only applies to Byron addresses, and is for decrypting the InspectAddressByron.payload field.

Returns Promise<InspectAddress>

The fields parsed from the address.

-
  • version(): Promise<string>
  • version(): Promise<string>

Generated using TypeDoc

\ No newline at end of file diff --git a/typescript/interfaces/ChainPointer.html b/typescript/interfaces/ChainPointer.html index 6a60920c..2087ab78 100644 --- a/typescript/interfaces/ChainPointer.html +++ b/typescript/interfaces/ChainPointer.html @@ -1,3 +1,3 @@ ChainPointer | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChainPointer

A stake reference pointer.

-

Hierarchy

  • ChainPointer

Index

Properties

output_index: number
slot_num: number
transaction_index: number

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

output_index: number
slot_num: number
transaction_index: number

Generated using TypeDoc

\ No newline at end of file diff --git a/typescript/interfaces/ErrInspectAddress.html b/typescript/interfaces/ErrInspectAddress.html index b9aa47ce..80d25329 100644 --- a/typescript/interfaces/ErrInspectAddress.html +++ b/typescript/interfaces/ErrInspectAddress.html @@ -1,3 +1,3 @@ ErrInspectAddress | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ErrInspectAddress

Represents a failure to decode the given address.

-

Hierarchy

  • ErrInspectAddress

Index

Properties

Properties

error: { code: string; details?: unknown }

Type declaration

  • code: string
  • Optional details?: unknown
message: string

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

Properties

error: { code: string; details?: unknown }

Type declaration

  • code: string
  • Optional details?: unknown
message: string

Generated using TypeDoc

\ No newline at end of file diff --git a/typescript/interfaces/InspectAddressByron.html b/typescript/interfaces/InspectAddressByron.html index a8a38cd1..e7dd9ab8 100644 --- a/typescript/interfaces/InspectAddressByron.html +++ b/typescript/interfaces/InspectAddressByron.html @@ -1,12 +1,12 @@ InspectAddressByron | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectAddressByron

Corresponds to Cardano.Address.Style.Byron.AddressInfo.

-

Hierarchy

  • InspectAddressByron

Index

Properties

address_root: string
+

Hierarchy

  • InspectAddressByron

Index

Properties

address_root: string

Hex-encoded address payload

-
address_style: "Byron"
address_type: number
+
address_style: "Byron"
address_type: number

Numeric address type field.

-
network_tag?: number
+
network_tag?: number

Which network the address belongs to. Unset for mainnet.

-
payload: string | { account_index: number; address_index: number }
+
payload: string | { account_index: number; address_index: number }

Heirarchical derivation payload. If a root XPub is provided, the derivation indices are decrypted. Otherwise, it will be the encrypted payload.

diff --git a/typescript/interfaces/InspectAddressIcarus.html b/typescript/interfaces/InspectAddressIcarus.html index 5d6041fc..91ea4f3a 100644 --- a/typescript/interfaces/InspectAddressIcarus.html +++ b/typescript/interfaces/InspectAddressIcarus.html @@ -1,9 +1,9 @@ InspectAddressIcarus | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectAddressIcarus

Corresponds to Cardano.Address.Style.Icarus.AddressInfo.

-

Hierarchy

  • InspectAddressIcarus

Index

Properties

address_root: string
+

Hierarchy

  • InspectAddressIcarus

Index

Properties

address_root: string

Hex-encoded address payload

-
address_style: "Icarus"
address_type: number
+
address_style: "Icarus"
address_type: number

Numeric address type field.

-
network_tag: number
+
network_tag: number

Which network the address belongs to. Unset for mainnet.

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/typescript/interfaces/InspectAddressShelley.html b/typescript/interfaces/InspectAddressShelley.html index 8c9e3374..9ffe3440 100644 --- a/typescript/interfaces/InspectAddressShelley.html +++ b/typescript/interfaces/InspectAddressShelley.html @@ -1,5 +1,5 @@ -InspectAddressShelley | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectAddressShelley

Hierarchy

  • InspectAddressShelley

Index

Properties

address_style: "Shelley"
address_type: number
+InspectAddressShelley | cardano-addresses
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectAddressShelley

Hierarchy

  • InspectAddressShelley

Index

Properties

address_style: "Shelley"
address_type: number

Numeric address type field.

-
network_tag: number
+
network_tag: number

An integer denoting which network the address belongs to.

-
pointer?: ChainPointer
script_hash?: string
script_hash_bech32?: string
spending_key_hash?: string
spending_key_hash_bech32?: string
stake_key_hash?: string
stake_key_hash_bech32?: string
stake_reference?: StakeReference

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +
pointer?: ChainPointer
script_hash?: string
script_hash_bech32?: string
spending_key_hash?: string
spending_key_hash_bech32?: string
stake_key_hash?: string
stake_key_hash_bech32?: string
stake_reference?: StakeReference

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file