Contract
- litewax.contract.Contract(name: str, client: Optional[Any] = None, actor: Optional[str] = None, permission: Optional[str] = 'active', force_recreate: Optional[bool] = False, node: Optional[str] = None) object [source]
Function for creating a contract object using wax abigen. Contract objects will be saved in the contracts folder.
Note
If you will pack your application to executable, generate the contracts before packing.
- Parameters:
name (str) – The name of the contract (ex: res.pink)
client (litewax.clients.Client) – A
litewax.clients.Client
object (if actor is not provided)actor (str) – The actor name (if client is not provided)
permission (str) – The permission to use (default: active)
force_recreate (bool) – Force the contract to be recreated (default: False)
node (str) – The node to use (default: https://wax.greymass.com)
- Returns:
Contract
object- Return type:
object
- class litewax.contract.Action(contract: object, action: str, args: dict)[source]
Example Action object for calling actions on a contract