Documentation
¶
Index ¶
- Constants
- Variables
- func MakeNewUint256(b []byte) *uint256.Int
- func Uint256BytesFromHex(hex string) []byte
- func Uint256StringFromBytes(b []byte) string
- type API
- type AccountManager
- type AddressSDK
- type BlockchainManager
- type Coins
- type Contract
- type InputData
- type KeyManager
- type OutputData
- type Protocol
- type QuantosSDK
- type Token
- type VM
Constants ¶
View Source
const SDKVERSION = 1
Variables ¶
View Source
var CurrentNetworkID config.NetworkID
Functions ¶
func MakeNewUint256 ¶
func Uint256BytesFromHex ¶
func Uint256StringFromBytes ¶
Types ¶
type AccountManager ¶
type AddressSDK ¶
type AddressSDK interface {
InitSDK(netID string)
GenerateMasterWalletAddress() (*uint512.Address, string)
VerifyAddress(in string, out bool)
IsZeroAddress(in string, out bool)
GenerateTXAddress(in InputData, out OutputData)
GenerateBlockAddress(in InputData, out OutputData)
GetZeroAddress() string
DeriveFromMaster(master *uint512.Address, derivationPath string) string
}
func GetAddressSDK ¶
func GetAddressSDK() AddressSDK
type BlockchainManager ¶
type BlockchainManager interface {
CreateNewBlockchain()
SetConfigurationFile()
GetConfiguration(config string) (value interface{}, err error)
GetPublicInfo()
GetGenesisBlock()
ValidateGenesisBlock()
GetValidators()
ValidateValidators()
GetBlockById(blockID string)
ValidateBlock(blockID string)
CloseBlock(blockID string)
CreateBlock(data ...interface{})
GetLastBlock()
GetBlockMerkleRoot(blockID string)
GetTXMerkleRoot(txID string)
GetReceiptMerkleRoot(rID string)
CreateTx(txData ...interface{})
SendTx(txData ...interface{})
SignTx(signData ...interface{})
GetLastTimeStamp()
GetBlockByTxID(txId string)
GetTxByID(txId string)
Consensus() interface{}
GetOrphanBlocks()
GetPendingTxs()
GetPendingBlocks()
GetTxQueue()
GetBlockQueue()
Version()
CoinbaseAddress()
Coin()
Tokens()
Contracts()
}
type KeyManager ¶
type OutputData ¶
type OutputData struct {
// contains filtered or unexported fields
}
type QuantosSDK ¶
type QuantosSDK interface {
Version() int
KeyManager() KeyManager
AccountManager() AccountManager
Protocol() Protocol
BlockchainManager()
Wire()
GetChainConfig() map[string]string
}
Click to show internal directories.
Click to hide internal directories.