@sentio/protos 2.3.0-rc.1 → 2.3.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.
@@ -74,6 +74,10 @@ export const CoinID = {
74
74
  return obj;
75
75
  },
76
76
 
77
+ create(base?: DeepPartial<CoinID>): CoinID {
78
+ return CoinID.fromPartial(base ?? {});
79
+ },
80
+
77
81
  fromPartial(object: DeepPartial<CoinID>): CoinID {
78
82
  const message = createBaseCoinID();
79
83
  message.symbol = object.symbol ?? undefined;
@@ -134,6 +138,10 @@ export const CoinID_AddressIdentifier = {
134
138
  return obj;
135
139
  },
136
140
 
141
+ create(base?: DeepPartial<CoinID_AddressIdentifier>): CoinID_AddressIdentifier {
142
+ return CoinID_AddressIdentifier.fromPartial(base ?? {});
143
+ },
144
+
137
145
  fromPartial(object: DeepPartial<CoinID_AddressIdentifier>): CoinID_AddressIdentifier {
138
146
  const message = createBaseCoinID_AddressIdentifier();
139
147
  message.address = object.address ?? "";
@@ -192,6 +200,10 @@ export const GetPriceRequest = {
192
200
  return obj;
193
201
  },
194
202
 
203
+ create(base?: DeepPartial<GetPriceRequest>): GetPriceRequest {
204
+ return GetPriceRequest.fromPartial(base ?? {});
205
+ },
206
+
195
207
  fromPartial(object: DeepPartial<GetPriceRequest>): GetPriceRequest {
196
208
  const message = createBaseGetPriceRequest();
197
209
  message.timestamp = object.timestamp ?? undefined;
@@ -252,6 +264,10 @@ export const GetPriceResponse = {
252
264
  return obj;
253
265
  },
254
266
 
267
+ create(base?: DeepPartial<GetPriceResponse>): GetPriceResponse {
268
+ return GetPriceResponse.fromPartial(base ?? {});
269
+ },
270
+
255
271
  fromPartial(object: DeepPartial<GetPriceResponse>): GetPriceResponse {
256
272
  const message = createBaseGetPriceResponse();
257
273
  message.price = object.price ?? 0;