@superdurable/dex 0.2.8 → 0.2.9

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.
@@ -6659,6 +6659,9 @@ function createBaseInvokeRPCRequest() {
6659
6659
  lockAttributeKeys: [],
6660
6660
  requestId: "",
6661
6661
  isTransactional: false,
6662
+ loadAttributeMapInstances: [],
6663
+ loadChannelNames: [],
6664
+ loadChannelMapInstances: [],
6662
6665
  };
6663
6666
  }
6664
6667
  export const InvokeRPCRequest = {
@@ -6687,6 +6690,15 @@ export const InvokeRPCRequest = {
6687
6690
  if (message.isTransactional !== false) {
6688
6691
  writer.uint32(64).bool(message.isTransactional);
6689
6692
  }
6693
+ for (const v of message.loadAttributeMapInstances) {
6694
+ writer.uint32(74).string(v);
6695
+ }
6696
+ for (const v of message.loadChannelNames) {
6697
+ writer.uint32(82).string(v);
6698
+ }
6699
+ for (const v of message.loadChannelMapInstances) {
6700
+ writer.uint32(90).string(v);
6701
+ }
6690
6702
  return writer;
6691
6703
  },
6692
6704
  decode(input, length) {
@@ -6752,6 +6764,27 @@ export const InvokeRPCRequest = {
6752
6764
  message.isTransactional = reader.bool();
6753
6765
  continue;
6754
6766
  }
6767
+ case 9: {
6768
+ if (tag !== 74) {
6769
+ break;
6770
+ }
6771
+ message.loadAttributeMapInstances.push(reader.string());
6772
+ continue;
6773
+ }
6774
+ case 10: {
6775
+ if (tag !== 82) {
6776
+ break;
6777
+ }
6778
+ message.loadChannelNames.push(reader.string());
6779
+ continue;
6780
+ }
6781
+ case 11: {
6782
+ if (tag !== 90) {
6783
+ break;
6784
+ }
6785
+ message.loadChannelMapInstances.push(reader.string());
6786
+ continue;
6787
+ }
6755
6788
  }
6756
6789
  if ((tag & 7) === 4 || tag === 0) {
6757
6790
  break;
@@ -6773,6 +6806,9 @@ export const InvokeRPCRequest = {
6773
6806
  message.lockAttributeKeys = object.lockAttributeKeys?.map((e) => e) || [];
6774
6807
  message.requestId = object.requestId ?? "";
6775
6808
  message.isTransactional = object.isTransactional ?? false;
6809
+ message.loadAttributeMapInstances = object.loadAttributeMapInstances?.map((e) => e) || [];
6810
+ message.loadChannelNames = object.loadChannelNames?.map((e) => e) || [];
6811
+ message.loadChannelMapInstances = object.loadChannelMapInstances?.map((e) => e) || [];
6776
6812
  return message;
6777
6813
  },
6778
6814
  };
@@ -8500,7 +8536,18 @@ export const InvokeExecuteMethodOutput = {
8500
8536
  },
8501
8537
  };
8502
8538
  function createBaseInvokeWorkerRPCRequest() {
8503
- return { context: undefined, flowType: "", rpcName: "", input: undefined, attributes: [], channelInfos: {} };
8539
+ return {
8540
+ context: undefined,
8541
+ flowType: "",
8542
+ rpcName: "",
8543
+ input: undefined,
8544
+ attributes: [],
8545
+ channelInfos: {},
8546
+ loadedChannelMessages: {},
8547
+ loadedAttributeMapInstances: [],
8548
+ loadedChannelNames: [],
8549
+ loadedChannelMapInstances: [],
8550
+ };
8504
8551
  }
8505
8552
  export const InvokeWorkerRPCRequest = {
8506
8553
  encode(message, writer = new BinaryWriter()) {
@@ -8522,6 +8569,19 @@ export const InvokeWorkerRPCRequest = {
8522
8569
  globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
8523
8570
  InvokeWorkerRPCRequest_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
8524
8571
  });
8572
+ globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
8573
+ InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(58).fork())
8574
+ .join();
8575
+ });
8576
+ for (const v of message.loadedAttributeMapInstances) {
8577
+ writer.uint32(66).string(v);
8578
+ }
8579
+ for (const v of message.loadedChannelNames) {
8580
+ writer.uint32(74).string(v);
8581
+ }
8582
+ for (const v of message.loadedChannelMapInstances) {
8583
+ writer.uint32(82).string(v);
8584
+ }
8525
8585
  return writer;
