Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

core state

Back to all declarations

admin

.uverse.address

Value

<gnolang.StringValue>

SetAdmin

func(newAdmin .uverse.address)

SetAdmin sets or transfers the admin role. If no admin is currently set (admin was not initialized in init, e.g. in tests), the first caller becomes admin. Once set, only the current admin can change it.

Open
OID
097668…1e98:9
SetAdmin details

Inspect func

AddRelayer

func(addr .uverse.address)

AddRelayer adds an address to the authorized relayer whitelist. Can only be called by the admin.

Open
OID
097668…1e98:10
AddRelayer details

Inspect func

RemoveRelayer

func(addr .uverse.address)

RemoveRelayer removes an address from the authorized relayer whitelist. Can only be called by the admin.

Open
OID
097668…1e98:11
RemoveRelayer details

Inspect func

ensureAdminCaller

func()

ensureAdminCaller panics if the EOA that signed the tx is not the admin. Uses unsafe.OriginCaller for tx-level EOA identity — admin authority is intentionally bound to the EOA that submitted the tx, which has no cur equivalent (cur.Previous() identifies the immediate frame, not the signer). Mirrors the v2 admin pattern in r/gnoland/blog/admin.gno. Trade-off: this allows the admin EOA to authorize admin ops through any intermediate realm (e.g. via maketx run, or a wrapper realm). That is the same tx.origin risk class as \`runtime.OriginCaller\` in v1; callers who set admin to an EOA must ensure that EOA does not call into untrusted code in the same tx.

Open
OID
097668…1e98:12
ensureAdminCaller details

Inspect func

ensureAuthorizedRelayer

func() .uverse.address
Open
OID
097668…1e98:13
ensureAuthorizedRelayer details

Inspect func

RegisterApp

func(portID string, app app.IBCApp)

RegisterApp registers an IBCApp, the portID is determined using the package path of the caller, hence it must an other realm.

Open
OID
097668…1e98:14
RegisterApp details

Inspect func

CreateClient

func(clientState lightclient.ClientState, consensusState lightclient.ConsensusState) string

CreateClient generates a new client identifier and invokes the associated light client module in order to initialize the client.

Open
OID
097668…1e98:16
CreateClient details

Inspect func

ClientIDs

func() []string

ClientIDs returns the list of known client identifiers, sorted lexically by id (the underlying b+tree order). Intended for read-only callers (UIs, other realms building txlinks).

Open
OID
097668…1e98:18
ClientIDs details

Inspect func

ClientLatestHeight

func(clientID string) string

ClientLatestHeight returns the latest (highest) consensus height the given client has been updated to, formatted as "\<revision>/\<height>". This is the client's latest trusted height. Returns "" if the client is unknown. Intended for read-only callers (UIs) that want to surface how up-to-date a client is.

Open
OID
097668…1e98:19
ClientLatestHeight details

Inspect func

ClientStatus

func(clientID string) string

ClientStatus returns the status of the given client (Active, Expired, Frozen, ...). Returns "" if the client is unknown. Intended for read-only callers (UIs) that want to surface whether a client is usable.

Open
OID
097668…1e98:20
ClientStatus details

Inspect func

RegisterCounterparty

func(clientID string, counterpartyMerklePrefix [][]uint8, counterpartyClientID string)

RegisterCounterparty will register the IBC v2 counterparty info for the given clientID. It must be called by the same relayer that called CreateClient.

Open
OID
097668…1e98:21
RegisterCounterparty details

Inspect func

UpdateClient

func(clientID string, clientMessage lightclient.ClientMessage)

UpdateClient will update the given IBC v2 light client with a new header. Can also be used to submit a misbehavior (clientMessage can be a header or a misbehavior, maybe split into 2 functions would make more sense here).

Open
OID
097668…1e98:22
UpdateClient details

Inspect func

UpgradeClient

func(clientID string, clientState interface{...}, consensusState interface{...}, proofUpgradeClient interface{...}, proofUpgradeConsensusState interface{...})

UpgradeClient upgrades the client to a new client and consensus state, verified by proofs that the counterparty chain committed to those states at its UpgradePath under the current client's latest consensus root.

Open
OID
097668…1e98:23
UpgradeClient details

Inspect func

RecoverClient

func(subjectClientID string, substituteClientID string)

RecoverClient recovers a frozen or expired subject client using a healthy substitute client that tracks the same counterparty chain.

Open
OID
097668…1e98:24
RecoverClient details

Inspect func

maxTimeoutDelta

time.Duration

Value

<zero>

SendPacket

func(msg types.MsgSendPacket) sequence uint64
Open
OID
097668…1e98:25
SendPacket details

Inspect func

RecvPacket

func(msg types.MsgRecvPacket) types.ResponseResultType
Open
OID
097668…1e98:27
RecvPacket details

Inspect func

WriteAcknowledgement

func(clientID string, sequence uint64, ack types.Acknowledgement)
Open
OID
097668…1e98:28
WriteAcknowledgement details

Inspect func

emitWriteAcknowledgement

func(packet types.Packet, ack types.Acknowledgement)
Open
OID
097668…1e98:29
emitWriteAcknowledgement details

Inspect func

Acknowledgement

func(msg types.MsgAcknowledgement) types.ResponseResultType
Open
OID
097668…1e98:30
Acknowledgement details

Inspect func

Timeout

func(msg types.MsgTimeout) types.ResponseResultType
Open
OID
097668…1e98:31
Timeout details

Inspect func

renderHome

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:34
renderHome details

Inspect func

renderApps

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:35
renderApps details

Inspect func

renderClients

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:36
renderClients details

Inspect func

renderClient

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:37
renderClient details

Inspect func

renderClientStatus

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:38
renderClientStatus details

Inspect func

renderClientConsensusStates

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:39
renderClientConsensusStates details

Inspect func

renderClientConsensusState

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:40
renderClientConsensusState details

Inspect func

renderClientNextSequenceSend

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:41
renderClientNextSequenceSend details

Inspect func

renderClientPacketCommitments

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:42
renderClientPacketCommitments details

Inspect func

renderClientPacketCommitment

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:43
renderClientPacketCommitment details

Inspect func

renderClientPacketReceipts

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:44
renderClientPacketReceipts details

Inspect func

renderClientPacketReceipt

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:45
renderClientPacketReceipt details

Inspect func

renderClientPacketAcknowledgements

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:46
renderClientPacketAcknowledgements details

Inspect func

renderClientPacketAcknowledgement

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:47
renderClientPacketAcknowledgement details

Inspect func

renderCommitment

func(w *v0.ResponseWriter, r *v0.Request, tree *v0.BPTree)
Open
OID
097668…1e98:48
renderCommitment details

Inspect func

renderCommitments

func(w *v0.ResponseWriter, r *v0.Request, tree *v0.BPTree)
Open
OID
097668…1e98:49
renderCommitments details

Inspect func

commitmentNode

func(sequence uint64, data []uint8) *json.Node
Open
OID
097668…1e98:50
commitmentNode details

Inspect func

renderClientUnreceivedPackets

func(w *v0.ResponseWriter, r *v0.Request)

renderClientUnreceivedPackets returns, given a list of sequences, the sequences for which no counterparty packet commitments have been received. This is done by checking if a receipt exists on this chain for the packet sequence.

Open
OID
097668…1e98:51
renderClientUnreceivedPackets details

Inspect func

renderConsensusState

func(height types.Height, cs *tendermint.ConsensusState) *json.Node
Open
OID
097668…1e98:52
renderConsensusState details

Inspect func

renderPkgPath

func(path string) string
Open
OID
097668…1e98:53
renderPkgPath details

Inspect func

renderAddr

func(addr .uverse.address) string
Open
OID
097668…1e98:54
renderAddr details

Inspect func

renderHeight

func(h types.Height) *json.Node
Open
OID
097668…1e98:55
renderHeight details

Inspect func

renderFraction

func(f tendermint.Fraction) *json.Node
Open
OID
097668…1e98:56
renderFraction details

Inspect func

renderDuration

func(d time.Duration) *json.Node
Open
OID
097668…1e98:57
renderDuration details

Inspect func

renderStrings

func(s []string) *json.Node
Open
OID
097668…1e98:58
renderStrings details

Inspect func

renderNode

func(w *v0.ResponseWriter, n *json.Node)
Open
OID
097668…1e98:59
renderNode details

Inspect func

nodeErrorClientNotFound

func(id string) *json.Node
Open
OID
097668…1e98:60
nodeErrorClientNotFound details

Inspect func

nodeError

func(msg string, args []interface{...}) *json.Node
Open
OID
097668…1e98:61
nodeError details

Inspect func

renderAdmin

func(w *v0.ResponseWriter, r *v0.Request)
Open
OID
097668…1e98:62
renderAdmin details

Inspect func

Store

type

Value

core.Store

client

type

Value

core.client

ibcApp

type

Value

core.ibcApp

pendingAsyncAck

type

Value

core.pendingAsyncAck

setChainParam

func(key []uint8, value []uint8)
Open
OID
097668…1e98:67
setChainParam details

Inspect func
admin : .uverse.address =<gnolang.StringValue>
relayers : *v0.BPTree Inspect
init.2 : func() Inspect
SetAdmin : func(newAdmin .uverse.address) Inspect
AddRelayer : func(addr .uverse.address) Inspect
RemoveRelayer : func(addr .uverse.address) Inspect
ensureAdminCaller : func() Inspect
ensureAuthorizedRelayer : func() .uverse.address Inspect
RegisterApp : func(portID string, app app.IBCApp) Inspect
CreateClient : func(clientState lightclient.ClientState, consensusState lightclient.ConsensusState) string Inspect
ClientIDs : func() []string Inspect
ClientLatestHeight : func(clientID string) string Inspect
ClientStatus : func(clientID string) string Inspect
RegisterCounterparty : func(clientID string, counterpartyMerklePrefix [][]uint8, counterpartyClientID string) Inspect
UpdateClient : func(clientID string, clientMessage lightclient.ClientMessage) Inspect
UpgradeClient : func(clientID string, clientState interface{...}, consensusState interface{...}, proofUpgradeClient interface{...}, proofUpgradeConsensusState interface{...}) Inspect
RecoverClient : func(subjectClientID string, substituteClientID string) Inspect
maxTimeoutDelta : time.Duration =<zero>
SendPacket : func(msg types.MsgSendPacket) sequence uint64 Inspect
RecvPacket : func(msg types.MsgRecvPacket) types.ResponseResultType Inspect
WriteAcknowledgement : func(clientID string, sequence uint64, ack types.Acknowledgement) Inspect
emitWriteAcknowledgement : func(packet types.Packet, ack types.Acknowledgement) Inspect
Acknowledgement : func(msg types.MsgAcknowledgement) types.ResponseResultType Inspect
Timeout : func(msg types.MsgTimeout) types.ResponseResultType Inspect
Render : func(path string) string Inspect
renderHome : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderApps : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClients : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClient : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientStatus : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientConsensusStates : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientConsensusState : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientNextSequenceSend : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketCommitments : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketCommitment : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketReceipts : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketReceipt : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketAcknowledgements : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderClientPacketAcknowledgement : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderCommitment : func(w *v0.ResponseWriter, r *v0.Request, tree *v0.BPTree) Inspect
renderCommitments : func(w *v0.ResponseWriter, r *v0.Request, tree *v0.BPTree) Inspect
commitmentNode : func(sequence uint64, data []uint8) *json.Node Inspect
renderClientUnreceivedPackets : func(w *v0.ResponseWriter, r *v0.Request) Inspect
renderConsensusState : func(height types.Height, cs *tendermint.ConsensusState) *json.Node Inspect
renderPkgPath : func(path string) string Inspect
renderAddr : func(addr .uverse.address) string Inspect
renderHeight : func(h types.Height) *json.Node Inspect
renderFraction : func(f tendermint.Fraction) *json.Node Inspect
renderDuration : func(d time.Duration) *json.Node Inspect
renderStrings : func(s []string) *json.Node Inspect
renderNode : func(w *v0.ResponseWriter, n *json.Node) Inspect
nodeErrorClientNotFound : func(id string) *json.Node Inspect
nodeError : func(msg string, args []interface{...}) *json.Node Inspect
renderAdmin : func(w *v0.ResponseWriter, r *v0.Request) Inspect
store : *core.Store Inspect
init.55 : func() Inspect
Store : type =core.Store
newStore : func() *core.Store Inspect
client : type =core.client
ibcApp : type =core.ibcApp
pendingAsyncAck : type =core.pendingAsyncAck
setChainParam : func(key []uint8, value []uint8) Inspect