@keplr-wallet/types 0.11.12 → 0.12.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,4 +44,5 @@ export interface ChainInfo {
44
44
  * If the blockchain is in an early stage, please set it as beta.
45
45
  */
46
46
  readonly beta?: boolean;
47
+ readonly isFromCommunity?: boolean;
47
48
  }
@@ -1,5 +1,5 @@
1
1
  export declare enum EthSignType {
2
2
  MESSAGE = "message",
3
3
  TRANSACTION = "transaction",
4
- EIP712 = "eip-712"
4
+ BYTE64 = "byte64"
5
5
  }
package/build/ethereum.js CHANGED
@@ -5,6 +5,6 @@ var EthSignType;
5
5
  (function (EthSignType) {
6
6
  EthSignType["MESSAGE"] = "message";
7
7
  EthSignType["TRANSACTION"] = "transaction";
8
- EthSignType["EIP712"] = "eip-712";
8
+ EthSignType["BYTE64"] = "byte64";
9
9
  })(EthSignType = exports.EthSignType || (exports.EthSignType = {}));
10
10
  //# sourceMappingURL=ethereum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../src/ethereum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,iCAAkB,CAAA;AACpB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}
1
+ {"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../src/ethereum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}
@@ -58,25 +58,4 @@ export interface Keplr {
58
58
  getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
59
59
  enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
60
60
  enigmaDecrypt(chainId: string, ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
61
- /**
62
- * Sign the sign doc with ethermint's EIP-712 format.
63
- * The difference from signEthereum(..., EthSignType.EIP712) is that this api returns a new sign doc changed by the user's fee setting and the signature for that sign doc.
64
- * Encoding tx to EIP-712 format should be done on the side using this api.
65
- * Not compatible with cosmjs.
66
- * The returned signature is (r | s | v) format which used in ethereum.
67
- * v should be 27 or 28 which is used in the ethereum mainnet regardless of chain.
68
- * @param chainId
69
- * @param signer
70
- * @param eip712
71
- * @param signDoc
72
- * @param signOptions
73
- */
74
- experimentalSignEIP712CosmosTx_v0(chainId: string, signer: string, eip712: {
75
- types: Record<string, {
76
- name: string;
77
- type: string;
78
- }[] | undefined>;
79
- domain: Record<string, any>;
80
- primaryType: string;
81
- }, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
82
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.11.12",
3
+ "version": "0.12.0-alpha.0",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -23,5 +23,5 @@
23
23
  "long": "^4.0.0",
24
24
  "secretjs": "0.17.7"
25
25
  },
26
- "gitHead": "6749dbdba69bcc35f6ed9a6ac34d927e94d38ae3"
26
+ "gitHead": "34327309b724b59f8e41d044db6e57a332614fae"
27
27
  }
package/src/chain-info.ts CHANGED
@@ -48,4 +48,5 @@ export interface ChainInfo {
48
48
  * If the blockchain is in an early stage, please set it as beta.
49
49
  */
50
50
  readonly beta?: boolean;
51
+ readonly isFromCommunity?: boolean;
51
52
  }
package/src/ethereum.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export enum EthSignType {
2
2
  MESSAGE = "message",
3
3
  TRANSACTION = "transaction",
4
- EIP712 = "eip-712",
4
+ BYTE64 = "byte64",
5
5
  }
@@ -134,29 +134,4 @@ export interface Keplr {
134
134
  ciphertext: Uint8Array,
135
135
  nonce: Uint8Array
136
136
  ): Promise<Uint8Array>;
137
-
138
- /**
139
- * Sign the sign doc with ethermint's EIP-712 format.
140
- * The difference from signEthereum(..., EthSignType.EIP712) is that this api returns a new sign doc changed by the user's fee setting and the signature for that sign doc.
141
- * Encoding tx to EIP-712 format should be done on the side using this api.
142
- * Not compatible with cosmjs.
143
- * The returned signature is (r | s | v) format which used in ethereum.
144
- * v should be 27 or 28 which is used in the ethereum mainnet regardless of chain.
145
- * @param chainId
146
- * @param signer
147
- * @param eip712
148
- * @param signDoc
149
- * @param signOptions
150
- */
151
- experimentalSignEIP712CosmosTx_v0(
152
- chainId: string,
153
- signer: string,
154
- eip712: {
155
- types: Record<string, { name: string; type: string }[] | undefined>;
156
- domain: Record<string, any>;
157
- primaryType: string;
158
- },
159
- signDoc: StdSignDoc,
160
- signOptions?: KeplrSignOptions
161
- ): Promise<AminoSignResponse>;
162
137
  }