@manifest-network/manifestjs 2.4.1 → 3.0.0

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.
@@ -1024,20 +1024,21 @@ function createBaseMsgWithdraw() {
1024
1024
  sender: "",
1025
1025
  leaseUuids: [],
1026
1026
  providerUuid: "",
1027
- limit: BigInt(0)
1027
+ limit: BigInt(0),
1028
+ key: new Uint8Array()
1028
1029
  };
1029
1030
  }
1030
1031
  export const MsgWithdraw = {
1031
1032
  typeUrl: "/liftedinit.billing.v1.MsgWithdraw",
1032
1033
  aminoType: "lifted/billing/MsgWithdraw",
1033
1034
  is(o) {
1034
- return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.leaseUuids) && (!o.leaseUuids.length || typeof o.leaseUuids[0] === "string") && typeof o.providerUuid === "string" && typeof o.limit === "bigint");
1035
+ return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.leaseUuids) && (!o.leaseUuids.length || typeof o.leaseUuids[0] === "string") && typeof o.providerUuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
1035
1036
  },
1036
1037
  isSDK(o) {
1037
- return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint");
1038
+ return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
1038
1039
  },
1039
1040
  isAmino(o) {
1040
- return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint");
1041
+ return o && (o.$typeUrl === MsgWithdraw.typeUrl || typeof o.sender === "string" && Array.isArray(o.lease_uuids) && (!o.lease_uuids.length || typeof o.lease_uuids[0] === "string") && typeof o.provider_uuid === "string" && typeof o.limit === "bigint" && (o.key instanceof Uint8Array || typeof o.key === "string"));
1041
1042
  },
