APIs
This section elaborates on the transaction message handler methods being exposed by the House module.
Create Campaign
When a create transaction is processed, the following things happen:
Validate the incoming create message.
Call the
CreateCampaign
method of the keeper.
RPC
The RPC for creating a campaign is as follows:
Request Message
The request message for CreateCampaign
is MsgCreateCampaign
. The proto for the request message is as follows:
Response Message
The response message for CreateCampaign
is MsgCreateCampaignResponse
. The proto for the request message is as follows:
Update Campaign
When a create transaction is processed, the following things happen:
Validate the incoming create message.
Call the
UpdateCampaign
method of the keeper.
RPC
The RPC for updating a campaign is as follows:
Request Message
The request message for UpdateCampaign
is MsgUpdateCampaign
. The proto for the request message is as follows:
Response Message
The response message for UpdateCampaign
is MsgUpdateCampaignResponse
. The proto for the request message is as follows:
Withdraw Funds
When a withdrawal funds transaction is processed, the following things happen:
Validate the incoming create message.
Call the
WithdrawFunds
method of the keeper.
RPC
The RPC for a withdraw funds of a campaign is as follows:
Request Message
The request message for WithdrawFunds
is MsgWithdrawFunds
. The proto for the request message is as follows:
Response Message
The response message for TopUp
is MsgWithdrawFundsResponse
. The proto for the request message is as follows:
Grant Reward
When a grant reward transaction is processed, the following things happen:
Validate the incoming create message.
Call the
GrantReward
method of the keeper.
RPC
The RPC for a grant reward of the reward module is as follows:
Request Message
The request message for GrantReward
is MsgGrantReward
. The proto for the request message is as follows:
Response Message
The response message for GrantReward
is MsgGrantRewardResponse
. The proto for the request message is as follows:
Last updated