MCPcopy
hub / github.com/canopy-network/canopy / Get

Method Get

fsm/state.go:530–530  ·  view source on GitHub ↗

Get() retrieves a key-value pair under a key NOTE: returns (nil, nil) if no value is found for that key

(key []byte)

Source from the content-addressed store, hash-verified

528// Get() retrieves a key-value pair under a key
529// NOTE: returns (nil, nil) if no value is found for that key
530func (s *StateMachine) Get(key []byte) (bz []byte, err lib.ErrorI) { return s.Store().Get(key) }
531
532// Delete() deletes a key-value pair under a key
533func (s *StateMachine) Delete(key []byte) lib.ErrorI { return s.Store().Delete(key) }

Callers 13

GetOrderMethod · 0.95
GetAccountMethod · 0.95
GetPoolMethod · 0.95
GetSupplyMethod · 0.95
IncrementNonSignersMethod · 0.95
GetDexBatchMethod · 0.95
GetLastProposersMethod · 0.95
GetValidatorMethod · 0.95
GetValidatorExistsMethod · 0.95
GetCommitteesDataMethod · 0.95
CommitteeIsRetiredMethod · 0.95
StateReadMethod · 0.95

Calls 2

StoreMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected