@triton-one/yellowstone-grpc 5.0.2 → 5.0.4

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.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.11.1
3
+ // protoc-gen-ts_proto v2.11.2
4
4
  // protoc v6.30.1
5
5
  // source: geyser.proto
6
6
  /* eslint-disable */
@@ -1790,6 +1790,116 @@ export const SubscribeRequestFilterEntry = {
1790
1790
  return message;
1791
1791
  },
1792
1792
  };
1793
+ function createBaseSubscribeRequestFilterDeshredTransactions() {
1794
+ return { vote: undefined, accountInclude: [], accountExclude: [], accountRequired: [] };
1795
+ }
1796
+ export const SubscribeRequestFilterDeshredTransactions = {
1797
+ encode(message, writer = new BinaryWriter()) {
1798
+ if (message.vote !== undefined) {
1799
+ writer.uint32(8).bool(message.vote);
1800
+ }
1801
+ for (const v of message.accountInclude) {
1802
+ writer.uint32(18).string(v);
1803
+ }
1804
+ for (const v of message.accountExclude) {
1805
+ writer.uint32(26).string(v);
1806
+ }
1807
+ for (const v of message.accountRequired) {
1808
+ writer.uint32(34).string(v);
1809
+ }
1810
+ return writer;
1811
+ },
1812
+ decode(input, length) {
1813
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1814
+ const end = length === undefined ? reader.len : reader.pos + length;
1815
+ const message = createBaseSubscribeRequestFilterDeshredTransactions();
1816
+ while (reader.pos < end) {
1817
+ const tag = reader.uint32();
1818
+ switch (tag >>> 3) {
1819
+ case 1: {
1820
+ if (tag !== 8) {
1821
+ break;
1822
+ }
1823
+ message.vote = reader.bool();
1824
+ continue;
1825
+ }
1826
+ case 2: {
1827
+ if (tag !== 18) {
1828
+ break;
1829
+ }
1830
+ message.accountInclude.push(reader.string());
1831
+ continue;
1832
+ }
1833
+ case 3: {
1834
+ if (tag !== 26) {
1835
+ break;
1836
+ }
1837
+ message.accountExclude.push(reader.string());
1838
+ continue;
1839
+ }
1840
+ case 4: {
1841
+ if (tag !== 34) {
1842
+ break;
1843
+ }
1844
+ message.accountRequired.push(reader.string());
1845
+ continue;
1846
+ }
1847
+ }
1848
+ if ((tag & 7) === 4 || tag === 0) {
1849
+ break;
1850
+ }
1851
+ reader.skip(tag & 7);
1852
+ }
1853
+ return message;
1854
+ },
1855
+ fromJSON(object) {
1856
+ return {
1857
+ vote: isSet(object.vote) ? globalThis.Boolean(object.vote) : undefined,
1858
+ accountInclude: globalThis.Array.isArray(object?.accountInclude)
1859
+ ? object.accountInclude.map((e) => globalThis.String(e))
1860
+ : globalThis.Array.isArray(object?.account_include)
1861
+ ? object.account_include.map((e) => globalThis.String(e))
1862
+ : [],
1863
+ accountExclude: globalThis.Array.isArray(object?.accountExclude)
1864
+ ? object.accountExclude.map((e) => globalThis.String(e))
1865
+ : globalThis.Array.isArray(object?.account_exclude)
1866
+ ? object.account_exclude.map((e) => globalThis.String(e))
1867
+ : [],
1868
+ accountRequired: globalThis.Array.isArray(object?.accountRequired)
1869
+ ? object.accountRequired.map((e) => globalThis.String(e))
1870
+ : globalThis.Array.isArray(object?.account_required)
1871
+ ? object.account_required.map((e) => globalThis.String(e))
1872
+ : [],
1873
+ };
1874
+ },
1875
+ toJSON(message) {
1876
+ const obj = {};
1877
+ if (message.vote !== undefined) {
1878
+ obj.vote = message.vote;
1879
+ }
1880
+ if (message.accountInclude?.length) {
1881
+ obj.accountInclude = message.accountInclude;
1882
+ }
1883
+ if (message.accountExclude?.length) {
1884
+ obj.accountExclude = message.accountExclude;
1885
+ }
1886
+ if (message.accountRequired?.length) {
1887
+ obj.accountRequired = message.accountRequired;
1888
+ }
1889
+ return obj;
1890
+ },
1891
+ create(base) {
1892
+ return SubscribeRequestFilterDeshredTransactions.fromPartial(base ?? {});
1893
+ },
1894
+ fromPartial(object) {
1895
+ const message = createBaseSubscribeRequestFilterDeshredTransactions();
1896
+ message.vote = object.vote ?? undefined;
1897
+ message.accountInclude = object.accountInclude?.map((e) => e) || [];
1898
+ message.accountExclude = object.accountExclude?.map((e) => e) || [];
1899
+ message.accountRequired = object.accountRequired?.map((e) => e) || [];
1900
+ return message;
1901
+ },
1902
+ };
1793
1903
  function createBaseSubscribeRequestAccountsDataSlice() {
1794
1904
  return { offset: "0", length: "0" };
1795
1905
  }
