smart

package
v0.0.0-...-d56c475 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSign

func CheckSign(pub, data, sign string) (bool, error)

Types

type SmartContract

type SmartContract struct {
	CLB           bool
	Rollback      bool
	FullAccess    bool
	SysUpdate     bool
	TxSmart       *types.SmartTransaction
	TxData        map[string]any
	TxFuel        int64           // The fuel of executing contract
	TxCost        int64           // Maximum cost of executing contract
	TxUsedCost    decimal.Decimal // Used cost of CPU resources
	TXBlockFuel   decimal.Decimal
	Loop          map[string]bool
	Hash          []byte
	Payload       []byte
	Timestamp     int64
	TxSignature   []byte
	TxSize        int64
	Size          common.StorageSize
	PublicKeys    [][]byte
	Rand          *rand.Rand
	Notifications types.Notifications
	GenBlock      bool
	TimeLimit     int64

	Penalty         bool
	TokenEcosystems map[int64]any
	PrevSysPar      map[string]string
	ComPercents     map[int64]int64
	// contains filtered or unexported fields
}

SmartContract is storing smart contract data

Jump to

Keyboard shortcuts

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