Skip to content

Commit

Permalink
regen code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Dec 31, 2024
1 parent b67c2b3 commit c3d4206
Show file tree
Hide file tree
Showing 429 changed files with 55,953 additions and 7,899 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { GlobalDecoderRegistry } from "../../../registry";
import { isSet, DeepPartial } from "../../../helpers";
import { JsonSafe } from "../../../json-safe";
import { GlobalDecoderRegistry } from "../../../registry";
export const protobufPackage = "akash.deployment.v1beta1";
/**
* DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Grant, GrantAmino, GrantSDKType } from "./authz";
import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { GlobalDecoderRegistry } from "../../../registry";
import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
import { JsonSafe } from "../../../json-safe";
import { GlobalDecoderRegistry } from "../../../registry";
export const protobufPackage = "cosmos.authz.v1beta1";
/**
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
Expand Down
1 change: 1 addition & 0 deletions __fixtures__/misc/output-impl-interfaces-gen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface TelescopeGeneratedCodec<
toProto?: (message: T) => Uint8Array;
fromProtoMsg?: (message: ProtoMsg) => T;
toProtoMsg?: (message: T) => Any;
registerTypeurl?: () => void;
}

export type TelescopeGeneratedType<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Duration, DurationAmino, DurationSDKType } from "../google/protobuf/dur
import { Timestamp, TimestampAmino, TimestampSDKType } from "../google/protobuf/timestamp";
import { isSet, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes, DeepPartial } from "../helpers";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { Decimal } from "@cosmjs/math";
import { JsonSafe } from "../json-safe";
import { toUtf8, fromBase64, fromUtf8, toBase64 } from "@cosmjs/encoding";
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
export interface EncodingTestForDontOmit {
/** scalar */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ExprValue, ExprValueAmino, ExprValueSDKType, IdRef, IdRefAmino, IdRefSD
import { FeatureSet_Utf8Validation, FeatureSet_Utf8ValidationSDKType, featureSet_Utf8ValidationFromJSON, featureSet_Utf8ValidationToJSON } from "../google/protobuf/descriptor";
import { TestNest_Graph, TestNest_GraphAmino, TestNest_GraphSDKType } from "./nest";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { isSet, DeepPartial, isObject } from "../helpers";
import { JsonSafe } from "../json-safe";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
/** VoteOption enumerates the valid vote options for a given governance proposal. */
export enum VoteOption {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EncodingTestForDontOmit, EncodingTestForDontOmitAmino, EncodingTestForDontOmitSDKType, EncodingTestForOmit, EncodingTestForOmitAmino, EncodingTestForOmitSDKType } from "./all_fields";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { isSet, DeepPartial } from "../helpers";
import { JsonSafe } from "../json-safe";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
/**
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface TelescopeGeneratedCodec<
toProto?: (message: T) => Uint8Array;
fromProtoMsg?: (message: ProtoMsg) => T;
toProtoMsg?: (message: T) => Any;
registerTypeurl?: () => void;
}

export type TelescopeGeneratedType<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Duration, DurationAmino, DurationSDKType } from "../google/protobuf/dur
import { Timestamp, TimestampAmino, TimestampSDKType } from "../google/protobuf/timestamp";
import { isSet, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes, DeepPartial } from "../helpers";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { Decimal } from "@cosmjs/math";
import { JsonSafe } from "../json-safe";
import { toUtf8, fromBase64, fromUtf8, toBase64 } from "@cosmjs/encoding";
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
export interface EncodingTestForDontOmit {
/** scalar */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ExprValue, ExprValueAmino, ExprValueSDKType, IdRef, IdRefAmino, IdRefSD
import { FeatureSet_Utf8Validation, FeatureSet_Utf8ValidationSDKType, featureSet_Utf8ValidationFromJSON, featureSet_Utf8ValidationToJSON } from "../google/protobuf/descriptor";
import { TestNest_Graph, TestNest_GraphAmino, TestNest_GraphSDKType } from "./nest";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { isSet, DeepPartial, isObject } from "../helpers";
import { JsonSafe } from "../json-safe";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
/** VoteOption enumerates the valid vote options for a given governance proposal. */
export enum VoteOption {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EncodingTestForDontOmit, EncodingTestForDontOmitAmino, EncodingTestForDontOmitSDKType, EncodingTestForOmit, EncodingTestForOmitAmino, EncodingTestForOmitSDKType } from "./all_fields";
import { BinaryReader, BinaryWriter } from "../binary";
import { GlobalDecoderRegistry } from "../registry";
import { isSet, DeepPartial } from "../helpers";
import { JsonSafe } from "../json-safe";
import { GlobalDecoderRegistry } from "../registry";
export const protobufPackage = "misc";
/**
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface TelescopeGeneratedCodec<
toProto?: (message: T) => Uint8Array;
fromProtoMsg?: (message: ProtoMsg) => T;
toProtoMsg?: (message: T) => Any;
registerTypeurl?: () => void;
}

export type TelescopeGeneratedType<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,81 +1,15 @@
/* eslint-disable */
import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute";
import { AminoMsg } from "@cosmjs/amino";
import { MsgSignProviderAttributes, MsgSignProviderAttributesSDKType, MsgDeleteProviderAttributes, MsgDeleteProviderAttributesSDKType } from "./audit";
export interface MsgSignProviderAttributesAminoType extends AminoMsg {
type: "akash/audit/testonly-sign-provider-attributes";
value: {
owner: string;
auditor: string;
attributes: {
key: string;
value: string;
}[];
};
}
export interface MsgDeleteProviderAttributesAminoType extends AminoMsg {
type: "akash/audit/testonly-delete-provider-attributes";
value: {
owner: string;
auditor: string;
keys: string[];
};
}
export const AminoConverter = {
"/akash.audit.v1beta1.MsgSignProviderAttributes": {
aminoType: "akash/audit/testonly-sign-provider-attributes",
toAmino: ({
owner,
auditor,
attributes
}: MsgSignProviderAttributes): MsgSignProviderAttributesAminoType["value"] => {
return {
owner,
auditor,
attributes: attributes.map(el0 => ({
key: el0.key,
value: el0.value
}))
};
},
fromAmino: ({
owner,
auditor,
attributes
}: MsgSignProviderAttributesAminoType["value"]): MsgSignProviderAttributes => {
return {
owner,
auditor,
attributes: attributes.map?.(el0 => ({
key: el0.key,
value: el0.value
}))
};
}
toAmino: MsgSignProviderAttributes.toAmino,
fromAmino: MsgSignProviderAttributes.fromAmino
},
"/akash.audit.v1beta1.MsgDeleteProviderAttributes": {
aminoType: "akash/audit/testonly-delete-provider-attributes",
toAmino: ({
owner,
auditor,
keys
}: MsgDeleteProviderAttributes): MsgDeleteProviderAttributesAminoType["value"] => {
return {
owner,
auditor,
keys
};
},
fromAmino: ({
owner,
auditor,
keys
}: MsgDeleteProviderAttributesAminoType["value"]): MsgDeleteProviderAttributes => {
return {
owner,
auditor,
keys
};
}
toAmino: MsgDeleteProviderAttributes.toAmino,
fromAmino: MsgDeleteProviderAttributes.fromAmino
}
};
Loading

0 comments on commit c3d4206

Please sign in to comment.