@@ -1909,6 +2019,172 @@ export const SubscribeRequestPing = {
1909
2019
  return message;
1910
2020
  },
1911
2021
  };
2022
+ function createBaseSubscribeDeshredRequest() {
2023
+ return { deshredTransactions: {}, ping: undefined };
2024
+ }
2025
+ export const SubscribeDeshredRequest = {
2026
+ encode(message, writer = new BinaryWriter()) {
2027
+ globalThis.Object.entries(message.deshredTransactions).forEach(([key, value]) => {
2028
+ SubscribeDeshredRequest_DeshredTransactionsEntry.encode({ key: key, value }, writer.uint32(10).fork())
2029
+ .join();
2030
+ });
2031
+ if (message.ping !== undefined) {
2032
+ SubscribeRequestPing.encode(message.ping, writer.uint32(18).fork()).join();
2033
+ }
2034
+ return writer;
2035
+ },
2036
+ decode(input, length) {
2037
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2038
+ const end = length === undefined ? reader.len : reader.pos + length;
2039
+ const message = createBaseSubscribeDeshredRequest();
2040
+ while (reader.pos < end) {
2041
+ const tag = reader.uint32();
2042
+ switch (tag >>> 3) {
2043
+ case 1: {
2044
+ if (tag !== 10) {
2045
+ break;
2046
+ }
2047
+ const entry1 = SubscribeDeshredRequest_DeshredTransactionsEntry.decode(reader, reader.uint32());
2048
+ if (entry1.value !== undefined) {
2049
+ message.deshredTransactions[entry1.key] = entry1.value;
2050
+ }
2051
+ continue;
2052
+ }
2053
+ case 2: {
2054
+ if (tag !== 18) {
2055
+ break;
2056
+ }
2057
+ message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
2058
+ continue;
2059
+ }
2060
+ }
2061
+ if ((tag & 7) === 4 || tag === 0) {
2062
+ break;
2063
+ }
2064
+ reader.skip(tag & 7);
2065
+ }
2066
+ return message;
2067
+ },
2068
+ fromJSON(object) {
2069
+ return {
2070
+ deshredTransactions: isObject(object.deshredTransactions)
2071
+ ? globalThis.Object.entries(object.deshredTransactions).reduce((acc, [key, value]) => {
2072
+ acc[key] = SubscribeRequestFilterDeshredTransactions.fromJSON(value);
2073
+ return acc;
2074
+ }, {})
2075
+ : isObject(object.deshred_transactions)
2076
+ ? globalThis.Object.entries(object.deshred_transactions).reduce((acc, [key, value]) => {
2077
+ acc[key] = SubscribeRequestFilterDeshredTransactions.fromJSON(value);
2078
+ return acc;
2079
+ }, {})
2080
+ : {},
2081
+ ping: isSet(object.ping) ? SubscribeRequestPing.fromJSON(object.ping) : undefined,
2082
+ };
2083
+ },
2084
+ toJSON(message) {
2085
+ const obj = {};
2086
+ if (message.deshredTransactions) {
2087
+ const entries = globalThis.Object.entries(message.deshredTransactions);
2088
+ if (entries.length > 0) {
2089
+ obj.deshredTransactions = {};
2090
+ entries.forEach(([k, v]) => {
2091
+ obj.deshredTransactions[k] = SubscribeRequestFilterDeshredTransactions.toJSON(v);
2092
+ });
2093
+ }
2094
+ }
2095
+ if (message.ping !== undefined) {
2096
+ obj.ping = SubscribeRequestPing.toJSON(message.ping);
2097
+ }
2098
+ return obj;
2099
+ },
2100
+ create(base) {
2101
+ return SubscribeDeshredRequest.fromPartial(base ?? {});
2102
+ },
2103
+ fromPartial(object) {
2104
+ const message = createBaseSubscribeDeshredRequest();
2105
+ message.deshredTransactions =
2106
+ globalThis.Object.entries(object.deshredTransactions ?? {}).reduce((acc, [key, value]) => {
2107
+ if (value !== undefined) {
2108
+ acc[key] = SubscribeRequestFilterDeshredTransactions.fromPartial(value);
2109
+ }
2110
+ return acc;
2111
+ }, {});
2112
+ message.ping = (object.ping !== undefined && object.ping !== null)
2113
+ ? SubscribeRequestPing.fromPartial(object.ping)
2114
+ : undefined;
2115
+ return message;
2116
+ },
2117
+ };
2118
+ function createBaseSubscribeDeshredRequest_DeshredTransactionsEntry() {
2119
+ return { key: "", value: undefined };
2120
+ }
2121
+ export const SubscribeDeshredRequest_DeshredTransactionsEntry = {
2122
+ encode(message, writer = new BinaryWriter()) {
2123
+ if (message.key !== "") {
2124
+ writer.uint32(10).string(message.key);
2125
+ }
2126
+ if (message.value !== undefined) {
2127
+ SubscribeRequestFilterDeshredTransactions.encode(message.value, writer.uint32(18).fork()).join();
2128
+ }
2129
+ return writer;
2130
+ },
2131
+ decode(input, length) {
2132
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2133
+ const end = length === undefined ? reader.len : reader.pos + length;
2134
+ const message = createBaseSubscribeDeshredRequest_DeshredTransactionsEntry();
2135
+ while (reader.pos < end) {
2136
+ const tag = reader.uint32();
2137
+ switch (tag >>> 3) {
2138
+ case 1: {
2139
+ if (tag !== 10) {
2140
+ break;
2141
+ }
2142
+ message.key = reader.string();
2143
+ continue;
2144
+ }
2145
+ case 2: {
2146
+ if (tag !== 18) {
2147
+ break;
2148
+ }
2149
+ message.value = SubscribeRequestFilterDeshredTransactions.decode(reader, reader.uint32());
2150
+ continue;
2151
+ }
2152
+ }
2153
+ if ((tag & 7) === 4 || tag === 0) {
2154
+ break;
2155
+ }
2156
+ reader.skip(tag & 7);
2157
+ }
2158
+ return message;
2159
+ },
2160
+ fromJSON(object) {
2161
+ return {
2162
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2163
+ value: isSet(object.value) ? SubscribeRequestFilterDeshredTransactions.fromJSON(object.value) : undefined,
2164
+ };
2165
+ },
2166
+ toJSON(message) {
2167
+ const obj = {};
2168
+ if (message.key !== "") {
2169
+ obj.key = message.key;
2170
+ }
2171
+ if (message.value !== undefined) {
2172
+ obj.value = SubscribeRequestFilterDeshredTransactions.toJSON(message.value);
2173
+ }
2174
+ return obj;
2175
+ },
2176
+ create(base) {
2177
+ return SubscribeDeshredRequest_DeshredTransactionsEntry.fromPartial(base ?? {});
2178
+ },
2179
+ fromPartial(object) {
2180
+ const message = createBaseSubscribeDeshredRequest_DeshredTransactionsEntry();
2181
+ message.key = object.key ?? "";
2182
+ message.value = (object.value !== undefined && object.value !== null)
2183
+ ? SubscribeRequestFilterDeshredTransactions.fromPartial(object.value)
2184
+ : undefined;
2185
+ return message;
2186
+ },
2187
+ };
1912
2188
  function createBaseSubscribeUpdate() {
1913
2189
  return {
1914
2190
  filters: [],
@@ -3481,6 +3757,211 @@ export const SubscribeUpdateEntry = {
3481
3757
  return message;
3482
3758
  },
3483
3759
  };
3760
+ function createBaseSubscribeUpdateDeshredTransaction() {
3761
+ return { transaction: undefined, slot: "0" };
3762
+ }
3763
+ export const SubscribeUpdateDeshredTransaction = {
3764
+ encode(message, writer = new BinaryWriter()) {
3765
+ if (message.transaction !== undefined) {
3766
+ SubscribeUpdateDeshredTransactionInfo.encode(message.transaction, writer.uint32(10).fork()).join();
3767
+ }
3768
+ if (message.slot !== "0") {
3769
+ writer.uint32(16).uint64(message.slot);
3770
+ }
3771
+ return writer;
3772
+ },
3773
+ decode(input, length) {
3774
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3775
+ const end = length === undefined ? reader.len : reader.pos + length;
3776
+ const message = createBaseSubscribeUpdateDeshredTransaction();
3777
+ while (reader.pos < end) {
3778
+ const tag = reader.uint32();
3779
+ switch (tag >>> 3) {
3780
+ case 1: {
3781
+ if (tag !== 10) {
3782
+ break;
3783
+ }
3784
+ message.transaction = SubscribeUpdateDeshredTransactionInfo.decode(reader, reader.uint32());
3785
+ continue;
3786
+ }
3787
+ case 2: {
3788
+ if (tag !== 16) {
3789
+ break;
3790
+ }
3791
+ message.slot = reader.uint64().toString();
3792
+ continue;
3793
+ }
3794
+ }
3795
+ if ((tag & 7) === 4 || tag === 0) {
3796
+ break;
3797
+ }
3798
+ reader.skip(tag & 7);
3799
+ }
3800
+ return message;
3801
+ },
3802
+ fromJSON(object) {
3803
+ return {
3804
+ transaction: isSet(object.transaction)
3805
+ ? SubscribeUpdateDeshredTransactionInfo.fromJSON(object.transaction)
3806
+ : undefined,
3807
+ slot: isSet(object.slot) ? globalThis.String(object.slot) : "0",
3808
+ };
3809
+ },
3810
+ toJSON(message) {
3811
+ const obj = {};
3812
+ if (message.transaction !== undefined) {
3813
+ obj.transaction = SubscribeUpdateDeshredTransactionInfo.toJSON(message.transaction);
3814
+ }
3815
+ if (message.slot !== "0") {
3816
+ obj.slot = message.slot;
3817
+ }
3818
+ return obj;
3819
+ },
3820
+ create(base) {
3821
+ return SubscribeUpdateDeshredTransaction.fromPartial(base ?? {});
3822
+ },
3823
+ fromPartial(object) {
3824
+ const message = createBaseSubscribeUpdateDeshredTransaction();
3825
+ message.transaction = (object.transaction !== undefined && object.transaction !== null)
3826
+ ? SubscribeUpdateDeshredTransactionInfo.fromPartial(object.transaction)
3827
+ : undefined;
3828
+ message.slot = object.slot ?? "0";
3829
+ return message;
3830
+ },
3831
+ };
3832
+ function createBaseSubscribeUpdateDeshredTransactionInfo() {
3833
+ return {
3834
+ signature: new Uint8Array(0),
3835
+ isVote: false,
3836
+ transaction: undefined,
3837
+ loadedWritableAddresses: [],
3838
+ loadedReadonlyAddresses: [],
3839
+ };
3840
+ }
3841
+ export const SubscribeUpdateDeshredTransactionInfo = {
3842
+ encode(message, writer = new BinaryWriter()) {
3843
+ if (message.signature.length !== 0) {
3844
+ writer.uint32(10).bytes(message.signature);
3845
+ }
3846
+ if (message.isVote !== false) {
3847
+ writer.uint32(16).bool(message.isVote);
3848
+ }
3849
+ if (message.transaction !== undefined) {
3850
+ Transaction.encode(message.transaction, writer.uint32(26).fork()).join();
3851
+ }
3852
+ for (const v of message.loadedWritableAddresses) {
3853
+ writer.uint32(34).bytes(v);
3854
+ }
3855
+ for (const v of message.loadedReadonlyAddresses) {
3856
+ writer.uint32(42).bytes(v);
3857
+ }
3858
+ return writer;
3859
+ },
3860
+ decode(input, length) {
3861
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3862
+ const end = length === undefined ? reader.len : reader.pos + length;
3863
+ const message = createBaseSubscribeUpdateDeshredTransactionInfo();
3864
+ while (reader.pos < end) {
3865
+ const tag = reader.uint32();
3866
+ switch (tag >>> 3) {
3867
+ case 1: {
3868
+ if (tag !== 10) {
3869
+ break;
3870
+ }
3871
+ message.signature = reader.bytes();
3872
+ continue;
3873
+ }
3874
+ case 2: {
3875
+ if (tag !== 16) {
3876
+ break;
3877
+ }
3878
+ message.isVote = reader.bool();
3879
+ continue;
3880
+ }
3881
+ case 3: {
3882
+ if (tag !== 26) {
3883
+ break;
3884
+ }
3885
+ message.transaction = Transaction.decode(reader, reader.uint32());
3886
+ continue;
3887
+ }
3888
+ case 4: {
3889
+ if (tag !== 34) {
3890
+ break;
3891
+ }
3892
+ message.loadedWritableAddresses.push(reader.bytes());
3893
+ continue;
3894
+ }
3895
+ case 5: {
3896
+ if (tag !== 42) {
3897
+ break;
3898
+ }
3899
+ message.loadedReadonlyAddresses.push(reader.bytes());
3900
+ continue;
3901
+ }
3902
+ }
3903
+ if ((tag & 7) === 4 || tag === 0) {
3904
+ break;
3905
+ }
3906
+ reader.skip(tag & 7);
3907
+ }
3908
+ return message;
3909
+ },
3910
+ fromJSON(object) {
3911
+ return {
3912
+ signature: isSet(object.signature) ? bytesFromBase64(object.signature) : new Uint8Array(0),
3913
+ isVote: isSet(object.isVote)
3914
+ ? globalThis.Boolean(object.isVote)
3915
+ : isSet(object.is_vote)
3916
+ ? globalThis.Boolean(object.is_vote)
3917
+ : false,
3918
+ transaction: isSet(object.transaction) ? Transaction.fromJSON(object.transaction) : undefined,
3919
+ loadedWritableAddresses: globalThis.Array.isArray(object?.loadedWritableAddresses)
3920
+ ? object.loadedWritableAddresses.map((e) => bytesFromBase64(e))
3921
+ : globalThis.Array.isArray(object?.loaded_writable_addresses)
3922
+ ? object.loaded_writable_addresses.map((e) => bytesFromBase64(e))
3923
+ : [],
3924
+ loadedReadonlyAddresses: globalThis.Array.isArray(object?.loadedReadonlyAddresses)
3925
+ ? object.loadedReadonlyAddresses.map((e) => bytesFromBase64(e))
3926
+ : globalThis.Array.isArray(object?.loaded_readonly_addresses)
3927
+ ? object.loaded_readonly_addresses.map((e) => bytesFromBase64(e))
3928
+ : [],
3929
+ };
3930
+ },
3931
+ toJSON(message) {
3932
+ const obj = {};
3933
+ if (message.signature.length !== 0) {
3934
+ obj.signature = base64FromBytes(message.signature);
3935
+ }
3936
+ if (message.isVote !== false) {
3937
+ obj.isVote = message.isVote;
3938
+ }
3939
+ if (message.transaction !== undefined) {
3940
+ obj.transaction = Transaction.toJSON(message.transaction);
3941
+ }
3942
+ if (message.loadedWritableAddresses?.length) {
3943
+ obj.loadedWritableAddresses = message.loadedWritableAddresses.map((e) => base64FromBytes(e));
3944
+ }
3945
+ if (message.loadedReadonlyAddresses?.length) {
3946
+ obj.loadedReadonlyAddresses = message.loadedReadonlyAddresses.map((e) => base64FromBytes(e));
3947
+ }
3948
+ return obj;
3949
+ },
3950
+ create(base) {
3951
+ return SubscribeUpdateDeshredTransactionInfo.fromPartial(base ?? {});
3952
+ },
3953
+ fromPartial(object) {
3954
+ const message = createBaseSubscribeUpdateDeshredTransactionInfo();
3955
+ message.signature = object.signature ?? new Uint8Array(0);
3956
+ message.isVote = object.isVote ?? false;
3957
+ message.transaction = (object.transaction !== undefined && object.transaction !== null)
3958
+ ? Transaction.fromPartial(object.transaction)
3959
+ : undefined;
3960
+ message.loadedWritableAddresses = object.loadedWritableAddresses?.map((e) => e) || [];
3961
+ message.loadedReadonlyAddresses = object.loadedReadonlyAddresses?.map((e) => e) || [];
3962
+ return message;
3963
+ },
3964
+ };
3484
3965
  function createBaseSubscribeUpdatePing() {
3485
3966
  return {};
3486
3967
  }
@@ -3569,6 +4050,133 @@ export const SubscribeUpdatePong = {
3569
4050
  return message;
3570
4051
  },
3571
4052
  };
