@keplr-wallet/types 0.12.66-rc.0 → 0.12.66-rc.1
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/cosmjs.d.ts +0 -4
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/wallet/keplr.d.ts +0 -18
- package/package.json +2 -2
- package/src/cosmjs.ts +0 -4
- package/src/index.ts +0 -1
- package/src/wallet/keplr.ts +0 -26
- package/build/cosmjs-alt.d.ts +0 -47
- package/build/cosmjs-alt.js +0 -3
- package/build/cosmjs-alt.js.map +0 -1
- package/src/cosmjs-alt.ts +0 -53
package/build/cosmjs.d.ts
CHANGED
@@ -30,10 +30,6 @@ export interface StdSignDoc {
|
|
30
30
|
readonly fee: StdFee;
|
31
31
|
readonly msgs: readonly Msg[];
|
32
32
|
readonly memo: string;
|
33
|
-
readonly tip?: {
|
34
|
-
readonly amount: readonly Coin[];
|
35
|
-
readonly tipper: string;
|
36
|
-
};
|
37
33
|
}
|
38
34
|
export interface PubKey {
|
39
35
|
readonly type: string;
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
@@ -22,7 +22,6 @@ __exportStar(require("./wallet"), exports);
|
|
22
22
|
__exportStar(require("./window"), exports);
|
23
23
|
__exportStar(require("./ethereum"), exports);
|
24
24
|
__exportStar(require("./cosmjs"), exports);
|
25
|
-
__exportStar(require("./cosmjs-alt"), exports);
|
26
25
|
__exportStar(require("./secretjs"), exports);
|
27
26
|
__exportStar(require("./settled"), exports);
|
28
27
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B"}
|
package/build/wallet/keplr.d.ts
CHANGED
@@ -4,7 +4,6 @@ import { BroadcastMode, AminoSignResponse, StdSignDoc, OfflineAminoSigner, StdSi
|
|
4
4
|
import { SecretUtils } from "../secretjs";
|
5
5
|
import Long from "long";
|
6
6
|
import { SettledResponses } from "../settled";
|
7
|
-
import { DirectAuxSignResponse } from "../cosmjs-alt";
|
8
7
|
export interface Key {
|
9
8
|
readonly name: string;
|
10
9
|
readonly algo: string;
|
@@ -64,23 +63,6 @@ export interface Keplr {
|
|
64
63
|
/** SignDoc accountNumber */
|
65
64
|
accountNumber?: Long | null;
|
66
65
|
}, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
|
67
|
-
signDirectAux(chainId: string, signer: string, signDoc: {
|
68
|
-
bodyBytes?: Uint8Array | null;
|
69
|
-
publicKey?: {
|
70
|
-
typeUrl: string;
|
71
|
-
value: Uint8Array;
|
72
|
-
} | null;
|
73
|
-
chainId?: string | null;
|
74
|
-
accountNumber?: Long | null;
|
75
|
-
sequence?: Long | null;
|
76
|
-
tip?: {
|
77
|
-
amount: {
|
78
|
-
denom: string;
|
79
|
-
amount: string;
|
80
|
-
}[];
|
81
|
-
tipper: string;
|
82
|
-
} | null;
|
83
|
-
}, signOptions?: Exclude<KeplrSignOptions, "preferNoSetFee" | "disableBalanceCheck">): Promise<DirectAuxSignResponse>;
|
84
66
|
sendTx(chainId: string, tx: Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
85
67
|
signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
|
86
68
|
signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@keplr-wallet/types",
|
3
|
-
"version": "0.12.66-rc.
|
3
|
+
"version": "0.12.66-rc.1",
|
4
4
|
"main": "build/index.js",
|
5
5
|
"author": "chainapsis",
|
6
6
|
"license": "Apache-2.0",
|
@@ -18,5 +18,5 @@
|
|
18
18
|
"dependencies": {
|
19
19
|
"long": "^4.0.0"
|
20
20
|
},
|
21
|
-
"gitHead": "
|
21
|
+
"gitHead": "a0c2a864833cf793a4fd497fe14d4d51f43176c2"
|
22
22
|
}
|
package/src/cosmjs.ts
CHANGED
package/src/index.ts
CHANGED
package/src/wallet/keplr.ts
CHANGED
@@ -12,7 +12,6 @@ import {
|
|
12
12
|
import { SecretUtils } from "../secretjs";
|
13
13
|
import Long from "long";
|
14
14
|
import { SettledResponses } from "../settled";
|
15
|
-
import { DirectAuxSignResponse } from "../cosmjs-alt";
|
16
15
|
|
17
16
|
export interface Key {
|
18
17
|
// Name of the selected key store.
|
@@ -98,31 +97,6 @@ export interface Keplr {
|
|
98
97
|
},
|
99
98
|
signOptions?: KeplrSignOptions
|
100
99
|
): Promise<DirectSignResponse>;
|
101
|
-
signDirectAux(
|
102
|
-
chainId: string,
|
103
|
-
signer: string,
|
104
|
-
signDoc: {
|
105
|
-
bodyBytes?: Uint8Array | null;
|
106
|
-
publicKey?: {
|
107
|
-
typeUrl: string;
|
108
|
-
value: Uint8Array;
|
109
|
-
} | null;
|
110
|
-
chainId?: string | null;
|
111
|
-
accountNumber?: Long | null;
|
112
|
-
sequence?: Long | null;
|
113
|
-
tip?: {
|
114
|
-
amount: {
|
115
|
-
denom: string;
|
116
|
-
amount: string;
|
117
|
-
}[];
|
118
|
-
tipper: string;
|
119
|
-
} | null;
|
120
|
-
},
|
121
|
-
signOptions?: Exclude<
|
122
|
-
KeplrSignOptions,
|
123
|
-
"preferNoSetFee" | "disableBalanceCheck"
|
124
|
-
>
|
125
|
-
): Promise<DirectAuxSignResponse>;
|
126
100
|
sendTx(
|
127
101
|
chainId: string,
|
128
102
|
tx: Uint8Array,
|
package/build/cosmjs-alt.d.ts
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
import { StdSignature } from "./cosmjs";
|
2
|
-
import Long from "long";
|
3
|
-
export interface SignDocDirectAux {
|
4
|
-
/**
|
5
|
-
* body_bytes is protobuf serialization of a TxBody that matches the
|
6
|
-
* representation in TxRaw.
|
7
|
-
*/
|
8
|
-
bodyBytes: Uint8Array;
|
9
|
-
/** public_key is the public key of the signing account. */
|
10
|
-
publicKey: {
|
11
|
-
typeUrl: string;
|
12
|
-
/** Must be a valid serialized protocol buffer of the above specified type. */
|
13
|
-
value: Uint8Array;
|
14
|
-
} | undefined;
|
15
|
-
/**
|
16
|
-
* chain_id is the identifier of the chain this transaction targets.
|
17
|
-
* It prevents signed transactions from being used on another chain by an
|
18
|
-
* attacker.
|
19
|
-
*/
|
20
|
-
chainId: string;
|
21
|
-
/** account_number is the account number of the account in state. */
|
22
|
-
accountNumber: Long;
|
23
|
-
/** sequence is the sequence number of the signing account. */
|
24
|
-
sequence: Long;
|
25
|
-
/**
|
26
|
-
* tips have been deprecated and should not be used
|
27
|
-
*
|
28
|
-
* @deprecated
|
29
|
-
*/
|
30
|
-
tip: {
|
31
|
-
/** amount is the amount of the tip */
|
32
|
-
amount: {
|
33
|
-
denom: string;
|
34
|
-
amount: string;
|
35
|
-
}[];
|
36
|
-
/** tipper is the address of the account paying for the tip */
|
37
|
-
tipper: string;
|
38
|
-
} | undefined;
|
39
|
-
}
|
40
|
-
export interface DirectAuxSignResponse {
|
41
|
-
/**
|
42
|
-
* The sign doc that was signed.
|
43
|
-
* This may be different from the input signDoc when the signer modifies it as part of the signing process.
|
44
|
-
*/
|
45
|
-
readonly signed: SignDocDirectAux;
|
46
|
-
readonly signature: StdSignature;
|
47
|
-
}
|
package/build/cosmjs-alt.js
DELETED
package/build/cosmjs-alt.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cosmjs-alt.js","sourceRoot":"","sources":["../src/cosmjs-alt.ts"],"names":[],"mappings":""}
|
package/src/cosmjs-alt.ts
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { StdSignature } from "./cosmjs";
|
2
|
-
import Long from "long";
|
3
|
-
|
4
|
-
export interface SignDocDirectAux {
|
5
|
-
/**
|
6
|
-
* body_bytes is protobuf serialization of a TxBody that matches the
|
7
|
-
* representation in TxRaw.
|
8
|
-
*/
|
9
|
-
bodyBytes: Uint8Array;
|
10
|
-
/** public_key is the public key of the signing account. */
|
11
|
-
publicKey:
|
12
|
-
| {
|
13
|
-
typeUrl: string;
|
14
|
-
/** Must be a valid serialized protocol buffer of the above specified type. */
|
15
|
-
value: Uint8Array;
|
16
|
-
}
|
17
|
-
| undefined;
|
18
|
-
/**
|
19
|
-
* chain_id is the identifier of the chain this transaction targets.
|
20
|
-
* It prevents signed transactions from being used on another chain by an
|
21
|
-
* attacker.
|
22
|
-
*/
|
23
|
-
chainId: string;
|
24
|
-
/** account_number is the account number of the account in state. */
|
25
|
-
accountNumber: Long;
|
26
|
-
/** sequence is the sequence number of the signing account. */
|
27
|
-
sequence: Long;
|
28
|
-
/**
|
29
|
-
* tips have been deprecated and should not be used
|
30
|
-
*
|
31
|
-
* @deprecated
|
32
|
-
*/
|
33
|
-
tip:
|
34
|
-
| {
|
35
|
-
/** amount is the amount of the tip */
|
36
|
-
amount: {
|
37
|
-
denom: string;
|
38
|
-
amount: string;
|
39
|
-
}[];
|
40
|
-
/** tipper is the address of the account paying for the tip */
|
41
|
-
tipper: string;
|
42
|
-
}
|
43
|
-
| undefined;
|
44
|
-
}
|
45
|
-
|
46
|
-
export interface DirectAuxSignResponse {
|
47
|
-
/**
|
48
|
-
* The sign doc that was signed.
|
49
|
-
* This may be different from the input signDoc when the signer modifies it as part of the signing process.
|
50
|
-
*/
|
51
|
-
readonly signed: SignDocDirectAux;
|
52
|
-
readonly signature: StdSignature;
|
53
|
-
}
|