Skip to content

Commit f421662

Browse files
authored
Merge pull request #152 from hyperweb-io/fix-removing-712
fix compile errors
2 parents ab1b4c8 + ee0f67d commit f421662

File tree

4 files changed

+1
-111
lines changed

4 files changed

+1
-111
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
export * from './docAuth';
21
export * from './events';
3-
export * from './signer';
42
export * from './transaction';
5-
export * from './wallet';

networks/ethereum/src/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ export * from './abiEncoder'
22
export * from './address'
33
export * from './common'
44
export * from './ContractEncoder'
5-
export * from './denominations'
65
export * from './encoding'

networks/injective/src/defaults.ts

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { toDecoder } from '@interchainjs/cosmos/utils';
1111
import { BaseAccount } from '@interchainjs/cosmos-types/cosmos/auth/v1beta1/auth';
1212
import { PubKey as Secp256k1PubKey } from '@interchainjs/cosmos-types/cosmos/crypto/secp256k1/keys';
1313
import { EthAccount } from '@interchainjs/cosmos-types/injective/types/v1beta1/account';
14-
import { Eip712Doc } from '@interchainjs/ethereum/types';
1514
import { IKey, SignerConfig } from '@interchainjs/types';
1615

1716
import { DomainOptions, EthereumChainId } from './types';
@@ -87,96 +86,4 @@ export const defaultDomainOptions: Required<DomainOptions> = {
8786
ethereumChainId: EthereumChainId.Injective,
8887
salt: '0',
8988
verifyingContract: 'cosmos',
90-
};
91-
92-
export const defaultEip712Types: Pick<Eip712Doc, 'types' | 'primaryType'> = {
93-
primaryType: 'Tx',
94-
types: {
95-
EIP712Domain: [
96-
{
97-
name: 'name',
98-
type: 'string',
99-
},
100-
{
101-
name: 'version',
102-
type: 'string',
103-
},
104-
{
105-
name: 'chainId',
106-
type: 'uint256',
107-
},
108-
{
109-
name: 'verifyingContract',
110-
type: 'string',
111-
},
112-
{
113-
name: 'salt',
114-
type: 'string',
115-
},
116-
],
117-
Tx: [
118-
{
119-
name: 'account_number',
120-
type: 'string',
121-
},
122-
{
123-
name: 'chain_id',
124-
type: 'string',
125-
},
126-
{
127-
name: 'fee',
128-
type: 'Fee',
129-
},
130-
{
131-
name: 'memo',
132-
type: 'string',
133-
},
134-
{
135-
name: 'msgs',
136-
type: 'Msg[]',
137-
},
138-
{
139-
name: 'sequence',
140-
type: 'string',
141-
},
142-
{
143-
name: 'timeout_height',
144-
type: 'string',
145-
},
146-
],
147-
Fee: [
148-
{
149-
name: 'feePayer',
150-
type: 'string',
151-
},
152-
{
153-
name: 'amount',
154-
type: 'Coin[]',
155-
},
156-
{
157-
name: 'gas',
158-
type: 'string',
159-
},
160-
],
161-
Coin: [
162-
{
163-
name: 'denom',
164-
type: 'string',
165-
},
166-
{
167-
name: 'amount',
168-
type: 'string',
169-
},
170-
],
171-
Msg: [
172-
{
173-
name: 'type',
174-
type: 'string',
175-
},
176-
{
177-
name: 'value',
178-
type: 'MsgValue',
179-
},
180-
],
181-
},
182-
};
89+
};

networks/injective/src/types/signer.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,22 @@
11
import {
2-
CosmosSignArgs,
32
DocOptions as CosmosDocOptions,
43
} from '@interchainjs/cosmos/types';
54
import {
65
CosmosAminoSigner,
76
CosmosDirectSigner,
8-
UniCosmosBaseSigner,
97
} from '@interchainjs/cosmos/types';
108
import {
119
BaseWalletAccount,
12-
Eip712Data,
13-
InjectiveDomain,
14-
InjectiveEip712Message,
1510
} from '@interchainjs/types';
1611

1712
export type InjectiveDirectSigner = CosmosDirectSigner;
1813
export type InjectiveAminoSigner = CosmosAminoSigner;
19-
export type InjectiveEip712Signer = UniCosmosBaseSigner<InjectiveEip712Doc>;
2014

2115
export interface InjectiveAccount extends BaseWalletAccount {
2216
cosmosAddress: string;
2317
ethereumAddress: string;
2418
}
2519

26-
export type InjectiveEip712Doc = Eip712Data<
27-
InjectiveDomain,
28-
InjectiveEip712Message
29-
>;
30-
31-
export type InjectiveEip712SignArgs = CosmosSignArgs<DocOptions>;
32-
3320
export enum EthereumChainId {
3421
Mainnet = 1,
3522
Ropsten = 3,

0 commit comments

Comments
 (0)