types

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchStruct

type BatchStruct struct {
	From              []string `json:"from"`
	To                []string `json:"to"`
	Amounts           []string `json:"amounts"`
	TransactionHash   []string `json:"tx_hashes"`
	SenderBalances    []string `json:"sender_balances"`
	ReceiverBalances  []string `json:"receiver_balances"`
	Messages          []string `json:"messages"`
	TransactionNonces []string `json:"tx_nonces"`
	AccountNonces     []string `json:"account_nonces"`
}

type BlockStuct

type BlockStuct struct {
	Blockheight       int      `json:"blockHeight"`
	Blockhash         string   `json:"blockhash"`
	Parentslot        int      `json:"parentSlot"`
	Previousblockhash string   `json:"previousBlockhash"`
	Timestamp         int      `json:"timestamp"`
	TransactionLength int      `json:"transactionLength"`
	Transactions      []string `json:"transactions"`
}

type ChainInfoStruct

type ChainInfoStruct struct {
	ChainInfo struct {
		ChainID string `json:"chainID"` // Chain ID of the chain which is taken from the user
		Key     string `json:"key"`     // Name of the account
		Moniker string `json:"moniker"` // Name of the chain
	} `json:"chainInfo"`
	DaInfo struct {
		DaSelected      string `json:"daSelected"`
		DaWalletAddress string `json:"daWalletAddress"`
		DaWalletKeypair string `json:"daWalletKeypair"`
	} `json:"daInfo"`
	SequencerInfo struct {
		SequencerType string `json:"sequencerType"`
	} `json:"sequencerInfo"`
}

type DAResponceStruct

type DAResponceStruct struct {
	Status    int    `json:"status"`
	Success   bool   `json:"success"`
	Message   string `json:"message"`
	DaKeyHash string `json:"daKeyHash"`
}

type DAStruct

type DAStruct struct {
	DAKey             string `json:"da_key"`
	DAClientName      string `json:"da_client_name"`
	BatchNumber       string `json:"batch_number"`
	PreviousStateHash string `json:"previous_state_hash"`
	CurrentStateHash  string `json:"current_state_hash"`
}

type DAUploadStruct

type DAUploadStruct struct {
	Proof             ProofStruct `json:"proof"`
	TxnHashes         []string    `json:"txnHashes"`
	CurrentStateHash  string      `json:"currentStateHash"`
	PreviousStateHash string      `json:"previousStateHash"`
	MetaData          struct {
		ChainID     string `json:"chainID"`
		BatchNumber int    `json:"batchNumber"`
	} `json:"metaData"`
}

type GetTransactionStruct

type GetTransactionStruct struct {
	To              string
	From            string
	Amount          string
	FromBalances    string
	ToBalances      string
	TransactionHash string
}
type Header struct {
	NumReadonlySignedAccounts   int `json:"numReadonlySignedAccounts"`
	NumReadonlyUnsignedAccounts int `json:"numReadonlyUnsignedAccounts"`
	NumRequiredSignatures       int `json:"numRequiredSignatures"`
}

type Instruction

type Instruction struct {
	Accounts       []int       `json:"accounts"`
	Data           string      `json:"data"`
	ProgramIdIndex int         `json:"programIdIndex"`
	StackHeight    interface{} `json:"stackHeight"`
}

type JsonRpcResponse

type JsonRpcResponse struct {
	Jsonrpc string `json:"jsonrpc"`
	Result  Result `json:"result"`
	Id      int    `json:"id"`
}

type LoadedAddresses

type LoadedAddresses struct {
	Readonly []interface{} `json:"readonly"`
	Writable []interface{} `json:"writable"`
}

type Message

type Message struct {
	AccountKeys     []string      `json:"accountKeys"`
	Header          Header        `json:"header"`
	Instructions    []Instruction `json:"instructions"`
	RecentBlockhash string        `json:"recentBlockhash"`
}

type Meta

type Meta struct {
	ComputeUnitsConsumed int             `json:"computeUnitsConsumed"`
	Err                  interface{}     `json:"err"`
	Fee                  int             `json:"fee"`
	InnerInstructions    []interface{}   `json:"innerInstructions"`
	LoadedAddresses      LoadedAddresses `json:"loadedAddresses"`
	LogMessages          []string        `json:"logMessages"`
	PostBalances         []int           `json:"postBalances"`
	PostTokenBalances    []interface{}   `json:"postTokenBalances"`
	PreBalances          []int           `json:"preBalances"`
	PreTokenBalances     []interface{}   `json:"preTokenBalances"`
	Rewards              []interface{}   `json:"rewards"`
	Status               Status          `json:"status"`
}

