This library provides a TypeScript layer on top of Completium CLI library.
The table below presents exported types:
Type | Desc |
---|---|
Micheline | Micheline value |
MichelineType | Micheline type |
Account | Account imported with Completium CLI |
Parameters | Extra parameters when calling entrypoints (caller and amount of tez sent) |
Sets Completium to work in mockup mode.
Sets contract's now
value.
Parameter | Type | Desc |
---|---|---|
d |
Date |
Date value for now |
Sets quiet mode (no execution trace) to b
.
Parameter | Type | Desc |
---|---|---|
b |
boolean |
quiet mode |
Returns account named name
Parameter | Type | Desc |
---|---|---|
name |
string |
Account name |
Transfers tez from an account to another.
Parameter | Type | Desc |
---|---|---|
from |
Account |
Account to transfer from |
to |
Account | string |
Account or address to transfer to |
amount |
bigint |
Amount to transfer in mutez |
Off-chain version of pack
utility
Parameter | Type | Desc |
---|---|---|
obj |
Micheline |
Object to pack |
typ |
MichelineType | undefined |
Optional Micheline Type of obj |
Off-chain signature utility. A signature is check on-chain withcheck_signature
Parameter | Type | Desc |
---|---|---|
v |
string |
value to sign |
a |
Account |
Signer account |
Deploys an archetype contract. Returns contract address.
Parameter | Type | Desc |
---|---|---|
path |
string |
Path to archetype contract file (.arl) |
parameters |
any |
Contract parameters |
p |
Partial<Parameters> |
Deployment parameters |
Calls a contract entrypoint.
Parameter | Type | Desc |
---|---|---|
addr |
string |
Contract address |
entry |
string |
Contract entry point name |
arg |
Micheline |
Entry point parameter |
params |
Partial<Parameters> |
Call parameters |
Returns contract storage.
Parameter | Type | Desc |
---|---|---|
addr |
string |
Contract address |
Returns the value associated to a key in a big_map
Parameter | Type | Desc |
---|---|---|
bmid |
bigint |
Big map identifier |
k |
Michleine |
Key value |
t |
MichelineType |
Key type |
Fails if f
does not fail with error
Parameter | Type | Desc |
---|---|---|
f |
{ () : Promise<void> } |
Function to execute |
error |
Michleine |
Error to catch |
Name |
---|
prim_to_mich_type |
bool_to_mich |
bigint_to_mich |
string_to_mich |
elt_to_mich |
pair_to_mich |
pair_to_mich_type |
option_to_mich_type |
none_mich |
some_to_mich |
option_to_mich |
list_to_mich |
set_to_mich |