8526
8586
  },
8527
8587
  decode(input, length) {
@@ -8576,6 +8636,37 @@ export const InvokeWorkerRPCRequest = {
8576
8636
  }
8577
8637
  continue;
8578
8638
  }
8639
+ case 7: {
8640
+ if (tag !== 58) {
8641
+ break;
8642
+ }
8643
+ const entry7 = InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
8644
+ if (entry7.value !== undefined) {
8645
+ message.loadedChannelMessages[entry7.key] = entry7.value;
8646
+ }
8647
+ continue;
8648
+ }
8649
+ case 8: {
8650
+ if (tag !== 66) {
8651
+ break;
8652
+ }
8653
+ message.loadedAttributeMapInstances.push(reader.string());
8654
+ continue;
8655
+ }
8656
+ case 9: {
8657
+ if (tag !== 74) {
8658
+ break;
8659
+ }
8660
+ message.loadedChannelNames.push(reader.string());
8661
+ continue;
8662
+ }
8663
+ case 10: {
8664
+ if (tag !== 82) {
8665
+ break;
8666
+ }
8667
+ message.loadedChannelMapInstances.push(reader.string());
8668
+ continue;
8669
+ }
8579
8670
  }
8580
8671
  if ((tag & 7) === 4 || tag === 0) {
8581
8672
  break;
@@ -8602,6 +8693,16 @@ export const InvokeWorkerRPCRequest = {
8602
8693
  }
8603
8694
  return acc;
8604
8695
  }, {});
8696
+ message.loadedChannelMessages =
8697
+ globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
8698
+ if (value !== undefined) {
8699
+ acc[key] = ChannelValues.fromPartial(value);
8700
+ }
8701
+ return acc;
8702
+ }, {});
8703
+ message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
8704
+ message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
8705
+ message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
8605
8706
  return message;
8606
8707
  },
8607
8708
  };
@@ -8659,6 +8760,60 @@ export const InvokeWorkerRPCRequest_ChannelInfosEntry = {
8659
8760
  return message;
8660
8761
  },
8661
8762
  };
