Documentation
¶
Index ¶
- Variables
- type AddressFromBech32Request
- type AddressFromBech32Response
- type AddressToBech32Request
- type AddressToBech32Response
- type BaseAccount
- type CallRequest
- type CallResponse
- type Coin
- type CreateAccountRequest
- type CreateAccountResponse
- type DeleteAccountRequest
- type DeleteAccountResponse
- type GenerateRecoveryPhraseRequest
- type GenerateRecoveryPhraseResponse
- type GetActiveAccountRequest
- type GetActiveAccountResponse
- type GetChainIDRequest
- type GetChainIDResponse
- type GetKeyInfoByAddressRequest
- type GetKeyInfoByAddressResponse
- type GetKeyInfoByNameOrAddressRequest
- type GetKeyInfoByNameOrAddressResponse
- type GetKeyInfoByNameRequest
- type GetKeyInfoByNameResponse
- type GetRemoteRequest
- type GetRemoteResponse
- type HasKeyByAddressRequest
- type HasKeyByAddressResponse
- type HasKeyByNameOrAddressRequest
- type HasKeyByNameOrAddressResponse
- type HasKeyByNameRequest
- type HasKeyByNameResponse
- type HelloRequest
- type HelloResponse
- type HelloStreamRequest
- type HelloStreamResponse
- type KeyInfo
- type ListKeyInfoRequest
- type ListKeyInfoResponse
- type MsgCall
- type MsgRun
- type MsgSend
- type QEvalRequest
- type QEvalResponse
- type QueryAccountRequest
- type QueryAccountResponse
- type QueryRequest
- type QueryResponse
- type RenderRequest
- type RenderResponse
- type RunRequest
- type RunResponse
- type SelectAccountRequest
- type SelectAccountResponse
- type SendRequest
- type SendResponse
- type SetChainIDRequest
- type SetChainIDResponse
- type SetPasswordRequest
- type SetPasswordResponse
- type SetRemoteRequest
- type SetRemoteResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = amino.RegisterPackage(amino.NewPackage( "github.com/gnolang/gnonative/api/gnonativetypes", "land.gno.gnonative.v1", path.Join(amino.GetCallersDirname(), ".."), ).WithP3GoPkgPath("github.com/gnolang/gnonative/api/gen/go"). WithDependencies().WithTypes( SetRemoteRequest{}, SetRemoteResponse{}, GetRemoteRequest{}, GetRemoteResponse{}, SetChainIDRequest{}, SetChainIDResponse{}, GetChainIDRequest{}, GetChainIDResponse{}, SetPasswordRequest{}, SetPasswordResponse{}, GenerateRecoveryPhraseRequest{}, GenerateRecoveryPhraseResponse{}, KeyInfo{}, Coin{}, BaseAccount{}, ListKeyInfoRequest{}, ListKeyInfoResponse{}, HasKeyByNameRequest{}, HasKeyByNameResponse{}, HasKeyByAddressRequest{}, HasKeyByAddressResponse{}, HasKeyByNameOrAddressRequest{}, HasKeyByNameOrAddressResponse{}, GetKeyInfoByNameRequest{}, GetKeyInfoByNameResponse{}, GetKeyInfoByAddressRequest{}, GetKeyInfoByAddressResponse{}, GetKeyInfoByNameOrAddressRequest{}, GetKeyInfoByNameOrAddressResponse{}, CreateAccountRequest{}, CreateAccountResponse{}, SelectAccountRequest{}, SelectAccountResponse{}, GetActiveAccountRequest{}, GetActiveAccountResponse{}, QueryAccountRequest{}, QueryAccountResponse{}, DeleteAccountRequest{}, DeleteAccountResponse{}, QueryRequest{}, QueryResponse{}, RenderRequest{}, RenderResponse{}, QEvalRequest{}, QEvalResponse{}, MsgCall{}, CallRequest{}, CallResponse{}, MsgSend{}, SendRequest{}, SendResponse{}, MsgRun{}, RunRequest{}, RunResponse{}, AddressToBech32Request{}, AddressToBech32Response{}, AddressFromBech32Request{}, AddressFromBech32Response{}, HelloRequest{}, HelloResponse{}, HelloStreamRequest{}, HelloStreamResponse{}, ).WithComments(path.Join(amino.GetCallersDirname(), "gnonativetypes.go")))
Functions ¶
This section is empty.
Types ¶
type AddressFromBech32Request ¶
type AddressFromBech32Request struct {
Bech32Address string `json:"bech32_address" yaml:"bech32_address"`
}
type AddressFromBech32Response ¶
type AddressFromBech32Response struct {
Address []byte `json:"address" yaml:"address"`
}
type AddressToBech32Request ¶
type AddressToBech32Request struct {
Address []byte `json:"address" yaml:"address"`
}
type AddressToBech32Response ¶
type AddressToBech32Response struct {
Bech32Address string `json:"bech32_address" yaml:"bech32_address"`
}
type BaseAccount ¶
type CallRequest ¶
type CallResponse ¶
type CallResponse struct {
Result []byte `json:"result" yaml:"result"`
}
type CreateAccountRequest ¶
type CreateAccountRequest struct { NameOrBech32 string `json:"name_or_bech32" yaml:"name_or_bech32"` Mnemonic string `json:"mnemonic" yaml:"mnemonic"` Bip39Passwd string `json:"bip39_passwd" yaml:"bip39_passwd"` Password string `json:"password" yaml:"password"` Account uint32 `json:"account" yaml:"account"` Index uint32 `json:"index" yaml:"index"` }
type CreateAccountResponse ¶
type CreateAccountResponse struct {
Key *KeyInfo `json:"key_info" yaml:"key_info"`
}
type DeleteAccountRequest ¶
type DeleteAccountResponse ¶
type DeleteAccountResponse struct { }
type GenerateRecoveryPhraseRequest ¶
type GenerateRecoveryPhraseRequest struct { }
type GenerateRecoveryPhraseResponse ¶
type GenerateRecoveryPhraseResponse struct {
Phrase string `json:"phrase" yaml:"phrase"`
}
type GetActiveAccountRequest ¶
type GetActiveAccountRequest struct { }
type GetChainIDRequest ¶
type GetChainIDRequest struct { }
type GetChainIDResponse ¶
type GetChainIDResponse struct {
ChainID string `json:"chain_id" yaml:"chain_id"`
}
type GetKeyInfoByAddressRequest ¶
type GetKeyInfoByAddressRequest struct {
Address []byte `json:"address" yaml:"address"`
}
type GetKeyInfoByAddressResponse ¶
type GetKeyInfoByAddressResponse struct {
Key *KeyInfo `json:"key_info" yaml:"key_info"`
}
type GetKeyInfoByNameOrAddressRequest ¶
type GetKeyInfoByNameOrAddressRequest struct {
NameOrBech32 string `json:"name_or_bech32" yaml:"name_or_bech32"`
}
type GetKeyInfoByNameOrAddressResponse ¶
type GetKeyInfoByNameOrAddressResponse struct {
Key *KeyInfo `json:"key_info" yaml:"key_info"`
}
type GetKeyInfoByNameRequest ¶
type GetKeyInfoByNameRequest struct {
Name string `json:"name" yaml:"name"`
}
type GetKeyInfoByNameResponse ¶
type GetKeyInfoByNameResponse struct {
Key *KeyInfo `json:"key_info" yaml:"key_info"`
}
type GetRemoteRequest ¶
type GetRemoteRequest struct { }
type GetRemoteResponse ¶
type GetRemoteResponse struct {
Remote string `json:"remote" yaml:"remote"`
}
type HasKeyByAddressRequest ¶
type HasKeyByAddressRequest struct {
Address []byte `json:"address" yaml:"address"`
}
type HasKeyByAddressResponse ¶
type HasKeyByAddressResponse struct {
Has bool `json:"has" yaml:"has"`
}
type HasKeyByNameOrAddressRequest ¶
type HasKeyByNameOrAddressRequest struct {
NameOrBech32 string `json:"name_or_bech32" yaml:"name_or_bech32"`
}
type HasKeyByNameOrAddressResponse ¶
type HasKeyByNameOrAddressResponse struct {
Has bool `json:"has" yaml:"has"`
}
type HasKeyByNameRequest ¶
type HasKeyByNameRequest struct {
Name string `json:"name" yaml:"name"`
}
type HasKeyByNameResponse ¶
type HasKeyByNameResponse struct {
Has bool `json:"has" yaml:"has"`
}
type HelloRequest ¶
type HelloRequest struct {
Name string
}
type HelloResponse ¶
type HelloResponse struct {
Greeting string
}
type HelloStreamRequest ¶
type HelloStreamRequest struct {
Name string
}
type HelloStreamResponse ¶
type HelloStreamResponse struct {
Greeting string
}
type ListKeyInfoRequest ¶
type ListKeyInfoRequest struct { }
type ListKeyInfoResponse ¶
type ListKeyInfoResponse struct {
Keys []*KeyInfo `json:"key_info" yaml:"key_info"`
}
type MsgCall ¶
type MsgCall struct { // Example: "gno.land/r/demo/boards" PackagePath string `json:"package_path" yaml:"package_path"` // Example: "CreateReply" Fnc string `json:"fnc" yaml:"fnc"` // list of arguments specific to the function // Example: ["1", "1", "2", "my reply"] Args []string `json:"args" yaml:"args"` Send string `json:"send" yaml:"send"` }
type QEvalRequest ¶
type QEvalResponse ¶
type QEvalResponse struct { // A typed expression like "(1 gno.land/r/demo/boards.BoardID)\n(true bool)" Result string `json:"result" yaml:"result"` }
type QueryAccountRequest ¶
type QueryAccountRequest struct {
Address []byte `json:"address" yaml:"address"`
}
type QueryAccountResponse ¶
type QueryAccountResponse struct {
AccountInfo *BaseAccount `json:"account_info" yaml:"account_info"`
}
type QueryRequest ¶
type QueryResponse ¶
type QueryResponse struct {
Result []byte `json:"result" yaml:"result"`
}
type RenderRequest ¶
type RenderResponse ¶
type RenderResponse struct { // The Render function result (typically markdown) Result string `json:"result" yaml:"result"` }
type RunRequest ¶
type RunResponse ¶
type RunResponse struct { // The "console" output from the run Result string `json:"result" yaml:"result"` }
type SelectAccountRequest ¶
type SelectAccountRequest struct {
NameOrBech32 string `json:"name_or_bech32" yaml:"name_or_bech32"`
}
type SelectAccountResponse ¶
type SendRequest ¶
type SendResponse ¶
type SendResponse struct { }
type SetChainIDRequest ¶
type SetChainIDRequest struct {
ChainID string `json:"chain_id" yaml:"chain_id"`
}
type SetChainIDResponse ¶
type SetChainIDResponse struct { }
type SetPasswordRequest ¶
type SetPasswordRequest struct {
Password string `json:"password" yaml:"password"`
}
type SetPasswordResponse ¶
type SetPasswordResponse struct { }
type SetRemoteRequest ¶
type SetRemoteRequest struct {
Remote string `json:"remote" yaml:"remote"`
}
type SetRemoteResponse ¶
type SetRemoteResponse struct { }
Click to show internal directories.
Click to hide internal directories.