@trezor/connect 9.0.0-beta.5 → 9.0.0-beta.6
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/README.md +1 -1
- package/lib/api/binance/binanceSignTx.d.ts +1 -1
- package/lib/api/binanceSignTransaction.d.ts +1 -1
- package/lib/api/bitcoin/enhanceSignTx.d.ts +1 -1
- package/lib/api/bitcoin/refTx.d.ts +1 -1
- package/lib/api/bitcoin/signtx.d.ts +1 -1
- package/lib/api/bitcoin/signtxLegacy.d.ts +1 -1
- package/lib/api/cardano/cardanoAddressParameters.d.ts +1 -1
- package/lib/api/cardano/cardanoAuxiliaryData.d.ts +1 -1
- package/lib/api/cardano/cardanoCertificate.d.ts +1 -1
- package/lib/api/cardano/cardanoTokenBundle.d.ts +1 -1
- package/lib/api/cardanoGetAddress.d.ts +1 -1
- package/lib/api/cardanoGetNativeScriptHash.d.ts +1 -1
- package/lib/api/cardanoGetPublicKey.d.ts +1 -1
- package/lib/api/cardanoSignTransaction.d.ts +1 -1
- package/lib/api/composeTransaction.d.ts +1 -1
- package/lib/api/eos/eosSignTx.d.ts +1 -1
- package/lib/api/eosGetPublicKey.d.ts +1 -1
- package/lib/api/ethereum/ethereumSignTx.d.ts +1 -1
- package/lib/api/ethereum/ethereumSignTypedData.d.ts +1 -1
- package/lib/api/ethereumSignTransaction.d.ts +1 -1
- package/lib/api/ethereumSignTypedData.d.ts +1 -1
- package/lib/api/nem/nemSignTx.d.ts +1 -1
- package/lib/api/signTransaction.d.ts +2 -2
- package/lib/api/stellar/stellarSignTx.d.ts +1 -1
- package/lib/api/stellarSignTransaction.d.ts +1 -1
- package/lib/api/tezos/tezosSignTx.d.ts +1 -1
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/DeviceList.js +3 -1
- package/lib/types/api/binance/index.d.ts +29 -0
- package/lib/types/api/binance/index.js +3 -0
- package/lib/types/api/binanceSignTransaction.d.ts +1 -27
- package/lib/types/api/bitcoin/index.d.ts +82 -0
- package/lib/types/api/bitcoin/index.js +3 -0
- package/lib/types/api/cardano/index.d.ts +193 -0
- package/lib/types/api/cardano/index.js +3 -0
- package/lib/types/api/cardanoGetAddress.d.ts +1 -31
- package/lib/types/api/cardanoGetNativeScriptHash.d.ts +1 -18
- package/lib/types/api/cardanoGetPublicKey.d.ts +1 -12
- package/lib/types/api/cardanoSignTransaction.d.ts +1 -135
- package/lib/types/api/eos/index.d.ts +119 -0
- package/lib/types/api/eos/index.js +3 -0
- package/lib/types/api/eosGetPublicKey.d.ts +1 -10
- package/lib/types/api/eosSignTransaction.d.ts +1 -107
- package/lib/types/api/ethereum/index.d.ts +86 -0
- package/lib/types/api/ethereum/index.js +3 -0
- package/lib/types/api/ethereumSignMessage.d.ts +1 -5
- package/lib/types/api/ethereumSignTransaction.d.ts +1 -37
- package/lib/types/api/ethereumSignTypedData.d.ts +1 -37
- package/lib/types/api/ethereumVerifyMessage.d.ts +1 -6
- package/lib/types/api/nem/index.d.ts +90 -0
- package/lib/types/api/nem/index.js +3 -0
- package/lib/types/api/nemSignTransaction.d.ts +2 -89
- package/lib/types/api/ripple/index.d.ts +21 -0
- package/lib/types/api/ripple/index.js +3 -0
- package/lib/types/api/rippleSignTransaction.d.ts +1 -20
- package/lib/types/api/signMessage.d.ts +1 -7
- package/lib/types/api/signTransaction.d.ts +1 -67
- package/lib/types/api/stellar/index.d.ts +180 -0
- package/lib/types/api/stellar/index.js +3 -0
- package/lib/types/api/stellarSignTransaction.d.ts +1 -179
- package/lib/types/api/tezos/index.d.ts +58 -0
- package/lib/types/api/tezos/index.js +3 -0
- package/lib/types/api/tezosSignTransaction.d.ts +1 -57
- package/lib/types/api/verifyMessage.d.ts +1 -7
- package/lib/types/index.d.ts +8 -4
- package/lib/types/index.js +8 -0
- package/lib/utils/deviceFeaturesUtils.js +1 -1
- package/package.json +1 -1
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
import type { PROTO } from '../../constants';
|
|
2
1
|
import type { Params, BundledParams, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
blockIndex: number;
|
|
5
|
-
txIndex: number;
|
|
6
|
-
certificateIndex: number;
|
|
7
|
-
}
|
|
8
|
-
export interface CardanoAddressParameters {
|
|
9
|
-
addressType: PROTO.CardanoAddressType;
|
|
10
|
-
path?: string | number[];
|
|
11
|
-
stakingPath?: string | number[];
|
|
12
|
-
stakingKeyHash?: string;
|
|
13
|
-
certificatePointer?: CardanoCertificatePointer;
|
|
14
|
-
paymentScriptHash?: string;
|
|
15
|
-
stakingScriptHash?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CardanoGetAddress {
|
|
18
|
-
addressParameters: CardanoAddressParameters;
|
|
19
|
-
protocolMagic: number;
|
|
20
|
-
networkId: number;
|
|
21
|
-
address?: string;
|
|
22
|
-
showOnTrezor?: boolean;
|
|
23
|
-
derivationType?: PROTO.CardanoDerivationType;
|
|
24
|
-
}
|
|
25
|
-
export interface CardanoAddress {
|
|
26
|
-
addressParameters: CardanoAddressParameters;
|
|
27
|
-
protocolMagic: number;
|
|
28
|
-
networkId: number;
|
|
29
|
-
serializedPath: string;
|
|
30
|
-
serializedStakingPath: string;
|
|
31
|
-
address: string;
|
|
32
|
-
}
|
|
2
|
+
import type { CardanoAddress, CardanoGetAddress } from './cardano';
|
|
33
3
|
export declare function cardanoGetAddress(params: Params<CardanoGetAddress>): Response<CardanoAddress>;
|
|
34
4
|
export declare function cardanoGetAddress(params: BundledParams<CardanoGetAddress>): Response<CardanoAddress[]>;
|
|
35
5
|
//# sourceMappingURL=cardanoGetAddress.d.ts.map
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import type { PROTO } from '../../constants';
|
|
2
1
|
import type { Params, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
type: PROTO.CardanoNativeScriptType;
|
|
5
|
-
scripts?: CardanoNativeScript[];
|
|
6
|
-
keyHash?: string;
|
|
7
|
-
keyPath?: string | number[];
|
|
8
|
-
requiredSignaturesCount?: number;
|
|
9
|
-
invalidBefore?: string;
|
|
10
|
-
invalidHereafter?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface CardanoGetNativeScriptHash {
|
|
13
|
-
script: CardanoNativeScript;
|
|
14
|
-
displayFormat: PROTO.CardanoNativeScriptHashDisplayFormat;
|
|
15
|
-
derivationType?: PROTO.CardanoDerivationType;
|
|
16
|
-
}
|
|
17
|
-
export interface CardanoNativeScriptHash {
|
|
18
|
-
scriptHash: string;
|
|
19
|
-
}
|
|
2
|
+
import type { CardanoGetNativeScriptHash, CardanoNativeScriptHash } from './cardano';
|
|
20
3
|
export declare function cardanoGetNativeScriptHash(params: Params<CardanoGetNativeScriptHash>): Response<CardanoNativeScriptHash>;
|
|
21
4
|
//# sourceMappingURL=cardanoGetNativeScriptHash.d.ts.map
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type { PROTO } from '../../constants';
|
|
2
1
|
import type { Params, BundledParams, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
path: string | number[];
|
|
5
|
-
showOnTrezor?: boolean;
|
|
6
|
-
derivationType?: PROTO.CardanoDerivationType;
|
|
7
|
-
}
|
|
8
|
-
export interface CardanoPublicKey {
|
|
9
|
-
path: number[];
|
|
10
|
-
serializedPath: string;
|
|
11
|
-
publicKey: string;
|
|
12
|
-
node: PROTO.HDNodeType;
|
|
13
|
-
}
|
|
2
|
+
import type { CardanoGetPublicKey, CardanoPublicKey } from './cardano';
|
|
14
3
|
export declare function cardanoGetPublicKey(params: Params<CardanoGetPublicKey>): Response<CardanoPublicKey>;
|
|
15
4
|
export declare function cardanoGetPublicKey(params: BundledParams<CardanoGetPublicKey>): Response<CardanoPublicKey[]>;
|
|
16
5
|
//# sourceMappingURL=cardanoGetPublicKey.d.ts.map
|
|
@@ -1,138 +1,4 @@
|
|
|
1
|
-
import type { PROTO } from '../../constants';
|
|
2
|
-
import type { CardanoAddressParameters } from './cardanoGetAddress';
|
|
3
1
|
import type { Params, Response } from '../params';
|
|
4
|
-
|
|
5
|
-
path?: string | number[];
|
|
6
|
-
prev_hash: string;
|
|
7
|
-
prev_index: number;
|
|
8
|
-
}
|
|
9
|
-
export interface CardanoToken {
|
|
10
|
-
assetNameBytes: string;
|
|
11
|
-
amount?: string;
|
|
12
|
-
mintAmount?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CardanoAssetGroup {
|
|
15
|
-
policyId: string;
|
|
16
|
-
tokenAmounts: CardanoToken[];
|
|
17
|
-
}
|
|
18
|
-
export declare type CardanoOutput = ({
|
|
19
|
-
addressParameters: CardanoAddressParameters;
|
|
20
|
-
} | {
|
|
21
|
-
address: string;
|
|
22
|
-
}) & {
|
|
23
|
-
amount: string;
|
|
24
|
-
tokenBundle?: CardanoAssetGroup[];
|
|
25
|
-
datumHash?: string;
|
|
26
|
-
format?: PROTO.CardanoTxOutputSerializationFormat;
|
|
27
|
-
inlineDatum?: string;
|
|
28
|
-
referenceScript?: string;
|
|
29
|
-
};
|
|
30
|
-
export interface CardanoPoolOwner {
|
|
31
|
-
stakingKeyPath?: string | number[];
|
|
32
|
-
stakingKeyHash?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface CardanoPoolRelay {
|
|
35
|
-
type: PROTO.CardanoPoolRelayType;
|
|
36
|
-
ipv4Address?: string;
|
|
37
|
-
ipv6Address?: string;
|
|
38
|
-
port?: number;
|
|
39
|
-
hostName?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface CardanoPoolMetadata {
|
|
42
|
-
url: string;
|
|
43
|
-
hash: string;
|
|
44
|
-
}
|
|
45
|
-
export interface CardanoPoolMargin {
|
|
46
|
-
numerator: string;
|
|
47
|
-
denominator: string;
|
|
48
|
-
}
|
|
49
|
-
export interface CardanoPoolParameters {
|
|
50
|
-
poolId: string;
|
|
51
|
-
vrfKeyHash: string;
|
|
52
|
-
pledge: string;
|
|
53
|
-
cost: string;
|
|
54
|
-
margin: CardanoPoolMargin;
|
|
55
|
-
rewardAccount: string;
|
|
56
|
-
owners: CardanoPoolOwner[];
|
|
57
|
-
relays: CardanoPoolRelay[];
|
|
58
|
-
metadata: CardanoPoolMetadata;
|
|
59
|
-
}
|
|
60
|
-
export interface CardanoCertificate {
|
|
61
|
-
type: PROTO.CardanoCertificateType;
|
|
62
|
-
path?: string | number[];
|
|
63
|
-
pool?: string;
|
|
64
|
-
poolParameters?: CardanoPoolParameters;
|
|
65
|
-
scriptHash?: string;
|
|
66
|
-
keyHash?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface CardanoWithdrawal {
|
|
69
|
-
path?: string | number[];
|
|
70
|
-
amount: string;
|
|
71
|
-
scriptHash?: string;
|
|
72
|
-
keyHash?: string;
|
|
73
|
-
}
|
|
74
|
-
export declare type CardanoMint = CardanoAssetGroup[];
|
|
75
|
-
export interface CardanoCollateralInput {
|
|
76
|
-
path?: string | number[];
|
|
77
|
-
prev_hash: string;
|
|
78
|
-
prev_index: number;
|
|
79
|
-
}
|
|
80
|
-
export interface CardanoRequiredSigner {
|
|
81
|
-
keyPath?: string | number[];
|
|
82
|
-
keyHash?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface CardanoReferenceInput {
|
|
85
|
-
prev_hash: string;
|
|
86
|
-
prev_index: number;
|
|
87
|
-
}
|
|
88
|
-
export interface CardanoCatalystRegistrationParameters {
|
|
89
|
-
votingPublicKey: string;
|
|
90
|
-
stakingPath: string | number[];
|
|
91
|
-
rewardAddressParameters: CardanoAddressParameters;
|
|
92
|
-
nonce: string;
|
|
93
|
-
}
|
|
94
|
-
export interface CardanoAuxiliaryData {
|
|
95
|
-
hash?: string;
|
|
96
|
-
catalystRegistrationParameters?: CardanoCatalystRegistrationParameters;
|
|
97
|
-
}
|
|
98
|
-
export interface CardanoSignTransaction {
|
|
99
|
-
inputs: CardanoInput[];
|
|
100
|
-
outputs: CardanoOutput[];
|
|
101
|
-
fee: string;
|
|
102
|
-
ttl?: string;
|
|
103
|
-
certificates?: CardanoCertificate[];
|
|
104
|
-
withdrawals?: CardanoWithdrawal[];
|
|
105
|
-
validityIntervalStart?: string;
|
|
106
|
-
auxiliaryData?: CardanoAuxiliaryData;
|
|
107
|
-
mint?: CardanoMint;
|
|
108
|
-
scriptDataHash?: string;
|
|
109
|
-
collateralInputs?: CardanoCollateralInput[];
|
|
110
|
-
requiredSigners?: CardanoRequiredSigner[];
|
|
111
|
-
collateralReturn?: CardanoOutput;
|
|
112
|
-
totalCollateral?: string;
|
|
113
|
-
referenceInputs?: CardanoReferenceInput[];
|
|
114
|
-
additionalWitnessRequests?: (string | number[])[];
|
|
115
|
-
protocolMagic: number;
|
|
116
|
-
networkId: number;
|
|
117
|
-
signingMode: PROTO.CardanoTxSigningMode;
|
|
118
|
-
derivationType?: PROTO.CardanoDerivationType;
|
|
119
|
-
includeNetworkId?: boolean;
|
|
120
|
-
}
|
|
121
|
-
export interface CardanoSignedTxWitness {
|
|
122
|
-
type: PROTO.CardanoTxWitnessType;
|
|
123
|
-
pubKey: string;
|
|
124
|
-
signature: string;
|
|
125
|
-
chainCode?: string;
|
|
126
|
-
}
|
|
127
|
-
export interface CardanoAuxiliaryDataSupplement {
|
|
128
|
-
type: PROTO.CardanoTxAuxiliaryDataSupplementType;
|
|
129
|
-
auxiliaryDataHash: string;
|
|
130
|
-
catalystSignature?: string;
|
|
131
|
-
}
|
|
132
|
-
export interface CardanoSignedTxData {
|
|
133
|
-
hash: string;
|
|
134
|
-
witnesses: CardanoSignedTxWitness[];
|
|
135
|
-
auxiliaryDataSupplement?: CardanoAuxiliaryDataSupplement;
|
|
136
|
-
}
|
|
2
|
+
import type { CardanoSignTransaction, CardanoSignedTxData } from './cardano';
|
|
137
3
|
export declare function cardanoSignTransaction(params: Params<CardanoSignTransaction>): Response<CardanoSignedTxData>;
|
|
138
4
|
//# sourceMappingURL=cardanoSignTransaction.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { PROTO } from '../../../constants';
|
|
2
|
+
export interface EosGetPublicKey {
|
|
3
|
+
path: string | number[];
|
|
4
|
+
showOnTrezor?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface EosPublicKey {
|
|
7
|
+
wifPublicKey: string;
|
|
8
|
+
rawPublicKey: string;
|
|
9
|
+
path: number[];
|
|
10
|
+
serializedPath: string;
|
|
11
|
+
}
|
|
12
|
+
export interface EosTxHeader {
|
|
13
|
+
expiration: PROTO.UintType;
|
|
14
|
+
refBlockNum: number;
|
|
15
|
+
refBlockPrefix: number;
|
|
16
|
+
maxNetUsageWords: number;
|
|
17
|
+
maxCpuUsageMs: number;
|
|
18
|
+
delaySec: number;
|
|
19
|
+
}
|
|
20
|
+
export interface EosAuthorization {
|
|
21
|
+
threshold: number;
|
|
22
|
+
keys: PROTO.EosAuthorizationKey[];
|
|
23
|
+
accounts: {
|
|
24
|
+
permission: PROTO.EosPermissionLevel;
|
|
25
|
+
weight: number;
|
|
26
|
+
}[];
|
|
27
|
+
waits: PROTO.EosAuthorizationWait[];
|
|
28
|
+
}
|
|
29
|
+
export interface EosTxActionCommon {
|
|
30
|
+
account: string;
|
|
31
|
+
authorization: PROTO.EosPermissionLevel[];
|
|
32
|
+
}
|
|
33
|
+
export declare type EosTxAction = (EosTxActionCommon & {
|
|
34
|
+
name: 'transfer';
|
|
35
|
+
data: {
|
|
36
|
+
from: string;
|
|
37
|
+
to: string;
|
|
38
|
+
quantity: string;
|
|
39
|
+
memo: string;
|
|
40
|
+
};
|
|
41
|
+
}) | (EosTxActionCommon & {
|
|
42
|
+
name: 'delegatebw';
|
|
43
|
+
data: {
|
|
44
|
+
from: string;
|
|
45
|
+
receiver: string;
|
|
46
|
+
stake_net_quantity: string;
|
|
47
|
+
stake_cpu_quantity: string;
|
|
48
|
+
transfer: boolean;
|
|
49
|
+
};
|
|
50
|
+
}) | (EosTxActionCommon & {
|
|
51
|
+
name: 'undelegatebw';
|
|
52
|
+
data: {
|
|
53
|
+
from: string;
|
|
54
|
+
receiver: string;
|
|
55
|
+
unstake_net_quantity: string;
|
|
56
|
+
unstake_cpu_quantity: string;
|
|
57
|
+
};
|
|
58
|
+
}) | (EosTxActionCommon & {
|
|
59
|
+
name: 'buyram';
|
|
60
|
+
data: {
|
|
61
|
+
payer: string;
|
|
62
|
+
receiver: string;
|
|
63
|
+
quant: string;
|
|
64
|
+
};
|
|
65
|
+
}) | (EosTxActionCommon & {
|
|
66
|
+
name: 'buyrambytes';
|
|
67
|
+
data: PROTO.EosActionBuyRamBytes;
|
|
68
|
+
}) | (EosTxActionCommon & {
|
|
69
|
+
name: 'sellram';
|
|
70
|
+
data: PROTO.EosActionSellRam;
|
|
71
|
+
}) | (EosTxActionCommon & {
|
|
72
|
+
name: 'voteproducer';
|
|
73
|
+
data: {
|
|
74
|
+
voter: string;
|
|
75
|
+
proxy: string;
|
|
76
|
+
producers: string[];
|
|
77
|
+
};
|
|
78
|
+
}) | (EosTxActionCommon & {
|
|
79
|
+
name: 'refund';
|
|
80
|
+
data: PROTO.EosActionRefund;
|
|
81
|
+
}) | (EosTxActionCommon & {
|
|
82
|
+
name: 'updateauth';
|
|
83
|
+
data: {
|
|
84
|
+
account: string;
|
|
85
|
+
permission: string;
|
|
86
|
+
parent: string;
|
|
87
|
+
auth: EosAuthorization;
|
|
88
|
+
};
|
|
89
|
+
}) | (EosTxActionCommon & {
|
|
90
|
+
name: 'deleteauth';
|
|
91
|
+
data: PROTO.EosActionDeleteAuth;
|
|
92
|
+
}) | (EosTxActionCommon & {
|
|
93
|
+
name: 'linkauth';
|
|
94
|
+
data: PROTO.EosActionLinkAuth;
|
|
95
|
+
}) | (EosTxActionCommon & {
|
|
96
|
+
name: 'unlinkauth';
|
|
97
|
+
data: PROTO.EosActionUnlinkAuth;
|
|
98
|
+
}) | (EosTxActionCommon & {
|
|
99
|
+
name: 'newaccount';
|
|
100
|
+
data: {
|
|
101
|
+
creator: string;
|
|
102
|
+
name: string;
|
|
103
|
+
owner: EosAuthorization;
|
|
104
|
+
active: EosAuthorization;
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
export interface EosSDKTransaction {
|
|
108
|
+
chainId: string;
|
|
109
|
+
header: EosTxHeader;
|
|
110
|
+
actions: Array<EosTxAction | (EosTxActionCommon & {
|
|
111
|
+
name: string;
|
|
112
|
+
data: string;
|
|
113
|
+
})>;
|
|
114
|
+
}
|
|
115
|
+
export interface EosSignTransaction {
|
|
116
|
+
path: string | number[];
|
|
117
|
+
transaction: EosSDKTransaction;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { Params, BundledParams, Response } from '../params';
|
|
2
|
-
|
|
3
|
-
path: string | number[];
|
|
4
|
-
showOnTrezor?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface EosPublicKey {
|
|
7
|
-
wifPublicKey: string;
|
|
8
|
-
rawPublicKey: string;
|
|
9
|
-
path: number[];
|
|
10
|
-
serializedPath: string;
|
|
11
|
-
}
|
|
2
|
+
import { EosGetPublicKey, EosPublicKey } from './eos';
|
|
12
3
|
export declare function eosGetPublicKey(params: Params<EosGetPublicKey>): Response<EosPublicKey>;
|
|
13
4
|
export declare function eosGetPublicKey(params: BundledParams<EosGetPublicKey>): Response<EosPublicKey[]>;
|
|
14
5
|
//# sourceMappingURL=eosGetPublicKey.d.ts.map
|
|
@@ -1,111 +1,5 @@
|
|
|
1
1
|
import type { PROTO } from '../../constants';
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
expiration: PROTO.UintType;
|
|
5
|
-
refBlockNum: number;
|
|
6
|
-
refBlockPrefix: number;
|
|
7
|
-
maxNetUsageWords: number;
|
|
8
|
-
maxCpuUsageMs: number;
|
|
9
|
-
delaySec: number;
|
|
10
|
-
}
|
|
11
|
-
export interface EosAuthorization {
|
|
12
|
-
threshold: number;
|
|
13
|
-
keys: PROTO.EosAuthorizationKey[];
|
|
14
|
-
accounts: {
|
|
15
|
-
permission: PROTO.EosPermissionLevel;
|
|
16
|
-
weight: number;
|
|
17
|
-
}[];
|
|
18
|
-
waits: PROTO.EosAuthorizationWait[];
|
|
19
|
-
}
|
|
20
|
-
export interface EosTxActionCommon {
|
|
21
|
-
account: string;
|
|
22
|
-
authorization: PROTO.EosPermissionLevel[];
|
|
23
|
-
}
|
|
24
|
-
export declare type EosTxAction = (EosTxActionCommon & {
|
|
25
|
-
name: 'transfer';
|
|
26
|
-
data: {
|
|
27
|
-
from: string;
|
|
28
|
-
to: string;
|
|
29
|
-
quantity: string;
|
|
30
|
-
memo: string;
|
|
31
|
-
};
|
|
32
|
-
}) | (EosTxActionCommon & {
|
|
33
|
-
name: 'delegatebw';
|
|
34
|
-
data: {
|
|
35
|
-
from: string;
|
|
36
|
-
receiver: string;
|
|
37
|
-
stake_net_quantity: string;
|
|
38
|
-
stake_cpu_quantity: string;
|
|
39
|
-
transfer: boolean;
|
|
40
|
-
};
|
|
41
|
-
}) | (EosTxActionCommon & {
|
|
42
|
-
name: 'undelegatebw';
|
|
43
|
-
data: {
|
|
44
|
-
from: string;
|
|
45
|
-
receiver: string;
|
|
46
|
-
unstake_net_quantity: string;
|
|
47
|
-
unstake_cpu_quantity: string;
|
|
48
|
-
};
|
|
49
|
-
}) | (EosTxActionCommon & {
|
|
50
|
-
name: 'buyram';
|
|
51
|
-
data: {
|
|
52
|
-
payer: string;
|
|
53
|
-
receiver: string;
|
|
54
|
-
quant: string;
|
|
55
|
-
};
|
|
56
|
-
}) | (EosTxActionCommon & {
|
|
57
|
-
name: 'buyrambytes';
|
|
58
|
-
data: PROTO.EosActionBuyRamBytes;
|
|
59
|
-
}) | (EosTxActionCommon & {
|
|
60
|
-
name: 'sellram';
|
|
61
|
-
data: PROTO.EosActionSellRam;
|
|
62
|
-
}) | (EosTxActionCommon & {
|
|
63
|
-
name: 'voteproducer';
|
|
64
|
-
data: {
|
|
65
|
-
voter: string;
|
|
66
|
-
proxy: string;
|
|
67
|
-
producers: string[];
|
|
68
|
-
};
|
|
69
|
-
}) | (EosTxActionCommon & {
|
|
70
|
-
name: 'refund';
|
|
71
|
-
data: PROTO.EosActionRefund;
|
|
72
|
-
}) | (EosTxActionCommon & {
|
|
73
|
-
name: 'updateauth';
|
|
74
|
-
data: {
|
|
75
|
-
account: string;
|
|
76
|
-
permission: string;
|
|
77
|
-
parent: string;
|
|
78
|
-
auth: EosAuthorization;
|
|
79
|
-
};
|
|
80
|
-
}) | (EosTxActionCommon & {
|
|
81
|
-
name: 'deleteauth';
|
|
82
|
-
data: PROTO.EosActionDeleteAuth;
|
|
83
|
-
}) | (EosTxActionCommon & {
|
|
84
|
-
name: 'linkauth';
|
|
85
|
-
data: PROTO.EosActionLinkAuth;
|
|
86
|
-
}) | (EosTxActionCommon & {
|
|
87
|
-
name: 'unlinkauth';
|
|
88
|
-
data: PROTO.EosActionUnlinkAuth;
|
|
89
|
-
}) | (EosTxActionCommon & {
|
|
90
|
-
name: 'newaccount';
|
|
91
|
-
data: {
|
|
92
|
-
creator: string;
|
|
93
|
-
name: string;
|
|
94
|
-
owner: EosAuthorization;
|
|
95
|
-
active: EosAuthorization;
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
export interface EosSDKTransaction {
|
|
99
|
-
chainId: string;
|
|
100
|
-
header: EosTxHeader;
|
|
101
|
-
actions: Array<EosTxAction | (EosTxActionCommon & {
|
|
102
|
-
name: string;
|
|
103
|
-
data: string;
|
|
104
|
-
})>;
|
|
105
|
-
}
|
|
106
|
-
export interface EosSignTransaction {
|
|
107
|
-
path: string | number[];
|
|
108
|
-
transaction: EosSDKTransaction;
|
|
109
|
-
}
|
|
3
|
+
import type { EosSignTransaction } from './eos';
|
|
110
4
|
export declare function eosSignTransaction(params: Params<EosSignTransaction>): Response<PROTO.EosSignedTx>;
|
|
111
5
|
//# sourceMappingURL=eosSignTransaction.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export interface EthereumSignMessage {
|
|
2
|
+
path: string | number[];
|
|
3
|
+
message: string;
|
|
4
|
+
hex?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface EthereumTransaction {
|
|
7
|
+
to: string;
|
|
8
|
+
value: string;
|
|
9
|
+
gasPrice: string;
|
|
10
|
+
gasLimit: string;
|
|
11
|
+
maxFeePerGas?: typeof undefined;
|
|
12
|
+
maxPriorityFeePerGas?: typeof undefined;
|
|
13
|
+
nonce: string;
|
|
14
|
+
data?: string;
|
|
15
|
+
chainId: number;
|
|
16
|
+
txType?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface EthereumAccessList {
|
|
19
|
+
address: string;
|
|
20
|
+
storageKeys: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface EthereumTransactionEIP1559 {
|
|
23
|
+
to: string;
|
|
24
|
+
value: string;
|
|
25
|
+
gasLimit: string;
|
|
26
|
+
gasPrice?: typeof undefined;
|
|
27
|
+
nonce: string;
|
|
28
|
+
data?: string;
|
|
29
|
+
chainId: number;
|
|
30
|
+
maxFeePerGas: string;
|
|
31
|
+
maxPriorityFeePerGas: string;
|
|
32
|
+
accessList?: EthereumAccessList[];
|
|
33
|
+
}
|
|
34
|
+
export interface EthereumSignTransaction {
|
|
35
|
+
path: string | number[];
|
|
36
|
+
transaction: EthereumTransaction | EthereumTransactionEIP1559;
|
|
37
|
+
}
|
|
38
|
+
export interface EthereumSignedTx {
|
|
39
|
+
v: string;
|
|
40
|
+
r: string;
|
|
41
|
+
s: string;
|
|
42
|
+
}
|
|
43
|
+
interface EthereumSignTypedDataTypeProperty {
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
}
|
|
47
|
+
export interface EthereumSignTypedDataTypes {
|
|
48
|
+
EIP712Domain: EthereumSignTypedDataTypeProperty[];
|
|
49
|
+
[additionalProperties: string]: EthereumSignTypedDataTypeProperty[];
|
|
50
|
+
}
|
|
51
|
+
export interface EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes> {
|
|
52
|
+
types: T;
|
|
53
|
+
primaryType: keyof T;
|
|
54
|
+
domain: {
|
|
55
|
+
name?: string;
|
|
56
|
+
version?: string;
|
|
57
|
+
chainId?: number | bigint;
|
|
58
|
+
verifyingContract?: string;
|
|
59
|
+
salt?: ArrayBuffer;
|
|
60
|
+
};
|
|
61
|
+
message: {
|
|
62
|
+
[fieldName: string]: any;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface EthereumSignTypedData<T extends EthereumSignTypedDataTypes> {
|
|
66
|
+
path: string | number[];
|
|
67
|
+
data: EthereumSignTypedDataMessage<T>;
|
|
68
|
+
metamask_v4_compat: boolean;
|
|
69
|
+
domain_separator_hash?: undefined;
|
|
70
|
+
message_hash?: undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface EthereumSignTypedHash<T extends EthereumSignTypedDataTypes> {
|
|
73
|
+
path: string | number[];
|
|
74
|
+
data: EthereumSignTypedDataMessage<T>;
|
|
75
|
+
metamask_v4_compat: boolean;
|
|
76
|
+
domain_separator_hash: string;
|
|
77
|
+
message_hash?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface EthereumVerifyMessage {
|
|
80
|
+
address: string;
|
|
81
|
+
message: string;
|
|
82
|
+
hex?: boolean;
|
|
83
|
+
signature: string;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { PROTO } from '../../constants';
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
path: string | number[];
|
|
5
|
-
message: string;
|
|
6
|
-
hex?: boolean;
|
|
7
|
-
}
|
|
3
|
+
import type { EthereumSignMessage } from './ethereum';
|
|
8
4
|
export declare function ethereumSignMessage(params: Params<EthereumSignMessage>): Response<PROTO.MessageSignature>;
|
|
9
5
|
//# sourceMappingURL=ethereumSignMessage.d.ts.map
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
import type { Params, Response } from '../params';
|
|
2
|
-
|
|
3
|
-
to: string;
|
|
4
|
-
value: string;
|
|
5
|
-
gasPrice: string;
|
|
6
|
-
gasLimit: string;
|
|
7
|
-
maxFeePerGas?: typeof undefined;
|
|
8
|
-
maxPriorityFeePerGas?: typeof undefined;
|
|
9
|
-
nonce: string;
|
|
10
|
-
data?: string;
|
|
11
|
-
chainId: number;
|
|
12
|
-
txType?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface EthereumAccessList {
|
|
15
|
-
address: string;
|
|
16
|
-
storageKeys: string[];
|
|
17
|
-
}
|
|
18
|
-
export interface EthereumTransactionEIP1559 {
|
|
19
|
-
to: string;
|
|
20
|
-
value: string;
|
|
21
|
-
gasLimit: string;
|
|
22
|
-
gasPrice?: typeof undefined;
|
|
23
|
-
nonce: string;
|
|
24
|
-
data?: string;
|
|
25
|
-
chainId: number;
|
|
26
|
-
maxFeePerGas: string;
|
|
27
|
-
maxPriorityFeePerGas: string;
|
|
28
|
-
accessList?: EthereumAccessList[];
|
|
29
|
-
}
|
|
30
|
-
export interface EthereumSignTransaction {
|
|
31
|
-
path: string | number[];
|
|
32
|
-
transaction: EthereumTransaction | EthereumTransactionEIP1559;
|
|
33
|
-
}
|
|
34
|
-
export interface EthereumSignedTx {
|
|
35
|
-
v: string;
|
|
36
|
-
r: string;
|
|
37
|
-
s: string;
|
|
38
|
-
}
|
|
2
|
+
import type { EthereumSignTransaction, EthereumSignedTx } from './ethereum';
|
|
39
3
|
export declare function ethereumSignTransaction(params: Params<EthereumSignTransaction>): Response<EthereumSignedTx>;
|
|
40
4
|
//# sourceMappingURL=ethereumSignTransaction.d.ts.map
|
|
@@ -1,42 +1,6 @@
|
|
|
1
1
|
import type { PROTO } from '../../constants';
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
export interface EthereumSignTypedDataTypes {
|
|
8
|
-
EIP712Domain: EthereumSignTypedDataTypeProperty[];
|
|
9
|
-
[additionalProperties: string]: EthereumSignTypedDataTypeProperty[];
|
|
10
|
-
}
|
|
11
|
-
export interface EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes> {
|
|
12
|
-
types: T;
|
|
13
|
-
primaryType: keyof T;
|
|
14
|
-
domain: {
|
|
15
|
-
name?: string;
|
|
16
|
-
version?: string;
|
|
17
|
-
chainId?: number | bigint;
|
|
18
|
-
verifyingContract?: string;
|
|
19
|
-
salt?: ArrayBuffer;
|
|
20
|
-
};
|
|
21
|
-
message: {
|
|
22
|
-
[fieldName: string]: any;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface EthereumSignTypedData<T extends EthereumSignTypedDataTypes> {
|
|
26
|
-
path: string | number[];
|
|
27
|
-
data: EthereumSignTypedDataMessage<T>;
|
|
28
|
-
metamask_v4_compat: boolean;
|
|
29
|
-
domain_separator_hash?: undefined;
|
|
30
|
-
message_hash?: undefined;
|
|
31
|
-
}
|
|
32
|
-
export interface EthereumSignTypedHash<T extends EthereumSignTypedDataTypes> {
|
|
33
|
-
path: string | number[];
|
|
34
|
-
data: EthereumSignTypedDataMessage<T>;
|
|
35
|
-
metamask_v4_compat: boolean;
|
|
36
|
-
domain_separator_hash: string;
|
|
37
|
-
message_hash?: string;
|
|
38
|
-
}
|
|
3
|
+
import type { EthereumSignTypedDataTypes, EthereumSignTypedData, EthereumSignTypedHash } from './ethereum';
|
|
39
4
|
export declare function ethereumSignTypedData<T extends EthereumSignTypedDataTypes>(params: Params<EthereumSignTypedData<T>>): Response<PROTO.EthereumTypedDataSignature>;
|
|
40
5
|
export declare function ethereumSignTypedData<T extends EthereumSignTypedDataTypes>(params: Params<EthereumSignTypedHash<T>>): Response<PROTO.EthereumTypedDataSignature>;
|
|
41
|
-
export {};
|
|
42
6
|
//# sourceMappingURL=ethereumSignTypedData.d.ts.map
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { PROTO } from '../../constants';
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
|
-
|
|
4
|
-
address: string;
|
|
5
|
-
message: string;
|
|
6
|
-
hex?: boolean;
|
|
7
|
-
signature: string;
|
|
8
|
-
}
|
|
3
|
+
import type { EthereumVerifyMessage } from './ethereum';
|
|
9
4
|
export declare function ethereumVerifyMessage(params: Params<EthereumVerifyMessage>): Response<PROTO.Success>;
|
|
10
5
|
//# sourceMappingURL=ethereumVerifyMessage.d.ts.map
|