Skip to content

Commit

Permalink
Merge pull request #1 from comdex-official/updated-codec-filed
Browse files Browse the repository at this point in the history
Added codec files.
  • Loading branch information
srinu391 authored Oct 25, 2021
2 parents d94f561 + 000b0ab commit 1bfb773
Show file tree
Hide file tree
Showing 72 changed files with 29,188 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ bower_components
# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/
Expand Down
21 changes: 21 additions & 0 deletions build/comdex/asset/v1beta1/asset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Long from "long";
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "comdex.asset.v1beta1";
export interface Asset {
id: Long;
name: string;
denom: string;
decimals: Long;
}
export declare const Asset: {
encode(message: Asset, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Asset;
fromJSON(object: any): Asset;
toJSON(message: Asset): unknown;
fromPartial(object: DeepPartial<Asset>): Asset;
};
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
export {};
130 changes: 130 additions & 0 deletions build/comdex/asset/v1beta1/asset.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/comdex/asset/v1beta1/asset.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions build/comdex/asset/v1beta1/msg.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import Long from "long";
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "comdex.asset.v1beta1";
export interface MsgAddAssetRequest {
from: string;
name: string;
denom: string;
decimals: Long;
}
export interface MsgAddAssetResponse {
}
export interface MsgUpdateAssetRequest {
from: string;
id: Long;
name: string;
denom: string;
decimals: Long;
}
export interface MsgUpdateAssetResponse {
}
export interface MsgAddPairRequest {
from: string;
assetIn: Long;
assetOut: Long;
liquidationRatio: string;
}
export interface MsgAddPairResponse {
}
export interface MsgUpdatePairRequest {
from: string;
id: Long;
liquidationRatio: string;
}
export interface MsgUpdatePairResponse {
}
export declare const MsgAddAssetRequest: {
encode(message: MsgAddAssetRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAddAssetRequest;
fromJSON(object: any): MsgAddAssetRequest;
toJSON(message: MsgAddAssetRequest): unknown;
fromPartial(object: DeepPartial<MsgAddAssetRequest>): MsgAddAssetRequest;
};
export declare const MsgAddAssetResponse: {
encode(_: MsgAddAssetResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAddAssetResponse;
fromJSON(_: any): MsgAddAssetResponse;
toJSON(_: MsgAddAssetResponse): unknown;
fromPartial(_: DeepPartial<MsgAddAssetResponse>): MsgAddAssetResponse;
};
export declare const MsgUpdateAssetRequest: {
encode(message: MsgUpdateAssetRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateAssetRequest;
fromJSON(object: any): MsgUpdateAssetRequest;
toJSON(message: MsgUpdateAssetRequest): unknown;
fromPartial(object: DeepPartial<MsgUpdateAssetRequest>): MsgUpdateAssetRequest;
};
export declare const MsgUpdateAssetResponse: {
encode(_: MsgUpdateAssetResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateAssetResponse;
fromJSON(_: any): MsgUpdateAssetResponse;
toJSON(_: MsgUpdateAssetResponse): unknown;
fromPartial(_: DeepPartial<MsgUpdateAssetResponse>): MsgUpdateAssetResponse;
};
export declare const MsgAddPairRequest: {
encode(message: MsgAddPairRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAddPairRequest;
fromJSON(object: any): MsgAddPairRequest;
toJSON(message: MsgAddPairRequest): unknown;
fromPartial(object: DeepPartial<MsgAddPairRequest>): MsgAddPairRequest;
};
export declare const MsgAddPairResponse: {
encode(_: MsgAddPairResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAddPairResponse;
fromJSON(_: any): MsgAddPairResponse;
toJSON(_: MsgAddPairResponse): unknown;
fromPartial(_: DeepPartial<MsgAddPairResponse>): MsgAddPairResponse;
};
export declare const MsgUpdatePairRequest: {
encode(message: MsgUpdatePairRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdatePairRequest;
fromJSON(object: any): MsgUpdatePairRequest;
toJSON(message: MsgUpdatePairRequest): unknown;
fromPartial(object: DeepPartial<MsgUpdatePairRequest>): MsgUpdatePairRequest;
};
export declare const MsgUpdatePairResponse: {
encode(_: MsgUpdatePairResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdatePairResponse;
fromJSON(_: any): MsgUpdatePairResponse;
toJSON(_: MsgUpdatePairResponse): unknown;
fromPartial(_: DeepPartial<MsgUpdatePairResponse>): MsgUpdatePairResponse;
};
export interface MsgService {
MsgAddAsset(request: MsgAddAssetRequest): Promise<MsgAddAssetResponse>;
MsgUpdateAsset(request: MsgUpdateAssetRequest): Promise<MsgUpdateAssetResponse>;
MsgAddPair(request: MsgAddPairRequest): Promise<MsgAddPairResponse>;
MsgUpdatePair(request: MsgUpdatePairRequest): Promise<MsgUpdatePairResponse>;
}
export declare class MsgServiceClientImpl implements MsgService {
private readonly rpc;
constructor(rpc: Rpc);
MsgAddAsset(request: MsgAddAssetRequest): Promise<MsgAddAssetResponse>;
MsgUpdateAsset(request: MsgUpdateAssetRequest): Promise<MsgUpdateAssetResponse>;
MsgAddPair(request: MsgAddPairRequest): Promise<MsgAddPairResponse>;
MsgUpdatePair(request: MsgUpdatePairRequest): Promise<MsgUpdatePairResponse>;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
export {};
Loading

0 comments on commit 1bfb773

Please sign in to comment.