Skip to content

@aldea/compiler / "aldea/coin" / Coin

Class: Coin ​

"aldea/coin".Coin

Coin class

Built in Jig that proxies calls to the VM for handling.

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new Coin(): Coin

Returns ​

Coin

Overrides ​

__ProxyJig.constructor

Defined in ​

index.d.ts:133

Properties ​

$lock ​

• Readonly $lock: Lock

Inherited from ​

__ProxyJig.$lock

Defined in ​

index.d.ts:76


$output ​

• Readonly $output: Output

Inherited from ​

__ProxyJig.$output

Defined in ​

index.d.ts:75

Accessors ​

amount ​

• get amount(): number

Returns ​

number

Implementation of ​

Fungible.amount

Defined in ​

index.d.ts:134

Methods ​

combine ​

▸ combine(coins): Coin

Parameters ​

NameType
coinsCoin[]

Returns ​

Coin

Implementation of ​

Fungible.combine

Defined in ​

index.d.ts:136


send ​

▸ send(motos): Coin

Parameters ​

NameType
motosnumber

Returns ​

Coin

Implementation of ​

Fungible.send

Defined in ​

index.d.ts:135