package
0.2.0
Repository: https://github.com/irisnet/core-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AccAddressFromBech32 creates an AccAddress from a Bech32 string.
No description provided by the author
No description provided by the author
Bech32ifyPubKey returns a Bech32 encoded string containing the appropriate prefix based on the key type provided for a given PublicKey.
BigEndianToUint64 returns an uint64 from big endian encoded bytes.
No description provided by the author
No description provided by the author
No description provided by the author
Cond return a condition object with a key.
ConsAddressFromHex creates a ConsAddress from a hex string.
copy bytes.
intended to be used with require/assert: require.True(DecEq(...)).
test if two decimal arrays are equal.
EmptyEvents returns an empty slice of events.
No description provided by the author
No description provided by the author
No description provided by the author
Formats a time.Time into a []byte that can be sorted.
No description provided by the author
No description provided by the author
GetAddrPrefixCfg returns the config instance for the corresponding Network type.
GetError is used to covert irita error to sdk error.
GetFromBech32 decodes a bytestring from a Bech32 encoded string.
GetPubKeyFromBech32 returns a PublicKey from a bech32-encoded PublicKey with a given key type.
GetTLSCertPool get certificates from target server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
intended to be used with require/assert: require.True(IntEq(...)).
No description provided by the author
No description provided by the author
No description provided by the author
maximum decimal between two.
MaxInt returns the maximum between two integers.
No description provided by the author
minimum decimal between two.
return the minimum of the ints.
No description provided by the author
MsgTypeURL returns the TypeURL of a `sdk.Msg`.
No description provided by the author
No description provided by the author
Decimal from string, panic on error.
MustSortJSON is like SortJSON but panic if an error occurs, e.g., if the passed JSON isn't valid.
NewAttribute returns a new key/value Attribute object.
No description provided by the author
NewCoin returns a new coin with a denomination and amount.
NewCoins constructs a new coin set.
NewCond return a condition object with a complete event type and attrKey.
create a new context.
create a new Dec from integer assuming whole number.
NewDecCoin creates a new DecCoin instance from an Int.
NewDecCoinFromCoin creates a new DecCoin from a Coin.
NewDecCoinFromDec creates a new DecCoin instance from a Dec.
NewDecCoins constructs a new coin set with with decimal values from DecCoins.
NewDecCoinsFromCoin constructs a new coin set with decimal values from regular Coins.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer with decimal place at prec CONTRACT: prec <= Precision.
create a decimal from an input decimal string.
create a new Dec from integer with decimal place at prec CONTRACT: prec <= Precision.
NewEvent creates a new Event object with a given type and slice of one or more attributes.
No description provided by the author
No description provided by the author
NewFactory return a point of the instance of Factory.
NewInt constructs Int from int64.
NewInt64Coin returns a new coin with a denomination and amount.
NewInt64DecCoin returns a new DecCoin with a denomination and amount.
NewIntFromBigInt constructs Int from big.Int.
NewIntFromString constructs Int from string.
NewIntFromUint64 constructs an Int from a uint64.
NewIntWithDecimal constructs Int with decimal Result value is n*10^dec.
NewResponseFormatBroadcastTx returns a TxResponse given a ResultBroadcastTx from tendermint.
NewResponseFormatBroadcastTxCommit returns a TxResponse given a ResultBroadcastTxCommit from tendermint.
NewResponseResultTx returns a TxResponse given a ResultTx from tendermint.
No description provided by the author
NewSignModeHandlerMap returns a new SignModeHandlerMap with the provided defaultMode and handlers.
No description provided by the author
No description provided by the author
No description provided by the author
OneInt returns Int value with one.
ParseABCILogs attempts to parse a stringified ABCI tx log into a slice of ABCIMessageLog types.
No description provided by the author
No description provided by the author
ParseCoin parses a cli input for one coin type, returning errors if invalid.
ParseCoins will parse out a list of coins separated by commas.
ParseDecCoin parses a decimal coin from a string, returning an error if invalid.
ParseDecCoins will parse out a list of decimal coins separated by commas.
Parses a []byte encoded using FormatTimeKey back into a time.Time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SortableDecBytes returns a byte slice representation of a Dec that can be sorted.
SortedJSON takes any JSON and returns it sorted by keys.
StringifyEvent converts an Event object to a StringEvent object.
StringifyEvents converts a slice of Event objects into a slice of StringEvent objects.
No description provided by the author
No description provided by the author
No description provided by the author
Uint64ToBigEndian - marshals uint64 to a bigendian byte slice so it can be sorted.
UnwrapSDKContext retrieves a Context from a context.Context instance attached with WrapSDKContext.
ValAddressFromBech32 creates a ValAddress from a Bech32 string.
No description provided by the author
ValidateDenom validates a denomination string returning an error if it is invalid.
ValidSortableDec ensures that a Dec is within the sortable bounds, a Dec can't have a precision of less than 10^-18.
Wrap extends given error with an additional information.
Wrapf extends given error with an additional information.
WrapSDKContext returns a stdlib context.Context with the provided sdk.Context's internal context as a value.
No description provided by the author
No description provided by the author
No description provided by the author
ZeroInt returns Int value with zero.

