Skip to main content
Version: 0.1.0

Protocol Documentation

Table of Contents​

Top

centerchain/tokenfactory/v1/tx.proto​

MsgAddBlacklist​

FieldTypeLabelDescription
senderstring
denomstring
addressstring

MsgAddBlacklistResponse​

MsgAddDelegate​

FieldTypeLabelDescription
senderstring
denomstring
addressstring

MsgAddDelegateResponse​

MsgBurn​

MsgBurn is the sdk.Msg type for allowing an admin account to burn a token. For now, we only support burning from the sender account.

FieldTypeLabelDescription
senderstring
amountcosmos.base.v1beta1.Coin
burnFromAddressstring

MsgBurnResponse​

MsgChangeAdmin​

MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign adminship of a denom to a new account

FieldTypeLabelDescription
senderstring
denomstring
new_adminstring

MsgChangeAdminResponse​

MsgChangeAdminResponse defines the response structure for an executed MsgChangeAdmin message.

MsgCreateDenom​

MsgCreateDenom defines the message structure for the CreateDenom gRPC service method. It allows an account to create a new denom. It requires a sender address and a sub denomination. The (sender_address, sub_denomination) tuple must be unique and cannot be re-used.

The resulting denom created is defined as <factory/{creatorAddress}/{subdenom}>. The resulting denom's admin is originally set to be the creator, but this can be changed later. The token denom does not indicate the current admin.

FieldTypeLabelDescription
senderstring
subdenomstringsubdenom can be up to 44 "alphanumeric" characters long.

MsgCreateDenomResponse​

MsgCreateDenomResponse is the return value of MsgCreateDenom It returns the full string of the newly created denom

FieldTypeLabelDescription
new_token_denomstring

MsgForceTransfer​

FieldTypeLabelDescription
senderstring
amountcosmos.base.v1beta1.Coin
transferFromAddressstring
transferToAddressstring

MsgForceTransferResponse​

MsgMint​

MsgMint is the sdk.Msg type for allowing an admin account to mint more of a token. For now, we only support minting to the sender account

FieldTypeLabelDescription
senderstring
amountcosmos.base.v1beta1.Coin
mintToAddressstring

MsgMintResponse​

MsgRemoveBlacklist​

FieldTypeLabelDescription
senderstring
denomstring
addressstring

MsgRemoveBlacklistResponse​

MsgRemoveDelegate​

FieldTypeLabelDescription
senderstring
denomstring
addressstring

MsgRemoveDelegateResponse​

MsgSetDenomMetadata​

MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set the denom's bank metadata

FieldTypeLabelDescription
senderstring
metadatacosmos.bank.v1beta1.Metadata

MsgSetDenomMetadataResponse​

MsgSetDenomMetadataResponse defines the response structure for an executed MsgSetDenomMetadata message.

MsgSetDenomRestriction​

FieldTypeLabelDescription
senderstring
denomstringsubdenom can be up to 44 "alphanumeric" characters long.
isRestrictedbool

MsgSetDenomRestrictionResponse​

MsgSetPoolDenylist​

FieldTypeLabelDescription
authoritystringauthority is the configured tokenfactory governance authority.
denomstring
denylistedbool

MsgSetPoolDenylistResponse​

MsgSetPoolable​

FieldTypeLabelDescription
senderstring
denomstring
poolablebool

MsgSetPoolableResponse​

MsgUpdateParams​

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

FieldTypeLabelDescription
authoritystringauthority is the address of the governance account.
paramsParamsparams defines the x/mint parameters to update.

NOTE: All parameters must be supplied. |

MsgUpdateParamsResponse​

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

Msg​

Msg defines the tokefactory module's gRPC message service.

Method NameRequest TypeResponse TypeDescription
CreateDenomMsgCreateDenomMsgCreateDenomResponse
MintMsgMintMsgMintResponse
BurnMsgBurnMsgBurnResponse
ChangeAdminMsgChangeAdminMsgChangeAdminResponse
SetDenomMetadataMsgSetDenomMetadataMsgSetDenomMetadataResponse
ForceTransferMsgForceTransferMsgForceTransferResponse
AddDelegateMsgAddDelegateMsgAddDelegateResponse
RemoveDelegateMsgRemoveDelegateMsgRemoveDelegateResponse
AddBlacklistMsgAddBlacklistMsgAddBlacklistResponse
RemoveBlacklistMsgRemoveBlacklistMsgRemoveBlacklistResponse
SetDenomRestrictionMsgSetDenomRestrictionMsgSetDenomRestrictionResponse
SetPoolableMsgSetPoolableMsgSetPoolableResponse
SetPoolDenylistMsgSetPoolDenylistMsgSetPoolDenylistResponse
UpdateParamsMsgUpdateParamsMsgUpdateParamsResponseUpdateParams defines a governance operation for updating the x/mint module parameters. The authority is hard-coded to the x/gov module account.

Since: cosmos-sdk 0.47 |

Scalar Value Types​

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)