Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Sep 11, 2024
2 parents e700c49 + 6ac37de commit c0808cf
Show file tree
Hide file tree
Showing 64 changed files with 959 additions and 967 deletions.
12 changes: 6 additions & 6 deletions src/codegen/confio/proofs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,16 +1077,16 @@ export const LeafOp = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.hash = (reader.int32() as any);
message.hash = reader.int32() as any;
break;
case 2:
message.prehashKey = (reader.int32() as any);
message.prehashKey = reader.int32() as any;
break;
case 3:
message.prehashValue = (reader.int32() as any);
message.prehashValue = reader.int32() as any;
break;
case 4:
message.length = (reader.int32() as any);
message.length = reader.int32() as any;
break;
case 5:
message.prefix = reader.bytes();
Expand Down Expand Up @@ -1180,7 +1180,7 @@ export const InnerOp = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.hash = (reader.int32() as any);
message.hash = reader.int32() as any;
break;
case 2:
message.prefix = reader.bytes();
Expand Down Expand Up @@ -1402,7 +1402,7 @@ export const InnerSpec = {
message.emptyChild = reader.bytes();
break;
case 6:
message.hash = (reader.int32() as any);
message.hash = reader.int32() as any;
break;
default:
reader.skipType(tag & 7);
Expand Down
24 changes: 12 additions & 12 deletions src/codegen/cosmos/auth/v1beta1/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ export const QueryAccountsResponse = {
aminoType: "cosmos-sdk/QueryAccountsResponse",
encode(message: QueryAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
for (const v of message.accounts) {
Any.encode((v! as Any), writer.uint32(10).fork()).ldelim();
Any.encode(v! as Any, writer.uint32(10).fork()).ldelim();
}
if (message.pagination !== undefined) {
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
Expand All @@ -711,7 +711,7 @@ export const QueryAccountsResponse = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.accounts.push((Any.decode(reader, reader.uint32()) as Any));
message.accounts.push(Any.decode(reader, reader.uint32()) as Any);
break;
case 2:
message.pagination = PageResponse.decode(reader, reader.uint32());
Expand Down Expand Up @@ -740,7 +740,7 @@ export const QueryAccountsResponse = {
toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino {
const obj: any = {};
if (message.accounts) {
obj.accounts = message.accounts.map(e => e ? Cosmos_authv1beta1AccountI_ToAmino((e as Any)) : undefined);
obj.accounts = message.accounts.map(e => e ? Cosmos_authv1beta1AccountI_ToAmino(e as Any) : undefined);
} else {
obj.accounts = message.accounts;
}
Expand Down Expand Up @@ -849,7 +849,7 @@ export const QueryAccountResponse = {
aminoType: "cosmos-sdk/QueryAccountResponse",
encode(message: QueryAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
if (message.account !== undefined) {
Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim();
Any.encode(message.account as Any, writer.uint32(10).fork()).ldelim();
}
return writer;
},
Expand All @@ -861,7 +861,7 @@ export const QueryAccountResponse = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.account = (Cosmos_authv1beta1AccountI_InterfaceDecoder(reader) as Any);
message.account = Cosmos_authv1beta1AccountI_InterfaceDecoder(reader) as Any;
break;
default:
reader.skipType(tag & 7);
Expand All @@ -884,7 +884,7 @@ export const QueryAccountResponse = {
},
toAmino(message: QueryAccountResponse): QueryAccountResponseAmino {
const obj: any = {};
obj.account = message.account ? Cosmos_authv1beta1AccountI_ToAmino((message.account as Any)) : undefined;
obj.account = message.account ? Cosmos_authv1beta1AccountI_ToAmino(message.account as Any) : undefined;
return obj;
},
fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse {
Expand Down Expand Up @@ -1103,7 +1103,7 @@ export const QueryModuleAccountsResponse = {
aminoType: "cosmos-sdk/QueryModuleAccountsResponse",
encode(message: QueryModuleAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
for (const v of message.accounts) {
Any.encode((v! as Any), writer.uint32(10).fork()).ldelim();
Any.encode(v! as Any, writer.uint32(10).fork()).ldelim();
}
return writer;
},
Expand All @@ -1115,7 +1115,7 @@ export const QueryModuleAccountsResponse = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.accounts.push((Any.decode(reader, reader.uint32()) as Any));
message.accounts.push(Any.decode(reader, reader.uint32()) as Any);
break;
default:
reader.skipType(tag & 7);
Expand All @@ -1137,7 +1137,7 @@ export const QueryModuleAccountsResponse = {
toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino {
const obj: any = {};
if (message.accounts) {
obj.accounts = message.accounts.map(e => e ? Cosmos_authv1beta1ModuleAccountI_ToAmino((e as Any)) : undefined);
obj.accounts = message.accounts.map(e => e ? Cosmos_authv1beta1ModuleAccountI_ToAmino(e as Any) : undefined);
} else {
obj.accounts = message.accounts;
}
Expand Down Expand Up @@ -1245,7 +1245,7 @@ export const QueryModuleAccountByNameResponse = {
aminoType: "cosmos-sdk/QueryModuleAccountByNameResponse",
encode(message: QueryModuleAccountByNameResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
if (message.account !== undefined) {
Any.encode((message.account as Any), writer.uint32(10).fork()).ldelim();
Any.encode(message.account as Any, writer.uint32(10).fork()).ldelim();
}
return writer;
},
Expand All @@ -1257,7 +1257,7 @@ export const QueryModuleAccountByNameResponse = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.account = (Cosmos_authv1beta1ModuleAccountI_InterfaceDecoder(reader) as Any);
message.account = Cosmos_authv1beta1ModuleAccountI_InterfaceDecoder(reader) as Any;
break;
default:
reader.skipType(tag & 7);
Expand All @@ -1280,7 +1280,7 @@ export const QueryModuleAccountByNameResponse = {
},
toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino {
const obj: any = {};
obj.account = message.account ? Cosmos_authv1beta1ModuleAccountI_ToAmino((message.account as Any)) : undefined;
obj.account = message.account ? Cosmos_authv1beta1ModuleAccountI_ToAmino(message.account as Any) : undefined;
return obj;
},
fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse {
Expand Down
12 changes: 6 additions & 6 deletions src/codegen/cosmos/authz/v1beta1/authz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const Grant = {
aminoType: "cosmos-sdk/Grant",
encode(message: Grant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
if (message.authorization !== undefined) {
Any.encode((message.authorization as Any), writer.uint32(10).fork()).ldelim();
Any.encode(message.authorization as Any, writer.uint32(10).fork()).ldelim();
}
if (message.expiration !== undefined) {
Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim();
Expand All @@ -243,7 +243,7 @@ export const Grant = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.authorization = (Cosmos_authzv1beta1Authorization_InterfaceDecoder(reader) as Any);
message.authorization = Cosmos_authzv1beta1Authorization_InterfaceDecoder(reader) as Any;
break;
case 2:
message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
Expand Down Expand Up @@ -273,7 +273,7 @@ export const Grant = {
},
toAmino(message: Grant): GrantAmino {
const obj: any = {};
obj.authorization = message.authorization ? Cosmos_authzv1beta1Authorization_ToAmino((message.authorization as Any)) : undefined;
obj.authorization = message.authorization ? Cosmos_authzv1beta1Authorization_ToAmino(message.authorization as Any) : undefined;
obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined;
return obj;
},
Expand Down Expand Up @@ -318,7 +318,7 @@ export const GrantAuthorization = {
writer.uint32(18).string(message.grantee);
}
if (message.authorization !== undefined) {
Any.encode((message.authorization as Any), writer.uint32(26).fork()).ldelim();
Any.encode(message.authorization as Any, writer.uint32(26).fork()).ldelim();
}
if (message.expiration !== undefined) {
Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim();
Expand All @@ -339,7 +339,7 @@ export const GrantAuthorization = {
message.grantee = reader.string();
break;
case 3:
message.authorization = (Cosmos_authzv1beta1Authorization_InterfaceDecoder(reader) as Any);
message.authorization = Cosmos_authzv1beta1Authorization_InterfaceDecoder(reader) as Any;
break;
case 4:
message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
Expand Down Expand Up @@ -379,7 +379,7 @@ export const GrantAuthorization = {
const obj: any = {};
obj.granter = message.granter === "" ? undefined : message.granter;
obj.grantee = message.grantee === "" ? undefined : message.grantee;
obj.authorization = message.authorization ? Cosmos_authzv1beta1Authorization_ToAmino((message.authorization as Any)) : undefined;
obj.authorization = message.authorization ? Cosmos_authzv1beta1Authorization_ToAmino(message.authorization as Any) : undefined;
obj.expiration = message.expiration ? Timestamp.toAmino(toTimestamp(message.expiration)) : undefined;
return obj;
},
Expand Down
6 changes: 3 additions & 3 deletions src/codegen/cosmos/authz/v1beta1/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export const MsgExec = {
writer.uint32(10).string(message.grantee);
}
for (const v of message.msgs) {
Any.encode((v! as Any), writer.uint32(18).fork()).ldelim();
Any.encode(v! as Any, writer.uint32(18).fork()).ldelim();
}
return writer;
},
Expand All @@ -353,7 +353,7 @@ export const MsgExec = {
message.grantee = reader.string();
break;
case 2:
message.msgs.push((Any.decode(reader, reader.uint32()) as Any));
message.msgs.push(Any.decode(reader, reader.uint32()) as Any);
break;
default:
reader.skipType(tag & 7);
Expand All @@ -380,7 +380,7 @@ export const MsgExec = {
const obj: any = {};
obj.grantee = message.grantee === "" ? undefined : message.grantee;
if (message.msgs) {
obj.msgs = message.msgs.map(e => e ? Cosmos_basev1beta1Msg_ToAmino((e as Any)) : undefined);
obj.msgs = message.msgs.map(e => e ? Cosmos_basev1beta1Msg_ToAmino(e as Any) : undefined);
} else {
obj.msgs = message.msgs;
}
Expand Down
Loading

0 comments on commit c0808cf

Please sign in to comment.