Skip to content

Commit

Permalink
Update codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-thong committed Apr 8, 2022
1 parent c27038b commit 195fed6
Show file tree
Hide file tree
Showing 34 changed files with 1,686 additions and 1,009 deletions.
2 changes: 1 addition & 1 deletion src/codec/btcx/denom_cross_chain_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Long from "long";
import _m0 from "protobufjs/minimal";
import { DenomInfo } from "../btcx/denom_info";

export const protobufPackage = "Switcheo.polynetworkcosmos.btcx";
export const protobufPackage = "Switcheo.carbon.btcx";

export interface DenomCrossChainInfo {
denomInfo?: DenomInfo;
Expand Down
2 changes: 1 addition & 1 deletion src/codec/btcx/denom_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.btcx";
export const protobufPackage = "Switcheo.carbon.btcx";

export interface DenomInfo {
creator: string;
Expand Down
2 changes: 1 addition & 1 deletion src/codec/btcx/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.btcx";
export const protobufPackage = "Switcheo.carbon.btcx";

/** GenesisState defines the btcx module's genesis state. */
export interface GenesisState {}
Expand Down
6 changes: 3 additions & 3 deletions src/codec/btcx/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Long from "long";
import _m0 from "protobufjs/minimal";
import { DenomInfo } from "../btcx/denom_info";

export const protobufPackage = "Switcheo.polynetworkcosmos.btcx";
export const protobufPackage = "Switcheo.carbon.btcx";

/** this line is used by starport scaffolding # 3 */
export interface QueryGetDenomInfoRequest {
Expand Down Expand Up @@ -367,7 +367,7 @@ export class QueryClientImpl implements Query {
): Promise<QueryGetDenomInfoResponse> {
const data = QueryGetDenomInfoRequest.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.btcx.Query",
"Switcheo.carbon.btcx.Query",
"DenomInfo",
data
);
Expand All @@ -381,7 +381,7 @@ export class QueryClientImpl implements Query {
): Promise<QueryGetDenomCrossChainInfoResponse> {
const data = QueryGetDenomCrossChainInfoRequest.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.btcx.Query",
"Switcheo.carbon.btcx.Query",
"DenomCrossChainInfo",
data
);
Expand Down
16 changes: 4 additions & 12 deletions src/codec/btcx/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.btcx";
export const protobufPackage = "Switcheo.carbon.btcx";

/** this line is used by starport scaffolding # proto/tx/message */
export interface MsgCreate {
Expand Down Expand Up @@ -474,7 +474,7 @@ export class MsgClientImpl implements Msg {
Create(request: MsgCreate): Promise<MsgCreateResponse> {
const data = MsgCreate.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.btcx.Msg",
"Switcheo.carbon.btcx.Msg",
"Create",
data
);
Expand All @@ -485,21 +485,13 @@ export class MsgClientImpl implements Msg {

Bind(request: MsgBind): Promise<MsgBindResponse> {
const data = MsgBind.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.btcx.Msg",
"Bind",
data
);
const promise = this.rpc.request("Switcheo.carbon.btcx.Msg", "Bind", data);
return promise.then((data) => MsgBindResponse.decode(new _m0.Reader(data)));
}

Lock(request: MsgLock): Promise<MsgLockResponse> {
const data = MsgLock.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.btcx.Msg",
"Lock",
data
);
const promise = this.rpc.request("Switcheo.carbon.btcx.Msg", "Lock", data);
return promise.then((data) => MsgLockResponse.decode(new _m0.Reader(data)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/codec/ccm/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.ccm";
export const protobufPackage = "Switcheo.carbon.ccm";

/** GenesisState defines the ccm module's genesis state. */
export interface GenesisState {
Expand Down
4 changes: 2 additions & 2 deletions src/codec/ccm/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.ccm";
export const protobufPackage = "Switcheo.carbon.ccm";

/** this line is used by starport scaffolding # 3 */
export interface QueryCheckModuleContractRequest {
Expand Down Expand Up @@ -216,7 +216,7 @@ export class QueryClientImpl implements Query {
): Promise<QueryCheckModuleContractResponse> {
const data = QueryCheckModuleContractRequest.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.ccm.Query",
"Switcheo.carbon.ccm.Query",
"CheckModuleContract",
data
);
Expand Down
4 changes: 2 additions & 2 deletions src/codec/ccm/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Long from "long";
import _m0 from "protobufjs/minimal";

export const protobufPackage = "Switcheo.polynetworkcosmos.ccm";
export const protobufPackage = "Switcheo.carbon.ccm";

/** this line is used by starport scaffolding # proto/tx/message */
export interface MsgProcessCrossChainTx {
Expand Down Expand Up @@ -218,7 +218,7 @@ export class MsgClientImpl implements Msg {
): Promise<MsgProcessCrossChainTxResponse> {
const data = MsgProcessCrossChainTx.encode(request).finish();
const promise = this.rpc.request(
"Switcheo.polynetworkcosmos.ccm.Msg",
"Switcheo.carbon.ccm.Msg",
"Process",
data
);
Expand Down
Loading

0 comments on commit 195fed6

Please sign in to comment.