@superdurable/dex 0.6.0 → 0.8.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.
@@ -156,6 +156,7 @@ export var ErrorSubStatus;
156
156
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_WORKER_API_ERROR"] = 4] = "ERROR_SUB_STATUS_WORKER_API_ERROR";
157
157
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_LONG_POLL_TIME_OUT"] = 5] = "ERROR_SUB_STATUS_LONG_POLL_TIME_OUT";
158
158
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_CHANNEL_MESSAGE_NOT_FOUND"] = 6] = "ERROR_SUB_STATUS_CHANNEL_MESSAGE_NOT_FOUND";
159
+ ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_WAIT_HANDLER_TIME_OUT"] = 7] = "ERROR_SUB_STATUS_WAIT_HANDLER_TIME_OUT";
159
160
  ErrorSubStatus[ErrorSubStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
160
161
  })(ErrorSubStatus || (ErrorSubStatus = {}));
161
162
  export var CloseDecisionType;
@@ -3108,13 +3109,67 @@ export const SetAttributesRequest = {
3108
3109
  return message;
3109
3110
  },
3110
3111
  };
3112
+ function createBaseLoadBlobRequestEntry() {
3113
+ return { flowId: "", blobValue: undefined };
3114
+ }
3115
+ export const LoadBlobRequestEntry = {
3116
+ encode(message, writer = new BinaryWriter()) {
3117
+ if (message.flowId !== "") {
3118
+ writer.uint32(10).string(message.flowId);
3119
+ }
3120
+ if (message.blobValue !== undefined) {
3121
+ Value.encode(message.blobValue, writer.uint32(18).fork()).join();
3122
+ }
3123
+ return writer;
3124
+ },
3125
+ decode(input, length) {
3126
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3127
+ const end = length === undefined ? reader.len : reader.pos + length;
3128
+ const message = createBaseLoadBlobRequestEntry();
3129
+ while (reader.pos < end) {
3130
+ const tag = reader.uint32();
3131
+ switch (tag >>> 3) {
3132
+ case 1: {
3133
+ if (tag !== 10) {
3134
+ break;
3135
+ }
3136
+ message.flowId = reader.string();
3137
+ continue;
3138
+ }
3139
+ case 2: {
3140
+ if (tag !== 18) {
3141
+ break;
3142
+ }
3143
+ message.blobValue = Value.decode(reader, reader.uint32());
3144
+ continue;
3145
+ }
3146
+ }
3147
+ if ((tag & 7) === 4 || tag === 0) {
3148
+ break;
3149
+ }
3150
+ reader.skip(tag & 7);
3151
+ }
3152
+ return message;
3153
+ },
3154
+ create(base) {
3155
+ return LoadBlobRequestEntry.fromPartial(base ?? {});
3156
+ },
3157
+ fromPartial(object) {
3158
+ const message = createBaseLoadBlobRequestEntry();
3159
+ message.flowId = object.flowId ?? "";
3160
+ message.blobValue = (object.blobValue !== undefined && object.blobValue !== null)
3161
+ ? Value.fromPartial(object.blobValue)
3162
+ : undefined;
3163
+ return message;
3164
+ },
3165
+ };
3111
3166
  function createBaseLoadBlobsRequest() {
3112
- return { values: [] };
3167
+ return { entries: [] };
3113
3168
  }
3114
3169
  export const LoadBlobsRequest = {
3115
3170
  encode(message, writer = new BinaryWriter()) {
3116
- for (const v of message.values) {
3117
- Value.encode(v, writer.uint32(10).fork()).join();
3171
+ for (const v of message.entries) {
3172
+ LoadBlobRequestEntry.encode(v, writer.uint32(10).fork()).join();
3118
3173
  }
3119
3174
  return writer;
3120
3175
  },
@@ -3129,7 +3184,7 @@ export const LoadBlobsRequest = {
3129
3184
  if (tag !== 10) {
3130
3185
  break;
3131
3186
  }
3132
- message.values.push(Value.decode(reader, reader.uint32()));
3187
+ message.entries.push(LoadBlobRequestEntry.decode(reader, reader.uint32()));
3133
3188
  continue;
3134
3189
  }
3135
3190
  }
@@ -3145,7 +3200,7 @@ export const LoadBlobsRequest = {
3145
3200
  },
3146
3201
  fromPartial(object) {
3147
3202
  const message = createBaseLoadBlobsRequest();
3148
- message.values = object.values?.map((e) => Value.fromPartial(e)) || [];
3203
+ message.entries = object.entries?.map((e) => LoadBlobRequestEntry.fromPartial(e)) || [];
3149
3204
  return message;
3150
3205
  },
3151
3206
  };