1042
1043
  encode(message, writer = BinaryWriter.create()) {
1043
1044
  if (message.sender !== "") {
@@ -1052,6 +1053,9 @@ export const MsgWithdraw = {
1052
1053
  if (message.limit !== BigInt(0)) {
1053
1054
  writer.uint32(32).uint64(message.limit);
1054
1055
  }
1056
+ if (message.key.length !== 0) {
1057
+ writer.uint32(42).bytes(message.key);
1058
+ }
1055
1059
  return writer;
1056
1060
  },
1057
1061
  decode(input, length) {
@@ -1073,6 +1077,9 @@ export const MsgWithdraw = {
1073
1077
  case 4:
1074
1078
  message.limit = reader.uint64();
1075
1079
  break;
1080
+ case 5:
1081
+ message.key = reader.bytes();
1082
+ break;
1076
1083
  default:
1077
1084
  reader.skipType(tag & 7);
1078
1085
  break;
@@ -1085,7 +1092,8 @@ export const MsgWithdraw = {
1085
1092
  sender: isSet(object.sender) ? String(object.sender) : "",
1086
1093
  leaseUuids: Array.isArray(object?.leaseUuids) ? object.leaseUuids.map((e) => String(e)) : [],
1087
1094
  providerUuid: isSet(object.providerUuid) ? String(object.providerUuid) : "",
1088
- limit: isSet(object.limit) ? BigInt(object.limit.toString()) : BigInt(0)
1095
+ limit: isSet(object.limit) ? BigInt(object.limit.toString()) : BigInt(0),
1096
+ key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array()
1089
1097
  };
1090
1098
  },
1091
1099
  toJSON(message) {
@@ -1099,6 +1107,7 @@ export const MsgWithdraw = {
1099
1107
  }
1100
1108
  message.providerUuid !== undefined && (obj.providerUuid = message.providerUuid);
1101
1109
  message.limit !== undefined && (obj.limit = (message.limit || BigInt(0)).toString());
1110
+ message.key !== undefined && (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
1102
1111
  return obj;
1103
1112
  },
1104
1113
  fromPartial(object) {
@@ -1107,6 +1116,7 @@ export const MsgWithdraw = {
1107
1116
  message.leaseUuids = object.leaseUuids?.map(e => e) || [];
1108
1117
  message.providerUuid = object.providerUuid ?? "";
1109
1118
  message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
1119
+ message.key = object.key ?? new Uint8Array();
1110
1120
  return message;
1111
1121
  },
1112
1122
  fromAmino(object) {
@@ -1121,6 +1131,9 @@ export const MsgWithdraw = {
1121
1131
  if (object.limit !== undefined && object.limit !== null) {
1122
1132
  message.limit = BigInt(object.limit);
1123
1133
  }
1134
+ if (object.key !== undefined && object.key !== null) {
1135
+ message.key = bytesFromBase64(object.key);
1136
+ }
1124
1137
  return message;
1125
1138
  },
1126
1139
  toAmino(message) {
@@ -1134,6 +1147,7 @@ export const MsgWithdraw = {
1134
1147
  }
1135
1148
  obj.provider_uuid = message.providerUuid === "" ? undefined : message.providerUuid;
1136
1149
  obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
1150
+ obj.key = message.key ? base64FromBytes(message.key) : undefined;
1137
1151
  return obj;
1138
1152
  },
1139
1153
  fromAminoMsg(object) {
@@ -1165,19 +1179,20 @@ function createBaseMsgWithdrawResponse() {
1165
1179
  totalAmounts: [],
1166
1180
  payoutAddress: "",
1167
1181
  withdrawalCount: BigInt(0),
1168
- hasMore: false
1182
+ hasMore: false,
1183
+ nextKey: new Uint8Array()
1169
1184
  };
1170
1185
  }
1171
1186
  export const MsgWithdrawResponse = {
1172
1187
  typeUrl: "/liftedinit.billing.v1.MsgWithdrawResponse",
1173
1188
  is(o) {
1174
- return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.totalAmounts) && (!o.totalAmounts.length || Coin.is(o.totalAmounts[0])) && typeof o.payoutAddress === "string" && typeof o.withdrawalCount === "bigint" && typeof o.hasMore === "boolean");
1189
+ return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.totalAmounts) && (!o.totalAmounts.length || Coin.is(o.totalAmounts[0])) && typeof o.payoutAddress === "string" && typeof o.withdrawalCount === "bigint" && typeof o.hasMore === "boolean" && (o.nextKey instanceof Uint8Array || typeof o.nextKey === "string"));
1175
1190
  },
1176
1191
  isSDK(o) {
1177
- return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || Coin.isSDK(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean");
1192
+ return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || Coin.isSDK(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean" && (o.next_key instanceof Uint8Array || typeof o.next_key === "string"));
1178
1193
  },
1179
1194
  isAmino(o) {
1180
- return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || Coin.isAmino(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean");
1195
+ return o && (o.$typeUrl === MsgWithdrawResponse.typeUrl || Array.isArray(o.total_amounts) && (!o.total_amounts.length || Coin.isAmino(o.total_amounts[0])) && typeof o.payout_address === "string" && typeof o.withdrawal_count === "bigint" && typeof o.has_more === "boolean" && (o.next_key instanceof Uint8Array || typeof o.next_key === "string"));
1181
1196
  },
1182
1197
  encode(message, writer = BinaryWriter.create()) {
1183
1198
  for (const v of message.totalAmounts) {
@@ -1192,6 +1207,9 @@ export const MsgWithdrawResponse = {
1192
1207
  if (message.hasMore === true) {
1193
1208
  writer.uint32(32).bool(message.hasMore);
1194
1209
  }
1210
+ if (message.nextKey.length !== 0) {
1211
+ writer.uint32(42).bytes(message.nextKey);
1212
+ }
1195
1213
  return writer;
1196
1214
  },
1197
1215
  decode(input, length) {
@@ -1213,6 +1231,9 @@ export const MsgWithdrawResponse = {
1213
1231
  case 4:
1214
1232
  message.hasMore = reader.bool();
1215
1233
  break;
1234
+ case 5:
1235
+ message.nextKey = reader.bytes();
1236
+ break;
1216
1237
  default:
1217
1238
  reader.skipType(tag & 7);
1218
1239
  break;
@@ -1225,7 +1246,8 @@ export const MsgWithdrawResponse = {
1225
1246
  totalAmounts: Array.isArray(object?.totalAmounts) ? object.totalAmounts.map((e) => Coin.fromJSON(e)) : [],
1226
1247
  payoutAddress: isSet(object.payoutAddress) ? String(object.payoutAddress) : "",
1227
1248
  withdrawalCount: isSet(object.withdrawalCount) ? BigInt(object.withdrawalCount.toString()) : BigInt(0),
1228
- hasMore: isSet(object.hasMore) ? Boolean(object.hasMore) : false
1249
+ hasMore: isSet(object.hasMore) ? Boolean(object.hasMore) : false,
1250
+ nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array()
1229
1251
  };
1230
1252
  },
1231
1253
  toJSON(message) {
@@ -1239,6 +1261,7 @@ export const MsgWithdrawResponse = {
1239
1261
  message.payoutAddress !== undefined && (obj.payoutAddress = message.payoutAddress);
1240
1262
  message.withdrawalCount !== undefined && (obj.withdrawalCount = (message.withdrawalCount || BigInt(0)).toString());
1241
1263
  message.hasMore !== undefined && (obj.hasMore = message.hasMore);
1264
+ message.nextKey !== undefined && (obj.nextKey = base64FromBytes(message.nextKey !== undefined ? message.nextKey : new Uint8Array()));
1242
1265
  return obj;
1243
1266
  },
1244
1267
  fromPartial(object) {
@@ -1247,6 +1270,7 @@ export const MsgWithdrawResponse = {
1247
1270
  message.payoutAddress = object.payoutAddress ?? "";
1248
1271
  message.withdrawalCount = object.withdrawalCount !== undefined && object.withdrawalCount !== null ? BigInt(object.withdrawalCount.toString()) : BigInt(0);
1249
1272
  message.hasMore = object.hasMore ?? false;
1273
+ message.nextKey = object.nextKey ?? new Uint8Array();
1250
1274
  return message;
1251
1275
  },
1252
1276
  fromAmino(object) {
@@ -1261,6 +1285,9 @@ export const MsgWithdrawResponse = {
1261
1285
  if (object.has_more !== undefined && object.has_more !== null) {
1262
1286
  message.hasMore = object.has_more;
1263
1287
  }
1288
+ if (object.next_key !== undefined && object.next_key !== null) {
1289
+ message.nextKey = bytesFromBase64(object.next_key);
1290
+ }
1264
1291
  return message;
1265
1292
  },
1266
1293
  toAmino(message) {
@@ -1274,6 +1301,7 @@ export const MsgWithdrawResponse = {
1274
1301
  obj.payout_address = message.payoutAddress === "" ? undefined : message.payoutAddress;
1275
1302
  obj.withdrawal_count = message.withdrawalCount !== BigInt(0) ? message.withdrawalCount?.toString() : undefined;
1276
1303
  obj.has_more = message.hasMore === false ? undefined : message.hasMore;
1304
+ obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined;
1277
1305
  return obj;
1278
1306
  },
1279
1307
  fromAminoMsg(object) {
@@ -162,6 +162,7 @@ export declare const MessageComposer: {
162
162
  leaseUuids: string[];
163
163
  providerUuid: string;
164
164
  limit: string;
165
+ key: string;
165
166
  };
166
167
  };
167
168
  updateParams(value: MsgUpdateParams): {
@@ -199,6 +199,7 @@ export declare namespace liftedinit {
199
199
  leaseUuids: string[];
200
200
  providerUuid: string;
201
201
  limit: string;
202
+ key: string;
202
203
  };
203
204
  };
204
205
  updateParams(value: _121.MsgUpdateParams): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manifest-network/manifestjs",
3
- "version": "2.4.1",
3
+ "version": "3.0.0",
4
4
  "description": "Javascript library for interacting with Manifest",
5
5
  "author": "Manifest Network <hello@manifest.network>",
6
6
  "homepage": "https://github.com/manifest-network/manifestjs#readme",