Skip to content

Commit

Permalink
Revert "feat: ica/icq api and models definition"
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 authored Oct 30, 2023
1 parent 7711a24 commit 26470a3
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 585 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terra-money/feather.js",
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.1",
"description": "The JavaScript SDK for Terra and Feather chains",
"license": "MIT",
"author": "Terraform Labs, PTE.",
Expand Down Expand Up @@ -87,7 +87,7 @@
"dependencies": {
"@ethersproject/bytes": "^5.7.0",
"@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7",
"@terra-money/terra.proto": "^4.0.4",
"@terra-money/terra.proto": "^4.0.3",
"assert": "^2.0.0",
"axios": "^0.27.2",
"bech32": "^2.0.0",
Expand Down
6 changes: 0 additions & 6 deletions src/client/lcd/LCDClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import { AllianceAPI } from './api/AllianceAPI';
import { PobAPI } from './api/PobAPI';
import { FeeshareAPI } from './api/FeeshareAPI';
import { GovV1API } from './api/GovV1API';
import { ICAv1API } from './api/ICAv1API';
import { ICQv1API } from './api/ICQv1API';

export interface LCDClientConfig {
/**
Expand Down Expand Up @@ -116,8 +114,6 @@ export class LCDClient {
public wasm: WasmAPI;
public tx: TxAPI;
public ibc: IbcAPI;
public icaV1: ICAv1API;
public icqV1: ICQv1API;
public ibcTransfer: IbcTransferAPI;
public pob: PobAPI;
public feeshare: FeeshareAPI;
Expand Down Expand Up @@ -161,8 +157,6 @@ export class LCDClient {
this.tendermint = new TendermintAPI(this);
this.wasm = new WasmAPI(this);
this.ibc = new IbcAPI(this);
this.icaV1 = new ICAv1API(this);
this.icqV1 = new ICQv1API(this);
this.ibcTransfer = new IbcTransferAPI(this);
this.tx = new TxAPI(this);
this.pob = new PobAPI(this);
Expand Down
64 changes: 0 additions & 64 deletions src/client/lcd/api/ICAv1API.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/client/lcd/api/ICQv1API.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/core/Msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ import {
MsgRegisterFeeShare,
MsgUpdateFeeShare,
} from './feeshare';
import {
ICAMsg,
MsgRegisterInterchainAccount,
MsgSendTx,
} from './ica/controller/v1/msgs';

export type Msg =
| BankMsg
Expand All @@ -132,7 +127,6 @@ export type Msg =
| IbcClientMsg
| IbcConnectionMsg
| IbcChannelMsg
| ICAMsg
| AllianceMsg
| CustomMsg
| CrisisMsg
Expand Down Expand Up @@ -175,7 +169,6 @@ export namespace Msg {
| IbcClientMsg.Data
| IbcConnectionMsg.Data
| IbcChannelMsg.Data
| ICAMsg.Data
| AllianceMsg.Data
| CustomMsg.Data
| CrisisMsg.Data
Expand All @@ -195,7 +188,6 @@ export namespace Msg {
| VestingMsg.Proto
| WasmMsg.Proto
| IbcTransferMsg.Proto
| ICAMsg.Proto
| IbcClientMsg.Proto
| IbcConnectionMsg.Proto
| IbcChannelMsg.Proto
Expand Down Expand Up @@ -500,7 +492,6 @@ export namespace Msg {
return MsgAminoCustom.fromAmino(data as any, isClassic);
}
}

export function fromData(data: Msg.Data, isClassic?: boolean): Msg {
switch (data['@type']) {
// alliance
Expand Down Expand Up @@ -625,12 +616,6 @@ export namespace Msg {
case '/ibc.applications.transfer.v1.MsgTransfer':
return MsgTransfer.fromData(data, isClassic);

// ibc ica
case '/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount':
return MsgRegisterInterchainAccount.fromData(data, isClassic);
case '/ibc.applications.interchain_accounts.controller.v1.MsgSendTx':
return MsgSendTx.fromData(data, isClassic);

// ibc-client
case '/ibc.core.client.v1.MsgCreateClient':
return MsgCreateClient.fromData(data, isClassic);
Expand Down Expand Up @@ -829,12 +814,6 @@ export namespace Msg {
case '/ibc.applications.transfer.v1.MsgTransfer':
return MsgTransfer.unpackAny(proto, isClassic);

// ibc ica
case '/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount':
return MsgRegisterInterchainAccount.unpackAny(proto, isClassic);
case '/ibc.applications.interchain_accounts.controller.v1.MsgSendTx':
return MsgSendTx.unpackAny(proto, isClassic);

// ibc-client
case '/ibc.core.client.v1.MsgCreateClient':
return MsgCreateClient.unpackAny(proto, isClassic);
Expand Down
91 changes: 0 additions & 91 deletions src/core/ica/controller/v1/CosmosTx.ts

This file was deleted.

Loading

0 comments on commit 26470a3

Please sign in to comment.