gas

package
v0.95.5-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 2 Imported by: 13

Documentation

Overview

Package gas provides interface to GasToken native contract. It implements regular NEP-17 functions for GAS token.

Index

Constants

View Source
const Hash = "\xcf\x76\xe2\x8b\xd0\x06\x2c\x4a\x47\x8e\xe3\x55\x61\x01\x13\x19\xf3\xcf\xa4\xd2"

Hash represents GAS contract hash.

Variables

This section is empty.

Functions

func BalanceOf

func BalanceOf(addr interop.Hash160) int

BalanceOf represents `balanceOf` method of GAS native contract.

func Decimals

func Decimals() int

Decimals represents `decimals` method of GAS native contract.

func Refuel added in v0.95.0

func Refuel(from interop.Hash160, amount int)

Refuel makes some GAS from the provided account available for the current execution. It represents `refuel` method of GAS native contract.

func Symbol

func Symbol() string

Symbol represents `symbol` method of GAS native contract.

func TotalSupply

func TotalSupply() int

TotalSupply represents `totalSupply` method of GAS native contract.

func Transfer

func Transfer(from, to interop.Hash160, amount int, data interface{}) bool

Transfer represents `transfer` method of GAS native contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL