mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
cosmwasm-stargate: Regenerate codec
This commit is contained in:
parent
ff0a5cc6cc
commit
4f0b9fbe18
@ -82,9 +82,10 @@ export const PageRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
message.key = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -110,6 +111,7 @@ export const PageRequest = {
|
||||
|
||||
fromJSON(object: any): PageRequest {
|
||||
const message = { ...basePageRequest } as PageRequest;
|
||||
message.key = new Uint8Array();
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -181,9 +183,10 @@ export const PageResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
message.nextKey = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -203,6 +206,7 @@ export const PageResponse = {
|
||||
|
||||
fromJSON(object: any): PageResponse {
|
||||
const message = { ...basePageResponse } as PageResponse;
|
||||
message.nextKey = new Uint8Array();
|
||||
if (object.nextKey !== undefined && object.nextKey !== null) {
|
||||
message.nextKey = bytesFromBase64(object.nextKey);
|
||||
}
|
||||
@ -279,3 +283,8 @@ export type DeepPartial<T> = T extends Builtin
|
||||
: T extends {}
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: Partial<T>;
|
||||
|
||||
if (_m0.util.Long !== Long) {
|
||||
_m0.util.Long = Long as any;
|
||||
_m0.configure();
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ export const Coin = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Coin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCoin } as Coin;
|
||||
while (reader.pos < end) {
|
||||
@ -122,7 +122,7 @@ export const DecCoin = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecCoin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecCoin } as DecCoin;
|
||||
while (reader.pos < end) {
|
||||
@ -191,7 +191,7 @@ export const IntProto = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): IntProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseIntProto } as IntProto;
|
||||
while (reader.pos < end) {
|
||||
@ -246,7 +246,7 @@ export const DecProto = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): DecProto {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseDecProto } as DecProto;
|
||||
while (reader.pos < end) {
|
||||
@ -300,3 +300,8 @@ export type DeepPartial<T> = T extends Builtin
|
||||
: T extends {}
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: Partial<T>;
|
||||
|
||||
if (_m0.util.Long !== Long) {
|
||||
_m0.util.Long = Long as any;
|
||||
_m0.configure();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* eslint-disable */
|
||||
import { ContractInfo, ContractCodeHistoryEntry, Model } from "../../../../x/wasm/internal/types/types";
|
||||
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
||||
import Long from "long";
|
||||
import _m0 from "protobufjs/minimal";
|
||||
import { ContractInfo, ContractCodeHistoryEntry, Model } from "../../../../x/wasm/internal/types/types";
|
||||
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
||||
|
||||
export const protobufPackage = "cosmwasm.wasm.v1beta1";
|
||||
|
||||
@ -143,7 +143,7 @@ export const QueryContractInfoRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractInfoRequest } as QueryContractInfoRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -201,7 +201,7 @@ export const QueryContractInfoResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractInfoResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractInfoResponse } as QueryContractInfoResponse;
|
||||
while (reader.pos < end) {
|
||||
@ -274,7 +274,7 @@ export const QueryContractHistoryRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractHistoryRequest } as QueryContractHistoryRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -347,7 +347,7 @@ export const QueryContractHistoryResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractHistoryResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractHistoryResponse } as QueryContractHistoryResponse;
|
||||
message.entries = [];
|
||||
@ -427,7 +427,7 @@ export const QueryContractsByCodeRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractsByCodeRequest } as QueryContractsByCodeRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -500,7 +500,7 @@ export const ContractInfoWithAddress = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfoWithAddress {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractInfoWithAddress } as ContractInfoWithAddress;
|
||||
while (reader.pos < end) {
|
||||
@ -573,7 +573,7 @@ export const QueryContractsByCodeResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryContractsByCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryContractsByCodeResponse } as QueryContractsByCodeResponse;
|
||||
message.contractInfos = [];
|
||||
@ -655,7 +655,7 @@ export const QueryAllContractStateRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllContractStateRequest } as QueryAllContractStateRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -728,7 +728,7 @@ export const QueryAllContractStateResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryAllContractStateResponse } as QueryAllContractStateResponse;
|
||||
message.models = [];
|
||||
@ -808,9 +808,10 @@ export const QueryRawContractStateRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRawContractStateRequest } as QueryRawContractStateRequest;
|
||||
message.queryData = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -830,6 +831,7 @@ export const QueryRawContractStateRequest = {
|
||||
|
||||
fromJSON(object: any): QueryRawContractStateRequest {
|
||||
const message = { ...baseQueryRawContractStateRequest } as QueryRawContractStateRequest;
|
||||
message.queryData = new Uint8Array();
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -878,9 +880,10 @@ export const QueryRawContractStateResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRawContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryRawContractStateResponse } as QueryRawContractStateResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -897,6 +900,7 @@ export const QueryRawContractStateResponse = {
|
||||
|
||||
fromJSON(object: any): QueryRawContractStateResponse {
|
||||
const message = { ...baseQueryRawContractStateResponse } as QueryRawContractStateResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -935,9 +939,10 @@ export const QuerySmartContractStateRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySmartContractStateRequest } as QuerySmartContractStateRequest;
|
||||
message.queryData = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -957,6 +962,7 @@ export const QuerySmartContractStateRequest = {
|
||||
|
||||
fromJSON(object: any): QuerySmartContractStateRequest {
|
||||
const message = { ...baseQuerySmartContractStateRequest } as QuerySmartContractStateRequest;
|
||||
message.queryData = new Uint8Array();
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -1005,9 +1011,10 @@ export const QuerySmartContractStateResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySmartContractStateResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQuerySmartContractStateResponse } as QuerySmartContractStateResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1024,6 +1031,7 @@ export const QuerySmartContractStateResponse = {
|
||||
|
||||
fromJSON(object: any): QuerySmartContractStateResponse {
|
||||
const message = { ...baseQuerySmartContractStateResponse } as QuerySmartContractStateResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -1059,7 +1067,7 @@ export const QueryCodeRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodeRequest } as QueryCodeRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -1126,9 +1134,10 @@ export const CodeInfoResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfoResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCodeInfoResponse } as CodeInfoResponse;
|
||||
message.dataHash = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1157,6 +1166,7 @@ export const CodeInfoResponse = {
|
||||
|
||||
fromJSON(object: any): CodeInfoResponse {
|
||||
const message = { ...baseCodeInfoResponse } as CodeInfoResponse;
|
||||
message.dataHash = new Uint8Array();
|
||||
if (object.codeId !== undefined && object.codeId !== null) {
|
||||
message.codeId = Long.fromString(object.codeId);
|
||||
} else {
|
||||
@ -1239,9 +1249,10 @@ export const QueryCodeResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodeResponse } as QueryCodeResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -1261,6 +1272,7 @@ export const QueryCodeResponse = {
|
||||
|
||||
fromJSON(object: any): QueryCodeResponse {
|
||||
const message = { ...baseQueryCodeResponse } as QueryCodeResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.codeInfo !== undefined && object.codeInfo !== null) {
|
||||
message.codeInfo = CodeInfoResponse.fromJSON(object.codeInfo);
|
||||
} else {
|
||||
@ -1308,7 +1320,7 @@ export const QueryCodesRequest = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesRequest {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodesRequest } as QueryCodesRequest;
|
||||
while (reader.pos < end) {
|
||||
@ -1367,7 +1379,7 @@ export const QueryCodesResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCodesResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseQueryCodesResponse } as QueryCodesResponse;
|
||||
message.codeInfos = [];
|
||||
@ -1552,3 +1564,8 @@ export type DeepPartial<T> = T extends Builtin
|
||||
: T extends {}
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: Partial<T>;
|
||||
|
||||
if (_m0.util.Long !== Long) {
|
||||
_m0.util.Long = Long as any;
|
||||
_m0.configure();
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* eslint-disable */
|
||||
import { AccessConfig } from "../../../../x/wasm/internal/types/types";
|
||||
import Long from "long";
|
||||
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
||||
import _m0 from "protobufjs/minimal";
|
||||
import { AccessConfig } from "../../../../x/wasm/internal/types/types";
|
||||
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
||||
|
||||
export const protobufPackage = "cosmwasm.wasm.v1beta1";
|
||||
|
||||
@ -136,9 +136,10 @@ export const MsgStoreCode = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCode {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgStoreCode } as MsgStoreCode;
|
||||
message.wasmByteCode = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -167,6 +168,7 @@ export const MsgStoreCode = {
|
||||
|
||||
fromJSON(object: any): MsgStoreCode {
|
||||
const message = { ...baseMsgStoreCode } as MsgStoreCode;
|
||||
message.wasmByteCode = new Uint8Array();
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -251,7 +253,7 @@ export const MsgStoreCodeResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgStoreCodeResponse } as MsgStoreCodeResponse;
|
||||
while (reader.pos < end) {
|
||||
@ -321,10 +323,11 @@ export const MsgInstantiateContract = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgInstantiateContract } as MsgInstantiateContract;
|
||||
message.funds = [];
|
||||
message.initMsg = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -357,6 +360,7 @@ export const MsgInstantiateContract = {
|
||||
fromJSON(object: any): MsgInstantiateContract {
|
||||
const message = { ...baseMsgInstantiateContract } as MsgInstantiateContract;
|
||||
message.funds = [];
|
||||
message.initMsg = new Uint8Array();
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -455,9 +459,10 @@ export const MsgInstantiateContractResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgInstantiateContractResponse } as MsgInstantiateContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -477,6 +482,7 @@ export const MsgInstantiateContractResponse = {
|
||||
|
||||
fromJSON(object: any): MsgInstantiateContractResponse {
|
||||
const message = { ...baseMsgInstantiateContractResponse } as MsgInstantiateContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.address !== undefined && object.address !== null) {
|
||||
message.address = String(object.address);
|
||||
} else {
|
||||
@ -532,10 +538,11 @@ export const MsgExecuteContract = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgExecuteContract } as MsgExecuteContract;
|
||||
message.funds = [];
|
||||
message.msg = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -562,6 +569,7 @@ export const MsgExecuteContract = {
|
||||
fromJSON(object: any): MsgExecuteContract {
|
||||
const message = { ...baseMsgExecuteContract } as MsgExecuteContract;
|
||||
message.funds = [];
|
||||
message.msg = new Uint8Array();
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -635,9 +643,10 @@ export const MsgExecuteContractResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgExecuteContractResponse } as MsgExecuteContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -654,6 +663,7 @@ export const MsgExecuteContractResponse = {
|
||||
|
||||
fromJSON(object: any): MsgExecuteContractResponse {
|
||||
const message = { ...baseMsgExecuteContractResponse } as MsgExecuteContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -698,9 +708,10 @@ export const MsgMigrateContract = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContract {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMigrateContract } as MsgMigrateContract;
|
||||
message.migrateMsg = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -726,6 +737,7 @@ export const MsgMigrateContract = {
|
||||
|
||||
fromJSON(object: any): MsgMigrateContract {
|
||||
const message = { ...baseMsgMigrateContract } as MsgMigrateContract;
|
||||
message.migrateMsg = new Uint8Array();
|
||||
if (object.sender !== undefined && object.sender !== null) {
|
||||
message.sender = String(object.sender);
|
||||
} else {
|
||||
@ -796,9 +808,10 @@ export const MsgMigrateContractResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContractResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgMigrateContractResponse } as MsgMigrateContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -815,6 +828,7 @@ export const MsgMigrateContractResponse = {
|
||||
|
||||
fromJSON(object: any): MsgMigrateContractResponse {
|
||||
const message = { ...baseMsgMigrateContractResponse } as MsgMigrateContractResponse;
|
||||
message.data = new Uint8Array();
|
||||
if (object.data !== undefined && object.data !== null) {
|
||||
message.data = bytesFromBase64(object.data);
|
||||
}
|
||||
@ -856,7 +870,7 @@ export const MsgUpdateAdmin = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdmin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUpdateAdmin } as MsgUpdateAdmin;
|
||||
while (reader.pos < end) {
|
||||
@ -936,7 +950,7 @@ export const MsgUpdateAdminResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdminResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgUpdateAdminResponse } as MsgUpdateAdminResponse;
|
||||
while (reader.pos < end) {
|
||||
@ -980,7 +994,7 @@ export const MsgClearAdmin = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdmin {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgClearAdmin } as MsgClearAdmin;
|
||||
while (reader.pos < end) {
|
||||
@ -1046,7 +1060,7 @@ export const MsgClearAdminResponse = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdminResponse {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseMsgClearAdminResponse } as MsgClearAdminResponse;
|
||||
while (reader.pos < end) {
|
||||
@ -1179,3 +1193,8 @@ export type DeepPartial<T> = T extends Builtin
|
||||
: T extends {}
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: Partial<T>;
|
||||
|
||||
if (_m0.util.Long !== Long) {
|
||||
_m0.util.Long = Long as any;
|
||||
_m0.configure();
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ export const AccessTypeParam = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AccessTypeParam {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAccessTypeParam } as AccessTypeParam;
|
||||
while (reader.pos < end) {
|
||||
@ -247,7 +247,7 @@ export const AccessConfig = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfig {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAccessConfig } as AccessConfig;
|
||||
while (reader.pos < end) {
|
||||
@ -322,7 +322,7 @@ export const Params = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseParams } as Params;
|
||||
while (reader.pos < end) {
|
||||
@ -422,9 +422,10 @@ export const CodeInfo = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseCodeInfo } as CodeInfo;
|
||||
message.codeHash = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -453,6 +454,7 @@ export const CodeInfo = {
|
||||
|
||||
fromJSON(object: any): CodeInfo {
|
||||
const message = { ...baseCodeInfo } as CodeInfo;
|
||||
message.codeHash = new Uint8Array();
|
||||
if (object.codeHash !== undefined && object.codeHash !== null) {
|
||||
message.codeHash = bytesFromBase64(object.codeHash);
|
||||
}
|
||||
@ -550,7 +552,7 @@ export const ContractInfo = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfo {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractInfo } as ContractInfo;
|
||||
while (reader.pos < end) {
|
||||
@ -685,9 +687,10 @@ export const ContractCodeHistoryEntry = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): ContractCodeHistoryEntry {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseContractCodeHistoryEntry } as ContractCodeHistoryEntry;
|
||||
message.msg = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -713,6 +716,7 @@ export const ContractCodeHistoryEntry = {
|
||||
|
||||
fromJSON(object: any): ContractCodeHistoryEntry {
|
||||
const message = { ...baseContractCodeHistoryEntry } as ContractCodeHistoryEntry;
|
||||
message.msg = new Uint8Array();
|
||||
if (object.operation !== undefined && object.operation !== null) {
|
||||
message.operation = contractCodeHistoryOperationTypeFromJSON(object.operation);
|
||||
} else {
|
||||
@ -786,7 +790,7 @@ export const AbsoluteTxPosition = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): AbsoluteTxPosition {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseAbsoluteTxPosition } as AbsoluteTxPosition;
|
||||
while (reader.pos < end) {
|
||||
@ -858,9 +862,11 @@ export const Model = {
|
||||
},
|
||||
|
||||
decode(input: _m0.Reader | Uint8Array, length?: number): Model {
|
||||
const reader = input instanceof Uint8Array ? new _m0.Reader(input) : input;
|
||||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
||||
let end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = { ...baseModel } as Model;
|
||||
message.key = new Uint8Array();
|
||||
message.value = new Uint8Array();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
@ -880,6 +886,8 @@ export const Model = {
|
||||
|
||||
fromJSON(object: any): Model {
|
||||
const message = { ...baseModel } as Model;
|
||||
message.key = new Uint8Array();
|
||||
message.value = new Uint8Array();
|
||||
if (object.key !== undefined && object.key !== null) {
|
||||
message.key = bytesFromBase64(object.key);
|
||||
}
|
||||
@ -955,3 +963,8 @@ export type DeepPartial<T> = T extends Builtin
|
||||
: T extends {}
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: Partial<T>;
|
||||
|
||||
if (_m0.util.Long !== Long) {
|
||||
_m0.util.Long = Long as any;
|
||||
_m0.configure();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user