@keplr-wallet/types 0.11.12-rc.2 → 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.
- package/build/chain-info.d.ts +1 -0
- package/build/ethereum.d.ts +1 -1
- package/build/ethereum.js +1 -1
- package/build/ethereum.js.map +1 -1
- package/build/wallet/keplr.d.ts +0 -21
- package/package.json +2 -2
- package/src/chain-info.ts +1 -0
- package/src/ethereum.ts +1 -1
- package/src/wallet/keplr.ts +0 -25
package/build/chain-info.d.ts
CHANGED
package/build/ethereum.d.ts
CHANGED
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["
|
8
|
+
EthSignType["BYTE64"] = "byte64";
|
9
9
|
})(EthSignType = exports.EthSignType || (exports.EthSignType = {}));
|
10
10
|
//# sourceMappingURL=ethereum.js.map
|
package/build/ethereum.js.map
CHANGED
@@ -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,
|
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"}
|
package/build/wallet/keplr.d.ts
CHANGED
@@ -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.
|
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": "
|
26
|
+
"gitHead": "34327309b724b59f8e41d044db6e57a332614fae"
|
27
27
|
}
|
package/src/chain-info.ts
CHANGED
package/src/ethereum.ts
CHANGED
package/src/wallet/keplr.ts
CHANGED
@@ -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
|
}
|