@sparkdreamnft/sparkdreamjs 0.0.42 → 0.0.44
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 +134 -2
- 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/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 +186 -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 +354 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -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 +6 -1
- package/esm/sparkdream/service/v1/tx.js +169 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +66 -1
- 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 +20540 -17854
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +160 -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 +128 -0
- package/sparkdream/federation/v1/types.js +135 -3
- 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/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 +128 -28
- package/sparkdream/rep/v1/params.js +186 -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 +245 -1
- package/sparkdream/rep/v1/tx.js +355 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +12 -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/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/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 +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +97 -0
- package/sparkdream/service/v1/tx.js +170 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/shield/v1/params.d.ts +16 -0
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +2 -2
- package/sparkdream/shield/v1/types.d.ts +45 -2
- package/sparkdream/shield/v1/types.js +69 -2
- 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
|
@@ -2122,3 +2122,172 @@ export const MsgFinalizeControllerTransferResponse = {
|
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
+
function createBaseMsgSubmitCheckpoint() {
|
|
2126
|
+
return {
|
|
2127
|
+
operator: "",
|
|
2128
|
+
serviceType: "",
|
|
2129
|
+
height: BigInt(0),
|
|
2130
|
+
root: new Uint8Array()
|
|
2131
|
+
};
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
* MsgSubmitCheckpoint is signed by the operator itself. The operator must be
|
|
2135
|
+
* ACTIVE or UNDERFUNDED under service_type; height must exceed its previous
|
|
2136
|
+
* checkpoint and must not exceed the current block height; root is 32 bytes.
|
|
2137
|
+
* @name MsgSubmitCheckpoint
|
|
2138
|
+
* @package sparkdream.service.v1
|
|
2139
|
+
* @see proto type: sparkdream.service.v1.MsgSubmitCheckpoint
|
|
2140
|
+
*/
|
|
2141
|
+
export const MsgSubmitCheckpoint = {
|
|
2142
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpoint",
|
|
2143
|
+
aminoType: "sparkdream/x/service/MsgSubmitCheckpoint",
|
|
2144
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2145
|
+
if (message.operator !== "") {
|
|
2146
|
+
writer.uint32(10).string(message.operator);
|
|
2147
|
+
}
|
|
2148
|
+
if (message.serviceType !== "") {
|
|
2149
|
+
writer.uint32(18).string(message.serviceType);
|
|
2150
|
+
}
|
|
2151
|
+
if (message.height !== BigInt(0)) {
|
|
2152
|
+
writer.uint32(24).int64(message.height);
|
|
2153
|
+
}
|
|
2154
|
+
if (message.root.length !== 0) {
|
|
2155
|
+
writer.uint32(34).bytes(message.root);
|
|
2156
|
+
}
|
|
2157
|
+
return writer;
|
|
2158
|
+
},
|
|
2159
|
+
decode(input, length) {
|
|
2160
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2162
|
+
const message = createBaseMsgSubmitCheckpoint();
|
|
2163
|
+
while (reader.pos < end) {
|
|
2164
|
+
const tag = reader.uint32();
|
|
2165
|
+
switch (tag >>> 3) {
|
|
2166
|
+
case 1:
|
|
2167
|
+
message.operator = reader.string();
|
|
2168
|
+
break;
|
|
2169
|
+
case 2:
|
|
2170
|
+
message.serviceType = reader.string();
|
|
2171
|
+
break;
|
|
2172
|
+
case 3:
|
|
2173
|
+
message.height = reader.int64();
|
|
2174
|
+
break;
|
|
2175
|
+
case 4:
|
|
2176
|
+
message.root = reader.bytes();
|
|
2177
|
+
break;
|
|
2178
|
+
default:
|
|
2179
|
+
reader.skipType(tag & 7);
|
|
2180
|
+
break;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
return message;
|
|
2184
|
+
},
|
|
2185
|
+
fromPartial(object) {
|
|
2186
|
+
const message = createBaseMsgSubmitCheckpoint();
|
|
2187
|
+
message.operator = object.operator ?? "";
|
|
2188
|
+
message.serviceType = object.serviceType ?? "";
|
|
2189
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
2190
|
+
message.root = object.root ?? new Uint8Array();
|
|
2191
|
+
return message;
|
|
2192
|
+
},
|
|
2193
|
+
fromAmino(object) {
|
|
2194
|
+
const message = createBaseMsgSubmitCheckpoint();
|
|
2195
|
+
if (object.operator !== undefined && object.operator !== null) {
|
|
2196
|
+
message.operator = object.operator;
|
|
2197
|
+
}
|
|
2198
|
+
if (object.service_type !== undefined && object.service_type !== null) {
|
|
2199
|
+
message.serviceType = object.service_type;
|
|
2200
|
+
}
|
|
2201
|
+
if (object.height !== undefined && object.height !== null) {
|
|
2202
|
+
message.height = BigInt(object.height);
|
|
2203
|
+
}
|
|
2204
|
+
if (object.root !== undefined && object.root !== null) {
|
|
2205
|
+
message.root = bytesFromBase64(object.root);
|
|
2206
|
+
}
|
|
2207
|
+
return message;
|
|
2208
|
+
},
|
|
2209
|
+
toAmino(message) {
|
|
2210
|
+
const obj = {};
|
|
2211
|
+
obj.operator = message.operator === "" ? undefined : message.operator;
|
|
2212
|
+
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
2213
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2214
|
+
obj.root = message.root ? base64FromBytes(message.root) : undefined;
|
|
2215
|
+
return obj;
|
|
2216
|
+
},
|
|
2217
|
+
fromAminoMsg(object) {
|
|
2218
|
+
return MsgSubmitCheckpoint.fromAmino(object.value);
|
|
2219
|
+
},
|
|
2220
|
+
toAminoMsg(message) {
|
|
2221
|
+
return {
|
|
2222
|
+
type: "sparkdream/x/service/MsgSubmitCheckpoint",
|
|
2223
|
+
value: MsgSubmitCheckpoint.toAmino(message)
|
|
2224
|
+
};
|
|
2225
|
+
},
|
|
2226
|
+
fromProtoMsg(message) {
|
|
2227
|
+
return MsgSubmitCheckpoint.decode(message.value);
|
|
2228
|
+
},
|
|
2229
|
+
toProto(message) {
|
|
2230
|
+
return MsgSubmitCheckpoint.encode(message).finish();
|
|
2231
|
+
},
|
|
2232
|
+
toProtoMsg(message) {
|
|
2233
|
+
return {
|
|
2234
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpoint",
|
|
2235
|
+
value: MsgSubmitCheckpoint.encode(message).finish()
|
|
2236
|
+
};
|
|
2237
|
+
}
|
|
2238
|
+
};
|
|
2239
|
+
function createBaseMsgSubmitCheckpointResponse() {
|
|
2240
|
+
return {};
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* @name MsgSubmitCheckpointResponse
|
|
2244
|
+
* @package sparkdream.service.v1
|
|
2245
|
+
* @see proto type: sparkdream.service.v1.MsgSubmitCheckpointResponse
|
|
2246
|
+
*/
|
|
2247
|
+
export const MsgSubmitCheckpointResponse = {
|
|
2248
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpointResponse",
|
|
2249
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
2250
|
+
return writer;
|
|
2251
|
+
},
|
|
2252
|
+
decode(input, length) {
|
|
2253
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2254
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2255
|
+
const message = createBaseMsgSubmitCheckpointResponse();
|
|
2256
|
+
while (reader.pos < end) {
|
|
2257
|
+
const tag = reader.uint32();
|
|
2258
|
+
switch (tag >>> 3) {
|
|
2259
|
+
default:
|
|
2260
|
+
reader.skipType(tag & 7);
|
|
2261
|
+
break;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
return message;
|
|
2265
|
+
},
|
|
2266
|
+
fromPartial(_) {
|
|
2267
|
+
const message = createBaseMsgSubmitCheckpointResponse();
|
|
2268
|
+
return message;
|
|
2269
|
+
},
|
|
2270
|
+
fromAmino(_) {
|
|
2271
|
+
const message = createBaseMsgSubmitCheckpointResponse();
|
|
2272
|
+
return message;
|
|
2273
|
+
},
|
|
2274
|
+
toAmino(_) {
|
|
2275
|
+
const obj = {};
|
|
2276
|
+
return obj;
|
|
2277
|
+
},
|
|
2278
|
+
fromAminoMsg(object) {
|
|
2279
|
+
return MsgSubmitCheckpointResponse.fromAmino(object.value);
|
|
2280
|
+
},
|
|
2281
|
+
fromProtoMsg(message) {
|
|
2282
|
+
return MsgSubmitCheckpointResponse.decode(message.value);
|
|
2283
|
+
},
|
|
2284
|
+
toProto(message) {
|
|
2285
|
+
return MsgSubmitCheckpointResponse.encode(message).finish();
|
|
2286
|
+
},
|
|
2287
|
+
toProtoMsg(message) {
|
|
2288
|
+
return {
|
|
2289
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpointResponse",
|
|
2290
|
+
value: MsgSubmitCheckpointResponse.encode(message).finish()
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateServiceTypeConfig, MsgRegisterOperator, MsgUpdateMetadata, MsgUnbondOperator, MsgClaimUnbondedBond, MsgTopUpBond, MsgReportOperator, MsgResolveReport, MsgContestSlash, MsgResolveReportByJury, MsgOpenControllerTransferCase, MsgFinalizeControllerTransfer } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.service.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.service.v1.MsgUpdateServiceTypeConfig", MsgUpdateServiceTypeConfig], ["/sparkdream.service.v1.MsgRegisterOperator", MsgRegisterOperator], ["/sparkdream.service.v1.MsgUpdateMetadata", MsgUpdateMetadata], ["/sparkdream.service.v1.MsgUnbondOperator", MsgUnbondOperator], ["/sparkdream.service.v1.MsgClaimUnbondedBond", MsgClaimUnbondedBond], ["/sparkdream.service.v1.MsgTopUpBond", MsgTopUpBond], ["/sparkdream.service.v1.MsgReportOperator", MsgReportOperator], ["/sparkdream.service.v1.MsgResolveReport", MsgResolveReport], ["/sparkdream.service.v1.MsgContestSlash", MsgContestSlash], ["/sparkdream.service.v1.MsgResolveReportByJury", MsgResolveReportByJury], ["/sparkdream.service.v1.MsgOpenControllerTransferCase", MsgOpenControllerTransferCase], ["/sparkdream.service.v1.MsgFinalizeControllerTransfer", MsgFinalizeControllerTransfer]];
|
|
1
|
+
import { MsgUpdateParams, MsgUpdateServiceTypeConfig, MsgRegisterOperator, MsgUpdateMetadata, MsgUnbondOperator, MsgClaimUnbondedBond, MsgTopUpBond, MsgReportOperator, MsgResolveReport, MsgContestSlash, MsgResolveReportByJury, MsgOpenControllerTransferCase, MsgFinalizeControllerTransfer, MsgSubmitCheckpoint } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.service.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.service.v1.MsgUpdateServiceTypeConfig", MsgUpdateServiceTypeConfig], ["/sparkdream.service.v1.MsgRegisterOperator", MsgRegisterOperator], ["/sparkdream.service.v1.MsgUpdateMetadata", MsgUpdateMetadata], ["/sparkdream.service.v1.MsgUnbondOperator", MsgUnbondOperator], ["/sparkdream.service.v1.MsgClaimUnbondedBond", MsgClaimUnbondedBond], ["/sparkdream.service.v1.MsgTopUpBond", MsgTopUpBond], ["/sparkdream.service.v1.MsgReportOperator", MsgReportOperator], ["/sparkdream.service.v1.MsgResolveReport", MsgResolveReport], ["/sparkdream.service.v1.MsgContestSlash", MsgContestSlash], ["/sparkdream.service.v1.MsgResolveReportByJury", MsgResolveReportByJury], ["/sparkdream.service.v1.MsgOpenControllerTransferCase", MsgOpenControllerTransferCase], ["/sparkdream.service.v1.MsgFinalizeControllerTransfer", MsgFinalizeControllerTransfer], ["/sparkdream.service.v1.MsgSubmitCheckpoint", MsgSubmitCheckpoint]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -84,6 +84,12 @@ export const MessageComposer = {
|
|
|
84
84
|
typeUrl: "/sparkdream.service.v1.MsgFinalizeControllerTransfer",
|
|
85
85
|
value: MsgFinalizeControllerTransfer.encode(value).finish()
|
|
86
86
|
};
|
|
87
|
+
},
|
|
88
|
+
submitCheckpoint(value) {
|
|
89
|
+
return {
|
|
90
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpoint",
|
|
91
|
+
value: MsgSubmitCheckpoint.encode(value).finish()
|
|
92
|
+
};
|
|
87
93
|
}
|
|
88
94
|
},
|
|
89
95
|
withTypeUrl: {
|
|
@@ -164,6 +170,12 @@ export const MessageComposer = {
|
|
|
164
170
|
typeUrl: "/sparkdream.service.v1.MsgFinalizeControllerTransfer",
|
|
165
171
|
value
|
|
166
172
|
};
|
|
173
|
+
},
|
|
174
|
+
submitCheckpoint(value) {
|
|
175
|
+
return {
|
|
176
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpoint",
|
|
177
|
+
value
|
|
178
|
+
};
|
|
167
179
|
}
|
|
168
180
|
},
|
|
169
181
|
fromPartial: {
|
|
@@ -244,6 +256,12 @@ export const MessageComposer = {
|
|
|
244
256
|
typeUrl: "/sparkdream.service.v1.MsgFinalizeControllerTransfer",
|
|
245
257
|
value: MsgFinalizeControllerTransfer.fromPartial(value)
|
|
246
258
|
};
|
|
259
|
+
},
|
|
260
|
+
submitCheckpoint(value) {
|
|
261
|
+
return {
|
|
262
|
+
typeUrl: "/sparkdream.service.v1.MsgSubmitCheckpoint",
|
|
263
|
+
value: MsgSubmitCheckpoint.fromPartial(value)
|
|
264
|
+
};
|
|
247
265
|
}
|
|
248
266
|
}
|
|
249
267
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateServiceTypeConfig, MsgUpdateServiceTypeConfigResponse, MsgRegisterOperator, MsgRegisterOperatorResponse, MsgUpdateMetadata, MsgUpdateMetadataResponse, MsgUnbondOperator, MsgUnbondOperatorResponse, MsgClaimUnbondedBond, MsgClaimUnbondedBondResponse, MsgTopUpBond, MsgTopUpBondResponse, MsgReportOperator, MsgReportOperatorResponse, MsgResolveReport, MsgResolveReportResponse, MsgContestSlash, MsgContestSlashResponse, MsgResolveReportByJury, MsgResolveReportByJuryResponse, MsgOpenControllerTransferCase, MsgOpenControllerTransferCaseResponse, MsgFinalizeControllerTransfer, MsgFinalizeControllerTransferResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateServiceTypeConfig, MsgUpdateServiceTypeConfigResponse, MsgRegisterOperator, MsgRegisterOperatorResponse, MsgUpdateMetadata, MsgUpdateMetadataResponse, MsgUnbondOperator, MsgUnbondOperatorResponse, MsgClaimUnbondedBond, MsgClaimUnbondedBondResponse, MsgTopUpBond, MsgTopUpBondResponse, MsgReportOperator, MsgReportOperatorResponse, MsgResolveReport, MsgResolveReportResponse, MsgContestSlash, MsgContestSlashResponse, MsgResolveReportByJury, MsgResolveReportByJuryResponse, MsgOpenControllerTransferCase, MsgOpenControllerTransferCaseResponse, MsgFinalizeControllerTransfer, MsgFinalizeControllerTransferResponse, MsgSubmitCheckpoint, MsgSubmitCheckpointResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -94,6 +94,15 @@ export class MsgClientImpl {
|
|
|
94
94
|
const promise = this.rpc.request("sparkdream.service.v1.Msg", "FinalizeControllerTransfer", data);
|
|
95
95
|
return promise.then(data => MsgFinalizeControllerTransferResponse.decode(new BinaryReader(data)));
|
|
96
96
|
};
|
|
97
|
+
/* SubmitCheckpoint records how far the signing operator's off-chain work
|
|
98
|
+
has progressed (height + output root). Generic across service types;
|
|
99
|
+
drives liveness system reports when the service type sets
|
|
100
|
+
checkpoint_max_lag_blocks (docs/content-scanning.md §8.2). */
|
|
101
|
+
submitCheckpoint = async (request) => {
|
|
102
|
+
const data = MsgSubmitCheckpoint.encode(request).finish();
|
|
103
|
+
const promise = this.rpc.request("sparkdream.service.v1.Msg", "SubmitCheckpoint", data);
|
|
104
|
+
return promise.then(data => MsgSubmitCheckpointResponse.decode(new BinaryReader(data)));
|
|
105
|
+
};
|
|
97
106
|
}
|
|
98
107
|
export const createClientImpl = (rpc) => {
|
|
99
108
|
return new MsgClientImpl(rpc);
|
|
@@ -19,7 +19,8 @@ function createBaseParams() {
|
|
|
19
19
|
tleJailDuration: BigInt(0),
|
|
20
20
|
minTleValidators: 0,
|
|
21
21
|
dkgWindowBlocks: BigInt(0),
|
|
22
|
-
maxValidatorSetDrift: 0
|
|
22
|
+
maxValidatorSetDrift: 0,
|
|
23
|
+
maxFeePerExec: ""
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
@@ -86,6 +87,9 @@ export const Params = {
|
|
|
86
87
|
if (message.maxValidatorSetDrift !== 0) {
|
|
87
88
|
writer.uint32(144).uint32(message.maxValidatorSetDrift);
|
|
88
89
|
}
|
|
90
|
+
if (message.maxFeePerExec !== "") {
|
|
91
|
+
writer.uint32(154).string(message.maxFeePerExec);
|
|
92
|
+
}
|
|
89
93
|
return writer;
|
|
90
94
|
},
|
|
91
95
|
decode(input, length) {
|
|
@@ -149,6 +153,9 @@ export const Params = {
|
|
|
149
153
|
case 18:
|
|
150
154
|
message.maxValidatorSetDrift = reader.uint32();
|
|
151
155
|
break;
|
|
156
|
+
case 19:
|
|
157
|
+
message.maxFeePerExec = reader.string();
|
|
158
|
+
break;
|
|
152
159
|
default:
|
|
153
160
|
reader.skipType(tag & 7);
|
|
154
161
|
break;
|
|
@@ -176,6 +183,7 @@ export const Params = {
|
|
|
176
183
|
message.minTleValidators = object.minTleValidators ?? 0;
|
|
177
184
|
message.dkgWindowBlocks = object.dkgWindowBlocks !== undefined && object.dkgWindowBlocks !== null ? BigInt(object.dkgWindowBlocks.toString()) : BigInt(0);
|
|
178
185
|
message.maxValidatorSetDrift = object.maxValidatorSetDrift ?? 0;
|
|
186
|
+
message.maxFeePerExec = object.maxFeePerExec ?? "";
|
|
179
187
|
return message;
|
|
180
188
|
},
|
|
181
189
|
fromAmino(object) {
|
|
@@ -234,6 +242,9 @@ export const Params = {
|
|
|
234
242
|
if (object.max_validator_set_drift !== undefined && object.max_validator_set_drift !== null) {
|
|
235
243
|
message.maxValidatorSetDrift = object.max_validator_set_drift;
|
|
236
244
|
}
|
|
245
|
+
if (object.max_fee_per_exec !== undefined && object.max_fee_per_exec !== null) {
|
|
246
|
+
message.maxFeePerExec = object.max_fee_per_exec;
|
|
247
|
+
}
|
|
237
248
|
return message;
|
|
238
249
|
},
|
|
239
250
|
toAmino(message) {
|
|
@@ -256,6 +267,7 @@ export const Params = {
|
|
|
256
267
|
obj.min_tle_validators = message.minTleValidators === 0 ? undefined : message.minTleValidators;
|
|
257
268
|
obj.dkg_window_blocks = message.dkgWindowBlocks !== BigInt(0) ? message.dkgWindowBlocks?.toString() : undefined;
|
|
258
269
|
obj.max_validator_set_drift = message.maxValidatorSetDrift === 0 ? undefined : message.maxValidatorSetDrift;
|
|
270
|
+
obj.max_fee_per_exec = message.maxFeePerExec === "" ? undefined : message.maxFeePerExec;
|
|
259
271
|
return obj;
|
|
260
272
|
},
|
|
261
273
|
fromAminoMsg(object) {
|
|
@@ -80,6 +80,47 @@ export function nullifierScopeTypeToJSON(object) {
|
|
|
80
80
|
return "UNRECOGNIZED";
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
/** NullifierMode controls what an operation's nullifier proves. */
|
|
84
|
+
export var NullifierMode;
|
|
85
|
+
(function (NullifierMode) {
|
|
86
|
+
/** NULLIFIER_MODE_CONSUME - The nullifier is consumed: each (member, scope) acts once. */
|
|
87
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_CONSUME"] = 0] = "NULLIFIER_MODE_CONSUME";
|
|
88
|
+
/**
|
|
89
|
+
* NULLIFIER_MODE_OWNERSHIP - The nullifier proves ownership of anonymously created content and is
|
|
90
|
+
* reused: the target module's ShieldOwnershipResolver supplies the owner's
|
|
91
|
+
* domain, scope and tag (the creation nullifier), the proof must reproduce
|
|
92
|
+
* the tag, and the owner's sequence (bound into the message hash) stops
|
|
93
|
+
* replays. Immediate mode only.
|
|
94
|
+
*/
|
|
95
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_OWNERSHIP"] = 1] = "NULLIFIER_MODE_OWNERSHIP";
|
|
96
|
+
NullifierMode[NullifierMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
97
|
+
})(NullifierMode || (NullifierMode = {}));
|
|
98
|
+
export const NullifierModeAmino = NullifierMode;
|
|
99
|
+
export function nullifierModeFromJSON(object) {
|
|
100
|
+
switch (object) {
|
|
101
|
+
case 0:
|
|
102
|
+
case "NULLIFIER_MODE_CONSUME":
|
|
103
|
+
return NullifierMode.NULLIFIER_MODE_CONSUME;
|
|
104
|
+
case 1:
|
|
105
|
+
case "NULLIFIER_MODE_OWNERSHIP":
|
|
106
|
+
return NullifierMode.NULLIFIER_MODE_OWNERSHIP;
|
|
107
|
+
case -1:
|
|
108
|
+
case "UNRECOGNIZED":
|
|
109
|
+
default:
|
|
110
|
+
return NullifierMode.UNRECOGNIZED;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export function nullifierModeToJSON(object) {
|
|
114
|
+
switch (object) {
|
|
115
|
+
case NullifierMode.NULLIFIER_MODE_CONSUME:
|
|
116
|
+
return "NULLIFIER_MODE_CONSUME";
|
|
117
|
+
case NullifierMode.NULLIFIER_MODE_OWNERSHIP:
|
|
118
|
+
return "NULLIFIER_MODE_OWNERSHIP";
|
|
119
|
+
case NullifierMode.UNRECOGNIZED:
|
|
120
|
+
default:
|
|
121
|
+
return "UNRECOGNIZED";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
83
124
|
/** ShieldBatchMode controls which execution modes an operation supports. */
|
|
84
125
|
export var ShieldBatchMode;
|
|
85
126
|
(function (ShieldBatchMode) {
|
|
@@ -213,7 +254,9 @@ function createBaseShieldedOpRegistration() {
|
|
|
213
254
|
nullifierScopeType: 0,
|
|
214
255
|
active: false,
|
|
215
256
|
batchMode: 0,
|
|
216
|
-
scopeFieldPath: ""
|
|
257
|
+
scopeFieldPath: "",
|
|
258
|
+
nullifierMode: 0,
|
|
259
|
+
epochWindow: BigInt(0)
|
|
217
260
|
};
|
|
218
261
|
}
|
|
219
262
|
/**
|
|
@@ -249,6 +292,12 @@ export const ShieldedOpRegistration = {
|
|
|
249
292
|
if (message.scopeFieldPath !== "") {
|
|
250
293
|
writer.uint32(66).string(message.scopeFieldPath);
|
|
251
294
|
}
|
|
295
|
+
if (message.nullifierMode !== 0) {
|
|
296
|
+
writer.uint32(72).int32(message.nullifierMode);
|
|
297
|
+
}
|
|
298
|
+
if (message.epochWindow !== BigInt(0)) {
|
|
299
|
+
writer.uint32(80).uint64(message.epochWindow);
|
|
300
|
+
}
|
|
252
301
|
return writer;
|
|
253
302
|
},
|
|
254
303
|
decode(input, length) {
|
|
@@ -282,6 +331,12 @@ export const ShieldedOpRegistration = {
|
|
|
282
331
|
case 8:
|
|
283
332
|
message.scopeFieldPath = reader.string();
|
|
284
333
|
break;
|
|
334
|
+
case 9:
|
|
335
|
+
message.nullifierMode = reader.int32();
|
|
336
|
+
break;
|
|
337
|
+
case 10:
|
|
338
|
+
message.epochWindow = reader.uint64();
|
|
339
|
+
break;
|
|
285
340
|
default:
|
|
286
341
|
reader.skipType(tag & 7);
|
|
287
342
|
break;
|
|
@@ -299,6 +354,8 @@ export const ShieldedOpRegistration = {
|
|
|
299
354
|
message.active = object.active ?? false;
|
|
300
355
|
message.batchMode = object.batchMode ?? 0;
|
|
301
356
|
message.scopeFieldPath = object.scopeFieldPath ?? "";
|
|
357
|
+
message.nullifierMode = object.nullifierMode ?? 0;
|
|
358
|
+
message.epochWindow = object.epochWindow !== undefined && object.epochWindow !== null ? BigInt(object.epochWindow.toString()) : BigInt(0);
|
|
302
359
|
return message;
|
|
303
360
|
},
|
|
304
361
|
fromAmino(object) {
|
|
@@ -327,6 +384,12 @@ export const ShieldedOpRegistration = {
|
|
|
327
384
|
if (object.scope_field_path !== undefined && object.scope_field_path !== null) {
|
|
328
385
|
message.scopeFieldPath = object.scope_field_path;
|
|
329
386
|
}
|
|
387
|
+
if (object.nullifier_mode !== undefined && object.nullifier_mode !== null) {
|
|
388
|
+
message.nullifierMode = object.nullifier_mode;
|
|
389
|
+
}
|
|
390
|
+
if (object.epoch_window !== undefined && object.epoch_window !== null) {
|
|
391
|
+
message.epochWindow = BigInt(object.epoch_window);
|
|
392
|
+
}
|
|
330
393
|
return message;
|
|
331
394
|
},
|
|
332
395
|
toAmino(message) {
|
|
@@ -339,6 +402,8 @@ export const ShieldedOpRegistration = {
|
|
|
339
402
|
obj.active = message.active === false ? undefined : message.active;
|
|
340
403
|
obj.batch_mode = message.batchMode === 0 ? undefined : message.batchMode;
|
|
341
404
|
obj.scope_field_path = message.scopeFieldPath === "" ? undefined : message.scopeFieldPath;
|
|
405
|
+
obj.nullifier_mode = message.nullifierMode === 0 ? undefined : message.nullifierMode;
|
|
406
|
+
obj.epoch_window = message.epochWindow !== BigInt(0) ? message.epochWindow?.toString() : undefined;
|
|
342
407
|
return obj;
|
|
343
408
|
},
|
|
344
409
|
fromAminoMsg(object) {
|
|
@@ -126,3 +126,179 @@ export const QueryParamsResponse = {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
+
function createBaseQueryContentLicenseRequest() {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* QueryContentLicenseRequest is the request type for Query/ContentLicense.
|
|
134
|
+
* @name QueryContentLicenseRequest
|
|
135
|
+
* @package sparkdream.sparkdream.v1
|
|
136
|
+
* @see proto type: sparkdream.sparkdream.v1.QueryContentLicenseRequest
|
|
137
|
+
*/
|
|
138
|
+
export const QueryContentLicenseRequest = {
|
|
139
|
+
typeUrl: "/sparkdream.sparkdream.v1.QueryContentLicenseRequest",
|
|
140
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
141
|
+
return writer;
|
|
142
|
+
},
|
|
143
|
+
decode(input, length) {
|
|
144
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
145
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
146
|
+
const message = createBaseQueryContentLicenseRequest();
|
|
147
|
+
while (reader.pos < end) {
|
|
148
|
+
const tag = reader.uint32();
|
|
149
|
+
switch (tag >>> 3) {
|
|
150
|
+
default:
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
fromPartial(_) {
|
|
158
|
+
const message = createBaseQueryContentLicenseRequest();
|
|
159
|
+
return message;
|
|
160
|
+
},
|
|
161
|
+
fromAmino(_) {
|
|
162
|
+
const message = createBaseQueryContentLicenseRequest();
|
|
163
|
+
return message;
|
|
164
|
+
},
|
|
165
|
+
toAmino(_) {
|
|
166
|
+
const obj = {};
|
|
167
|
+
return obj;
|
|
168
|
+
},
|
|
169
|
+
fromAminoMsg(object) {
|
|
170
|
+
return QueryContentLicenseRequest.fromAmino(object.value);
|
|
171
|
+
},
|
|
172
|
+
fromProtoMsg(message) {
|
|
173
|
+
return QueryContentLicenseRequest.decode(message.value);
|
|
174
|
+
},
|
|
175
|
+
toProto(message) {
|
|
176
|
+
return QueryContentLicenseRequest.encode(message).finish();
|
|
177
|
+
},
|
|
178
|
+
toProtoMsg(message) {
|
|
179
|
+
return {
|
|
180
|
+
typeUrl: "/sparkdream.sparkdream.v1.QueryContentLicenseRequest",
|
|
181
|
+
value: QueryContentLicenseRequest.encode(message).finish()
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
function createBaseQueryContentLicenseResponse() {
|
|
186
|
+
return {
|
|
187
|
+
license: "",
|
|
188
|
+
name: "",
|
|
189
|
+
url: "",
|
|
190
|
+
dedication: "",
|
|
191
|
+
acceptedFederatedLicenses: []
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* QueryContentLicenseResponse is the response type for Query/ContentLicense.
|
|
196
|
+
* @name QueryContentLicenseResponse
|
|
197
|
+
* @package sparkdream.sparkdream.v1
|
|
198
|
+
* @see proto type: sparkdream.sparkdream.v1.QueryContentLicenseResponse
|
|
199
|
+
*/
|
|
200
|
+
export const QueryContentLicenseResponse = {
|
|
201
|
+
typeUrl: "/sparkdream.sparkdream.v1.QueryContentLicenseResponse",
|
|
202
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
203
|
+
if (message.license !== "") {
|
|
204
|
+
writer.uint32(10).string(message.license);
|
|
205
|
+
}
|
|
206
|
+
if (message.name !== "") {
|
|
207
|
+
writer.uint32(18).string(message.name);
|
|
208
|
+
}
|
|
209
|
+
if (message.url !== "") {
|
|
210
|
+
writer.uint32(26).string(message.url);
|
|
211
|
+
}
|
|
212
|
+
if (message.dedication !== "") {
|
|
213
|
+
writer.uint32(34).string(message.dedication);
|
|
214
|
+
}
|
|
215
|
+
for (const v of message.acceptedFederatedLicenses) {
|
|
216
|
+
writer.uint32(42).string(v);
|
|
217
|
+
}
|
|
218
|
+
return writer;
|
|
219
|
+
},
|
|
220
|
+
decode(input, length) {
|
|
221
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
222
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
223
|
+
const message = createBaseQueryContentLicenseResponse();
|
|
224
|
+
while (reader.pos < end) {
|
|
225
|
+
const tag = reader.uint32();
|
|
226
|
+
switch (tag >>> 3) {
|
|
227
|
+
case 1:
|
|
228
|
+
message.license = reader.string();
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
message.name = reader.string();
|
|
232
|
+
break;
|
|
233
|
+
case 3:
|
|
234
|
+
message.url = reader.string();
|
|
235
|
+
break;
|
|
236
|
+
case 4:
|
|
237
|
+
message.dedication = reader.string();
|
|
238
|
+
break;
|
|
239
|
+
case 5:
|
|
240
|
+
message.acceptedFederatedLicenses.push(reader.string());
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipType(tag & 7);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
fromPartial(object) {
|
|
250
|
+
const message = createBaseQueryContentLicenseResponse();
|
|
251
|
+
message.license = object.license ?? "";
|
|
252
|
+
message.name = object.name ?? "";
|
|
253
|
+
message.url = object.url ?? "";
|
|
254
|
+
message.dedication = object.dedication ?? "";
|
|
255
|
+
message.acceptedFederatedLicenses = object.acceptedFederatedLicenses?.map(e => e) || [];
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
fromAmino(object) {
|
|
259
|
+
const message = createBaseQueryContentLicenseResponse();
|
|
260
|
+
if (object.license !== undefined && object.license !== null) {
|
|
261
|
+
message.license = object.license;
|
|
262
|
+
}
|
|
263
|
+
if (object.name !== undefined && object.name !== null) {
|
|
264
|
+
message.name = object.name;
|
|
265
|
+
}
|
|
266
|
+
if (object.url !== undefined && object.url !== null) {
|
|
267
|
+
message.url = object.url;
|
|
268
|
+
}
|
|
269
|
+
if (object.dedication !== undefined && object.dedication !== null) {
|
|
270
|
+
message.dedication = object.dedication;
|
|
271
|
+
}
|
|
272
|
+
message.acceptedFederatedLicenses = object.accepted_federated_licenses?.map(e => e) || [];
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
toAmino(message) {
|
|
276
|
+
const obj = {};
|
|
277
|
+
obj.license = message.license === "" ? undefined : message.license;
|
|
278
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
279
|
+
obj.url = message.url === "" ? undefined : message.url;
|
|
280
|
+
obj.dedication = message.dedication === "" ? undefined : message.dedication;
|
|
281
|
+
if (message.acceptedFederatedLicenses) {
|
|
282
|
+
obj.accepted_federated_licenses = message.acceptedFederatedLicenses.map(e => e);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
obj.accepted_federated_licenses = message.acceptedFederatedLicenses;
|
|
286
|
+
}
|
|
287
|
+
return obj;
|
|
288
|
+
},
|
|
289
|
+
fromAminoMsg(object) {
|
|
290
|
+
return QueryContentLicenseResponse.fromAmino(object.value);
|
|
291
|
+
},
|
|
292
|
+
fromProtoMsg(message) {
|
|
293
|
+
return QueryContentLicenseResponse.decode(message.value);
|
|
294
|
+
},
|
|
295
|
+
toProto(message) {
|
|
296
|
+
return QueryContentLicenseResponse.encode(message).finish();
|
|
297
|
+
},
|
|
298
|
+
toProtoMsg(message) {
|
|
299
|
+
return {
|
|
300
|
+
typeUrl: "/sparkdream.sparkdream.v1.QueryContentLicenseResponse",
|
|
301
|
+
value: QueryContentLicenseResponse.encode(message).finish()
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
};
|
|
@@ -8,4 +8,13 @@ export class LCDQueryClient {
|
|
|
8
8
|
const endpoint = `sparkdream/sparkdream/v1/params`;
|
|
9
9
|
return await this.req.get(endpoint);
|
|
10
10
|
};
|
|
11
|
+
/* ContentLicense returns the license every piece of content on this chain
|
|
12
|
+
is published under (CC0 1.0: dedicated to the public domain), the
|
|
13
|
+
dedication participants make by submitting content, and the licenses
|
|
14
|
+
content bridged in from other networks must carry. Fixed in code, not a
|
|
15
|
+
parameter: see docs/content-license.md. */
|
|
16
|
+
contentLicense = async (_params = {}) => {
|
|
17
|
+
const endpoint = `sparkdream/sparkdream/v1/content_license`;
|
|
18
|
+
return await this.req.get(endpoint);
|
|
19
|
+
};
|
|
11
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
2
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryContentLicenseRequest, QueryContentLicenseResponse } from "./query";
|
|
4
4
|
export class QueryClientImpl {
|
|
5
5
|
rpc;
|
|
6
6
|
constructor(rpc) {
|
|
@@ -12,6 +12,16 @@ export class QueryClientImpl {
|
|
|
12
12
|
const promise = this.rpc.request("sparkdream.sparkdream.v1.Query", "Params", data);
|
|
13
13
|
return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
14
14
|
};
|
|
15
|
+
/* ContentLicense returns the license every piece of content on this chain
|
|
16
|
+
is published under (CC0 1.0: dedicated to the public domain), the
|
|
17
|
+
dedication participants make by submitting content, and the licenses
|
|
18
|
+
content bridged in from other networks must carry. Fixed in code, not a
|
|
19
|
+
parameter: see docs/content-license.md. */
|
|
20
|
+
contentLicense = async (request = {}) => {
|
|
21
|
+
const data = QueryContentLicenseRequest.encode(request).finish();
|
|
22
|
+
const promise = this.rpc.request("sparkdream.sparkdream.v1.Query", "ContentLicense", data);
|
|
23
|
+
return promise.then(data => QueryContentLicenseResponse.decode(new BinaryReader(data)));
|
|
24
|
+
};
|
|
15
25
|
}
|
|
16
26
|
export const createRpcQueryExtension = (base) => {
|
|
17
27
|
const rpc = createProtobufRpcClient(base);
|
|
@@ -19,6 +29,9 @@ export const createRpcQueryExtension = (base) => {
|
|
|
19
29
|
return {
|
|
20
30
|
params(request) {
|
|
21
31
|
return queryService.params(request);
|
|
32
|
+
},
|
|
33
|
+
contentLicense(request) {
|
|
34
|
+
return queryService.contentLicense(request);
|
|
22
35
|
}
|
|
23
36
|
};
|
|
24
37
|
};
|