File tree Expand file tree Collapse file tree 4 files changed +1
-111
lines changed Expand file tree Collapse file tree 4 files changed +1
-111
lines changed Original file line number Diff line number Diff line change 1- export * from './docAuth' ;
21export * from './events' ;
3- export * from './signer' ;
42export * from './transaction' ;
5- export * from './wallet' ;
Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ export * from './abiEncoder'
22export * from './address'
33export * from './common'
44export * from './ContractEncoder'
5- export * from './denominations'
65export * from './encoding'
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { toDecoder } from '@interchainjs/cosmos/utils';
1111import { BaseAccount } from '@interchainjs/cosmos-types/cosmos/auth/v1beta1/auth' ;
1212import { PubKey as Secp256k1PubKey } from '@interchainjs/cosmos-types/cosmos/crypto/secp256k1/keys' ;
1313import { EthAccount } from '@interchainjs/cosmos-types/injective/types/v1beta1/account' ;
14- import { Eip712Doc } from '@interchainjs/ethereum/types' ;
1514import { IKey , SignerConfig } from '@interchainjs/types' ;
1615
1716import { 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+ } ;
Original file line number Diff line number Diff line change 11import {
2- CosmosSignArgs ,
32 DocOptions as CosmosDocOptions ,
43} from '@interchainjs/cosmos/types' ;
54import {
65 CosmosAminoSigner ,
76 CosmosDirectSigner ,
8- UniCosmosBaseSigner ,
97} from '@interchainjs/cosmos/types' ;
108import {
119 BaseWalletAccount ,
12- Eip712Data ,
13- InjectiveDomain ,
14- InjectiveEip712Message ,
1510} from '@interchainjs/types' ;
1611
1712export type InjectiveDirectSigner = CosmosDirectSigner ;
1813export type InjectiveAminoSigner = CosmosAminoSigner ;
19- export type InjectiveEip712Signer = UniCosmosBaseSigner < InjectiveEip712Doc > ;
2014
2115export 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-
3320export enum EthereumChainId {
3421 Mainnet = 1 ,
3522 Ropsten = 3 ,
You can’t perform that action at this time.
0 commit comments