@sparkdreamnft/sparkdreamjs 0.0.45 → 0.0.46
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/nested-amino.js +6 -4
- package/esm/sparkdream/artifact/v1/genesis.js +217 -3
- package/esm/sparkdream/artifact/v1/params.js +146 -2
- package/esm/sparkdream/artifact/v1/query.js +3767 -5
- package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
- package/esm/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/esm/sparkdream/artifact/v1/tx.js +7498 -5
- package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
- package/esm/sparkdream/artifact/v1/types.js +4312 -1120
- package/esm/sparkdream/blog/v1/tx.amino.js +21 -1
- package/esm/sparkdream/bundle.js +329 -291
- package/esm/sparkdream/client.js +5 -2
- package/esm/sparkdream/collect/v1/tx.amino.js +16 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +33 -1
- package/esm/sparkdream/commons/v1/tx.js +25 -1
- package/esm/sparkdream/federation/v1/tx.amino.js +51 -1
- package/esm/sparkdream/forum/v1/tx.amino.js +21 -1
- package/esm/sparkdream/guardian/v1/tx.amino.js +33 -3
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/genesis.js +74 -1
- package/esm/sparkdream/rep/v1/member.js +110 -1
- package/esm/sparkdream/rep/v1/migration.js +957 -0
- package/esm/sparkdream/rep/v1/params.js +181 -1
- package/esm/sparkdream/rep/v1/query.js +1060 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
- package/esm/sparkdream/rep/v1/tx.amino.js +71 -1
- package/esm/sparkdream/rep/v1/tx.js +1741 -1
- package/esm/sparkdream/rep/v1/tx.registry.js +200 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +67 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.amino.js +64 -2
- package/esm/sparkdream/session/v1/tx.js +38 -2
- package/esm/sparkdream/vault/module/v1/module.js +71 -0
- package/esm/sparkdream/vault/v1/genesis.js +104 -0
- package/esm/sparkdream/vault/v1/params.js +90 -0
- package/esm/sparkdream/vault/v1/query.js +1535 -0
- package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
- package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
- package/esm/sparkdream/vault/v1/tx.amino.js +111 -0
- package/esm/sparkdream/vault/v1/tx.js +1393 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
- package/esm/sparkdream/vault/v1/vault.js +163 -0
- package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
- package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/nested-amino.d.ts +3 -2
- package/nested-amino.js +6 -4
- package/package.json +1 -13
- package/sparkdream/artifact/v1/genesis.d.ts +37 -4
- package/sparkdream/artifact/v1/genesis.js +216 -2
- package/sparkdream/artifact/v1/params.d.ts +92 -0
- package/sparkdream/artifact/v1/params.js +146 -2
- package/sparkdream/artifact/v1/query.d.ts +2373 -168
- package/sparkdream/artifact/v1/query.js +3768 -5
- package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
- package/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
- package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +200 -5
- package/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/sparkdream/artifact/v1/tx.d.ts +5188 -930
- package/sparkdream/artifact/v1/tx.js +7499 -5
- package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
- package/sparkdream/artifact/v1/tx.registry.js +703 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
- package/sparkdream/artifact/v1/types.d.ts +1797 -25
- package/sparkdream/artifact/v1/types.js +4322 -1121
- package/sparkdream/blog/v1/tx.amino.d.ts +21 -1
- package/sparkdream/blog/v1/tx.amino.js +20 -0
- package/sparkdream/bundle.d.ts +13605 -9506
- package/sparkdream/bundle.js +329 -291
- package/sparkdream/client.d.ts +389 -9
- package/sparkdream/client.js +5 -2
- package/sparkdream/collect/v1/tx.amino.d.ts +16 -1
- package/sparkdream/collect/v1/tx.amino.js +15 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +21 -1
- package/sparkdream/commons/v1/tx.amino.js +32 -0
- package/sparkdream/commons/v1/tx.d.ts +18 -0
- package/sparkdream/commons/v1/tx.js +25 -1
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -1
- package/sparkdream/federation/v1/tx.amino.js +52 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +21 -1
- package/sparkdream/forum/v1/tx.amino.js +20 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +3 -3
- package/sparkdream/guardian/v1/tx.amino.js +36 -5
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/genesis.d.ts +19 -0
- package/sparkdream/rep/v1/genesis.js +74 -1
- package/sparkdream/rep/v1/member.d.ts +92 -0
- package/sparkdream/rep/v1/member.js +110 -1
- package/sparkdream/rep/v1/migration.d.ts +587 -0
- package/sparkdream/rep/v1/migration.js +964 -0
- package/sparkdream/rep/v1/params.d.ts +174 -0
- package/sparkdream/rep/v1/params.js +181 -1
- package/sparkdream/rep/v1/query.d.ts +679 -0
- package/sparkdream/rep/v1/query.js +1061 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
- package/sparkdream/rep/v1/query.lcd.js +48 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
- package/sparkdream/rep/v1/tx.amino.d.ts +71 -1
- package/sparkdream/rep/v1/tx.amino.js +70 -0
- package/sparkdream/rep/v1/tx.d.ts +1185 -0
- package/sparkdream/rep/v1/tx.js +1742 -2
- package/sparkdream/rep/v1/tx.registry.d.ts +133 -1
- package/sparkdream/rep/v1/tx.registry.js +199 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +34 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +66 -0
- package/sparkdream/rpc.query.d.ts +42 -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.amino.d.ts +2 -2
- package/sparkdream/season/v1/tx.amino.js +65 -3
- package/sparkdream/session/v1/tx.d.ts +30 -0
- package/sparkdream/session/v1/tx.js +38 -2
- package/sparkdream/vault/module/v1/module.d.ts +54 -0
- package/sparkdream/vault/module/v1/module.js +74 -0
- package/sparkdream/vault/v1/genesis.d.ts +59 -0
- package/sparkdream/vault/v1/genesis.js +107 -0
- package/sparkdream/vault/v1/params.d.ts +68 -0
- package/sparkdream/vault/v1/params.js +93 -0
- package/sparkdream/vault/v1/query.d.ts +935 -0
- package/sparkdream/vault/v1/query.js +1538 -0
- package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
- package/sparkdream/vault/v1/query.lcd.js +104 -0
- package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
- package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
- package/sparkdream/vault/v1/tx.amino.d.ts +44 -0
- package/sparkdream/vault/v1/tx.amino.js +115 -0
- package/sparkdream/vault/v1/tx.d.ts +826 -0
- package/sparkdream/vault/v1/tx.js +1399 -0
- package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
- package/sparkdream/vault/v1/tx.registry.js +163 -0
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
- package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
- package/sparkdream/vault/v1/vault.d.ts +117 -0
- package/sparkdream/vault/v1/vault.js +166 -0
- package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
- package/sparkdream/vault/v1/vault_proposal.js +285 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
- package/sparkdream/vault/v1/vault_signer.js +88 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -508,7 +508,8 @@ function createBaseMsgAcceptInvitation() {
|
|
|
508
508
|
return {
|
|
509
509
|
invitee: "",
|
|
510
510
|
invitationId: BigInt(0),
|
|
511
|
-
acceptedContentLicense: ""
|
|
511
|
+
acceptedContentLicense: "",
|
|
512
|
+
recoveryCommitment: new Uint8Array()
|
|
512
513
|
};
|
|
513
514
|
}
|
|
514
515
|
/**
|
|
@@ -530,6 +531,9 @@ export const MsgAcceptInvitation = {
|
|
|
530
531
|
if (message.acceptedContentLicense !== "") {
|
|
531
532
|
writer.uint32(26).string(message.acceptedContentLicense);
|
|
532
533
|
}
|
|
534
|
+
if (message.recoveryCommitment.length !== 0) {
|
|
535
|
+
writer.uint32(34).bytes(message.recoveryCommitment);
|
|
536
|
+
}
|
|
533
537
|
return writer;
|
|
534
538
|
},
|
|
535
539
|
decode(input, length) {
|
|
@@ -548,6 +552,9 @@ export const MsgAcceptInvitation = {
|
|
|
548
552
|
case 3:
|
|
549
553
|
message.acceptedContentLicense = reader.string();
|
|
550
554
|
break;
|
|
555
|
+
case 4:
|
|
556
|
+
message.recoveryCommitment = reader.bytes();
|
|
557
|
+
break;
|
|
551
558
|
default:
|
|
552
559
|
reader.skipType(tag & 7);
|
|
553
560
|
break;
|
|
@@ -560,6 +567,7 @@ export const MsgAcceptInvitation = {
|
|
|
560
567
|
message.invitee = object.invitee ?? "";
|
|
561
568
|
message.invitationId = object.invitationId !== undefined && object.invitationId !== null ? BigInt(object.invitationId.toString()) : BigInt(0);
|
|
562
569
|
message.acceptedContentLicense = object.acceptedContentLicense ?? "";
|
|
570
|
+
message.recoveryCommitment = object.recoveryCommitment ?? new Uint8Array();
|
|
563
571
|
return message;
|
|
564
572
|
},
|
|
565
573
|
fromAmino(object) {
|
|
@@ -573,6 +581,9 @@ export const MsgAcceptInvitation = {
|
|
|
573
581
|
if (object.accepted_content_license !== undefined && object.accepted_content_license !== null) {
|
|
574
582
|
message.acceptedContentLicense = object.accepted_content_license;
|
|
575
583
|
}
|
|
584
|
+
if (object.recovery_commitment !== undefined && object.recovery_commitment !== null) {
|
|
585
|
+
message.recoveryCommitment = bytesFromBase64(object.recovery_commitment);
|
|
586
|
+
}
|
|
576
587
|
return message;
|
|
577
588
|
},
|
|
578
589
|
toAmino(message) {
|
|
@@ -580,6 +591,7 @@ export const MsgAcceptInvitation = {
|
|
|
580
591
|
obj.invitee = message.invitee === "" ? undefined : message.invitee;
|
|
581
592
|
obj.invitation_id = message.invitationId !== BigInt(0) ? message.invitationId?.toString() : undefined;
|
|
582
593
|
obj.accepted_content_license = message.acceptedContentLicense === "" ? undefined : message.acceptedContentLicense;
|
|
594
|
+
obj.recovery_commitment = message.recoveryCommitment ? base64FromBytes(message.recoveryCommitment) : undefined;
|
|
583
595
|
return obj;
|
|
584
596
|
},
|
|
585
597
|
fromAminoMsg(object) {
|
|
@@ -9978,3 +9990,1731 @@ export const MsgRevokeInvitationResponse = {
|
|
|
9978
9990
|
};
|
|
9979
9991
|
}
|
|
9980
9992
|
};
|
|
9993
|
+
function createBaseMsgRequestMigration() {
|
|
9994
|
+
return {
|
|
9995
|
+
member: "",
|
|
9996
|
+
newAddress: ""
|
|
9997
|
+
};
|
|
9998
|
+
}
|
|
9999
|
+
/**
|
|
10000
|
+
* MsgRequestMigration opens a KEY-path migration of the signer's identity to
|
|
10001
|
+
* new_address (member key migration, docs/x-rep-spec.md). Refused while the
|
|
10002
|
+
* key path is disabled, the member is zeroed or tombstoned, a member report
|
|
10003
|
+
* against them is open, the cooldown or the rolling-window cap applies, a
|
|
10004
|
+
* migration of equal or higher precedence is pending, or new_address is not
|
|
10005
|
+
* fresh. The new address must accept with MsgAcceptMigration within
|
|
10006
|
+
* migration_accept_window. No fee: safety actions pay gas only.
|
|
10007
|
+
* @name MsgRequestMigration
|
|
10008
|
+
* @package sparkdream.rep.v1
|
|
10009
|
+
* @see proto type: sparkdream.rep.v1.MsgRequestMigration
|
|
10010
|
+
*/
|
|
10011
|
+
export const MsgRequestMigration = {
|
|
10012
|
+
typeUrl: "/sparkdream.rep.v1.MsgRequestMigration",
|
|
10013
|
+
aminoType: "sparkdream/x/rep/MsgRequestMigration",
|
|
10014
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10015
|
+
if (message.member !== "") {
|
|
10016
|
+
writer.uint32(10).string(message.member);
|
|
10017
|
+
}
|
|
10018
|
+
if (message.newAddress !== "") {
|
|
10019
|
+
writer.uint32(18).string(message.newAddress);
|
|
10020
|
+
}
|
|
10021
|
+
return writer;
|
|
10022
|
+
},
|
|
10023
|
+
decode(input, length) {
|
|
10024
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10025
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10026
|
+
const message = createBaseMsgRequestMigration();
|
|
10027
|
+
while (reader.pos < end) {
|
|
10028
|
+
const tag = reader.uint32();
|
|
10029
|
+
switch (tag >>> 3) {
|
|
10030
|
+
case 1:
|
|
10031
|
+
message.member = reader.string();
|
|
10032
|
+
break;
|
|
10033
|
+
case 2:
|
|
10034
|
+
message.newAddress = reader.string();
|
|
10035
|
+
break;
|
|
10036
|
+
default:
|
|
10037
|
+
reader.skipType(tag & 7);
|
|
10038
|
+
break;
|
|
10039
|
+
}
|
|
10040
|
+
}
|
|
10041
|
+
return message;
|
|
10042
|
+
},
|
|
10043
|
+
fromPartial(object) {
|
|
10044
|
+
const message = createBaseMsgRequestMigration();
|
|
10045
|
+
message.member = object.member ?? "";
|
|
10046
|
+
message.newAddress = object.newAddress ?? "";
|
|
10047
|
+
return message;
|
|
10048
|
+
},
|
|
10049
|
+
fromAmino(object) {
|
|
10050
|
+
const message = createBaseMsgRequestMigration();
|
|
10051
|
+
if (object.member !== undefined && object.member !== null) {
|
|
10052
|
+
message.member = object.member;
|
|
10053
|
+
}
|
|
10054
|
+
if (object.new_address !== undefined && object.new_address !== null) {
|
|
10055
|
+
message.newAddress = object.new_address;
|
|
10056
|
+
}
|
|
10057
|
+
return message;
|
|
10058
|
+
},
|
|
10059
|
+
toAmino(message) {
|
|
10060
|
+
const obj = {};
|
|
10061
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
10062
|
+
obj.new_address = message.newAddress === "" ? undefined : message.newAddress;
|
|
10063
|
+
return obj;
|
|
10064
|
+
},
|
|
10065
|
+
fromAminoMsg(object) {
|
|
10066
|
+
return MsgRequestMigration.fromAmino(object.value);
|
|
10067
|
+
},
|
|
10068
|
+
toAminoMsg(message) {
|
|
10069
|
+
return {
|
|
10070
|
+
type: "sparkdream/x/rep/MsgRequestMigration",
|
|
10071
|
+
value: MsgRequestMigration.toAmino(message)
|
|
10072
|
+
};
|
|
10073
|
+
},
|
|
10074
|
+
fromProtoMsg(message) {
|
|
10075
|
+
return MsgRequestMigration.decode(message.value);
|
|
10076
|
+
},
|
|
10077
|
+
toProto(message) {
|
|
10078
|
+
return MsgRequestMigration.encode(message).finish();
|
|
10079
|
+
},
|
|
10080
|
+
toProtoMsg(message) {
|
|
10081
|
+
return {
|
|
10082
|
+
typeUrl: "/sparkdream.rep.v1.MsgRequestMigration",
|
|
10083
|
+
value: MsgRequestMigration.encode(message).finish()
|
|
10084
|
+
};
|
|
10085
|
+
}
|
|
10086
|
+
};
|
|
10087
|
+
function createBaseMsgRequestMigrationResponse() {
|
|
10088
|
+
return {
|
|
10089
|
+
migrationId: BigInt(0)
|
|
10090
|
+
};
|
|
10091
|
+
}
|
|
10092
|
+
/**
|
|
10093
|
+
* MsgRequestMigrationResponse defines the MsgRequestMigrationResponse message.
|
|
10094
|
+
* @name MsgRequestMigrationResponse
|
|
10095
|
+
* @package sparkdream.rep.v1
|
|
10096
|
+
* @see proto type: sparkdream.rep.v1.MsgRequestMigrationResponse
|
|
10097
|
+
*/
|
|
10098
|
+
export const MsgRequestMigrationResponse = {
|
|
10099
|
+
typeUrl: "/sparkdream.rep.v1.MsgRequestMigrationResponse",
|
|
10100
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10101
|
+
if (message.migrationId !== BigInt(0)) {
|
|
10102
|
+
writer.uint32(8).uint64(message.migrationId);
|
|
10103
|
+
}
|
|
10104
|
+
return writer;
|
|
10105
|
+
},
|
|
10106
|
+
decode(input, length) {
|
|
10107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10109
|
+
const message = createBaseMsgRequestMigrationResponse();
|
|
10110
|
+
while (reader.pos < end) {
|
|
10111
|
+
const tag = reader.uint32();
|
|
10112
|
+
switch (tag >>> 3) {
|
|
10113
|
+
case 1:
|
|
10114
|
+
message.migrationId = reader.uint64();
|
|
10115
|
+
break;
|
|
10116
|
+
default:
|
|
10117
|
+
reader.skipType(tag & 7);
|
|
10118
|
+
break;
|
|
10119
|
+
}
|
|
10120
|
+
}
|
|
10121
|
+
return message;
|
|
10122
|
+
},
|
|
10123
|
+
fromPartial(object) {
|
|
10124
|
+
const message = createBaseMsgRequestMigrationResponse();
|
|
10125
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
10126
|
+
return message;
|
|
10127
|
+
},
|
|
10128
|
+
fromAmino(object) {
|
|
10129
|
+
const message = createBaseMsgRequestMigrationResponse();
|
|
10130
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
10131
|
+
message.migrationId = BigInt(object.migration_id);
|
|
10132
|
+
}
|
|
10133
|
+
return message;
|
|
10134
|
+
},
|
|
10135
|
+
toAmino(message) {
|
|
10136
|
+
const obj = {};
|
|
10137
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
10138
|
+
return obj;
|
|
10139
|
+
},
|
|
10140
|
+
fromAminoMsg(object) {
|
|
10141
|
+
return MsgRequestMigrationResponse.fromAmino(object.value);
|
|
10142
|
+
},
|
|
10143
|
+
fromProtoMsg(message) {
|
|
10144
|
+
return MsgRequestMigrationResponse.decode(message.value);
|
|
10145
|
+
},
|
|
10146
|
+
toProto(message) {
|
|
10147
|
+
return MsgRequestMigrationResponse.encode(message).finish();
|
|
10148
|
+
},
|
|
10149
|
+
toProtoMsg(message) {
|
|
10150
|
+
return {
|
|
10151
|
+
typeUrl: "/sparkdream.rep.v1.MsgRequestMigrationResponse",
|
|
10152
|
+
value: MsgRequestMigrationResponse.encode(message).finish()
|
|
10153
|
+
};
|
|
10154
|
+
}
|
|
10155
|
+
};
|
|
10156
|
+
function createBaseMsgAcceptMigration() {
|
|
10157
|
+
return {
|
|
10158
|
+
newAddress: "",
|
|
10159
|
+
migrationId: BigInt(0)
|
|
10160
|
+
};
|
|
10161
|
+
}
|
|
10162
|
+
/**
|
|
10163
|
+
* MsgAcceptMigration is signed by the new address and completes every path
|
|
10164
|
+
* (key, recovery, council): it proves control of the target so nobody
|
|
10165
|
+
* migrates into a typo, starts the path's delay and enqueues finalization. A
|
|
10166
|
+
* native multisig target multisigns it.
|
|
10167
|
+
* @name MsgAcceptMigration
|
|
10168
|
+
* @package sparkdream.rep.v1
|
|
10169
|
+
* @see proto type: sparkdream.rep.v1.MsgAcceptMigration
|
|
10170
|
+
*/
|
|
10171
|
+
export const MsgAcceptMigration = {
|
|
10172
|
+
typeUrl: "/sparkdream.rep.v1.MsgAcceptMigration",
|
|
10173
|
+
aminoType: "sparkdream/x/rep/MsgAcceptMigration",
|
|
10174
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10175
|
+
if (message.newAddress !== "") {
|
|
10176
|
+
writer.uint32(10).string(message.newAddress);
|
|
10177
|
+
}
|
|
10178
|
+
if (message.migrationId !== BigInt(0)) {
|
|
10179
|
+
writer.uint32(16).uint64(message.migrationId);
|
|
10180
|
+
}
|
|
10181
|
+
return writer;
|
|
10182
|
+
},
|
|
10183
|
+
decode(input, length) {
|
|
10184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10185
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10186
|
+
const message = createBaseMsgAcceptMigration();
|
|
10187
|
+
while (reader.pos < end) {
|
|
10188
|
+
const tag = reader.uint32();
|
|
10189
|
+
switch (tag >>> 3) {
|
|
10190
|
+
case 1:
|
|
10191
|
+
message.newAddress = reader.string();
|
|
10192
|
+
break;
|
|
10193
|
+
case 2:
|
|
10194
|
+
message.migrationId = reader.uint64();
|
|
10195
|
+
break;
|
|
10196
|
+
default:
|
|
10197
|
+
reader.skipType(tag & 7);
|
|
10198
|
+
break;
|
|
10199
|
+
}
|
|
10200
|
+
}
|
|
10201
|
+
return message;
|
|
10202
|
+
},
|
|
10203
|
+
fromPartial(object) {
|
|
10204
|
+
const message = createBaseMsgAcceptMigration();
|
|
10205
|
+
message.newAddress = object.newAddress ?? "";
|
|
10206
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
10207
|
+
return message;
|
|
10208
|
+
},
|
|
10209
|
+
fromAmino(object) {
|
|
10210
|
+
const message = createBaseMsgAcceptMigration();
|
|
10211
|
+
if (object.new_address !== undefined && object.new_address !== null) {
|
|
10212
|
+
message.newAddress = object.new_address;
|
|
10213
|
+
}
|
|
10214
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
10215
|
+
message.migrationId = BigInt(object.migration_id);
|
|
10216
|
+
}
|
|
10217
|
+
return message;
|
|
10218
|
+
},
|
|
10219
|
+
toAmino(message) {
|
|
10220
|
+
const obj = {};
|
|
10221
|
+
obj.new_address = message.newAddress === "" ? undefined : message.newAddress;
|
|
10222
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
10223
|
+
return obj;
|
|
10224
|
+
},
|
|
10225
|
+
fromAminoMsg(object) {
|
|
10226
|
+
return MsgAcceptMigration.fromAmino(object.value);
|
|
10227
|
+
},
|
|
10228
|
+
toAminoMsg(message) {
|
|
10229
|
+
return {
|
|
10230
|
+
type: "sparkdream/x/rep/MsgAcceptMigration",
|
|
10231
|
+
value: MsgAcceptMigration.toAmino(message)
|
|
10232
|
+
};
|
|
10233
|
+
},
|
|
10234
|
+
fromProtoMsg(message) {
|
|
10235
|
+
return MsgAcceptMigration.decode(message.value);
|
|
10236
|
+
},
|
|
10237
|
+
toProto(message) {
|
|
10238
|
+
return MsgAcceptMigration.encode(message).finish();
|
|
10239
|
+
},
|
|
10240
|
+
toProtoMsg(message) {
|
|
10241
|
+
return {
|
|
10242
|
+
typeUrl: "/sparkdream.rep.v1.MsgAcceptMigration",
|
|
10243
|
+
value: MsgAcceptMigration.encode(message).finish()
|
|
10244
|
+
};
|
|
10245
|
+
}
|
|
10246
|
+
};
|
|
10247
|
+
function createBaseMsgAcceptMigrationResponse() {
|
|
10248
|
+
return {};
|
|
10249
|
+
}
|
|
10250
|
+
/**
|
|
10251
|
+
* MsgAcceptMigrationResponse defines the MsgAcceptMigrationResponse message.
|
|
10252
|
+
* @name MsgAcceptMigrationResponse
|
|
10253
|
+
* @package sparkdream.rep.v1
|
|
10254
|
+
* @see proto type: sparkdream.rep.v1.MsgAcceptMigrationResponse
|
|
10255
|
+
*/
|
|
10256
|
+
export const MsgAcceptMigrationResponse = {
|
|
10257
|
+
typeUrl: "/sparkdream.rep.v1.MsgAcceptMigrationResponse",
|
|
10258
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
10259
|
+
return writer;
|
|
10260
|
+
},
|
|
10261
|
+
decode(input, length) {
|
|
10262
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10263
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10264
|
+
const message = createBaseMsgAcceptMigrationResponse();
|
|
10265
|
+
while (reader.pos < end) {
|
|
10266
|
+
const tag = reader.uint32();
|
|
10267
|
+
switch (tag >>> 3) {
|
|
10268
|
+
default:
|
|
10269
|
+
reader.skipType(tag & 7);
|
|
10270
|
+
break;
|
|
10271
|
+
}
|
|
10272
|
+
}
|
|
10273
|
+
return message;
|
|
10274
|
+
},
|
|
10275
|
+
fromPartial(_) {
|
|
10276
|
+
const message = createBaseMsgAcceptMigrationResponse();
|
|
10277
|
+
return message;
|
|
10278
|
+
},
|
|
10279
|
+
fromAmino(_) {
|
|
10280
|
+
const message = createBaseMsgAcceptMigrationResponse();
|
|
10281
|
+
return message;
|
|
10282
|
+
},
|
|
10283
|
+
toAmino(_) {
|
|
10284
|
+
const obj = {};
|
|
10285
|
+
return obj;
|
|
10286
|
+
},
|
|
10287
|
+
fromAminoMsg(object) {
|
|
10288
|
+
return MsgAcceptMigrationResponse.fromAmino(object.value);
|
|
10289
|
+
},
|
|
10290
|
+
fromProtoMsg(message) {
|
|
10291
|
+
return MsgAcceptMigrationResponse.decode(message.value);
|
|
10292
|
+
},
|
|
10293
|
+
toProto(message) {
|
|
10294
|
+
return MsgAcceptMigrationResponse.encode(message).finish();
|
|
10295
|
+
},
|
|
10296
|
+
toProtoMsg(message) {
|
|
10297
|
+
return {
|
|
10298
|
+
typeUrl: "/sparkdream.rep.v1.MsgAcceptMigrationResponse",
|
|
10299
|
+
value: MsgAcceptMigrationResponse.encode(message).finish()
|
|
10300
|
+
};
|
|
10301
|
+
}
|
|
10302
|
+
};
|
|
10303
|
+
function createBaseMsgCancelMigration() {
|
|
10304
|
+
return {
|
|
10305
|
+
signer: "",
|
|
10306
|
+
migrationId: BigInt(0)
|
|
10307
|
+
};
|
|
10308
|
+
}
|
|
10309
|
+
/**
|
|
10310
|
+
* MsgCancelMigration cancels a pending migration. The old or new address may
|
|
10311
|
+
* cancel a KEY migration; the Commons HR committee policy may cancel KEY and
|
|
10312
|
+
* COUNCIL migrations; governance may cancel any path and is the only
|
|
10313
|
+
* authority over a RECOVERY migration.
|
|
10314
|
+
* @name MsgCancelMigration
|
|
10315
|
+
* @package sparkdream.rep.v1
|
|
10316
|
+
* @see proto type: sparkdream.rep.v1.MsgCancelMigration
|
|
10317
|
+
*/
|
|
10318
|
+
export const MsgCancelMigration = {
|
|
10319
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelMigration",
|
|
10320
|
+
aminoType: "sparkdream/x/rep/MsgCancelMigration",
|
|
10321
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10322
|
+
if (message.signer !== "") {
|
|
10323
|
+
writer.uint32(10).string(message.signer);
|
|
10324
|
+
}
|
|
10325
|
+
if (message.migrationId !== BigInt(0)) {
|
|
10326
|
+
writer.uint32(16).uint64(message.migrationId);
|
|
10327
|
+
}
|
|
10328
|
+
return writer;
|
|
10329
|
+
},
|
|
10330
|
+
decode(input, length) {
|
|
10331
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10332
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10333
|
+
const message = createBaseMsgCancelMigration();
|
|
10334
|
+
while (reader.pos < end) {
|
|
10335
|
+
const tag = reader.uint32();
|
|
10336
|
+
switch (tag >>> 3) {
|
|
10337
|
+
case 1:
|
|
10338
|
+
message.signer = reader.string();
|
|
10339
|
+
break;
|
|
10340
|
+
case 2:
|
|
10341
|
+
message.migrationId = reader.uint64();
|
|
10342
|
+
break;
|
|
10343
|
+
default:
|
|
10344
|
+
reader.skipType(tag & 7);
|
|
10345
|
+
break;
|
|
10346
|
+
}
|
|
10347
|
+
}
|
|
10348
|
+
return message;
|
|
10349
|
+
},
|
|
10350
|
+
fromPartial(object) {
|
|
10351
|
+
const message = createBaseMsgCancelMigration();
|
|
10352
|
+
message.signer = object.signer ?? "";
|
|
10353
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
10354
|
+
return message;
|
|
10355
|
+
},
|
|
10356
|
+
fromAmino(object) {
|
|
10357
|
+
const message = createBaseMsgCancelMigration();
|
|
10358
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
10359
|
+
message.signer = object.signer;
|
|
10360
|
+
}
|
|
10361
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
10362
|
+
message.migrationId = BigInt(object.migration_id);
|
|
10363
|
+
}
|
|
10364
|
+
return message;
|
|
10365
|
+
},
|
|
10366
|
+
toAmino(message) {
|
|
10367
|
+
const obj = {};
|
|
10368
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
10369
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
10370
|
+
return obj;
|
|
10371
|
+
},
|
|
10372
|
+
fromAminoMsg(object) {
|
|
10373
|
+
return MsgCancelMigration.fromAmino(object.value);
|
|
10374
|
+
},
|
|
10375
|
+
toAminoMsg(message) {
|
|
10376
|
+
return {
|
|
10377
|
+
type: "sparkdream/x/rep/MsgCancelMigration",
|
|
10378
|
+
value: MsgCancelMigration.toAmino(message)
|
|
10379
|
+
};
|
|
10380
|
+
},
|
|
10381
|
+
fromProtoMsg(message) {
|
|
10382
|
+
return MsgCancelMigration.decode(message.value);
|
|
10383
|
+
},
|
|
10384
|
+
toProto(message) {
|
|
10385
|
+
return MsgCancelMigration.encode(message).finish();
|
|
10386
|
+
},
|
|
10387
|
+
toProtoMsg(message) {
|
|
10388
|
+
return {
|
|
10389
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelMigration",
|
|
10390
|
+
value: MsgCancelMigration.encode(message).finish()
|
|
10391
|
+
};
|
|
10392
|
+
}
|
|
10393
|
+
};
|
|
10394
|
+
function createBaseMsgCancelMigrationResponse() {
|
|
10395
|
+
return {};
|
|
10396
|
+
}
|
|
10397
|
+
/**
|
|
10398
|
+
* MsgCancelMigrationResponse defines the MsgCancelMigrationResponse message.
|
|
10399
|
+
* @name MsgCancelMigrationResponse
|
|
10400
|
+
* @package sparkdream.rep.v1
|
|
10401
|
+
* @see proto type: sparkdream.rep.v1.MsgCancelMigrationResponse
|
|
10402
|
+
*/
|
|
10403
|
+
export const MsgCancelMigrationResponse = {
|
|
10404
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelMigrationResponse",
|
|
10405
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
10406
|
+
return writer;
|
|
10407
|
+
},
|
|
10408
|
+
decode(input, length) {
|
|
10409
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10410
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10411
|
+
const message = createBaseMsgCancelMigrationResponse();
|
|
10412
|
+
while (reader.pos < end) {
|
|
10413
|
+
const tag = reader.uint32();
|
|
10414
|
+
switch (tag >>> 3) {
|
|
10415
|
+
default:
|
|
10416
|
+
reader.skipType(tag & 7);
|
|
10417
|
+
break;
|
|
10418
|
+
}
|
|
10419
|
+
}
|
|
10420
|
+
return message;
|
|
10421
|
+
},
|
|
10422
|
+
fromPartial(_) {
|
|
10423
|
+
const message = createBaseMsgCancelMigrationResponse();
|
|
10424
|
+
return message;
|
|
10425
|
+
},
|
|
10426
|
+
fromAmino(_) {
|
|
10427
|
+
const message = createBaseMsgCancelMigrationResponse();
|
|
10428
|
+
return message;
|
|
10429
|
+
},
|
|
10430
|
+
toAmino(_) {
|
|
10431
|
+
const obj = {};
|
|
10432
|
+
return obj;
|
|
10433
|
+
},
|
|
10434
|
+
fromAminoMsg(object) {
|
|
10435
|
+
return MsgCancelMigrationResponse.fromAmino(object.value);
|
|
10436
|
+
},
|
|
10437
|
+
fromProtoMsg(message) {
|
|
10438
|
+
return MsgCancelMigrationResponse.decode(message.value);
|
|
10439
|
+
},
|
|
10440
|
+
toProto(message) {
|
|
10441
|
+
return MsgCancelMigrationResponse.encode(message).finish();
|
|
10442
|
+
},
|
|
10443
|
+
toProtoMsg(message) {
|
|
10444
|
+
return {
|
|
10445
|
+
typeUrl: "/sparkdream.rep.v1.MsgCancelMigrationResponse",
|
|
10446
|
+
value: MsgCancelMigrationResponse.encode(message).finish()
|
|
10447
|
+
};
|
|
10448
|
+
}
|
|
10449
|
+
};
|
|
10450
|
+
function createBaseMsgSetRecoveryCommitment() {
|
|
10451
|
+
return {
|
|
10452
|
+
member: "",
|
|
10453
|
+
commitment: new Uint8Array(),
|
|
10454
|
+
replaces: new Uint8Array()
|
|
10455
|
+
};
|
|
10456
|
+
}
|
|
10457
|
+
/**
|
|
10458
|
+
* MsgSetRecoveryCommitment adds (or replaces) one of the member's recovery
|
|
10459
|
+
* commitments, at most MaxRecoveryCommitments (4). It takes effect after
|
|
10460
|
+
* recovery_change_delay, so whoever holds the key cannot swap in their own
|
|
10461
|
+
* commitment or use the recovery path as a faster key path. The only
|
|
10462
|
+
* immediate commitment is the one carried by MsgAcceptInvitation.
|
|
10463
|
+
* @name MsgSetRecoveryCommitment
|
|
10464
|
+
* @package sparkdream.rep.v1
|
|
10465
|
+
* @see proto type: sparkdream.rep.v1.MsgSetRecoveryCommitment
|
|
10466
|
+
*/
|
|
10467
|
+
export const MsgSetRecoveryCommitment = {
|
|
10468
|
+
typeUrl: "/sparkdream.rep.v1.MsgSetRecoveryCommitment",
|
|
10469
|
+
aminoType: "sparkdream/x/rep/MsgSetRecoveryCommitment",
|
|
10470
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10471
|
+
if (message.member !== "") {
|
|
10472
|
+
writer.uint32(10).string(message.member);
|
|
10473
|
+
}
|
|
10474
|
+
if (message.commitment.length !== 0) {
|
|
10475
|
+
writer.uint32(18).bytes(message.commitment);
|
|
10476
|
+
}
|
|
10477
|
+
if (message.replaces.length !== 0) {
|
|
10478
|
+
writer.uint32(26).bytes(message.replaces);
|
|
10479
|
+
}
|
|
10480
|
+
return writer;
|
|
10481
|
+
},
|
|
10482
|
+
decode(input, length) {
|
|
10483
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10484
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10485
|
+
const message = createBaseMsgSetRecoveryCommitment();
|
|
10486
|
+
while (reader.pos < end) {
|
|
10487
|
+
const tag = reader.uint32();
|
|
10488
|
+
switch (tag >>> 3) {
|
|
10489
|
+
case 1:
|
|
10490
|
+
message.member = reader.string();
|
|
10491
|
+
break;
|
|
10492
|
+
case 2:
|
|
10493
|
+
message.commitment = reader.bytes();
|
|
10494
|
+
break;
|
|
10495
|
+
case 3:
|
|
10496
|
+
message.replaces = reader.bytes();
|
|
10497
|
+
break;
|
|
10498
|
+
default:
|
|
10499
|
+
reader.skipType(tag & 7);
|
|
10500
|
+
break;
|
|
10501
|
+
}
|
|
10502
|
+
}
|
|
10503
|
+
return message;
|
|
10504
|
+
},
|
|
10505
|
+
fromPartial(object) {
|
|
10506
|
+
const message = createBaseMsgSetRecoveryCommitment();
|
|
10507
|
+
message.member = object.member ?? "";
|
|
10508
|
+
message.commitment = object.commitment ?? new Uint8Array();
|
|
10509
|
+
message.replaces = object.replaces ?? new Uint8Array();
|
|
10510
|
+
return message;
|
|
10511
|
+
},
|
|
10512
|
+
fromAmino(object) {
|
|
10513
|
+
const message = createBaseMsgSetRecoveryCommitment();
|
|
10514
|
+
if (object.member !== undefined && object.member !== null) {
|
|
10515
|
+
message.member = object.member;
|
|
10516
|
+
}
|
|
10517
|
+
if (object.commitment !== undefined && object.commitment !== null) {
|
|
10518
|
+
message.commitment = bytesFromBase64(object.commitment);
|
|
10519
|
+
}
|
|
10520
|
+
if (object.replaces !== undefined && object.replaces !== null) {
|
|
10521
|
+
message.replaces = bytesFromBase64(object.replaces);
|
|
10522
|
+
}
|
|
10523
|
+
return message;
|
|
10524
|
+
},
|
|
10525
|
+
toAmino(message) {
|
|
10526
|
+
const obj = {};
|
|
10527
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
10528
|
+
obj.commitment = message.commitment ? base64FromBytes(message.commitment) : undefined;
|
|
10529
|
+
obj.replaces = message.replaces ? base64FromBytes(message.replaces) : undefined;
|
|
10530
|
+
return obj;
|
|
10531
|
+
},
|
|
10532
|
+
fromAminoMsg(object) {
|
|
10533
|
+
return MsgSetRecoveryCommitment.fromAmino(object.value);
|
|
10534
|
+
},
|
|
10535
|
+
toAminoMsg(message) {
|
|
10536
|
+
return {
|
|
10537
|
+
type: "sparkdream/x/rep/MsgSetRecoveryCommitment",
|
|
10538
|
+
value: MsgSetRecoveryCommitment.toAmino(message)
|
|
10539
|
+
};
|
|
10540
|
+
},
|
|
10541
|
+
fromProtoMsg(message) {
|
|
10542
|
+
return MsgSetRecoveryCommitment.decode(message.value);
|
|
10543
|
+
},
|
|
10544
|
+
toProto(message) {
|
|
10545
|
+
return MsgSetRecoveryCommitment.encode(message).finish();
|
|
10546
|
+
},
|
|
10547
|
+
toProtoMsg(message) {
|
|
10548
|
+
return {
|
|
10549
|
+
typeUrl: "/sparkdream.rep.v1.MsgSetRecoveryCommitment",
|
|
10550
|
+
value: MsgSetRecoveryCommitment.encode(message).finish()
|
|
10551
|
+
};
|
|
10552
|
+
}
|
|
10553
|
+
};
|
|
10554
|
+
function createBaseMsgSetRecoveryCommitmentResponse() {
|
|
10555
|
+
return {};
|
|
10556
|
+
}
|
|
10557
|
+
/**
|
|
10558
|
+
* MsgSetRecoveryCommitmentResponse defines the MsgSetRecoveryCommitmentResponse message.
|
|
10559
|
+
* @name MsgSetRecoveryCommitmentResponse
|
|
10560
|
+
* @package sparkdream.rep.v1
|
|
10561
|
+
* @see proto type: sparkdream.rep.v1.MsgSetRecoveryCommitmentResponse
|
|
10562
|
+
*/
|
|
10563
|
+
export const MsgSetRecoveryCommitmentResponse = {
|
|
10564
|
+
typeUrl: "/sparkdream.rep.v1.MsgSetRecoveryCommitmentResponse",
|
|
10565
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
10566
|
+
return writer;
|
|
10567
|
+
},
|
|
10568
|
+
decode(input, length) {
|
|
10569
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10570
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10571
|
+
const message = createBaseMsgSetRecoveryCommitmentResponse();
|
|
10572
|
+
while (reader.pos < end) {
|
|
10573
|
+
const tag = reader.uint32();
|
|
10574
|
+
switch (tag >>> 3) {
|
|
10575
|
+
default:
|
|
10576
|
+
reader.skipType(tag & 7);
|
|
10577
|
+
break;
|
|
10578
|
+
}
|
|
10579
|
+
}
|
|
10580
|
+
return message;
|
|
10581
|
+
},
|
|
10582
|
+
fromPartial(_) {
|
|
10583
|
+
const message = createBaseMsgSetRecoveryCommitmentResponse();
|
|
10584
|
+
return message;
|
|
10585
|
+
},
|
|
10586
|
+
fromAmino(_) {
|
|
10587
|
+
const message = createBaseMsgSetRecoveryCommitmentResponse();
|
|
10588
|
+
return message;
|
|
10589
|
+
},
|
|
10590
|
+
toAmino(_) {
|
|
10591
|
+
const obj = {};
|
|
10592
|
+
return obj;
|
|
10593
|
+
},
|
|
10594
|
+
fromAminoMsg(object) {
|
|
10595
|
+
return MsgSetRecoveryCommitmentResponse.fromAmino(object.value);
|
|
10596
|
+
},
|
|
10597
|
+
fromProtoMsg(message) {
|
|
10598
|
+
return MsgSetRecoveryCommitmentResponse.decode(message.value);
|
|
10599
|
+
},
|
|
10600
|
+
toProto(message) {
|
|
10601
|
+
return MsgSetRecoveryCommitmentResponse.encode(message).finish();
|
|
10602
|
+
},
|
|
10603
|
+
toProtoMsg(message) {
|
|
10604
|
+
return {
|
|
10605
|
+
typeUrl: "/sparkdream.rep.v1.MsgSetRecoveryCommitmentResponse",
|
|
10606
|
+
value: MsgSetRecoveryCommitmentResponse.encode(message).finish()
|
|
10607
|
+
};
|
|
10608
|
+
}
|
|
10609
|
+
};
|
|
10610
|
+
function createBaseMsgRemoveRecoveryCommitment() {
|
|
10611
|
+
return {
|
|
10612
|
+
member: "",
|
|
10613
|
+
commitment: new Uint8Array()
|
|
10614
|
+
};
|
|
10615
|
+
}
|
|
10616
|
+
/**
|
|
10617
|
+
* MsgRemoveRecoveryCommitment schedules the removal of a commitment after
|
|
10618
|
+
* recovery_change_delay; it stays usable for a reveal until then.
|
|
10619
|
+
* @name MsgRemoveRecoveryCommitment
|
|
10620
|
+
* @package sparkdream.rep.v1
|
|
10621
|
+
* @see proto type: sparkdream.rep.v1.MsgRemoveRecoveryCommitment
|
|
10622
|
+
*/
|
|
10623
|
+
export const MsgRemoveRecoveryCommitment = {
|
|
10624
|
+
typeUrl: "/sparkdream.rep.v1.MsgRemoveRecoveryCommitment",
|
|
10625
|
+
aminoType: "sparkdream/x/rep/MsgRemoveRecoveryCommitment",
|
|
10626
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10627
|
+
if (message.member !== "") {
|
|
10628
|
+
writer.uint32(10).string(message.member);
|
|
10629
|
+
}
|
|
10630
|
+
if (message.commitment.length !== 0) {
|
|
10631
|
+
writer.uint32(18).bytes(message.commitment);
|
|
10632
|
+
}
|
|
10633
|
+
return writer;
|
|
10634
|
+
},
|
|
10635
|
+
decode(input, length) {
|
|
10636
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10637
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10638
|
+
const message = createBaseMsgRemoveRecoveryCommitment();
|
|
10639
|
+
while (reader.pos < end) {
|
|
10640
|
+
const tag = reader.uint32();
|
|
10641
|
+
switch (tag >>> 3) {
|
|
10642
|
+
case 1:
|
|
10643
|
+
message.member = reader.string();
|
|
10644
|
+
break;
|
|
10645
|
+
case 2:
|
|
10646
|
+
message.commitment = reader.bytes();
|
|
10647
|
+
break;
|
|
10648
|
+
default:
|
|
10649
|
+
reader.skipType(tag & 7);
|
|
10650
|
+
break;
|
|
10651
|
+
}
|
|
10652
|
+
}
|
|
10653
|
+
return message;
|
|
10654
|
+
},
|
|
10655
|
+
fromPartial(object) {
|
|
10656
|
+
const message = createBaseMsgRemoveRecoveryCommitment();
|
|
10657
|
+
message.member = object.member ?? "";
|
|
10658
|
+
message.commitment = object.commitment ?? new Uint8Array();
|
|
10659
|
+
return message;
|
|
10660
|
+
},
|
|
10661
|
+
fromAmino(object) {
|
|
10662
|
+
const message = createBaseMsgRemoveRecoveryCommitment();
|
|
10663
|
+
if (object.member !== undefined && object.member !== null) {
|
|
10664
|
+
message.member = object.member;
|
|
10665
|
+
}
|
|
10666
|
+
if (object.commitment !== undefined && object.commitment !== null) {
|
|
10667
|
+
message.commitment = bytesFromBase64(object.commitment);
|
|
10668
|
+
}
|
|
10669
|
+
return message;
|
|
10670
|
+
},
|
|
10671
|
+
toAmino(message) {
|
|
10672
|
+
const obj = {};
|
|
10673
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
10674
|
+
obj.commitment = message.commitment ? base64FromBytes(message.commitment) : undefined;
|
|
10675
|
+
return obj;
|
|
10676
|
+
},
|
|
10677
|
+
fromAminoMsg(object) {
|
|
10678
|
+
return MsgRemoveRecoveryCommitment.fromAmino(object.value);
|
|
10679
|
+
},
|
|
10680
|
+
toAminoMsg(message) {
|
|
10681
|
+
return {
|
|
10682
|
+
type: "sparkdream/x/rep/MsgRemoveRecoveryCommitment",
|
|
10683
|
+
value: MsgRemoveRecoveryCommitment.toAmino(message)
|
|
10684
|
+
};
|
|
10685
|
+
},
|
|
10686
|
+
fromProtoMsg(message) {
|
|
10687
|
+
return MsgRemoveRecoveryCommitment.decode(message.value);
|
|
10688
|
+
},
|
|
10689
|
+
toProto(message) {
|
|
10690
|
+
return MsgRemoveRecoveryCommitment.encode(message).finish();
|
|
10691
|
+
},
|
|
10692
|
+
toProtoMsg(message) {
|
|
10693
|
+
return {
|
|
10694
|
+
typeUrl: "/sparkdream.rep.v1.MsgRemoveRecoveryCommitment",
|
|
10695
|
+
value: MsgRemoveRecoveryCommitment.encode(message).finish()
|
|
10696
|
+
};
|
|
10697
|
+
}
|
|
10698
|
+
};
|
|
10699
|
+
function createBaseMsgRemoveRecoveryCommitmentResponse() {
|
|
10700
|
+
return {};
|
|
10701
|
+
}
|
|
10702
|
+
/**
|
|
10703
|
+
* MsgRemoveRecoveryCommitmentResponse defines the MsgRemoveRecoveryCommitmentResponse message.
|
|
10704
|
+
* @name MsgRemoveRecoveryCommitmentResponse
|
|
10705
|
+
* @package sparkdream.rep.v1
|
|
10706
|
+
* @see proto type: sparkdream.rep.v1.MsgRemoveRecoveryCommitmentResponse
|
|
10707
|
+
*/
|
|
10708
|
+
export const MsgRemoveRecoveryCommitmentResponse = {
|
|
10709
|
+
typeUrl: "/sparkdream.rep.v1.MsgRemoveRecoveryCommitmentResponse",
|
|
10710
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
10711
|
+
return writer;
|
|
10712
|
+
},
|
|
10713
|
+
decode(input, length) {
|
|
10714
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10715
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10716
|
+
const message = createBaseMsgRemoveRecoveryCommitmentResponse();
|
|
10717
|
+
while (reader.pos < end) {
|
|
10718
|
+
const tag = reader.uint32();
|
|
10719
|
+
switch (tag >>> 3) {
|
|
10720
|
+
default:
|
|
10721
|
+
reader.skipType(tag & 7);
|
|
10722
|
+
break;
|
|
10723
|
+
}
|
|
10724
|
+
}
|
|
10725
|
+
return message;
|
|
10726
|
+
},
|
|
10727
|
+
fromPartial(_) {
|
|
10728
|
+
const message = createBaseMsgRemoveRecoveryCommitmentResponse();
|
|
10729
|
+
return message;
|
|
10730
|
+
},
|
|
10731
|
+
fromAmino(_) {
|
|
10732
|
+
const message = createBaseMsgRemoveRecoveryCommitmentResponse();
|
|
10733
|
+
return message;
|
|
10734
|
+
},
|
|
10735
|
+
toAmino(_) {
|
|
10736
|
+
const obj = {};
|
|
10737
|
+
return obj;
|
|
10738
|
+
},
|
|
10739
|
+
fromAminoMsg(object) {
|
|
10740
|
+
return MsgRemoveRecoveryCommitmentResponse.fromAmino(object.value);
|
|
10741
|
+
},
|
|
10742
|
+
fromProtoMsg(message) {
|
|
10743
|
+
return MsgRemoveRecoveryCommitmentResponse.decode(message.value);
|
|
10744
|
+
},
|
|
10745
|
+
toProto(message) {
|
|
10746
|
+
return MsgRemoveRecoveryCommitmentResponse.encode(message).finish();
|
|
10747
|
+
},
|
|
10748
|
+
toProtoMsg(message) {
|
|
10749
|
+
return {
|
|
10750
|
+
typeUrl: "/sparkdream.rep.v1.MsgRemoveRecoveryCommitmentResponse",
|
|
10751
|
+
value: MsgRemoveRecoveryCommitmentResponse.encode(message).finish()
|
|
10752
|
+
};
|
|
10753
|
+
}
|
|
10754
|
+
};
|
|
10755
|
+
function createBaseMsgCommitRecovery() {
|
|
10756
|
+
return {
|
|
10757
|
+
submitter: "",
|
|
10758
|
+
sealed: new Uint8Array()
|
|
10759
|
+
};
|
|
10760
|
+
}
|
|
10761
|
+
/**
|
|
10762
|
+
* MsgCommitRecovery stores a sealed commit, the front-running guard of a
|
|
10763
|
+
* reveal, against recovery_commit_deposit (refunded when a reveal consumes
|
|
10764
|
+
* the seal, burned when it expires after recovery_commit_ttl). Any account
|
|
10765
|
+
* may submit it; it reveals nothing about the member, the preimage or the
|
|
10766
|
+
* target.
|
|
10767
|
+
* @name MsgCommitRecovery
|
|
10768
|
+
* @package sparkdream.rep.v1
|
|
10769
|
+
* @see proto type: sparkdream.rep.v1.MsgCommitRecovery
|
|
10770
|
+
*/
|
|
10771
|
+
export const MsgCommitRecovery = {
|
|
10772
|
+
typeUrl: "/sparkdream.rep.v1.MsgCommitRecovery",
|
|
10773
|
+
aminoType: "sparkdream/x/rep/MsgCommitRecovery",
|
|
10774
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10775
|
+
if (message.submitter !== "") {
|
|
10776
|
+
writer.uint32(10).string(message.submitter);
|
|
10777
|
+
}
|
|
10778
|
+
if (message.sealed.length !== 0) {
|
|
10779
|
+
writer.uint32(18).bytes(message.sealed);
|
|
10780
|
+
}
|
|
10781
|
+
return writer;
|
|
10782
|
+
},
|
|
10783
|
+
decode(input, length) {
|
|
10784
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10785
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10786
|
+
const message = createBaseMsgCommitRecovery();
|
|
10787
|
+
while (reader.pos < end) {
|
|
10788
|
+
const tag = reader.uint32();
|
|
10789
|
+
switch (tag >>> 3) {
|
|
10790
|
+
case 1:
|
|
10791
|
+
message.submitter = reader.string();
|
|
10792
|
+
break;
|
|
10793
|
+
case 2:
|
|
10794
|
+
message.sealed = reader.bytes();
|
|
10795
|
+
break;
|
|
10796
|
+
default:
|
|
10797
|
+
reader.skipType(tag & 7);
|
|
10798
|
+
break;
|
|
10799
|
+
}
|
|
10800
|
+
}
|
|
10801
|
+
return message;
|
|
10802
|
+
},
|
|
10803
|
+
fromPartial(object) {
|
|
10804
|
+
const message = createBaseMsgCommitRecovery();
|
|
10805
|
+
message.submitter = object.submitter ?? "";
|
|
10806
|
+
message.sealed = object.sealed ?? new Uint8Array();
|
|
10807
|
+
return message;
|
|
10808
|
+
},
|
|
10809
|
+
fromAmino(object) {
|
|
10810
|
+
const message = createBaseMsgCommitRecovery();
|
|
10811
|
+
if (object.submitter !== undefined && object.submitter !== null) {
|
|
10812
|
+
message.submitter = object.submitter;
|
|
10813
|
+
}
|
|
10814
|
+
if (object.sealed !== undefined && object.sealed !== null) {
|
|
10815
|
+
message.sealed = bytesFromBase64(object.sealed);
|
|
10816
|
+
}
|
|
10817
|
+
return message;
|
|
10818
|
+
},
|
|
10819
|
+
toAmino(message) {
|
|
10820
|
+
const obj = {};
|
|
10821
|
+
obj.submitter = message.submitter === "" ? undefined : message.submitter;
|
|
10822
|
+
obj.sealed = message.sealed ? base64FromBytes(message.sealed) : undefined;
|
|
10823
|
+
return obj;
|
|
10824
|
+
},
|
|
10825
|
+
fromAminoMsg(object) {
|
|
10826
|
+
return MsgCommitRecovery.fromAmino(object.value);
|
|
10827
|
+
},
|
|
10828
|
+
toAminoMsg(message) {
|
|
10829
|
+
return {
|
|
10830
|
+
type: "sparkdream/x/rep/MsgCommitRecovery",
|
|
10831
|
+
value: MsgCommitRecovery.toAmino(message)
|
|
10832
|
+
};
|
|
10833
|
+
},
|
|
10834
|
+
fromProtoMsg(message) {
|
|
10835
|
+
return MsgCommitRecovery.decode(message.value);
|
|
10836
|
+
},
|
|
10837
|
+
toProto(message) {
|
|
10838
|
+
return MsgCommitRecovery.encode(message).finish();
|
|
10839
|
+
},
|
|
10840
|
+
toProtoMsg(message) {
|
|
10841
|
+
return {
|
|
10842
|
+
typeUrl: "/sparkdream.rep.v1.MsgCommitRecovery",
|
|
10843
|
+
value: MsgCommitRecovery.encode(message).finish()
|
|
10844
|
+
};
|
|
10845
|
+
}
|
|
10846
|
+
};
|
|
10847
|
+
function createBaseMsgCommitRecoveryResponse() {
|
|
10848
|
+
return {};
|
|
10849
|
+
}
|
|
10850
|
+
/**
|
|
10851
|
+
* MsgCommitRecoveryResponse defines the MsgCommitRecoveryResponse message.
|
|
10852
|
+
* @name MsgCommitRecoveryResponse
|
|
10853
|
+
* @package sparkdream.rep.v1
|
|
10854
|
+
* @see proto type: sparkdream.rep.v1.MsgCommitRecoveryResponse
|
|
10855
|
+
*/
|
|
10856
|
+
export const MsgCommitRecoveryResponse = {
|
|
10857
|
+
typeUrl: "/sparkdream.rep.v1.MsgCommitRecoveryResponse",
|
|
10858
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
10859
|
+
return writer;
|
|
10860
|
+
},
|
|
10861
|
+
decode(input, length) {
|
|
10862
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10863
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10864
|
+
const message = createBaseMsgCommitRecoveryResponse();
|
|
10865
|
+
while (reader.pos < end) {
|
|
10866
|
+
const tag = reader.uint32();
|
|
10867
|
+
switch (tag >>> 3) {
|
|
10868
|
+
default:
|
|
10869
|
+
reader.skipType(tag & 7);
|
|
10870
|
+
break;
|
|
10871
|
+
}
|
|
10872
|
+
}
|
|
10873
|
+
return message;
|
|
10874
|
+
},
|
|
10875
|
+
fromPartial(_) {
|
|
10876
|
+
const message = createBaseMsgCommitRecoveryResponse();
|
|
10877
|
+
return message;
|
|
10878
|
+
},
|
|
10879
|
+
fromAmino(_) {
|
|
10880
|
+
const message = createBaseMsgCommitRecoveryResponse();
|
|
10881
|
+
return message;
|
|
10882
|
+
},
|
|
10883
|
+
toAmino(_) {
|
|
10884
|
+
const obj = {};
|
|
10885
|
+
return obj;
|
|
10886
|
+
},
|
|
10887
|
+
fromAminoMsg(object) {
|
|
10888
|
+
return MsgCommitRecoveryResponse.fromAmino(object.value);
|
|
10889
|
+
},
|
|
10890
|
+
fromProtoMsg(message) {
|
|
10891
|
+
return MsgCommitRecoveryResponse.decode(message.value);
|
|
10892
|
+
},
|
|
10893
|
+
toProto(message) {
|
|
10894
|
+
return MsgCommitRecoveryResponse.encode(message).finish();
|
|
10895
|
+
},
|
|
10896
|
+
toProtoMsg(message) {
|
|
10897
|
+
return {
|
|
10898
|
+
typeUrl: "/sparkdream.rep.v1.MsgCommitRecoveryResponse",
|
|
10899
|
+
value: MsgCommitRecoveryResponse.encode(message).finish()
|
|
10900
|
+
};
|
|
10901
|
+
}
|
|
10902
|
+
};
|
|
10903
|
+
function createBaseMsgRevealRecovery() {
|
|
10904
|
+
return {
|
|
10905
|
+
revealer: "",
|
|
10906
|
+
member: "",
|
|
10907
|
+
newAddress: "",
|
|
10908
|
+
preimage: new Uint8Array()
|
|
10909
|
+
};
|
|
10910
|
+
}
|
|
10911
|
+
/**
|
|
10912
|
+
* MsgRevealRecovery opens a RECOVERY migration of member to new_address by
|
|
10913
|
+
* revealing the preimage of one of member's active commitments. The sealed
|
|
10914
|
+
* commit binding (preimage, member, new_address) must exist and have aged
|
|
10915
|
+
* recovery_reveal_min_blocks. Signed by any account: the seal already binds
|
|
10916
|
+
* the target, and new_address confirms control afterwards with
|
|
10917
|
+
* MsgAcceptMigration. The matched commitment is consumed, pending commitment
|
|
10918
|
+
* changes are voided and any pending KEY or COUNCIL migration is cancelled.
|
|
10919
|
+
* @name MsgRevealRecovery
|
|
10920
|
+
* @package sparkdream.rep.v1
|
|
10921
|
+
* @see proto type: sparkdream.rep.v1.MsgRevealRecovery
|
|
10922
|
+
*/
|
|
10923
|
+
export const MsgRevealRecovery = {
|
|
10924
|
+
typeUrl: "/sparkdream.rep.v1.MsgRevealRecovery",
|
|
10925
|
+
aminoType: "sparkdream/x/rep/MsgRevealRecovery",
|
|
10926
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
10927
|
+
if (message.revealer !== "") {
|
|
10928
|
+
writer.uint32(10).string(message.revealer);
|
|
10929
|
+
}
|
|
10930
|
+
if (message.member !== "") {
|
|
10931
|
+
writer.uint32(18).string(message.member);
|
|
10932
|
+
}
|
|
10933
|
+
if (message.newAddress !== "") {
|
|
10934
|
+
writer.uint32(26).string(message.newAddress);
|
|
10935
|
+
}
|
|
10936
|
+
if (message.preimage.length !== 0) {
|
|
10937
|
+
writer.uint32(34).bytes(message.preimage);
|
|
10938
|
+
}
|
|
10939
|
+
return writer;
|
|
10940
|
+
},
|
|
10941
|
+
decode(input, length) {
|
|
10942
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10943
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10944
|
+
const message = createBaseMsgRevealRecovery();
|
|
10945
|
+
while (reader.pos < end) {
|
|
10946
|
+
const tag = reader.uint32();
|
|
10947
|
+
switch (tag >>> 3) {
|
|
10948
|
+
case 1:
|
|
10949
|
+
message.revealer = reader.string();
|
|
10950
|
+
break;
|
|
10951
|
+
case 2:
|
|
10952
|
+
message.member = reader.string();
|
|
10953
|
+
break;
|
|
10954
|
+
case 3:
|
|
10955
|
+
message.newAddress = reader.string();
|
|
10956
|
+
break;
|
|
10957
|
+
case 4:
|
|
10958
|
+
message.preimage = reader.bytes();
|
|
10959
|
+
break;
|
|
10960
|
+
default:
|
|
10961
|
+
reader.skipType(tag & 7);
|
|
10962
|
+
break;
|
|
10963
|
+
}
|
|
10964
|
+
}
|
|
10965
|
+
return message;
|
|
10966
|
+
},
|
|
10967
|
+
fromPartial(object) {
|
|
10968
|
+
const message = createBaseMsgRevealRecovery();
|
|
10969
|
+
message.revealer = object.revealer ?? "";
|
|
10970
|
+
message.member = object.member ?? "";
|
|
10971
|
+
message.newAddress = object.newAddress ?? "";
|
|
10972
|
+
message.preimage = object.preimage ?? new Uint8Array();
|
|
10973
|
+
return message;
|
|
10974
|
+
},
|
|
10975
|
+
fromAmino(object) {
|
|
10976
|
+
const message = createBaseMsgRevealRecovery();
|
|
10977
|
+
if (object.revealer !== undefined && object.revealer !== null) {
|
|
10978
|
+
message.revealer = object.revealer;
|
|
10979
|
+
}
|
|
10980
|
+
if (object.member !== undefined && object.member !== null) {
|
|
10981
|
+
message.member = object.member;
|
|
10982
|
+
}
|
|
10983
|
+
if (object.new_address !== undefined && object.new_address !== null) {
|
|
10984
|
+
message.newAddress = object.new_address;
|
|
10985
|
+
}
|
|
10986
|
+
if (object.preimage !== undefined && object.preimage !== null) {
|
|
10987
|
+
message.preimage = bytesFromBase64(object.preimage);
|
|
10988
|
+
}
|
|
10989
|
+
return message;
|
|
10990
|
+
},
|
|
10991
|
+
toAmino(message) {
|
|
10992
|
+
const obj = {};
|
|
10993
|
+
obj.revealer = message.revealer === "" ? undefined : message.revealer;
|
|
10994
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
10995
|
+
obj.new_address = message.newAddress === "" ? undefined : message.newAddress;
|
|
10996
|
+
obj.preimage = message.preimage ? base64FromBytes(message.preimage) : undefined;
|
|
10997
|
+
return obj;
|
|
10998
|
+
},
|
|
10999
|
+
fromAminoMsg(object) {
|
|
11000
|
+
return MsgRevealRecovery.fromAmino(object.value);
|
|
11001
|
+
},
|
|
11002
|
+
toAminoMsg(message) {
|
|
11003
|
+
return {
|
|
11004
|
+
type: "sparkdream/x/rep/MsgRevealRecovery",
|
|
11005
|
+
value: MsgRevealRecovery.toAmino(message)
|
|
11006
|
+
};
|
|
11007
|
+
},
|
|
11008
|
+
fromProtoMsg(message) {
|
|
11009
|
+
return MsgRevealRecovery.decode(message.value);
|
|
11010
|
+
},
|
|
11011
|
+
toProto(message) {
|
|
11012
|
+
return MsgRevealRecovery.encode(message).finish();
|
|
11013
|
+
},
|
|
11014
|
+
toProtoMsg(message) {
|
|
11015
|
+
return {
|
|
11016
|
+
typeUrl: "/sparkdream.rep.v1.MsgRevealRecovery",
|
|
11017
|
+
value: MsgRevealRecovery.encode(message).finish()
|
|
11018
|
+
};
|
|
11019
|
+
}
|
|
11020
|
+
};
|
|
11021
|
+
function createBaseMsgRevealRecoveryResponse() {
|
|
11022
|
+
return {
|
|
11023
|
+
migrationId: BigInt(0)
|
|
11024
|
+
};
|
|
11025
|
+
}
|
|
11026
|
+
/**
|
|
11027
|
+
* MsgRevealRecoveryResponse defines the MsgRevealRecoveryResponse message.
|
|
11028
|
+
* @name MsgRevealRecoveryResponse
|
|
11029
|
+
* @package sparkdream.rep.v1
|
|
11030
|
+
* @see proto type: sparkdream.rep.v1.MsgRevealRecoveryResponse
|
|
11031
|
+
*/
|
|
11032
|
+
export const MsgRevealRecoveryResponse = {
|
|
11033
|
+
typeUrl: "/sparkdream.rep.v1.MsgRevealRecoveryResponse",
|
|
11034
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11035
|
+
if (message.migrationId !== BigInt(0)) {
|
|
11036
|
+
writer.uint32(8).uint64(message.migrationId);
|
|
11037
|
+
}
|
|
11038
|
+
return writer;
|
|
11039
|
+
},
|
|
11040
|
+
decode(input, length) {
|
|
11041
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11042
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11043
|
+
const message = createBaseMsgRevealRecoveryResponse();
|
|
11044
|
+
while (reader.pos < end) {
|
|
11045
|
+
const tag = reader.uint32();
|
|
11046
|
+
switch (tag >>> 3) {
|
|
11047
|
+
case 1:
|
|
11048
|
+
message.migrationId = reader.uint64();
|
|
11049
|
+
break;
|
|
11050
|
+
default:
|
|
11051
|
+
reader.skipType(tag & 7);
|
|
11052
|
+
break;
|
|
11053
|
+
}
|
|
11054
|
+
}
|
|
11055
|
+
return message;
|
|
11056
|
+
},
|
|
11057
|
+
fromPartial(object) {
|
|
11058
|
+
const message = createBaseMsgRevealRecoveryResponse();
|
|
11059
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
11060
|
+
return message;
|
|
11061
|
+
},
|
|
11062
|
+
fromAmino(object) {
|
|
11063
|
+
const message = createBaseMsgRevealRecoveryResponse();
|
|
11064
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
11065
|
+
message.migrationId = BigInt(object.migration_id);
|
|
11066
|
+
}
|
|
11067
|
+
return message;
|
|
11068
|
+
},
|
|
11069
|
+
toAmino(message) {
|
|
11070
|
+
const obj = {};
|
|
11071
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
11072
|
+
return obj;
|
|
11073
|
+
},
|
|
11074
|
+
fromAminoMsg(object) {
|
|
11075
|
+
return MsgRevealRecoveryResponse.fromAmino(object.value);
|
|
11076
|
+
},
|
|
11077
|
+
fromProtoMsg(message) {
|
|
11078
|
+
return MsgRevealRecoveryResponse.decode(message.value);
|
|
11079
|
+
},
|
|
11080
|
+
toProto(message) {
|
|
11081
|
+
return MsgRevealRecoveryResponse.encode(message).finish();
|
|
11082
|
+
},
|
|
11083
|
+
toProtoMsg(message) {
|
|
11084
|
+
return {
|
|
11085
|
+
typeUrl: "/sparkdream.rep.v1.MsgRevealRecoveryResponse",
|
|
11086
|
+
value: MsgRevealRecoveryResponse.encode(message).finish()
|
|
11087
|
+
};
|
|
11088
|
+
}
|
|
11089
|
+
};
|
|
11090
|
+
function createBaseMsgObjectMigration() {
|
|
11091
|
+
return {
|
|
11092
|
+
member: "",
|
|
11093
|
+
migrationId: BigInt(0),
|
|
11094
|
+
reason: ""
|
|
11095
|
+
};
|
|
11096
|
+
}
|
|
11097
|
+
/**
|
|
11098
|
+
* MsgObjectMigration lets the old address contest a COUNCIL migration
|
|
11099
|
+
* during its delay. It does not cancel the migration: the objector posts
|
|
11100
|
+
* migration_objection_bond and an x/rep jury decides. The bond is paid to
|
|
11101
|
+
* the new address if the migration is upheld and refunded otherwise, never
|
|
11102
|
+
* burned.
|
|
11103
|
+
* @name MsgObjectMigration
|
|
11104
|
+
* @package sparkdream.rep.v1
|
|
11105
|
+
* @see proto type: sparkdream.rep.v1.MsgObjectMigration
|
|
11106
|
+
*/
|
|
11107
|
+
export const MsgObjectMigration = {
|
|
11108
|
+
typeUrl: "/sparkdream.rep.v1.MsgObjectMigration",
|
|
11109
|
+
aminoType: "sparkdream/x/rep/MsgObjectMigration",
|
|
11110
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11111
|
+
if (message.member !== "") {
|
|
11112
|
+
writer.uint32(10).string(message.member);
|
|
11113
|
+
}
|
|
11114
|
+
if (message.migrationId !== BigInt(0)) {
|
|
11115
|
+
writer.uint32(16).uint64(message.migrationId);
|
|
11116
|
+
}
|
|
11117
|
+
if (message.reason !== "") {
|
|
11118
|
+
writer.uint32(26).string(message.reason);
|
|
11119
|
+
}
|
|
11120
|
+
return writer;
|
|
11121
|
+
},
|
|
11122
|
+
decode(input, length) {
|
|
11123
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11124
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11125
|
+
const message = createBaseMsgObjectMigration();
|
|
11126
|
+
while (reader.pos < end) {
|
|
11127
|
+
const tag = reader.uint32();
|
|
11128
|
+
switch (tag >>> 3) {
|
|
11129
|
+
case 1:
|
|
11130
|
+
message.member = reader.string();
|
|
11131
|
+
break;
|
|
11132
|
+
case 2:
|
|
11133
|
+
message.migrationId = reader.uint64();
|
|
11134
|
+
break;
|
|
11135
|
+
case 3:
|
|
11136
|
+
message.reason = reader.string();
|
|
11137
|
+
break;
|
|
11138
|
+
default:
|
|
11139
|
+
reader.skipType(tag & 7);
|
|
11140
|
+
break;
|
|
11141
|
+
}
|
|
11142
|
+
}
|
|
11143
|
+
return message;
|
|
11144
|
+
},
|
|
11145
|
+
fromPartial(object) {
|
|
11146
|
+
const message = createBaseMsgObjectMigration();
|
|
11147
|
+
message.member = object.member ?? "";
|
|
11148
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
11149
|
+
message.reason = object.reason ?? "";
|
|
11150
|
+
return message;
|
|
11151
|
+
},
|
|
11152
|
+
fromAmino(object) {
|
|
11153
|
+
const message = createBaseMsgObjectMigration();
|
|
11154
|
+
if (object.member !== undefined && object.member !== null) {
|
|
11155
|
+
message.member = object.member;
|
|
11156
|
+
}
|
|
11157
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
11158
|
+
message.migrationId = BigInt(object.migration_id);
|
|
11159
|
+
}
|
|
11160
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
11161
|
+
message.reason = object.reason;
|
|
11162
|
+
}
|
|
11163
|
+
return message;
|
|
11164
|
+
},
|
|
11165
|
+
toAmino(message) {
|
|
11166
|
+
const obj = {};
|
|
11167
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
11168
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
11169
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
11170
|
+
return obj;
|
|
11171
|
+
},
|
|
11172
|
+
fromAminoMsg(object) {
|
|
11173
|
+
return MsgObjectMigration.fromAmino(object.value);
|
|
11174
|
+
},
|
|
11175
|
+
toAminoMsg(message) {
|
|
11176
|
+
return {
|
|
11177
|
+
type: "sparkdream/x/rep/MsgObjectMigration",
|
|
11178
|
+
value: MsgObjectMigration.toAmino(message)
|
|
11179
|
+
};
|
|
11180
|
+
},
|
|
11181
|
+
fromProtoMsg(message) {
|
|
11182
|
+
return MsgObjectMigration.decode(message.value);
|
|
11183
|
+
},
|
|
11184
|
+
toProto(message) {
|
|
11185
|
+
return MsgObjectMigration.encode(message).finish();
|
|
11186
|
+
},
|
|
11187
|
+
toProtoMsg(message) {
|
|
11188
|
+
return {
|
|
11189
|
+
typeUrl: "/sparkdream.rep.v1.MsgObjectMigration",
|
|
11190
|
+
value: MsgObjectMigration.encode(message).finish()
|
|
11191
|
+
};
|
|
11192
|
+
}
|
|
11193
|
+
};
|
|
11194
|
+
function createBaseMsgObjectMigrationResponse() {
|
|
11195
|
+
return {};
|
|
11196
|
+
}
|
|
11197
|
+
/**
|
|
11198
|
+
* MsgObjectMigrationResponse defines the MsgObjectMigrationResponse message.
|
|
11199
|
+
* @name MsgObjectMigrationResponse
|
|
11200
|
+
* @package sparkdream.rep.v1
|
|
11201
|
+
* @see proto type: sparkdream.rep.v1.MsgObjectMigrationResponse
|
|
11202
|
+
*/
|
|
11203
|
+
export const MsgObjectMigrationResponse = {
|
|
11204
|
+
typeUrl: "/sparkdream.rep.v1.MsgObjectMigrationResponse",
|
|
11205
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
11206
|
+
return writer;
|
|
11207
|
+
},
|
|
11208
|
+
decode(input, length) {
|
|
11209
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11210
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11211
|
+
const message = createBaseMsgObjectMigrationResponse();
|
|
11212
|
+
while (reader.pos < end) {
|
|
11213
|
+
const tag = reader.uint32();
|
|
11214
|
+
switch (tag >>> 3) {
|
|
11215
|
+
default:
|
|
11216
|
+
reader.skipType(tag & 7);
|
|
11217
|
+
break;
|
|
11218
|
+
}
|
|
11219
|
+
}
|
|
11220
|
+
return message;
|
|
11221
|
+
},
|
|
11222
|
+
fromPartial(_) {
|
|
11223
|
+
const message = createBaseMsgObjectMigrationResponse();
|
|
11224
|
+
return message;
|
|
11225
|
+
},
|
|
11226
|
+
fromAmino(_) {
|
|
11227
|
+
const message = createBaseMsgObjectMigrationResponse();
|
|
11228
|
+
return message;
|
|
11229
|
+
},
|
|
11230
|
+
toAmino(_) {
|
|
11231
|
+
const obj = {};
|
|
11232
|
+
return obj;
|
|
11233
|
+
},
|
|
11234
|
+
fromAminoMsg(object) {
|
|
11235
|
+
return MsgObjectMigrationResponse.fromAmino(object.value);
|
|
11236
|
+
},
|
|
11237
|
+
fromProtoMsg(message) {
|
|
11238
|
+
return MsgObjectMigrationResponse.decode(message.value);
|
|
11239
|
+
},
|
|
11240
|
+
toProto(message) {
|
|
11241
|
+
return MsgObjectMigrationResponse.encode(message).finish();
|
|
11242
|
+
},
|
|
11243
|
+
toProtoMsg(message) {
|
|
11244
|
+
return {
|
|
11245
|
+
typeUrl: "/sparkdream.rep.v1.MsgObjectMigrationResponse",
|
|
11246
|
+
value: MsgObjectMigrationResponse.encode(message).finish()
|
|
11247
|
+
};
|
|
11248
|
+
}
|
|
11249
|
+
};
|
|
11250
|
+
function createBaseMsgSweepTombstone() {
|
|
11251
|
+
return {
|
|
11252
|
+
signer: "",
|
|
11253
|
+
tombstone: ""
|
|
11254
|
+
};
|
|
11255
|
+
}
|
|
11256
|
+
/**
|
|
11257
|
+
* MsgSweepTombstone moves a tombstone's spendable SPARK to its canonical
|
|
11258
|
+
* address, which signs. Unbonding completes to the old address outside the
|
|
11259
|
+
* bank send restriction; on the recovery and council paths the old key may
|
|
11260
|
+
* not MsgSend it, so this is how the member collects it.
|
|
11261
|
+
* @name MsgSweepTombstone
|
|
11262
|
+
* @package sparkdream.rep.v1
|
|
11263
|
+
* @see proto type: sparkdream.rep.v1.MsgSweepTombstone
|
|
11264
|
+
*/
|
|
11265
|
+
export const MsgSweepTombstone = {
|
|
11266
|
+
typeUrl: "/sparkdream.rep.v1.MsgSweepTombstone",
|
|
11267
|
+
aminoType: "sparkdream/x/rep/MsgSweepTombstone",
|
|
11268
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11269
|
+
if (message.signer !== "") {
|
|
11270
|
+
writer.uint32(10).string(message.signer);
|
|
11271
|
+
}
|
|
11272
|
+
if (message.tombstone !== "") {
|
|
11273
|
+
writer.uint32(18).string(message.tombstone);
|
|
11274
|
+
}
|
|
11275
|
+
return writer;
|
|
11276
|
+
},
|
|
11277
|
+
decode(input, length) {
|
|
11278
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11279
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11280
|
+
const message = createBaseMsgSweepTombstone();
|
|
11281
|
+
while (reader.pos < end) {
|
|
11282
|
+
const tag = reader.uint32();
|
|
11283
|
+
switch (tag >>> 3) {
|
|
11284
|
+
case 1:
|
|
11285
|
+
message.signer = reader.string();
|
|
11286
|
+
break;
|
|
11287
|
+
case 2:
|
|
11288
|
+
message.tombstone = reader.string();
|
|
11289
|
+
break;
|
|
11290
|
+
default:
|
|
11291
|
+
reader.skipType(tag & 7);
|
|
11292
|
+
break;
|
|
11293
|
+
}
|
|
11294
|
+
}
|
|
11295
|
+
return message;
|
|
11296
|
+
},
|
|
11297
|
+
fromPartial(object) {
|
|
11298
|
+
const message = createBaseMsgSweepTombstone();
|
|
11299
|
+
message.signer = object.signer ?? "";
|
|
11300
|
+
message.tombstone = object.tombstone ?? "";
|
|
11301
|
+
return message;
|
|
11302
|
+
},
|
|
11303
|
+
fromAmino(object) {
|
|
11304
|
+
const message = createBaseMsgSweepTombstone();
|
|
11305
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
11306
|
+
message.signer = object.signer;
|
|
11307
|
+
}
|
|
11308
|
+
if (object.tombstone !== undefined && object.tombstone !== null) {
|
|
11309
|
+
message.tombstone = object.tombstone;
|
|
11310
|
+
}
|
|
11311
|
+
return message;
|
|
11312
|
+
},
|
|
11313
|
+
toAmino(message) {
|
|
11314
|
+
const obj = {};
|
|
11315
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
11316
|
+
obj.tombstone = message.tombstone === "" ? undefined : message.tombstone;
|
|
11317
|
+
return obj;
|
|
11318
|
+
},
|
|
11319
|
+
fromAminoMsg(object) {
|
|
11320
|
+
return MsgSweepTombstone.fromAmino(object.value);
|
|
11321
|
+
},
|
|
11322
|
+
toAminoMsg(message) {
|
|
11323
|
+
return {
|
|
11324
|
+
type: "sparkdream/x/rep/MsgSweepTombstone",
|
|
11325
|
+
value: MsgSweepTombstone.toAmino(message)
|
|
11326
|
+
};
|
|
11327
|
+
},
|
|
11328
|
+
fromProtoMsg(message) {
|
|
11329
|
+
return MsgSweepTombstone.decode(message.value);
|
|
11330
|
+
},
|
|
11331
|
+
toProto(message) {
|
|
11332
|
+
return MsgSweepTombstone.encode(message).finish();
|
|
11333
|
+
},
|
|
11334
|
+
toProtoMsg(message) {
|
|
11335
|
+
return {
|
|
11336
|
+
typeUrl: "/sparkdream.rep.v1.MsgSweepTombstone",
|
|
11337
|
+
value: MsgSweepTombstone.encode(message).finish()
|
|
11338
|
+
};
|
|
11339
|
+
}
|
|
11340
|
+
};
|
|
11341
|
+
function createBaseMsgSweepTombstoneResponse() {
|
|
11342
|
+
return {};
|
|
11343
|
+
}
|
|
11344
|
+
/**
|
|
11345
|
+
* MsgSweepTombstoneResponse defines the MsgSweepTombstoneResponse message.
|
|
11346
|
+
* @name MsgSweepTombstoneResponse
|
|
11347
|
+
* @package sparkdream.rep.v1
|
|
11348
|
+
* @see proto type: sparkdream.rep.v1.MsgSweepTombstoneResponse
|
|
11349
|
+
*/
|
|
11350
|
+
export const MsgSweepTombstoneResponse = {
|
|
11351
|
+
typeUrl: "/sparkdream.rep.v1.MsgSweepTombstoneResponse",
|
|
11352
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
11353
|
+
return writer;
|
|
11354
|
+
},
|
|
11355
|
+
decode(input, length) {
|
|
11356
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11357
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11358
|
+
const message = createBaseMsgSweepTombstoneResponse();
|
|
11359
|
+
while (reader.pos < end) {
|
|
11360
|
+
const tag = reader.uint32();
|
|
11361
|
+
switch (tag >>> 3) {
|
|
11362
|
+
default:
|
|
11363
|
+
reader.skipType(tag & 7);
|
|
11364
|
+
break;
|
|
11365
|
+
}
|
|
11366
|
+
}
|
|
11367
|
+
return message;
|
|
11368
|
+
},
|
|
11369
|
+
fromPartial(_) {
|
|
11370
|
+
const message = createBaseMsgSweepTombstoneResponse();
|
|
11371
|
+
return message;
|
|
11372
|
+
},
|
|
11373
|
+
fromAmino(_) {
|
|
11374
|
+
const message = createBaseMsgSweepTombstoneResponse();
|
|
11375
|
+
return message;
|
|
11376
|
+
},
|
|
11377
|
+
toAmino(_) {
|
|
11378
|
+
const obj = {};
|
|
11379
|
+
return obj;
|
|
11380
|
+
},
|
|
11381
|
+
fromAminoMsg(object) {
|
|
11382
|
+
return MsgSweepTombstoneResponse.fromAmino(object.value);
|
|
11383
|
+
},
|
|
11384
|
+
fromProtoMsg(message) {
|
|
11385
|
+
return MsgSweepTombstoneResponse.decode(message.value);
|
|
11386
|
+
},
|
|
11387
|
+
toProto(message) {
|
|
11388
|
+
return MsgSweepTombstoneResponse.encode(message).finish();
|
|
11389
|
+
},
|
|
11390
|
+
toProtoMsg(message) {
|
|
11391
|
+
return {
|
|
11392
|
+
typeUrl: "/sparkdream.rep.v1.MsgSweepTombstoneResponse",
|
|
11393
|
+
value: MsgSweepTombstoneResponse.encode(message).finish()
|
|
11394
|
+
};
|
|
11395
|
+
}
|
|
11396
|
+
};
|
|
11397
|
+
function createBaseMsgForceMigration() {
|
|
11398
|
+
return {
|
|
11399
|
+
authority: "",
|
|
11400
|
+
member: "",
|
|
11401
|
+
newAddress: "",
|
|
11402
|
+
evidenceUri: ""
|
|
11403
|
+
};
|
|
11404
|
+
}
|
|
11405
|
+
/**
|
|
11406
|
+
* MsgForceMigration opens a COUNCIL migration of member to new_address on
|
|
11407
|
+
* off-chain evidence (a lost key with no recovery commitment). The authority
|
|
11408
|
+
* is the Commons HR (governance) committee policy or x/gov. new_address must
|
|
11409
|
+
* still accept; the old address may object to a jury during
|
|
11410
|
+
* council_migration_delay. An open member report does not block it.
|
|
11411
|
+
* @name MsgForceMigration
|
|
11412
|
+
* @package sparkdream.rep.v1
|
|
11413
|
+
* @see proto type: sparkdream.rep.v1.MsgForceMigration
|
|
11414
|
+
*/
|
|
11415
|
+
export const MsgForceMigration = {
|
|
11416
|
+
typeUrl: "/sparkdream.rep.v1.MsgForceMigration",
|
|
11417
|
+
aminoType: "sparkdream/x/rep/MsgForceMigration",
|
|
11418
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11419
|
+
if (message.authority !== "") {
|
|
11420
|
+
writer.uint32(10).string(message.authority);
|
|
11421
|
+
}
|
|
11422
|
+
if (message.member !== "") {
|
|
11423
|
+
writer.uint32(18).string(message.member);
|
|
11424
|
+
}
|
|
11425
|
+
if (message.newAddress !== "") {
|
|
11426
|
+
writer.uint32(26).string(message.newAddress);
|
|
11427
|
+
}
|
|
11428
|
+
if (message.evidenceUri !== "") {
|
|
11429
|
+
writer.uint32(34).string(message.evidenceUri);
|
|
11430
|
+
}
|
|
11431
|
+
return writer;
|
|
11432
|
+
},
|
|
11433
|
+
decode(input, length) {
|
|
11434
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11435
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11436
|
+
const message = createBaseMsgForceMigration();
|
|
11437
|
+
while (reader.pos < end) {
|
|
11438
|
+
const tag = reader.uint32();
|
|
11439
|
+
switch (tag >>> 3) {
|
|
11440
|
+
case 1:
|
|
11441
|
+
message.authority = reader.string();
|
|
11442
|
+
break;
|
|
11443
|
+
case 2:
|
|
11444
|
+
message.member = reader.string();
|
|
11445
|
+
break;
|
|
11446
|
+
case 3:
|
|
11447
|
+
message.newAddress = reader.string();
|
|
11448
|
+
break;
|
|
11449
|
+
case 4:
|
|
11450
|
+
message.evidenceUri = reader.string();
|
|
11451
|
+
break;
|
|
11452
|
+
default:
|
|
11453
|
+
reader.skipType(tag & 7);
|
|
11454
|
+
break;
|
|
11455
|
+
}
|
|
11456
|
+
}
|
|
11457
|
+
return message;
|
|
11458
|
+
},
|
|
11459
|
+
fromPartial(object) {
|
|
11460
|
+
const message = createBaseMsgForceMigration();
|
|
11461
|
+
message.authority = object.authority ?? "";
|
|
11462
|
+
message.member = object.member ?? "";
|
|
11463
|
+
message.newAddress = object.newAddress ?? "";
|
|
11464
|
+
message.evidenceUri = object.evidenceUri ?? "";
|
|
11465
|
+
return message;
|
|
11466
|
+
},
|
|
11467
|
+
fromAmino(object) {
|
|
11468
|
+
const message = createBaseMsgForceMigration();
|
|
11469
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
11470
|
+
message.authority = object.authority;
|
|
11471
|
+
}
|
|
11472
|
+
if (object.member !== undefined && object.member !== null) {
|
|
11473
|
+
message.member = object.member;
|
|
11474
|
+
}
|
|
11475
|
+
if (object.new_address !== undefined && object.new_address !== null) {
|
|
11476
|
+
message.newAddress = object.new_address;
|
|
11477
|
+
}
|
|
11478
|
+
if (object.evidence_uri !== undefined && object.evidence_uri !== null) {
|
|
11479
|
+
message.evidenceUri = object.evidence_uri;
|
|
11480
|
+
}
|
|
11481
|
+
return message;
|
|
11482
|
+
},
|
|
11483
|
+
toAmino(message) {
|
|
11484
|
+
const obj = {};
|
|
11485
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
11486
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
11487
|
+
obj.new_address = message.newAddress === "" ? undefined : message.newAddress;
|
|
11488
|
+
obj.evidence_uri = message.evidenceUri === "" ? undefined : message.evidenceUri;
|
|
11489
|
+
return obj;
|
|
11490
|
+
},
|
|
11491
|
+
fromAminoMsg(object) {
|
|
11492
|
+
return MsgForceMigration.fromAmino(object.value);
|
|
11493
|
+
},
|
|
11494
|
+
toAminoMsg(message) {
|
|
11495
|
+
return {
|
|
11496
|
+
type: "sparkdream/x/rep/MsgForceMigration",
|
|
11497
|
+
value: MsgForceMigration.toAmino(message)
|
|
11498
|
+
};
|
|
11499
|
+
},
|
|
11500
|
+
fromProtoMsg(message) {
|
|
11501
|
+
return MsgForceMigration.decode(message.value);
|
|
11502
|
+
},
|
|
11503
|
+
toProto(message) {
|
|
11504
|
+
return MsgForceMigration.encode(message).finish();
|
|
11505
|
+
},
|
|
11506
|
+
toProtoMsg(message) {
|
|
11507
|
+
return {
|
|
11508
|
+
typeUrl: "/sparkdream.rep.v1.MsgForceMigration",
|
|
11509
|
+
value: MsgForceMigration.encode(message).finish()
|
|
11510
|
+
};
|
|
11511
|
+
}
|
|
11512
|
+
};
|
|
11513
|
+
function createBaseMsgForceMigrationResponse() {
|
|
11514
|
+
return {
|
|
11515
|
+
migrationId: BigInt(0)
|
|
11516
|
+
};
|
|
11517
|
+
}
|
|
11518
|
+
/**
|
|
11519
|
+
* MsgForceMigrationResponse defines the MsgForceMigrationResponse message.
|
|
11520
|
+
* @name MsgForceMigrationResponse
|
|
11521
|
+
* @package sparkdream.rep.v1
|
|
11522
|
+
* @see proto type: sparkdream.rep.v1.MsgForceMigrationResponse
|
|
11523
|
+
*/
|
|
11524
|
+
export const MsgForceMigrationResponse = {
|
|
11525
|
+
typeUrl: "/sparkdream.rep.v1.MsgForceMigrationResponse",
|
|
11526
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11527
|
+
if (message.migrationId !== BigInt(0)) {
|
|
11528
|
+
writer.uint32(8).uint64(message.migrationId);
|
|
11529
|
+
}
|
|
11530
|
+
return writer;
|
|
11531
|
+
},
|
|
11532
|
+
decode(input, length) {
|
|
11533
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11535
|
+
const message = createBaseMsgForceMigrationResponse();
|
|
11536
|
+
while (reader.pos < end) {
|
|
11537
|
+
const tag = reader.uint32();
|
|
11538
|
+
switch (tag >>> 3) {
|
|
11539
|
+
case 1:
|
|
11540
|
+
message.migrationId = reader.uint64();
|
|
11541
|
+
break;
|
|
11542
|
+
default:
|
|
11543
|
+
reader.skipType(tag & 7);
|
|
11544
|
+
break;
|
|
11545
|
+
}
|
|
11546
|
+
}
|
|
11547
|
+
return message;
|
|
11548
|
+
},
|
|
11549
|
+
fromPartial(object) {
|
|
11550
|
+
const message = createBaseMsgForceMigrationResponse();
|
|
11551
|
+
message.migrationId = object.migrationId !== undefined && object.migrationId !== null ? BigInt(object.migrationId.toString()) : BigInt(0);
|
|
11552
|
+
return message;
|
|
11553
|
+
},
|
|
11554
|
+
fromAmino(object) {
|
|
11555
|
+
const message = createBaseMsgForceMigrationResponse();
|
|
11556
|
+
if (object.migration_id !== undefined && object.migration_id !== null) {
|
|
11557
|
+
message.migrationId = BigInt(object.migration_id);
|
|
11558
|
+
}
|
|
11559
|
+
return message;
|
|
11560
|
+
},
|
|
11561
|
+
toAmino(message) {
|
|
11562
|
+
const obj = {};
|
|
11563
|
+
obj.migration_id = message.migrationId !== BigInt(0) ? message.migrationId?.toString() : undefined;
|
|
11564
|
+
return obj;
|
|
11565
|
+
},
|
|
11566
|
+
fromAminoMsg(object) {
|
|
11567
|
+
return MsgForceMigrationResponse.fromAmino(object.value);
|
|
11568
|
+
},
|
|
11569
|
+
fromProtoMsg(message) {
|
|
11570
|
+
return MsgForceMigrationResponse.decode(message.value);
|
|
11571
|
+
},
|
|
11572
|
+
toProto(message) {
|
|
11573
|
+
return MsgForceMigrationResponse.encode(message).finish();
|
|
11574
|
+
},
|
|
11575
|
+
toProtoMsg(message) {
|
|
11576
|
+
return {
|
|
11577
|
+
typeUrl: "/sparkdream.rep.v1.MsgForceMigrationResponse",
|
|
11578
|
+
value: MsgForceMigrationResponse.encode(message).finish()
|
|
11579
|
+
};
|
|
11580
|
+
}
|
|
11581
|
+
};
|
|
11582
|
+
function createBaseMsgClearZkPublicKey() {
|
|
11583
|
+
return {
|
|
11584
|
+
member: ""
|
|
11585
|
+
};
|
|
11586
|
+
}
|
|
11587
|
+
/**
|
|
11588
|
+
* MsgClearZkPublicKey zeroes the member's zk_public_key and any
|
|
11589
|
+
* pending_zk_public_key at once and registers nothing in their place. It is
|
|
11590
|
+
* the remedy for a leaked shield secret: unlike a key change it has no
|
|
11591
|
+
* cooldown and no per-season limit, because zeroing can only take capability
|
|
11592
|
+
* away. It sets zk_key_cleared, so the next MsgRegisterZkPublicKey is never
|
|
11593
|
+
* immediate (it waits zk_key_activation_delay) and still honours the
|
|
11594
|
+
* once-per-season change cap; clear-then-register is not a free key swap.
|
|
11595
|
+
* Never session-delegable, never shield-compatible (rep identity list).
|
|
11596
|
+
* @name MsgClearZkPublicKey
|
|
11597
|
+
* @package sparkdream.rep.v1
|
|
11598
|
+
* @see proto type: sparkdream.rep.v1.MsgClearZkPublicKey
|
|
11599
|
+
*/
|
|
11600
|
+
export const MsgClearZkPublicKey = {
|
|
11601
|
+
typeUrl: "/sparkdream.rep.v1.MsgClearZkPublicKey",
|
|
11602
|
+
aminoType: "sparkdream/x/rep/MsgClearZkPublicKey",
|
|
11603
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
11604
|
+
if (message.member !== "") {
|
|
11605
|
+
writer.uint32(10).string(message.member);
|
|
11606
|
+
}
|
|
11607
|
+
return writer;
|
|
11608
|
+
},
|
|
11609
|
+
decode(input, length) {
|
|
11610
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11611
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11612
|
+
const message = createBaseMsgClearZkPublicKey();
|
|
11613
|
+
while (reader.pos < end) {
|
|
11614
|
+
const tag = reader.uint32();
|
|
11615
|
+
switch (tag >>> 3) {
|
|
11616
|
+
case 1:
|
|
11617
|
+
message.member = reader.string();
|
|
11618
|
+
break;
|
|
11619
|
+
default:
|
|
11620
|
+
reader.skipType(tag & 7);
|
|
11621
|
+
break;
|
|
11622
|
+
}
|
|
11623
|
+
}
|
|
11624
|
+
return message;
|
|
11625
|
+
},
|
|
11626
|
+
fromPartial(object) {
|
|
11627
|
+
const message = createBaseMsgClearZkPublicKey();
|
|
11628
|
+
message.member = object.member ?? "";
|
|
11629
|
+
return message;
|
|
11630
|
+
},
|
|
11631
|
+
fromAmino(object) {
|
|
11632
|
+
const message = createBaseMsgClearZkPublicKey();
|
|
11633
|
+
if (object.member !== undefined && object.member !== null) {
|
|
11634
|
+
message.member = object.member;
|
|
11635
|
+
}
|
|
11636
|
+
return message;
|
|
11637
|
+
},
|
|
11638
|
+
toAmino(message) {
|
|
11639
|
+
const obj = {};
|
|
11640
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
11641
|
+
return obj;
|
|
11642
|
+
},
|
|
11643
|
+
fromAminoMsg(object) {
|
|
11644
|
+
return MsgClearZkPublicKey.fromAmino(object.value);
|
|
11645
|
+
},
|
|
11646
|
+
toAminoMsg(message) {
|
|
11647
|
+
return {
|
|
11648
|
+
type: "sparkdream/x/rep/MsgClearZkPublicKey",
|
|
11649
|
+
value: MsgClearZkPublicKey.toAmino(message)
|
|
11650
|
+
};
|
|
11651
|
+
},
|
|
11652
|
+
fromProtoMsg(message) {
|
|
11653
|
+
return MsgClearZkPublicKey.decode(message.value);
|
|
11654
|
+
},
|
|
11655
|
+
toProto(message) {
|
|
11656
|
+
return MsgClearZkPublicKey.encode(message).finish();
|
|
11657
|
+
},
|
|
11658
|
+
toProtoMsg(message) {
|
|
11659
|
+
return {
|
|
11660
|
+
typeUrl: "/sparkdream.rep.v1.MsgClearZkPublicKey",
|
|
11661
|
+
value: MsgClearZkPublicKey.encode(message).finish()
|
|
11662
|
+
};
|
|
11663
|
+
}
|
|
11664
|
+
};
|
|
11665
|
+
function createBaseMsgClearZkPublicKeyResponse() {
|
|
11666
|
+
return {};
|
|
11667
|
+
}
|
|
11668
|
+
/**
|
|
11669
|
+
* MsgClearZkPublicKeyResponse defines the MsgClearZkPublicKeyResponse message.
|
|
11670
|
+
* @name MsgClearZkPublicKeyResponse
|
|
11671
|
+
* @package sparkdream.rep.v1
|
|
11672
|
+
* @see proto type: sparkdream.rep.v1.MsgClearZkPublicKeyResponse
|
|
11673
|
+
*/
|
|
11674
|
+
export const MsgClearZkPublicKeyResponse = {
|
|
11675
|
+
typeUrl: "/sparkdream.rep.v1.MsgClearZkPublicKeyResponse",
|
|
11676
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
11677
|
+
return writer;
|
|
11678
|
+
},
|
|
11679
|
+
decode(input, length) {
|
|
11680
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
11681
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11682
|
+
const message = createBaseMsgClearZkPublicKeyResponse();
|
|
11683
|
+
while (reader.pos < end) {
|
|
11684
|
+
const tag = reader.uint32();
|
|
11685
|
+
switch (tag >>> 3) {
|
|
11686
|
+
default:
|
|
11687
|
+
reader.skipType(tag & 7);
|
|
11688
|
+
break;
|
|
11689
|
+
}
|
|
11690
|
+
}
|
|
11691
|
+
return message;
|
|
11692
|
+
},
|
|
11693
|
+
fromPartial(_) {
|
|
11694
|
+
const message = createBaseMsgClearZkPublicKeyResponse();
|
|
11695
|
+
return message;
|
|
11696
|
+
},
|
|
11697
|
+
fromAmino(_) {
|
|
11698
|
+
const message = createBaseMsgClearZkPublicKeyResponse();
|
|
11699
|
+
return message;
|
|
11700
|
+
},
|
|
11701
|
+
toAmino(_) {
|
|
11702
|
+
const obj = {};
|
|
11703
|
+
return obj;
|
|
11704
|
+
},
|
|
11705
|
+
fromAminoMsg(object) {
|
|
11706
|
+
return MsgClearZkPublicKeyResponse.fromAmino(object.value);
|
|
11707
|
+
},
|
|
11708
|
+
fromProtoMsg(message) {
|
|
11709
|
+
return MsgClearZkPublicKeyResponse.decode(message.value);
|
|
11710
|
+
},
|
|
11711
|
+
toProto(message) {
|
|
11712
|
+
return MsgClearZkPublicKeyResponse.encode(message).finish();
|
|
11713
|
+
},
|
|
11714
|
+
toProtoMsg(message) {
|
|
11715
|
+
return {
|
|
11716
|
+
typeUrl: "/sparkdream.rep.v1.MsgClearZkPublicKeyResponse",
|
|
11717
|
+
value: MsgClearZkPublicKeyResponse.encode(message).finish()
|
|
11718
|
+
};
|
|
11719
|
+
}
|
|
11720
|
+
};
|