8763
+ function createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry() {
8764
+ return { key: "", value: undefined };
8765
+ }
8766
+ export const InvokeWorkerRPCRequest_LoadedChannelMessagesEntry = {
8767
+ encode(message, writer = new BinaryWriter()) {
8768
+ if (message.key !== "") {
8769
+ writer.uint32(10).string(message.key);
8770
+ }
8771
+ if (message.value !== undefined) {
8772
+ ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
8773
+ }
8774
+ return writer;
8775
+ },
8776
+ decode(input, length) {
8777
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8778
+ const end = length === undefined ? reader.len : reader.pos + length;
8779
+ const message = createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry();
8780
+ while (reader.pos < end) {
8781
+ const tag = reader.uint32();
8782
+ switch (tag >>> 3) {
8783
+ case 1: {
8784
+ if (tag !== 10) {
8785
+ break;
8786
+ }
8787
+ message.key = reader.string();
8788
+ continue;
8789
+ }
8790
+ case 2: {
8791
+ if (tag !== 18) {
8792
+ break;
8793
+ }
8794
+ message.value = ChannelValues.decode(reader, reader.uint32());
8795
+ continue;
8796
+ }
8797
+ }
8798
+ if ((tag & 7) === 4 || tag === 0) {
8799
+ break;
8800
+ }
8801
+ reader.skip(tag & 7);
8802
+ }
8803
+ return message;
8804
+ },
8805
+ create(base) {
8806
+ return InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.fromPartial(base ?? {});
8807
+ },
8808
+ fromPartial(object) {
8809
+ const message = createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry();
8810
+ message.key = object.key ?? "";
8811
+ message.value = (object.value !== undefined && object.value !== null)
8812
+ ? ChannelValues.fromPartial(object.value)
8813
+ : undefined;
8814
+ return message;
8815
+ },
8816
+ };
8662
8817
  function createBaseInvokeWorkerRPCResponse() {
8663
8818
  return {
8664
8819
  output: undefined,
@@ -12535,13 +12690,19 @@ export const GetAttributesQueryResponse = {
12535
12690
  },
12536
12691
  };
12537
12692
  function createBasePrepareRpcQueryRequest() {
12538
- return { lockAttributeKeys: [] };
12693
+ return { loadAttributeMapInstances: [], loadChannelNames: [], loadChannelMapInstances: [] };
12539
12694
  }
12540
12695
  export const PrepareRpcQueryRequest = {
12541
12696
  encode(message, writer = new BinaryWriter()) {
12542
- for (const v of message.lockAttributeKeys) {
12697
+ for (const v of message.loadAttributeMapInstances) {
12543
12698
  writer.uint32(10).string(v);
12544
12699
  }
12700
+ for (const v of message.loadChannelNames) {
12701
+ writer.uint32(18).string(v);
12702
+ }
12703
+ for (const v of message.loadChannelMapInstances) {
12704
+ writer.uint32(26).string(v);
12705
+ }
12545
12706
  return writer;
12546
12707
  },
12547
12708
  decode(input, length) {
@@ -12555,7 +12716,21 @@ export const PrepareRpcQueryRequest = {
12555
12716
  if (tag !== 10) {
12556
12717
  break;
12557
12718
  }
12558
- message.lockAttributeKeys.push(reader.string());
12719
+ message.loadAttributeMapInstances.push(reader.string());
12720
+ continue;
12721
+ }
12722
+ case 2: {
12723
+ if (tag !== 18) {
12724
+ break;
12725
+ }
12726
+ message.loadChannelNames.push(reader.string());
12727
+ continue;
12728
+ }
12729
+ case 3: {
12730
+ if (tag !== 26) {
12731
+ break;
12732
+ }
12733
+ message.loadChannelMapInstances.push(reader.string());
12559
12734
  continue;
12560
12735
  }
12561
12736
  }
@@ -12571,7 +12746,9 @@ export const PrepareRpcQueryRequest = {
12571
12746
  },
12572
12747
  fromPartial(object) {
12573
12748
  const message = createBasePrepareRpcQueryRequest();
12574
- message.lockAttributeKeys = object.lockAttributeKeys?.map((e) => e) || [];
12749
+ message.loadAttributeMapInstances = object.loadAttributeMapInstances?.map((e) => e) || [];
12750
+ message.loadChannelNames = object.loadChannelNames?.map((e) => e) || [];
12751
+ message.loadChannelMapInstances = object.loadChannelMapInstances?.map((e) => e) || [];
12575
12752
  return message;
12576
12753
  },
12577
12754
  };
@@ -12583,6 +12760,10 @@ function createBasePrepareRpcQueryResponse() {
12583
12760
  flowType: "",
12584
12761
  workerTarget: undefined,
12585
12762
  channelInfos: {},
12763
+ loadedChannelMessages: {},
12764
+ loadedAttributeMapInstances: [],
12765
+ loadedChannelNames: [],
12766
+ loadedChannelMapInstances: [],
12586
12767
  };
12587
12768
  }
12588
12769
  export const PrepareRpcQueryResponse = {
@@ -12608,6 +12789,19 @@ export const PrepareRpcQueryResponse = {
12608
12789
  globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
12609
12790
  PrepareRpcQueryResponse_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
12610
12791
  });
12792
+ globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
12793
+ PrepareRpcQueryResponse_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(58).fork())
12794
+ .join();
12795
+ });
12796
+ for (const v of message.loadedAttributeMapInstances) {
12797
+ writer.uint32(66).string(v);
12798
+ }
12799
+ for (const v of message.loadedChannelNames) {
12800
+ writer.uint32(74).string(v);
12801
+ }
12802
+ for (const v of message.loadedChannelMapInstances) {
12803
+ writer.uint32(82).string(v);
12804
+ }
12611
12805
  return writer;
12612
12806
  },
