MCPcopy Create free account

hub / github.com/OCEChain/OCEChain / functions

Functions2,183 in github.com/OCEChain/OCEChain

FunctionNewMsgWithdrawValidatorRewardsAll
(valAddr sdk.ValAddress)
x/distribution/types/msg.go:146
FunctionNewOutput
NewOutput - create a transaction output, used with MsgSend
x/bank/msgs.go:222
FunctionNewParamsFromPath
Parse the BIP44 path and unmarshal into the struct. nolint: gocyclo
crypto/keys/hd/hdpath.go:59
FunctionNewPrivKeyLedgerSecp256k1
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
FunctionNewQuerier
(keeper Keeper)
x/gov/queryable.go:20
FunctionNewQuerier
creates a querier for staking REST endpoints
x/stake/querier/queryable.go:30
FunctionNewQueue
NewQueue constructs new Queue
store/queue.go:20
FunctionNewStdFee
(gas int64, amount ...sdk.Coin)
x/auth/stdtx.go:77
FunctionNewStdTx
(msgs []sdk.Msg, fee StdFee, sigs []StdSignature, memo string)
x/auth/stdtx.go:23
FunctionNewTags
New variadic tags, must be k string, v []byte repeating
types/tags.go:34
FunctionNewTestMsg
(addrs ...AccAddress)
types/tx_msg.go:54
FunctionNewTestMsgCreateValidator
(address sdk.ValAddress, pubKey crypto.PubKey, amt sdk.Int)
x/slashing/test_common.go:115
FunctionNewTestMsgCreateValidator
(address sdk.ValAddress, pubKey crypto.PubKey, amt int64)
x/stake/test_common.go:29
FunctionNewTestMsgCreateValidatorOnBehalfOf
(delAddr sdk.AccAddress, valAddr sdk.ValAddress, valPubKey crypto.PubKey, amt int64)
x/stake/test_common.go:53
FunctionNewTestMsgCreateValidatorWithCommission
(address sdk.ValAddress, pubKey crypto.PubKey, amt int64, commissionRate sdk.Dec)
x/stake/test_common.go:35
FunctionNewTestMsgDelegate
(delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt int64)
x/stake/test_common.go:45
FunctionNewTransientStoreKey
Constructs new TransientStoreKey Must return a pointer according to the ocap principle
types/store.go:361
FunctionNewTxBuilderFromCLI
NewTxBuilderFromCLI returns a new initialized TxBuilder with parameters from the command line using Viper.
x/auth/client/txbuilder/txbuilder.go:28
FunctionNewTypeTable
re-export functions from subspace
x/params/subspace.go:17
FunctionNewTypeTable
Constructs new table
x/params/subspace/table.go:13
FunctionNewUintFromString
NewUintFromString constructs Uint from string
types/int.go:332
FunctionNewUintWithDecimal
NewUintWithDecimal constructs Uint with decimal Result value is n*10^dec
types/int.go:347
FunctionNewValidatorSigningInfo
Construct a new `ValidatorSigningInfo` struct
x/slashing/signing_info.go:94
FunctionNewValidatorSlashingPeriod
Construct a new `ValidatorSlashingPeriod` struct
x/slashing/slashing_period.go:98
FunctionNewWithdrawContext
(feePool FeePool, height int64, totalPower, valPower, commissionRate sdk.Dec)
x/distribution/types/validator_info.go:16
MethodNext
()
store/memiterator.go:47
MethodNext
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
MethodNext
Next implements the Iterator interface.
store/tracekvstore.go:137
FunctionNormalizeProposalStatus
NormalizeProposalStatus - normalize user specified proposal status
x/gov/client/utils.go:32
FunctionNormalizeProposalType
NormalizeProposalType - normalize user specified proposal type
x/gov/client/utils.go:19
FunctionNormalizeVoteOption
NormalizeVoteOption - normalize user specified vote option
x/gov/client/utils.go:4
MethodOnDelegationCreated
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:109
MethodOnDelegationCreated
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:90
MethodOnDelegationRemoved
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:117
MethodOnDelegationRemoved
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:92
MethodOnDelegationSharesModified
(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:113
MethodOnDelegationSharesModified
(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress)
x/slashing/hooks.go:91
MethodOnValidatorBeginUnbonding
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:120
MethodOnValidatorBeginUnbonding
Implements sdk.ValidatorHooks
x/slashing/hooks.go:72
MethodOnValidatorBeginUnbonding
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:38
MethodOnValidatorBonded
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:123
MethodOnValidatorBonded
Implements sdk.ValidatorHooks
x/slashing/hooks.go:67
MethodOnValidatorBonded
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:26
MethodOnValidatorCreated
nolint
x/distribution/keeper/hooks.go:100
MethodOnValidatorCreated
Implements sdk.ValidatorHooks
x/slashing/hooks.go:82
MethodOnValidatorCreated
Expose the hooks if present
x/stake/keeper/hooks.go:9
MethodOnValidatorModified
(ctx sdk.Context, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:103
MethodOnValidatorModified
(_ sdk.Context, _ sdk.ValAddress)
x/slashing/hooks.go:89
MethodOnValidatorPowerDidChange
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:126
MethodOnValidatorPowerDidChange
nolint - unused hooks
x/slashing/hooks.go:87
MethodOnValidatorPowerDidChange
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:32
MethodOnValidatorRemoved
(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress)
x/distribution/keeper/hooks.go:106
MethodOnValidatorRemoved
Implements sdk.ValidatorHooks
x/slashing/hooks.go:77
MethodOnValidatorRemoved
(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
x/stake/keeper/hooks.go:20
FunctionOneDec
()
types/decimal.go:50
FunctionOneInt
OneInt returns Int value with one
types/int.go:134
FunctionOneUint
OneUint returns Uint value with one
types/int.go:366
FunctionParseCoins
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
FunctionParseConfig
ParseConfig retrieves the default environment configuration for Cosmos.
server/config/toml.go:31
FunctionParseInt64OrReturnBadRequest
ParseInt64OrReturnBadRequest converts s to a int64 value.
client/utils/rest.go:55
FunctionParseTimeBytes
Parses a []byte encoded using FormatTimeKey back into a time.Time
types/utils.go:56
FunctionParseUint64OrReturnBadRequest
ParseUint64OrReturnBadRequest converts s to a uint64 value.
client/utils/rest.go:69
MethodPeek
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
FunctionPersistentPreRunEFn
___________________________________________________________________________________ PersistentPreRunEFn returns a PersistentPreRunE function for cobra
server/util.go:49
MethodPop
Pop() returns the element at the front of the queue and removes it
store/queue.go:53
FunctionPostCommands
PostCommands adds common flags for commands to post tx
client/flags.go:65
MethodPrefix
Implements KVStore
store/prefixstore.go:73
MethodPrefix
Implements KVStore
store/iavlstore.go:160
MethodPrefix
Implements KVStore
store/dbstoreadapter.go:31
MethodPrefix
Implements KVStore
store/cachekvstore.go:85
MethodPrefix
Implements KVStore
store/gaskvstore.go:68
MethodPrefix
Implements KVStore
store/transientstore.go:37
MethodPrefix
Prefix implements the KVStore interface.
store/tracekvstore.go:81
FunctionPrintUnsignedStdTx
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
FunctionProposalEqual
checks if two proposals are equal
x/gov/proposals.go:51
FunctionProtoBaseAccount
Prototype function for BaseAccount
x/auth/account.go:52
MethodPush
Push() inserts the elements to the rear of the queue
store/queue.go:40
MethodPush
Push() inserts the element to the end of the list It will increase the length when it is called
store/list.go:73
MethodQuery
Query performs a query for information about the connected node.
client/context/query.go:34
MethodQuery
---------------------- Query ------------------ Query calls substore.Query with the same `req` where `req.Path` is modified to remove the substore pre
store/rootmultistore.go:271
MethodQuery
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
MethodQuery
Implements ABCI. Delegates to CommitMultiStore if it implements Queryable
baseapp/baseapp.go:296
MethodQueryResult
QueryResult allows us to return sdk.Error.QueryResult() in query responses
types/errors.go:283
MethodQueryRouter
()
baseapp/options.go:112
MethodQuoInt
quotient
types/decimal.go:245
FunctionRandomBondedValidator
RandomBondedValidator returns a random bonded validator given access to the keeper and ctx
x/stake/keeper/test_common.go:228
FunctionRandomSetGenesis
RandomSetGenesis set genesis accounts with random coin values using the provided addresses and coin denominations. nolint: errcheck
x/mock/app.go:222
FunctionRandomValidator
RandomValidator returns a random validator given access to the keeper and ctx
x/stake/keeper/test_common.go:221
FunctionReadRESTReq
* 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
MethodReceiveIBCPacket
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
FunctionRegisterBaseAccount
---------------------------------------- Wire Most users shouldn't use this, but this comes in handy for tests.
x/auth/account.go:113
FunctionRegisterCodec
Register the sdk message type
types/codec.go:6
FunctionRegisterCodec
Register concrete types on codec codec
x/ibc/codec.go:8
FunctionRegisterCodec
Register concrete types on codec codec
x/slashing/codec.go:8
FunctionRegisterRoutes
Register REST endpoints
client/rpc/root.go:51
FunctionRegisterRoutes
register REST routes
client/tx/root.go:20
FunctionRegisterRoutes
resgister REST routes
client/keys/root.go:35
FunctionRegisterRoutes
register REST routes
x/auth/client/rest/query.go:17
FunctionRegisterRoutes
RegisterRoutes - Central function to define routes that get registered by the main application
x/bank/client/rest/sendtx.go:18
FunctionRegisterRoutes
RegisterRoutes - Central function to define routes that get registered by the main application
x/gov/client/rest/rest.go:30
← previousnext →1,801–1,900 of 2,183, ranked by callers