type ProofStruct

type ProofStruct struct {
	Ar struct {
		X string `json:"X"`
		Y string `json:"Y"`
	} `json:"Ar"`
	Krs struct {
		X string `json:"X"`
		Y string `json:"Y"`
	} `json:"Krs"`
	Bs struct {
		X struct {
			A0 string `json:"A0"`
			A1 string `json:"A1"`
		} `json:"X"`
		Y struct {
			A0 string `json:"A0"`
			A1 string `json:"A1"`
		} `json:"Y"`
	} `json:"Bs"`
	Commitments   []interface{} `json:"Commitments"`
	CommitmentPok struct {
		X int `json:"X"`
		Y int `json:"Y"`
	} `json:"CommitmentPok"`
}

type Result

type Result struct {
	BlockHeight       int               `json:"blockHeight"`
	BlockTime         int               `json:"blockTime"`
	Blockhash         string            `json:"blockhash"`
	ParentSlot        int               `json:"parentSlot"`
	PreviousBlockhash string            `json:"previousBlockhash"`
	Transactions      []TransactionInfo `json:"transactions"`
}

type SLProofStruct

type SLProofStruct struct {
	Ar struct {
		X string `json:"X"`
		Y string `json:"Y"`
	} `json:"Ar"`
	Krs struct {
		X string `json:"X"`
		Y string `json:"Y"`
	} `json:"Krs"`
	Bs struct {
		X struct {
			A0 string `json:"A0"`
			A1 string `json:"A1"`
		} `json:"X"`
		Y struct {
			A0 string `json:"A0"`
			A1 string `json:"A1"`
		} `json:"Y"`
	} `json:"Bs"`
	Commitments   []any `json:"Commitments"`
	CommitmentPok struct {
		X int `json:"X"`
		Y int `json:"Y"`
	} `json:"CommitmentPok"`
}

type SLVerificationKeyStruct

type SLVerificationKeyStruct struct {
	G1 struct {
		Alpha struct {
			X string `json:"X"`
			Y string `json:"Y"`
		} `json:"Alpha"`
		Beta struct {
			X string `json:"X"`
			Y string `json:"Y"`
		} `json:"Beta"`
		Delta struct {
			X string `json:"X"`
			Y string `json:"Y"`
		} `json:"Delta"`
		K []struct {
			X string `json:"X"`
			Y string `json:"Y"`
		} `json:"K"`
	} `json:"G1"`
	G2 struct {
		Beta struct {
			X struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"X"`
			Y struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"Y"`
		} `json:"Beta"`
		Delta struct {
			X struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"X"`
			Y struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"Y"`
		} `json:"Delta"`
		Gamma struct {
			X struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"X"`
			Y struct {
				A0 string `json:"A0"`
				A1 string `json:"A1"`
			} `json:"Y"`
		} `json:"Gamma"`
	} `json:"G2"`
	CommitmentKey struct {
	} `json:"CommitmentKey"`
	PublicAndCommitmentCommitted []any `json:"PublicAndCommitmentCommitted"`
}

type SettlementClientResponseStruct

type SettlementClientResponseStruct struct {
	Status      bool   `json:"status"`
	Data        string `json:"data"`
	Description string `json:"description"`
}

type SettlementLayerChainInfoStruct

type SettlementLayerChainInfoStruct struct {
	ChainId   string `json:"chain_id"`
	ChainName string `json:"chain_name"`
}

type Status

type Status struct {
	Ok interface{} `json:"Ok"`
}

type Transaction

type Transaction struct {
	Message    Message  `json:"message"`
	Signatures []string `json:"signatures"`
}

type TransactionInfo

type TransactionInfo struct {
	Meta        Meta        `json:"meta"`
	Transaction Transaction `json:"transaction"`
	Version     string      `json:"version"`
}

type TransactionStruck

type TransactionStruck struct {
	Signature   string      `json:"signature"`
	BlockHeight int         `json:"blockHeight"`
	BlockHash   string      `json:"blockHash"`
	Timestamp   int         `json:"timestamp"`
	Mata        Meta        `json:"mata"`
	Transaction Transaction `json:"transaction"`
}

type TxnResponce

type TxnResponce struct {
	Jsonrpc string    `json:"jsonrpc"`
	Result  TxnResult `json:"result"`
	Id      int       `json:"id"`
}

type TxnResult

type TxnResult struct {
	BlockTime   int         `json:"blockTime"`
	Meta        Meta        `json:"meta"`
	Slot        int         `json:"slot"`
	Transaction Transaction `json:"transaction"`
}

Jump to

Keyboard shortcuts

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