Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OCEChain/OCEChain
/ functions
Functions
2,183 in github.com/OCEChain/OCEChain
⨍
Functions
2,183
◇
Types & classes
280
Function
NewMsgWithdrawValidatorRewardsAll
(valAddr sdk.ValAddress)
x/distribution/types/msg.go:146
Function
NewOutput
NewOutput - create a transaction output, used with MsgSend
x/bank/msgs.go:222
Function
NewParamsFromPath
Parse the BIP44 path and unmarshal into the struct. nolint: gocyclo
crypto/keys/hd/hdpath.go:59
Function
NewPrivKeyLedgerSecp256k1
NewPrivKeyLedgerSecp256k1 will generate a new key and store the public key for later use. CONTRACT: The ledger device, ledgerDevice, must be loaded a
crypto/ledger_secp256k1.go:52
Function
NewQuerier
(keeper Keeper)
x/gov/queryable.go:20
Function
NewQuerier
creates a querier for staking REST endpoints
x/stake/querier/queryable.go:30
Function
NewQueue
NewQueue constructs new Queue
store/queue.go:20
Function
NewStdFee
(gas int64, amount ...sdk.Coin)
x/auth/stdtx.go:77
Function
NewStdTx
(msgs []sdk.Msg, fee StdFee, sigs []StdSignature, memo string)
x/auth/stdtx.go:23
Function
NewTags
New variadic tags, must be k string, v []byte repeating
types/tags.go:34
Function
NewTestMsg
(addrs ...AccAddress)
types/tx_msg.go:54
Function
NewTestMsgCreateValidator
(address sdk.ValAddress, pubKey crypto.PubKey, amt sdk.Int)
x/slashing/test_common.go:115
Function
NewTestMsgCreateValidator
(address sdk.ValAddress, pubKey crypto.PubKey, amt int64)
x/stake/test_common.go:29
Function
NewTestMsgCreateValidatorOnBehalfOf
(delAddr sdk.AccAddress, valAddr sdk.ValAddress, valPubKey crypto.PubKey, amt int64)
x/stake/test_common.go:53
Function
NewTestMsgCreateValidatorWithCommission
(address sdk.ValAddress, pubKey crypto.PubKey, amt int64, commissionRate sdk.Dec)
x/stake/test_common.go:35
Function
NewTestMsgDelegate
(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt int64)
x/stake/test_common.go:45
Function
NewTransientStoreKey
Constructs new TransientStoreKey Must return a pointer according to the ocap principle
types/store.go:361
Function
NewTxBuilderFromCLI
NewTxBuilderFromCLI returns a new initialized TxBuilder with parameters from the command line using Viper.
x/auth/client/txbuilder/txbuilder.go:28
Function
NewTypeTable
re-export functions from subspace
x/params/subspace.go:17
Function
NewTypeTable
Constructs new table
x/params/subspace/table.go:13
Function
NewUintFromString
NewUintFromString constructs Uint from string
types/int.go:332
Function
NewUintWithDecimal
NewUintWithDecimal constructs Uint with decimal Result value is n*10^dec
types/int.go:347
Function
NewValidatorSigningInfo
Construct a new `ValidatorSigningInfo` struct
x/slashing/signing_info.go:94
Function
NewValidatorSlashingPeriod
Construct a new `ValidatorSlashingPeriod` struct
x/slashing/slashing_period.go:98
Function
NewWithdrawContext
(feePool FeePool, height int64, totalPower, valPower, commissionRate sdk.Dec)
x/distribution/types/validator_info.go:16
Method
Next
()
store/memiterator.go:47
Method
Next
Next implements the Iterator interface. It seeks to the next key/value pair in the iterator. It incurs a flat gas cost for seeking and a variable gas
store/gaskvstore.go:150
Method
Next
Next implements the Iterator interface.
store/tracekvstore.go:137
Function
NormalizeProposalStatus
NormalizeProposalStatus - normalize user specified proposal status
x/gov/client/utils.go:32
Function
NormalizeProposalType
NormalizeProposalType - normalize user specified proposal type
x/gov/client/utils.go:19
Function
NormalizeVoteOption
NormalizeVoteOption - normalize user specified vote option
x/gov/client/utils.go:4
Method
OnDelegationCreated
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:109
Method
OnDelegationCreated
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:90
Method
OnDelegationRemoved
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:117
Method
OnDelegationRemoved
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:92
Method
OnDelegationSharesModified
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:113
Method
OnDelegationSharesModified
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:91
Method
OnValidatorBeginUnbonding
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:120
Method
OnValidatorBeginUnbonding
Implements sdk.ValidatorHooks
x/slashing/hooks.go:72
Method
OnValidatorBeginUnbonding
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:38
Method
OnValidatorBonded
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:123
Method
OnValidatorBonded
Implements sdk.ValidatorHooks
x/slashing/hooks.go:67
Method
OnValidatorBonded
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:26
Method
OnValidatorCreated
nolint
x/distribution/keeper/hooks.go:100
Method
OnValidatorCreated
Implements sdk.ValidatorHooks
x/slashing/hooks.go:82
Method
OnValidatorCreated
Expose the hooks if present
x/stake/keeper/hooks.go:9
Method
OnValidatorModified
(ctx sdk.Context, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:103
Method
OnValidatorModified
(_ sdk.Context, _ sdk.ValAddress)
x/slashing/hooks.go:89
Method
OnValidatorPowerDidChange
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:126
Method
OnValidatorPowerDidChange
nolint - unused hooks
x/slashing/hooks.go:87
Method
OnValidatorPowerDidChange
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:32
Method
OnValidatorRemoved
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:106
Method
OnValidatorRemoved
Implements sdk.ValidatorHooks
x/slashing/hooks.go:77
Method
OnValidatorRemoved
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:20
Function
OneDec
()
types/decimal.go:50
Function
OneInt
OneInt returns Int value with one
types/int.go:134
Function
OneUint
OneUint returns Uint value with one
types/int.go:366
Function
ParseCoins
ParseCoins will parse out a list of coins separated by commas. If nothing is provided, it returns nil Coins. Returned coins are sorted.
types/coin.go:352
Function
ParseConfig
ParseConfig retrieves the default environment configuration for Cosmos.
server/config/toml.go:31
Function
ParseInt64OrReturnBadRequest
ParseInt64OrReturnBadRequest converts s to a int64 value.
client/utils/rest.go:55
Function
ParseTimeBytes
Parses a []byte encoded using FormatTimeKey back into a time.Time
types/utils.go:56
Function
ParseUint64OrReturnBadRequest
ParseUint64OrReturnBadRequest converts s to a uint64 value.
client/utils/rest.go:69
Method
Peek
Popping/Peeking on an empty queue will cause panic The user should check IsEmpty() before doing any actions Peek() returns the element at the front of
store/queue.go:47
Function
PersistentPreRunEFn
___________________________________________________________________________________ PersistentPreRunEFn returns a PersistentPreRunE function for cobra
server/util.go:49
Method
Pop
Pop() returns the element at the front of the queue and removes it
store/queue.go:53
Function
PostCommands
PostCommands adds common flags for commands to post tx
client/flags.go:65
Method
Prefix
Implements KVStore
store/prefixstore.go:73
Method
Prefix
Implements KVStore
store/iavlstore.go:160
Method
Prefix
Implements KVStore
store/dbstoreadapter.go:31
Method
Prefix
Implements KVStore
store/cachekvstore.go:85
Method
Prefix
Implements KVStore
store/gaskvstore.go:68
Method
Prefix
Implements KVStore
store/transientstore.go:37
Method
Prefix
Prefix implements the KVStore interface.
store/tracekvstore.go:81
Function
PrintUnsignedStdTx
PrintUnsignedStdTx builds an unsigned StdTx and prints it to os.Stdout. Don't perform online validation or lookups if offline is true.
client/utils/utils.go:91
Function
ProposalEqual
checks if two proposals are equal
x/gov/proposals.go:51
Function
ProtoBaseAccount
Prototype function for BaseAccount
x/auth/account.go:52
Method
Push
Push() inserts the elements to the rear of the queue
store/queue.go:40
Method
Push
Push() inserts the element to the end of the list It will increase the length when it is called
store/list.go:73
Method
Query
Query performs a query for information about the connected node.
client/context/query.go:34
Method
Query
---------------------- Query ------------------ Query calls substore.Query with the same `req` where `req.Path` is modified to remove the substore pre
store/rootmultistore.go:271
Method
Query
Query implements ABCI interface, allows queries by default we will return from (latest height -1), as we will have merkle proofs immediately (header
store/iavlstore.go:200
Method
Query
Implements ABCI. Delegates to CommitMultiStore if it implements Queryable
baseapp/baseapp.go:296
Method
QueryResult
QueryResult allows us to return sdk.Error.QueryResult() in query responses
types/errors.go:283
Method
QueryRouter
()
baseapp/options.go:112
Method
QuoInt
quotient
types/decimal.go:245
Function
RandomBondedValidator
RandomBondedValidator returns a random bonded validator given access to the keeper and ctx
x/stake/keeper/test_common.go:228
Function
RandomSetGenesis
RandomSetGenesis set genesis accounts with random coin values using the provided addresses and coin denominations. nolint: errcheck
x/mock/app.go:222
Function
RandomValidator
RandomValidator returns a random validator given access to the keeper and ctx
x/stake/keeper/test_common.go:221
Function
ReadRESTReq
* ReadRESTReq is a simple convenience wrapper that reads the body and unmarshals to the req interface. Usage: type SomeReq struct { BaseR
client/utils/rest.go:157
Method
ReceiveIBCPacket
XXX: In the future every module is able to register it's own handler for handling it's own IBC packets. The "ibc" handler will only route the packets
x/ibc/mapper.go:56
Function
RegisterBaseAccount
---------------------------------------- Wire Most users shouldn't use this, but this comes in handy for tests.
x/auth/account.go:113
Function
RegisterCodec
Register the sdk message type
types/codec.go:6
Function
RegisterCodec
Register concrete types on codec codec
x/ibc/codec.go:8
Function
RegisterCodec
Register concrete types on codec codec
x/slashing/codec.go:8
Function
RegisterRoutes
Register REST endpoints
client/rpc/root.go:51
Function
RegisterRoutes
register REST routes
client/tx/root.go:20
Function
RegisterRoutes
resgister REST routes
client/keys/root.go:35
Function
RegisterRoutes
register REST routes
x/auth/client/rest/query.go:17
Function
RegisterRoutes
RegisterRoutes - Central function to define routes that get registered by the main application
x/bank/client/rest/sendtx.go:18
Function
RegisterRoutes
RegisterRoutes - Central function to define routes that get registered by the main application
x/gov/client/rest/rest.go:30
← previous
next →
1,801–1,900 of 2,183, ranked by callers