blockchain

package
v0.0.0-...-2b696f0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployContract

func DeployContract() (*hedera.TransactionRecord, error)

func GetClient

func GetClient() (*hedera.Client, error)

func to get hedera client

func GetContractRecord

func GetContractRecord(newContractID hedera.ContractID, productID string) (hedera.ContractFunctionResult, error)

func SetContractRecord

func SetContractRecord(newContractID hedera.ContractID, productID string, quantity int64, color string) (*hedera.TransactionRecord, error)

Types

type Bytecode

type Bytecode struct {
	Object string `json:"object"`
}

contract bytecode struct

type ContractData

type ContractData struct {
	Data Data `json:"data"`
}

contract data struct

type Data

type Data struct {
	Bytecode Bytecode `json:"bytecode"`
}

Jump to

Keyboard shortcuts

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