4053
+ function createBaseSubscribeUpdateDeshred() {
4054
+ return { filters: [], deshredTransaction: undefined, ping: undefined, pong: undefined, createdAt: undefined };
4055
+ }
4056
+ export const SubscribeUpdateDeshred = {
4057
+ encode(message, writer = new BinaryWriter()) {
4058
+ for (const v of message.filters) {
4059
+ writer.uint32(10).string(v);
4060
+ }
4061
+ if (message.deshredTransaction !== undefined) {
4062
+ SubscribeUpdateDeshredTransaction.encode(message.deshredTransaction, writer.uint32(18).fork()).join();
4063
+ }
4064
+ if (message.ping !== undefined) {
4065
+ SubscribeUpdatePing.encode(message.ping, writer.uint32(26).fork()).join();
4066
+ }
4067
+ if (message.pong !== undefined) {
4068
+ SubscribeUpdatePong.encode(message.pong, writer.uint32(34).fork()).join();
4069
+ }
4070
+ if (message.createdAt !== undefined) {
4071
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(42).fork()).join();
4072
+ }
4073
+ return writer;
4074
+ },
4075
+ decode(input, length) {
4076
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4077
+ const end = length === undefined ? reader.len : reader.pos + length;
4078
+ const message = createBaseSubscribeUpdateDeshred();
4079
+ while (reader.pos < end) {
4080
+ const tag = reader.uint32();
4081
+ switch (tag >>> 3) {
4082
+ case 1: {
4083
+ if (tag !== 10) {
4084
+ break;
4085
+ }
4086
+ message.filters.push(reader.string());
4087
+ continue;
4088
+ }
4089
+ case 2: {
4090
+ if (tag !== 18) {
4091
+ break;
4092
+ }
4093
+ message.deshredTransaction = SubscribeUpdateDeshredTransaction.decode(reader, reader.uint32());
4094
+ continue;
4095
+ }
4096
+ case 3: {
4097
+ if (tag !== 26) {
4098
+ break;
4099
+ }
4100
+ message.ping = SubscribeUpdatePing.decode(reader, reader.uint32());
4101
+ continue;
4102
+ }
4103
+ case 4: {
4104
+ if (tag !== 34) {
4105
+ break;
4106
+ }
4107
+ message.pong = SubscribeUpdatePong.decode(reader, reader.uint32());
4108
+ continue;
4109
+ }
4110
+ case 5: {
4111
+ if (tag !== 42) {
4112
+ break;
4113
+ }
4114
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4115
+ continue;
4116
+ }
4117
+ }
4118
+ if ((tag & 7) === 4 || tag === 0) {
4119
+ break;
4120
+ }
4121
+ reader.skip(tag & 7);
4122
+ }
4123
+ return message;
4124
+ },
4125
+ fromJSON(object) {
4126
+ return {
4127
+ filters: globalThis.Array.isArray(object?.filters) ? object.filters.map((e) => globalThis.String(e)) : [],
4128
+ deshredTransaction: isSet(object.deshredTransaction)
4129
+ ? SubscribeUpdateDeshredTransaction.fromJSON(object.deshredTransaction)
4130
+ : isSet(object.deshred_transaction)
4131
+ ? SubscribeUpdateDeshredTransaction.fromJSON(object.deshred_transaction)
4132
+ : undefined,
4133
+ ping: isSet(object.ping) ? SubscribeUpdatePing.fromJSON(object.ping) : undefined,
4134
+ pong: isSet(object.pong) ? SubscribeUpdatePong.fromJSON(object.pong) : undefined,
4135
+ createdAt: isSet(object.createdAt)
4136
+ ? fromJsonTimestamp(object.createdAt)
4137
+ : isSet(object.created_at)
4138
+ ? fromJsonTimestamp(object.created_at)
4139
+ : undefined,
4140
+ };
4141
+ },
4142
+ toJSON(message) {
4143
+ const obj = {};
4144
+ if (message.filters?.length) {
4145
+ obj.filters = message.filters;
4146
+ }
4147
+ if (message.deshredTransaction !== undefined) {
4148
+ obj.deshredTransaction = SubscribeUpdateDeshredTransaction.toJSON(message.deshredTransaction);
4149
+ }
4150
+ if (message.ping !== undefined) {
4151
+ obj.ping = SubscribeUpdatePing.toJSON(message.ping);
4152
+ }
4153
+ if (message.pong !== undefined) {
4154
+ obj.pong = SubscribeUpdatePong.toJSON(message.pong);
4155
+ }
4156
+ if (message.createdAt !== undefined) {
4157
+ obj.createdAt = message.createdAt.toISOString();
4158
+ }
4159
+ return obj;
4160
+ },
4161
+ create(base) {
4162
+ return SubscribeUpdateDeshred.fromPartial(base ?? {});
4163
+ },
4164
+ fromPartial(object) {
4165
+ const message = createBaseSubscribeUpdateDeshred();
4166
+ message.filters = object.filters?.map((e) => e) || [];
4167
+ message.deshredTransaction = (object.deshredTransaction !== undefined && object.deshredTransaction !== null)
4168
+ ? SubscribeUpdateDeshredTransaction.fromPartial(object.deshredTransaction)
4169
+ : undefined;
4170
+ message.ping = (object.ping !== undefined && object.ping !== null)
4171
+ ? SubscribeUpdatePing.fromPartial(object.ping)
4172
+ : undefined;
4173
+ message.pong = (object.pong !== undefined && object.pong !== null)
4174
+ ? SubscribeUpdatePong.fromPartial(object.pong)
4175
+ : undefined;
4176
+ message.createdAt = object.createdAt ?? undefined;
4177
+ return message;
4178
+ },
4179
+ };
3572
4180
  function createBaseSubscribeReplayInfoRequest() {
3573
4181
  return {};
3574
4182
  }
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.11.1
3
+ // protoc-gen-ts_proto v2.11.2
4
4
  // protoc v6.30.1
5
5
  // source: google/protobuf/timestamp.proto
6
6
  /* eslint-disable */
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.11.1
3
+ // protoc-gen-ts_proto v2.11.2
4
4
  // protoc v6.30.1
5
5
  // source: solana-storage.proto
6
6
  /* eslint-disable */