Skip to content

Commit

Permalink
removed amino encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
freeelancer committed Jan 11, 2024
1 parent e5e2af5 commit 24560b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/core/Msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ import {
} from './ica/controller/v1/msgs';
import { MsgForceTransfer } from './tokenfactory/MsgForceTransfer';
import { MsgSetDenomMetadata } from './tokenfactory/MsgSetDenomMetadata';
import { FeemarketMsg, MsgParams } from './feemarket/msgs';
import { MsgState } from './feemarket/msgs/MsgState';
import { FeemarketMsg, MsgParams } from './feemarket/proposals';
import { MsgState } from './feemarket/proposals/MsgState';

export type Msg =
| BankMsg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,12 @@ export class MsgParams extends JSONSerializable<
}

public static fromAmino(data: MsgParams.Amino): MsgParams {
const {
value: { params, authority },
} = data;
return new MsgParams(Params.fromAmino(params), authority);
data;
throw new Error('not implemented');
}

public toAmino(): MsgParams.Amino {
const { params, authority } = this;
return {
type: 'feemarket/MsgParams',
value: {
params: params.toAmino(),
authority: authority,
},
};
throw new Error('not implemented');
}

public static fromData(proto: MsgParams.Data): MsgParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,12 @@ export class MsgState extends JSONSerializable<
}

public static fromAmino(data: MsgState.Amino): MsgState {
const {
value: { state, authority },
} = data;
return new MsgState(State.fromAmino(state), authority);
data;
throw new Error('not implemented');
}

public toAmino(): MsgState.Amino {
const { state, authority } = this;
return {
type: 'feemarket/MsgState',
value: {
state: state.toAmino(),
authority: authority,
},
};
throw new Error('not implemented');
}

public static fromData(proto: MsgState.Data): MsgState {
Expand Down
File renamed without changes.

0 comments on commit 24560b5

Please sign in to comment.