12613
12807
  decode(input, length) {
@@ -12662,6 +12856,37 @@ export const PrepareRpcQueryResponse = {
12662
12856
  }
12663
12857
  continue;
12664
12858
  }
12859
+ case 7: {
12860
+ if (tag !== 58) {
12861
+ break;
12862
+ }
12863
+ const entry7 = PrepareRpcQueryResponse_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
12864
+ if (entry7.value !== undefined) {
12865
+ message.loadedChannelMessages[entry7.key] = entry7.value;
12866
+ }
12867
+ continue;
12868
+ }
12869
+ case 8: {
12870
+ if (tag !== 66) {
12871
+ break;
12872
+ }
12873
+ message.loadedAttributeMapInstances.push(reader.string());
12874
+ continue;
12875
+ }
12876
+ case 9: {
12877
+ if (tag !== 74) {
12878
+ break;
12879
+ }
12880
+ message.loadedChannelNames.push(reader.string());
12881
+ continue;
12882
+ }
12883
+ case 10: {
12884
+ if (tag !== 82) {
12885
+ break;
12886
+ }
12887
+ message.loadedChannelMapInstances.push(reader.string());
12888
+ continue;
12889
+ }
12665
12890
  }
12666
12891
  if ((tag & 7) === 4 || tag === 0) {
12667
12892
  break;
@@ -12690,6 +12915,16 @@ export const PrepareRpcQueryResponse = {
12690
12915
  }
12691
12916
  return acc;
12692
12917
  }, {});
12918
+ message.loadedChannelMessages =
12919
+ globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
12920
+ if (value !== undefined) {
12921
+ acc[key] = ChannelValues.fromPartial(value);
12922
+ }
12923
+ return acc;
12924
+ }, {});
12925
+ message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
12926
+ message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
12927
+ message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
12693
12928
  return message;
12694
12929
  },
12695
12930
  };
@@ -12747,6 +12982,60 @@ export const PrepareRpcQueryResponse_ChannelInfosEntry = {
12747
12982
  return message;
12748
12983
  },
12749
12984
  };
12985
+ function createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry() {
12986
+ return { key: "", value: undefined };
12987
+ }
12988
+ export const PrepareRpcQueryResponse_LoadedChannelMessagesEntry = {
12989
+ encode(message, writer = new BinaryWriter()) {
12990
+ if (message.key !== "") {
12991
+ writer.uint32(10).string(message.key);
12992
+ }
12993
+ if (message.value !== undefined) {
12994
+ ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
12995
+ }
12996
+ return writer;
12997
+ },
12998
+ decode(input, length) {
12999
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13000
+ const end = length === undefined ? reader.len : reader.pos + length;
13001
+ const message = createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry();
13002
+ while (reader.pos < end) {
13003
+ const tag = reader.uint32();
13004
+ switch (tag >>> 3) {
13005
+ case 1: {
13006
+ if (tag !== 10) {
13007
+ break;
13008
+ }
13009
+ message.key = reader.string();
13010
+ continue;
13011
+ }
13012
+ case 2: {
13013
+ if (tag !== 18) {
13014
+ break;
13015
+ }
13016
+ message.value = ChannelValues.decode(reader, reader.uint32());
13017
+ continue;
13018
+ }
13019
+ }
13020
+ if ((tag & 7) === 4 || tag === 0) {
13021
+ break;
13022
+ }
13023
+ reader.skip(tag & 7);
13024
+ }
13025
+ return message;
13026
+ },
13027
+ create(base) {
13028
+ return PrepareRpcQueryResponse_LoadedChannelMessagesEntry.fromPartial(base ?? {});
13029
+ },
13030
+ fromPartial(object) {
13031
+ const message = createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry();
13032
+ message.key = object.key ?? "";
13033
+ message.value = (object.value !== undefined && object.value !== null)
13034
+ ? ChannelValues.fromPartial(object.value)
13035
+ : undefined;
13036
+ return message;
13037
+ },
13038
+ };
12750
13039
  function createBaseTimerInfo() {
12751
13040
  return { conditionId: "", firingUnixTimestampSeconds: 0n, status: 0 };
12752
13041
  }