@sparkdreamnft/sparkdreamjs 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +37 -1
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +198 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +499 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +56 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +21 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +11 -1
- package/esm/sparkdream/service/v1/tx.js +332 -0
- package/esm/sparkdream/service/v1/tx.registry.js +38 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +20 -1
- package/esm/sparkdream/session/v1/grant.js +98 -6
- package/esm/sparkdream/session/v1/tx.amino.js +3 -0
- package/esm/sparkdream/session/v1/tx.js +15 -3
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/esm/sparkdream/shield/v1/genesis.js +32 -2
- package/esm/sparkdream/shield/v1/params.js +25 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +480 -16
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20666 -17863
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +165 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +34 -0
- package/sparkdream/federation/v1/types.js +37 -1
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +144 -28
- package/sparkdream/rep/v1/params.js +198 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +338 -1
- package/sparkdream/rep/v1/tx.js +500 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +37 -1
- package/sparkdream/rep/v1/tx.registry.js +55 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +14 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +20 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +11 -1
- package/sparkdream/service/v1/tx.amino.js +10 -0
- package/sparkdream/service/v1/tx.d.ts +216 -0
- package/sparkdream/service/v1/tx.js +333 -1
- package/sparkdream/service/v1/tx.registry.d.ts +25 -1
- package/sparkdream/service/v1/tx.registry.js +37 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +18 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +19 -0
- package/sparkdream/session/v1/grant.d.ts +75 -7
- package/sparkdream/session/v1/grant.js +99 -7
- package/sparkdream/session/v1/tx.amino.js +3 -0
- package/sparkdream/session/v1/tx.d.ts +6 -4
- package/sparkdream/session/v1/tx.js +14 -2
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
- package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/sparkdream/shield/v1/genesis.d.ts +17 -1
- package/sparkdream/shield/v1/genesis.js +31 -1
- package/sparkdream/shield/v1/params.d.ts +32 -4
- package/sparkdream/shield/v1/params.js +25 -1
- package/sparkdream/shield/v1/query.d.ts +8 -0
- package/sparkdream/shield/v1/query.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +36 -10
- package/sparkdream/shield/v1/types.d.ts +337 -13
- package/sparkdream/shield/v1/types.js +483 -17
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgUnassignInitiative, MsgUnassignInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgAcceptJuryDuty, MsgAcceptJuryDutyResponse, MsgSubmitInitiativeReview, MsgSubmitInitiativeReviewResponse, MsgSetVerificationPolicy, MsgSetVerificationPolicyResponse, MsgResolveReviewEscalation, MsgResolveReviewEscalationResponse, MsgDeclineJuryDuty, MsgDeclineJuryDutyResponse, MsgFundReviewBounty, MsgFundReviewBountyResponse, MsgReclaimReviewBounty, MsgReclaimReviewBountyResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse, MsgCloseInitiative, MsgCloseInitiativeResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgUnassignInitiative, MsgUnassignInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgAcceptJuryDuty, MsgAcceptJuryDutyResponse, MsgSubmitInitiativeReview, MsgSubmitInitiativeReviewResponse, MsgSetVerificationPolicy, MsgSetVerificationPolicyResponse, MsgResolveReviewEscalation, MsgResolveReviewEscalationResponse, MsgDeclineJuryDuty, MsgDeclineJuryDutyResponse, MsgFundReviewBounty, MsgFundReviewBountyResponse, MsgReclaimReviewBounty, MsgReclaimReviewBountyResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse, MsgCloseInitiative, MsgCloseInitiativeResponse, MsgFundInitiativeBounty, MsgFundInitiativeBountyResponse, MsgReclaimInitiativeBounty, MsgReclaimInitiativeBountyResponse, MsgRevokeInvitation, MsgRevokeInvitationResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -351,6 +351,26 @@ export class MsgClientImpl {
|
|
|
351
351
|
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "CloseInitiative", data);
|
|
352
352
|
return promise.then(data => MsgCloseInitiativeResponse.decode(new BinaryReader(data)));
|
|
353
353
|
};
|
|
354
|
+
/* FundInitiativeBounty defines the FundInitiativeBounty RPC. */
|
|
355
|
+
fundInitiativeBounty = async (request) => {
|
|
356
|
+
const data = MsgFundInitiativeBounty.encode(request).finish();
|
|
357
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "FundInitiativeBounty", data);
|
|
358
|
+
return promise.then(data => MsgFundInitiativeBountyResponse.decode(new BinaryReader(data)));
|
|
359
|
+
};
|
|
360
|
+
/* ReclaimInitiativeBounty defines the ReclaimInitiativeBounty RPC. */
|
|
361
|
+
reclaimInitiativeBounty = async (request) => {
|
|
362
|
+
const data = MsgReclaimInitiativeBounty.encode(request).finish();
|
|
363
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "ReclaimInitiativeBounty", data);
|
|
364
|
+
return promise.then(data => MsgReclaimInitiativeBountyResponse.decode(new BinaryReader(data)));
|
|
365
|
+
};
|
|
366
|
+
/* RevokeInvitation lets an inviter withdraw a PENDING invitation before it
|
|
367
|
+
is accepted: the stake unlocks, the credit is restored and the invitee
|
|
368
|
+
address is freed. The record is kept with status REVOKED. */
|
|
369
|
+
revokeInvitation = async (request) => {
|
|
370
|
+
const data = MsgRevokeInvitation.encode(request).finish();
|
|
371
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "RevokeInvitation", data);
|
|
372
|
+
return promise.then(data => MsgRevokeInvitationResponse.decode(new BinaryReader(data)));
|
|
373
|
+
};
|
|
354
374
|
}
|
|
355
375
|
export const createClientImpl = (rpc) => {
|
|
356
376
|
return new MsgClientImpl(rpc);
|
|
@@ -65,6 +65,9 @@ export const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
sparkdream: {
|
|
68
|
+
artifact: {
|
|
69
|
+
v1: (await import("./artifact/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
70
|
+
},
|
|
68
71
|
blog: {
|
|
69
72
|
v1: (await import("./blog/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
70
73
|
},
|
package/esm/sparkdream/rpc.tx.js
CHANGED
|
@@ -51,6 +51,9 @@ export const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
sparkdream: {
|
|
54
|
+
artifact: {
|
|
55
|
+
v1: new (await import("./artifact/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
56
|
+
},
|
|
54
57
|
blog: {
|
|
55
58
|
v1: new (await import("./blog/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
56
59
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params, SeasonOperationalParams } from "./params";
|
|
3
|
+
import { QuestObjective } from "./quest";
|
|
3
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
5
|
function createBaseMsgUpdateParams() {
|
|
5
6
|
return {
|
|
@@ -3306,7 +3307,8 @@ function createBaseMsgCreateQuest() {
|
|
|
3306
3307
|
minLevel: BigInt(0),
|
|
3307
3308
|
requiredAchievement: "",
|
|
3308
3309
|
prerequisiteQuest: "",
|
|
3309
|
-
questChain: ""
|
|
3310
|
+
questChain: "",
|
|
3311
|
+
objectives: []
|
|
3310
3312
|
};
|
|
3311
3313
|
}
|
|
3312
3314
|
/**
|
|
@@ -3361,6 +3363,9 @@ export const MsgCreateQuest = {
|
|
|
3361
3363
|
if (message.questChain !== "") {
|
|
3362
3364
|
writer.uint32(114).string(message.questChain);
|
|
3363
3365
|
}
|
|
3366
|
+
for (const v of message.objectives) {
|
|
3367
|
+
QuestObjective.encode(v, writer.uint32(122).fork()).ldelim();
|
|
3368
|
+
}
|
|
3364
3369
|
return writer;
|
|
3365
3370
|
},
|
|
3366
3371
|
decode(input, length) {
|
|
@@ -3412,6 +3417,9 @@ export const MsgCreateQuest = {
|
|
|
3412
3417
|
case 14:
|
|
3413
3418
|
message.questChain = reader.string();
|
|
3414
3419
|
break;
|
|
3420
|
+
case 15:
|
|
3421
|
+
message.objectives.push(QuestObjective.decode(reader, reader.uint32()));
|
|
3422
|
+
break;
|
|
3415
3423
|
default:
|
|
3416
3424
|
reader.skipType(tag & 7);
|
|
3417
3425
|
break;
|
|
@@ -3435,6 +3443,7 @@ export const MsgCreateQuest = {
|
|
|
3435
3443
|
message.requiredAchievement = object.requiredAchievement ?? "";
|
|
3436
3444
|
message.prerequisiteQuest = object.prerequisiteQuest ?? "";
|
|
3437
3445
|
message.questChain = object.questChain ?? "";
|
|
3446
|
+
message.objectives = object.objectives?.map(e => QuestObjective.fromPartial(e)) || [];
|
|
3438
3447
|
return message;
|
|
3439
3448
|
},
|
|
3440
3449
|
fromAmino(object) {
|
|
@@ -3481,6 +3490,7 @@ export const MsgCreateQuest = {
|
|
|
3481
3490
|
if (object.quest_chain !== undefined && object.quest_chain !== null) {
|
|
3482
3491
|
message.questChain = object.quest_chain;
|
|
3483
3492
|
}
|
|
3493
|
+
message.objectives = object.objectives?.map(e => QuestObjective.fromAmino(e)) || [];
|
|
3484
3494
|
return message;
|
|
3485
3495
|
},
|
|
3486
3496
|
toAmino(message) {
|
|
@@ -3499,6 +3509,12 @@ export const MsgCreateQuest = {
|
|
|
3499
3509
|
obj.required_achievement = message.requiredAchievement === "" ? undefined : message.requiredAchievement;
|
|
3500
3510
|
obj.prerequisite_quest = message.prerequisiteQuest === "" ? undefined : message.prerequisiteQuest;
|
|
3501
3511
|
obj.quest_chain = message.questChain === "" ? undefined : message.questChain;
|
|
3512
|
+
if (message.objectives) {
|
|
3513
|
+
obj.objectives = message.objectives.map(e => e ? QuestObjective.toAmino(e) : undefined);
|
|
3514
|
+
}
|
|
3515
|
+
else {
|
|
3516
|
+
obj.objectives = message.objectives;
|
|
3517
|
+
}
|
|
3502
3518
|
return obj;
|
|
3503
3519
|
},
|
|
3504
3520
|
fromAminoMsg(object) {
|
|
@@ -5935,7 +5951,8 @@ function createBaseMsgUpdateQuest() {
|
|
|
5935
5951
|
requiredAchievement: "",
|
|
5936
5952
|
prerequisiteQuest: "",
|
|
5937
5953
|
questChain: "",
|
|
5938
|
-
active: false
|
|
5954
|
+
active: false,
|
|
5955
|
+
objectives: []
|
|
5939
5956
|
};
|
|
5940
5957
|
}
|
|
5941
5958
|
/**
|
|
@@ -5997,6 +6014,9 @@ export const MsgUpdateQuest = {
|
|
|
5997
6014
|
if (message.active === true) {
|
|
5998
6015
|
writer.uint32(120).bool(message.active);
|
|
5999
6016
|
}
|
|
6017
|
+
for (const v of message.objectives) {
|
|
6018
|
+
QuestObjective.encode(v, writer.uint32(130).fork()).ldelim();
|
|
6019
|
+
}
|
|
6000
6020
|
return writer;
|
|
6001
6021
|
},
|
|
6002
6022
|
decode(input, length) {
|
|
@@ -6051,6 +6071,9 @@ export const MsgUpdateQuest = {
|
|
|
6051
6071
|
case 15:
|
|
6052
6072
|
message.active = reader.bool();
|
|
6053
6073
|
break;
|
|
6074
|
+
case 16:
|
|
6075
|
+
message.objectives.push(QuestObjective.decode(reader, reader.uint32()));
|
|
6076
|
+
break;
|
|
6054
6077
|
default:
|
|
6055
6078
|
reader.skipType(tag & 7);
|
|
6056
6079
|
break;
|
|
@@ -6075,6 +6098,7 @@ export const MsgUpdateQuest = {
|
|
|
6075
6098
|
message.prerequisiteQuest = object.prerequisiteQuest ?? "";
|
|
6076
6099
|
message.questChain = object.questChain ?? "";
|
|
6077
6100
|
message.active = object.active ?? false;
|
|
6101
|
+
message.objectives = object.objectives?.map(e => QuestObjective.fromPartial(e)) || [];
|
|
6078
6102
|
return message;
|
|
6079
6103
|
},
|
|
6080
6104
|
fromAmino(object) {
|
|
@@ -6124,6 +6148,7 @@ export const MsgUpdateQuest = {
|
|
|
6124
6148
|
if (object.active !== undefined && object.active !== null) {
|
|
6125
6149
|
message.active = object.active;
|
|
6126
6150
|
}
|
|
6151
|
+
message.objectives = object.objectives?.map(e => QuestObjective.fromAmino(e)) || [];
|
|
6127
6152
|
return message;
|
|
6128
6153
|
},
|
|
6129
6154
|
toAmino(message) {
|
|
@@ -6143,6 +6168,12 @@ export const MsgUpdateQuest = {
|
|
|
6143
6168
|
obj.prerequisite_quest = message.prerequisiteQuest === "" ? undefined : message.prerequisiteQuest;
|
|
6144
6169
|
obj.quest_chain = message.questChain === "" ? undefined : message.questChain;
|
|
6145
6170
|
obj.active = message.active === false ? undefined : message.active;
|
|
6171
|
+
if (message.objectives) {
|
|
6172
|
+
obj.objectives = message.objectives.map(e => e ? QuestObjective.toAmino(e) : undefined);
|
|
6173
|
+
}
|
|
6174
|
+
else {
|
|
6175
|
+
obj.objectives = message.objectives;
|
|
6176
|
+
}
|
|
6146
6177
|
return obj;
|
|
6147
6178
|
},
|
|
6148
6179
|
fromAminoMsg(object) {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
|
+
function createBaseCheckpoint() {
|
|
5
|
+
return {
|
|
6
|
+
operator: "",
|
|
7
|
+
serviceType: "",
|
|
8
|
+
height: BigInt(0),
|
|
9
|
+
root: new Uint8Array(),
|
|
10
|
+
submittedAt: BigInt(0)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Checkpoint is an operator's latest progress claim for its off-chain work
|
|
15
|
+
* under one service type (MsgSubmitCheckpoint). Service-agnostic: for
|
|
16
|
+
* content scanners `height` is the block height scanned up to and `root` the
|
|
17
|
+
* merkle root of the operator's signed verdict feed up to that point
|
|
18
|
+
* (docs/content-scanning.md §8.2). One record per (service_type, operator);
|
|
19
|
+
* each submission replaces the previous one and must advance `height`.
|
|
20
|
+
* @name Checkpoint
|
|
21
|
+
* @package sparkdream.service.v1
|
|
22
|
+
* @see proto type: sparkdream.service.v1.Checkpoint
|
|
23
|
+
*/
|
|
24
|
+
export const Checkpoint = {
|
|
25
|
+
typeUrl: "/sparkdream.service.v1.Checkpoint",
|
|
26
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
27
|
+
if (message.operator !== "") {
|
|
28
|
+
writer.uint32(10).string(message.operator);
|
|
29
|
+
}
|
|
30
|
+
if (message.serviceType !== "") {
|
|
31
|
+
writer.uint32(18).string(message.serviceType);
|
|
32
|
+
}
|
|
33
|
+
if (message.height !== BigInt(0)) {
|
|
34
|
+
writer.uint32(24).int64(message.height);
|
|
35
|
+
}
|
|
36
|
+
if (message.root.length !== 0) {
|
|
37
|
+
writer.uint32(34).bytes(message.root);
|
|
38
|
+
}
|
|
39
|
+
if (message.submittedAt !== BigInt(0)) {
|
|
40
|
+
writer.uint32(40).int64(message.submittedAt);
|
|
41
|
+
}
|
|
42
|
+
return writer;
|
|
43
|
+
},
|
|
44
|
+
decode(input, length) {
|
|
45
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
46
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
47
|
+
const message = createBaseCheckpoint();
|
|
48
|
+
while (reader.pos < end) {
|
|
49
|
+
const tag = reader.uint32();
|
|
50
|
+
switch (tag >>> 3) {
|
|
51
|
+
case 1:
|
|
52
|
+
message.operator = reader.string();
|
|
53
|
+
break;
|
|
54
|
+
case 2:
|
|
55
|
+
message.serviceType = reader.string();
|
|
56
|
+
break;
|
|
57
|
+
case 3:
|
|
58
|
+
message.height = reader.int64();
|
|
59
|
+
break;
|
|
60
|
+
case 4:
|
|
61
|
+
message.root = reader.bytes();
|
|
62
|
+
break;
|
|
63
|
+
case 5:
|
|
64
|
+
message.submittedAt = reader.int64();
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
reader.skipType(tag & 7);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return message;
|
|
72
|
+
},
|
|
73
|
+
fromPartial(object) {
|
|
74
|
+
const message = createBaseCheckpoint();
|
|
75
|
+
message.operator = object.operator ?? "";
|
|
76
|
+
message.serviceType = object.serviceType ?? "";
|
|
77
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
78
|
+
message.root = object.root ?? new Uint8Array();
|
|
79
|
+
message.submittedAt = object.submittedAt !== undefined && object.submittedAt !== null ? BigInt(object.submittedAt.toString()) : BigInt(0);
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
fromAmino(object) {
|
|
83
|
+
const message = createBaseCheckpoint();
|
|
84
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
85
|
+
message.operator = object.operator;
|
|
86
|
+
}
|
|
87
|
+
if (object.service_type !== undefined && object.service_type !== null) {
|
|
88
|
+
message.serviceType = object.service_type;
|
|
89
|
+
}
|
|
90
|
+
if (object.height !== undefined && object.height !== null) {
|
|
91
|
+
message.height = BigInt(object.height);
|
|
92
|
+
}
|
|
93
|
+
if (object.root !== undefined && object.root !== null) {
|
|
94
|
+
message.root = bytesFromBase64(object.root);
|
|
95
|
+
}
|
|
96
|
+
if (object.submitted_at !== undefined && object.submitted_at !== null) {
|
|
97
|
+
message.submittedAt = BigInt(object.submitted_at);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
toAmino(message) {
|
|
102
|
+
const obj = {};
|
|
103
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
104
|
+
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
105
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
106
|
+
obj.root = message.root ? base64FromBytes(message.root) : undefined;
|
|
107
|
+
obj.submitted_at = message.submittedAt !== BigInt(0) ? message.submittedAt?.toString() : undefined;
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
fromAminoMsg(object) {
|
|
111
|
+
return Checkpoint.fromAmino(object.value);
|
|
112
|
+
},
|
|
113
|
+
fromProtoMsg(message) {
|
|
114
|
+
return Checkpoint.decode(message.value);
|
|
115
|
+
},
|
|
116
|
+
toProto(message) {
|
|
117
|
+
return Checkpoint.encode(message).finish();
|
|
118
|
+
},
|
|
119
|
+
toProtoMsg(message) {
|
|
120
|
+
return {
|
|
121
|
+
typeUrl: "/sparkdream.service.v1.Checkpoint",
|
|
122
|
+
value: Checkpoint.encode(message).finish()
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
};
|
|
@@ -8,6 +8,7 @@ import { ControllerTransferCase } from "./controller_transfer_case";
|
|
|
8
8
|
import { ReporterRateLimit } from "./reporter_rate_limit";
|
|
9
9
|
import { RefileCooldown } from "./refile_cooldown";
|
|
10
10
|
import { Tier1LastSlash } from "./tier1_last_slash";
|
|
11
|
+
import { Checkpoint } from "./checkpoint";
|
|
11
12
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
12
13
|
function createBaseGenesisState() {
|
|
13
14
|
return {
|
|
@@ -22,7 +23,8 @@ function createBaseGenesisState() {
|
|
|
22
23
|
refileCooldowns: [],
|
|
23
24
|
tier1LastSlash: [],
|
|
24
25
|
nextReportId: BigInt(0),
|
|
25
|
-
nextEscrowId: BigInt(0)
|
|
26
|
+
nextEscrowId: BigInt(0),
|
|
27
|
+
checkpoints: []
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
@@ -71,6 +73,9 @@ export const GenesisState = {
|
|
|
71
73
|
if (message.nextEscrowId !== BigInt(0)) {
|
|
72
74
|
writer.uint32(96).uint64(message.nextEscrowId);
|
|
73
75
|
}
|
|
76
|
+
for (const v of message.checkpoints) {
|
|
77
|
+
Checkpoint.encode(v, writer.uint32(106).fork()).ldelim();
|
|
78
|
+
}
|
|
74
79
|
return writer;
|
|
75
80
|
},
|
|
76
81
|
decode(input, length) {
|
|
@@ -116,6 +121,9 @@ export const GenesisState = {
|
|
|
116
121
|
case 12:
|
|
117
122
|
message.nextEscrowId = reader.uint64();
|
|
118
123
|
break;
|
|
124
|
+
case 13:
|
|
125
|
+
message.checkpoints.push(Checkpoint.decode(reader, reader.uint32()));
|
|
126
|
+
break;
|
|
119
127
|
default:
|
|
120
128
|
reader.skipType(tag & 7);
|
|
121
129
|
break;
|
|
@@ -137,6 +145,7 @@ export const GenesisState = {
|
|
|
137
145
|
message.tier1LastSlash = object.tier1LastSlash?.map(e => Tier1LastSlash.fromPartial(e)) || [];
|
|
138
146
|
message.nextReportId = object.nextReportId !== undefined && object.nextReportId !== null ? BigInt(object.nextReportId.toString()) : BigInt(0);
|
|
139
147
|
message.nextEscrowId = object.nextEscrowId !== undefined && object.nextEscrowId !== null ? BigInt(object.nextEscrowId.toString()) : BigInt(0);
|
|
148
|
+
message.checkpoints = object.checkpoints?.map(e => Checkpoint.fromPartial(e)) || [];
|
|
140
149
|
return message;
|
|
141
150
|
},
|
|
142
151
|
fromAmino(object) {
|
|
@@ -159,6 +168,7 @@ export const GenesisState = {
|
|
|
159
168
|
if (object.next_escrow_id !== undefined && object.next_escrow_id !== null) {
|
|
160
169
|
message.nextEscrowId = BigInt(object.next_escrow_id);
|
|
161
170
|
}
|
|
171
|
+
message.checkpoints = object.checkpoints?.map(e => Checkpoint.fromAmino(e)) || [];
|
|
162
172
|
return message;
|
|
163
173
|
},
|
|
164
174
|
toAmino(message) {
|
|
@@ -220,6 +230,12 @@ export const GenesisState = {
|
|
|
220
230
|
}
|
|
221
231
|
obj.next_report_id = message.nextReportId !== BigInt(0) ? message.nextReportId?.toString() : undefined;
|
|
222
232
|
obj.next_escrow_id = message.nextEscrowId !== BigInt(0) ? message.nextEscrowId?.toString() : undefined;
|
|
233
|
+
if (message.checkpoints) {
|
|
234
|
+
obj.checkpoints = message.checkpoints.map(e => e ? Checkpoint.toAmino(e) : undefined);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
obj.checkpoints = message.checkpoints;
|
|
238
|
+
}
|
|
223
239
|
return obj;
|
|
224
240
|
},
|
|
225
241
|
fromAminoMsg(object) {
|
|
@@ -16,7 +16,9 @@ function createBaseOperator() {
|
|
|
16
16
|
registeredAt: BigInt(0),
|
|
17
17
|
retiredAt: BigInt(0),
|
|
18
18
|
totalLifetimeBondBlocks: "",
|
|
19
|
-
lastBondBlockUpdateAt: BigInt(0)
|
|
19
|
+
lastBondBlockUpdateAt: BigInt(0),
|
|
20
|
+
pendingWithdrawAmount: "",
|
|
21
|
+
withdrawCompleteAt: BigInt(0)
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
@@ -78,6 +80,12 @@ export const Operator = {
|
|
|
78
80
|
if (message.lastBondBlockUpdateAt !== BigInt(0)) {
|
|
79
81
|
writer.uint32(120).int64(message.lastBondBlockUpdateAt);
|
|
80
82
|
}
|
|
83
|
+
if (message.pendingWithdrawAmount !== "") {
|
|
84
|
+
writer.uint32(130).string(message.pendingWithdrawAmount);
|
|
85
|
+
}
|
|
86
|
+
if (message.withdrawCompleteAt !== BigInt(0)) {
|
|
87
|
+
writer.uint32(136).int64(message.withdrawCompleteAt);
|
|
88
|
+
}
|
|
81
89
|
return writer;
|
|
82
90
|
},
|
|
83
91
|
decode(input, length) {
|
|
@@ -132,6 +140,12 @@ export const Operator = {
|
|
|
132
140
|
case 15:
|
|
133
141
|
message.lastBondBlockUpdateAt = reader.int64();
|
|
134
142
|
break;
|
|
143
|
+
case 16:
|
|
144
|
+
message.pendingWithdrawAmount = reader.string();
|
|
145
|
+
break;
|
|
146
|
+
case 17:
|
|
147
|
+
message.withdrawCompleteAt = reader.int64();
|
|
148
|
+
break;
|
|
135
149
|
default:
|
|
136
150
|
reader.skipType(tag & 7);
|
|
137
151
|
break;
|
|
@@ -156,6 +170,8 @@ export const Operator = {
|
|
|
156
170
|
message.retiredAt = object.retiredAt !== undefined && object.retiredAt !== null ? BigInt(object.retiredAt.toString()) : BigInt(0);
|
|
157
171
|
message.totalLifetimeBondBlocks = object.totalLifetimeBondBlocks ?? "";
|
|
158
172
|
message.lastBondBlockUpdateAt = object.lastBondBlockUpdateAt !== undefined && object.lastBondBlockUpdateAt !== null ? BigInt(object.lastBondBlockUpdateAt.toString()) : BigInt(0);
|
|
173
|
+
message.pendingWithdrawAmount = object.pendingWithdrawAmount ?? "";
|
|
174
|
+
message.withdrawCompleteAt = object.withdrawCompleteAt !== undefined && object.withdrawCompleteAt !== null ? BigInt(object.withdrawCompleteAt.toString()) : BigInt(0);
|
|
159
175
|
return message;
|
|
160
176
|
},
|
|
161
177
|
fromAmino(object) {
|
|
@@ -205,6 +221,12 @@ export const Operator = {
|
|
|
205
221
|
if (object.last_bond_block_update_at !== undefined && object.last_bond_block_update_at !== null) {
|
|
206
222
|
message.lastBondBlockUpdateAt = BigInt(object.last_bond_block_update_at);
|
|
207
223
|
}
|
|
224
|
+
if (object.pending_withdraw_amount !== undefined && object.pending_withdraw_amount !== null) {
|
|
225
|
+
message.pendingWithdrawAmount = object.pending_withdraw_amount;
|
|
226
|
+
}
|
|
227
|
+
if (object.withdraw_complete_at !== undefined && object.withdraw_complete_at !== null) {
|
|
228
|
+
message.withdrawCompleteAt = BigInt(object.withdraw_complete_at);
|
|
229
|
+
}
|
|
208
230
|
return message;
|
|
209
231
|
},
|
|
210
232
|
toAmino(message) {
|
|
@@ -224,6 +246,8 @@ export const Operator = {
|
|
|
224
246
|
obj.retired_at = message.retiredAt !== BigInt(0) ? message.retiredAt?.toString() : undefined;
|
|
225
247
|
obj.total_lifetime_bond_blocks = message.totalLifetimeBondBlocks === "" ? undefined : message.totalLifetimeBondBlocks;
|
|
226
248
|
obj.last_bond_block_update_at = message.lastBondBlockUpdateAt !== BigInt(0) ? message.lastBondBlockUpdateAt?.toString() : undefined;
|
|
249
|
+
obj.pending_withdraw_amount = message.pendingWithdrawAmount === "" ? undefined : message.pendingWithdrawAmount;
|
|
250
|
+
obj.withdraw_complete_at = message.withdrawCompleteAt !== BigInt(0) ? message.withdrawCompleteAt?.toString() : undefined;
|
|
227
251
|
return obj;
|
|
228
252
|
},
|
|
229
253
|
fromAminoMsg(object) {
|