diff --git a/networks/ethereum/src/types/index.ts b/networks/ethereum/src/types/index.ts index 4d1f537a2..7a3901c79 100644 --- a/networks/ethereum/src/types/index.ts +++ b/networks/ethereum/src/types/index.ts @@ -1,5 +1,2 @@ -export * from './docAuth'; export * from './events'; -export * from './signer'; export * from './transaction'; -export * from './wallet'; diff --git a/networks/ethereum/src/utils/index.ts b/networks/ethereum/src/utils/index.ts index c08c7c311..d54fe0897 100644 --- a/networks/ethereum/src/utils/index.ts +++ b/networks/ethereum/src/utils/index.ts @@ -2,5 +2,4 @@ export * from './abiEncoder' export * from './address' export * from './common' export * from './ContractEncoder' -export * from './denominations' export * from './encoding' \ No newline at end of file diff --git a/networks/injective/src/defaults.ts b/networks/injective/src/defaults.ts index f04e6df2a..3cc9c1e69 100644 --- a/networks/injective/src/defaults.ts +++ b/networks/injective/src/defaults.ts @@ -11,7 +11,6 @@ import { toDecoder } from '@interchainjs/cosmos/utils'; import { BaseAccount } from '@interchainjs/cosmos-types/cosmos/auth/v1beta1/auth'; import { PubKey as Secp256k1PubKey } from '@interchainjs/cosmos-types/cosmos/crypto/secp256k1/keys'; import { EthAccount } from '@interchainjs/cosmos-types/injective/types/v1beta1/account'; -import { Eip712Doc } from '@interchainjs/ethereum/types'; import { IKey, SignerConfig } from '@interchainjs/types'; import { DomainOptions, EthereumChainId } from './types'; @@ -87,96 +86,4 @@ export const defaultDomainOptions: Required = { ethereumChainId: EthereumChainId.Injective, salt: '0', verifyingContract: 'cosmos', -}; - -export const defaultEip712Types: Pick = { - primaryType: 'Tx', - types: { - EIP712Domain: [ - { - name: 'name', - type: 'string', - }, - { - name: 'version', - type: 'string', - }, - { - name: 'chainId', - type: 'uint256', - }, - { - name: 'verifyingContract', - type: 'string', - }, - { - name: 'salt', - type: 'string', - }, - ], - Tx: [ - { - name: 'account_number', - type: 'string', - }, - { - name: 'chain_id', - type: 'string', - }, - { - name: 'fee', - type: 'Fee', - }, - { - name: 'memo', - type: 'string', - }, - { - name: 'msgs', - type: 'Msg[]', - }, - { - name: 'sequence', - type: 'string', - }, - { - name: 'timeout_height', - type: 'string', - }, - ], - Fee: [ - { - name: 'feePayer', - type: 'string', - }, - { - name: 'amount', - type: 'Coin[]', - }, - { - name: 'gas', - type: 'string', - }, - ], - Coin: [ - { - name: 'denom', - type: 'string', - }, - { - name: 'amount', - type: 'string', - }, - ], - Msg: [ - { - name: 'type', - type: 'string', - }, - { - name: 'value', - type: 'MsgValue', - }, - ], - }, -}; +}; \ No newline at end of file diff --git a/networks/injective/src/types/signer.ts b/networks/injective/src/types/signer.ts index bb59fdf34..c94932a0f 100644 --- a/networks/injective/src/types/signer.ts +++ b/networks/injective/src/types/signer.ts @@ -1,35 +1,22 @@ import { - CosmosSignArgs, DocOptions as CosmosDocOptions, } from '@interchainjs/cosmos/types'; import { CosmosAminoSigner, CosmosDirectSigner, - UniCosmosBaseSigner, } from '@interchainjs/cosmos/types'; import { BaseWalletAccount, - Eip712Data, - InjectiveDomain, - InjectiveEip712Message, } from '@interchainjs/types'; export type InjectiveDirectSigner = CosmosDirectSigner; export type InjectiveAminoSigner = CosmosAminoSigner; -export type InjectiveEip712Signer = UniCosmosBaseSigner; export interface InjectiveAccount extends BaseWalletAccount { cosmosAddress: string; ethereumAddress: string; } -export type InjectiveEip712Doc = Eip712Data< - InjectiveDomain, - InjectiveEip712Message ->; - -export type InjectiveEip712SignArgs = CosmosSignArgs; - export enum EthereumChainId { Mainnet = 1, Ropsten = 3,