# Constants

AddrLen defines a valid address length.
No description provided by the author
No description provided by the author
No description provided by the author
Bech32 conversion constants.
Bech32 conversion constants.
Bech32 conversion constants.
No description provided by the author
No description provided by the author
No description provided by the author
bytes required to represent the above precision Ceiling[Log2[999 999 999 999 999 999]].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
number of decimal places.
RootCodespace is the codespace for all errors defined in irita.
SdkContextKey is the key in the context.Context which holds the sdk.Context.
Slight modification of the RFC3339Nano but it right pads all zeros and drops the time zone info.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
No description provided by the author
No description provided by the author
Decimal errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Decimal errors.
Decimal errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
MaxSortableDec is the largest Dec that can be passed into SortableDecBytes() Its negative form is the least Dec that can be passed in.
No description provided by the author
No description provided by the author
Common event types and attribute keys.
Common event types and attribute keys.

# Structs

ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
No description provided by the author
No description provided by the author
Attribute defines an attribute wrapper where the key and value are strings instead of raw bytes.
BaseAccount defines the basic structure of the account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Coin defines a token with a denomination and an amount.
No description provided by the author
Context is an immutable object contains all information needed to process a request.
No description provided by the author
NOTE: never use new(Dec) or else we will panic unmarshalling into the nil embedded big.Int.
DecCoin defines a token with a denomination and a decimal amount.
DecProto defines a Protobuf wrapper around a Dec object.
No description provided by the author
EncodingConfig specifies the concrete encoding types to use for a given app.
EventDataNewBlock for SubscribeNewBlock.
EventDataNewBlockHeader for SubscribeNewBlockHeader.
EventDataTx for SubscribeTx.
No description provided by the author
EventManager implements a simple wrapper around a slice of Event objects that can be emitted from.
EventQueryBuilder is responsible for constructing listening conditions.
Factory defines a client transaction factory that facilitates generating and signing an application-specific transaction.
GasInfo defines tx execution gas context.
Int wraps integer with 256 bit range bound Checks overflow, underflow and division by zero Exists in range from -(2^maxBitLen-1) to 2^maxBitLen-1.
IntProto defines a Protobuf wrapper around an Int object.
No description provided by the author
MsgData defines the data returned in a Result object during message execution.
No description provided by the author
No description provided by the author
Result is the union of ResponseFormat and ResponseCheckTx.
No description provided by the author
No description provided by the author
ResultQueryTx is used to prepare info to display.
ResultSearchTxs defines a structure for querying txs pageable.
ResultTx encapsulates the return result of the transaction.
SearchTxsResult defines a structure for querying txs pageable.
SignerData is the specific information needed to sign a transaction that generally isn't included in the transaction body itself.
SignModeHandlerMap is SignModeHandler that aggregates multiple SignModeHandler's into a single handler.
SimulationResponse defines the response generated when a transaction is successfully simulated.
StdFee includes the amount of coins paid in fees and the maximum Gas to be used by the transaction.
Standard Signature.
StdSignDoc is replay-prevention structure.
StdSignMsg is a convenience structure for passing along a Msg with the other requirements for a StdSignDoc before it is signed.
StdTx is a standard way to wrap a Msg with Fee and Signatures.
StringEvent defines en Event object wrapper where all the attributes contain key/value pairs that are strings instead of raw bytes.
No description provided by the author
No description provided by the author
TxMsgData defines a list of MsgData.
TxResponse defines a structure containing relevant tx data and metadata.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventDataValidatorSetUpdates for SubscribeValidatorSetUpdates.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Error represents a root error.
EventData for SubscribeAny.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The purpose of this interface is to convert the irishub system type to the user receiving type and standardize the user interface.
No description provided by the author
SignModeHandler defines a interface to be implemented by types which will handle SignMode's by generating sign bytes from a Tx and SignerData.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
ABCIMessageLogs represents a slice of ABCIMessageLog.
AccAddress a wrapper around bytes meant to represent an account address.
No description provided by the author
Bech32PubKeyType defines a string type alias for a Bech32 public key type.
No description provided by the author
No description provided by the author
Coins is a set of Coin, one per currency.
ConsAddress defines a wrapper around bytes meant to present a consensus node.
ConsPubKey defines a wrapper around bytes meant to present a consensus node.
ContextKey defines a type alias for a stdlib Context key.
DecCoins defines a slice of coins with decimal values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Factory defines a client transaction factory that facilitates generating and signing an application-specific transaction.
Proposed rename, not done to avoid API breakage.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TxDecoder unmarshals transaction bytes.
TxEncoder marshals transaction to bytes.
ValAddress defines a wrapper around bytes meant to present a validator's operator.