gas

package
v0.106.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 2 Imported by: 7

Documentation

Overview

Package gas provides a convenience wrapper for GAS contract to use it via RPC.

GAS itself only has standard NEP-17 methods, so this package only contains its hash and allows to create NEP-17 structures in an easier way. Refer to nep17 package for more details on NEP-17 interface.

Index

Constants

This section is empty.

Variables

Hash stores the hash of the native GAS contract.

Functions

func New

func New(actor nep17.Actor) *nep17.Token

New creates a NEP-17 contract instance for the native GAS contract.

func NewReader

func NewReader(invoker nep17.Invoker) *nep17.TokenReader

NewReader creates a NEP-17 reader for the GAS contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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