@metamask/keyring-api 20.0.0 → 20.1.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/CHANGELOG.md +15 -1
- package/dist/api/account.cjs +9 -1
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +10 -3
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +10 -3
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +8 -0
- package/dist/api/account.mjs.map +1 -1
- package/dist/btc/types.cjs +10 -3
- package/dist/btc/types.cjs.map +1 -1
- package/dist/btc/types.d.cts +53 -13
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +53 -13
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/btc/types.mjs +10 -3
- package/dist/btc/types.mjs.map +1 -1
- package/dist/events.d.cts +10 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +10 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/rpc.d.cts +15 -11
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +15 -11
- package/dist/rpc.d.mts.map +1 -1
- package/dist/trx/constants.cjs +14 -0
- package/dist/trx/constants.cjs.map +1 -0
- package/dist/trx/constants.d.cts +9 -0
- package/dist/trx/constants.d.cts.map +1 -0
- package/dist/trx/constants.d.mts +9 -0
- package/dist/trx/constants.d.mts.map +1 -0
- package/dist/trx/constants.mjs +11 -0
- package/dist/trx/constants.mjs.map +1 -0
- package/dist/trx/index.cjs +19 -0
- package/dist/trx/index.cjs.map +1 -0
- package/dist/trx/index.d.cts +3 -0
- package/dist/trx/index.d.cts.map +1 -0
- package/dist/trx/index.d.mts +3 -0
- package/dist/trx/index.d.mts.map +1 -0
- package/dist/trx/index.mjs +3 -0
- package/dist/trx/index.mjs.map +1 -0
- package/dist/trx/types.cjs +40 -0
- package/dist/trx/types.cjs.map +1 -0
- package/dist/trx/types.d.cts +65 -0
- package/dist/trx/types.d.cts.map +1 -0
- package/dist/trx/types.d.mts +65 -0
- package/dist/trx/types.d.mts.map +1 -0
- package/dist/trx/types.mjs +37 -0
- package/dist/trx/types.mjs.map +1 -0
- package/package.json +1 -1
package/dist/btc/types.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gCAAgC;AAEjD,OAAO,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACT,8BAA8B;AAC/B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mCAAmC;AAEzE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACrB,yBAAe;AAEhB,MAAM,eAAe,GAAG,CACtB,OAAe,EACf,IAAiB,EACA,EAAE;IACnB,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,WAAW,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,IAAI,KAAK,CAAC,WAAW,IAAI,UAAU,CAAC,CAAC;IAC9C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,KAAK,CACd,oBAAoB,IAAI,aAAc,KAAe,CAAC,OAAO,EAAE,CAChE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CACzC,MAAM,EAAE,EACR,uBAAuB,EACvB,CAAC,OAAe,EAAE,EAAE;I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sourcesContent":["import { object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport {\n string,\n array,\n enums,\n refine,\n literal,\n nonempty,\n} from '@metamask/superstruct';\nimport { AddressType, getAddressInfo } from 'bitcoin-address-validation';\n\nimport {\n BtcAccountType,\n CaipChainIdStruct,\n KeyringAccountStruct,\n} from '../api';\n\nconst validateAddress = (\n address: string,\n type: AddressType,\n): boolean | Error => {\n try {\n const addressInfo = getAddressInfo(address);\n if (addressInfo.type === type) {\n return true;\n }\n return new Error(`Invalid ${type} address`);\n } catch (error) {\n return new Error(\n `Failed to decode ${type} address: ${(error as Error).message}`,\n );\n }\n};\n\nexport const BtcP2pkhAddressStruct = refine(\n string(),\n 'BtcP2pkhAddressStruct',\n (address: string) => {\n return validateAddress(address, AddressType.p2pkh);\n },\n);\n\nexport const BtcP2shAddressStruct = refine(\n string(),\n 'BtcP2shAddressStruct',\n (address: string) => {\n return validateAddress(address, AddressType.p2sh);\n },\n);\n\nexport const BtcP2wpkhAddressStruct = refine(\n string(),\n 'BtcP2wpkhAddressStruct',\n (address: string) => {\n return validateAddress(address, AddressType.p2wpkh);\n },\n);\n\nexport const BtcP2trAddressStruct = refine(\n string(),\n 'BtcP2trAddressStruct',\n (address: string) => {\n return validateAddress(address, AddressType.p2tr);\n },\n);\n\n/**\n * Supported Bitcoin methods.\n */\nexport enum BtcMethod {\n SignPsbt = 'signPsbt',\n ComputeFee = 'computeFee',\n FillPsbt = 'fillPsbt',\n BroadcastPsbt = 'broadcastPsbt',\n SendTransfer = 'sendTransfer',\n GetUtxo = 'getUtxo',\n ListUtxos = 'listUtxos',\n PublicDescriptor = 'publicDescriptor',\n SignMessage = 'signMessage',\n}\n\nconst BtcAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account supported scopes (CAIP-2 chain ID).\n */\n scopes: nonempty(array(CaipChainIdStruct)),\n\n /**\n * Account supported methods.\n */\n methods: array(enums(Object.values(BtcMethod))),\n});\n\nexport const BtcP2pkhAccountStruct = object({\n ...BtcAccountStruct.schema,\n\n /**\n * Account P2PKH address.\n */\n address: BtcP2pkhAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2pkh}`),\n});\n\nexport const BtcP2shAccountStruct = object({\n ...BtcAccountStruct.schema,\n\n /**\n * Account P2SH address.\n */\n address: BtcP2shAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2sh}`),\n});\n\nexport const BtcP2wpkhAccountStruct = object({\n ...BtcAccountStruct.schema,\n\n /**\n * Account P2WPKH address.\n */\n address: BtcP2wpkhAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2wpkh}`),\n});\n\nexport const BtcP2trAccountStruct = object({\n ...BtcAccountStruct.schema,\n\n /**\n * Account P2TR address.\n */\n address: BtcP2trAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2tr}`),\n});\n\nexport type BtcP2pkhAccount = Infer<typeof BtcP2pkhAccountStruct>;\nexport type BtcP2shAccount = Infer<typeof BtcP2shAccountStruct>;\nexport type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;\nexport type BtcP2trAccount = Infer<typeof BtcP2trAccountStruct>;\n"]}
|
package/dist/events.d.cts
CHANGED
@@ -16,7 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
16
16
|
method: "notify:accountCreated";
|
17
17
|
params: {
|
18
18
|
account: {
|
19
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
20
20
|
id: string;
|
21
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
22
22
|
entropy?: {
|
@@ -44,7 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
44
44
|
method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
|
45
45
|
params: import("@metamask/superstruct").Struct<{
|
46
46
|
account: {
|
47
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
48
48
|
id: string;
|
49
49
|
options: Record<string, import("@metamask/utils").Json> & {
|
50
50
|
entropy?: {
|
@@ -77,7 +77,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
77
77
|
* New account object.
|
78
78
|
*/
|
79
79
|
account: import("@metamask/superstruct").Struct<{
|
80
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
81
81
|
id: string;
|
82
82
|
options: Record<string, import("@metamask/utils").Json> & {
|
83
83
|
entropy?: {
|
@@ -95,7 +95,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
95
95
|
methods: string[];
|
96
96
|
}, {
|
97
97
|
id: import("@metamask/superstruct").Struct<string, null>;
|
98
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
99
99
|
"eip155:eoa": "eip155:eoa";
|
100
100
|
"eip155:erc4337": "eip155:erc4337";
|
101
101
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -103,6 +103,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
103
103
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
104
104
|
"bip122:p2tr": "bip122:p2tr";
|
105
105
|
"solana:data-account": "solana:data-account";
|
106
|
+
"tron:eoa": "tron:eoa";
|
106
107
|
"any:account": "any:account";
|
107
108
|
}>;
|
108
109
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -151,7 +152,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
151
152
|
method: "notify:accountUpdated";
|
152
153
|
params: {
|
153
154
|
account: {
|
154
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
155
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
155
156
|
id: string;
|
156
157
|
options: Record<string, import("@metamask/utils").Json> & {
|
157
158
|
entropy?: {
|
@@ -173,7 +174,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
173
174
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
174
175
|
params: import("@metamask/superstruct").Struct<{
|
175
176
|
account: {
|
176
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
177
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
177
178
|
id: string;
|
178
179
|
options: Record<string, import("@metamask/utils").Json> & {
|
179
180
|
entropy?: {
|
@@ -195,7 +196,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
195
196
|
* Updated account object.
|
196
197
|
*/
|
197
198
|
account: import("@metamask/superstruct").Struct<{
|
198
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
199
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
199
200
|
id: string;
|
200
201
|
options: Record<string, import("@metamask/utils").Json> & {
|
201
202
|
entropy?: {
|
@@ -213,7 +214,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
213
214
|
methods: string[];
|
214
215
|
}, {
|
215
216
|
id: import("@metamask/superstruct").Struct<string, null>;
|
216
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
217
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
217
218
|
"eip155:eoa": "eip155:eoa";
|
218
219
|
"eip155:erc4337": "eip155:erc4337";
|
219
220
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -221,6 +222,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
221
222
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
222
223
|
"bip122:p2tr": "bip122:p2tr";
|
223
224
|
"solana:data-account": "solana:data-account";
|
225
|
+
"tron:eoa": "tron:eoa";
|
224
226
|
"any:account": "any:account";
|
225
227
|
}>;
|
226
228
|
address: import("@metamask/superstruct").Struct<string, null>;
|
package/dist/events.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG
|
1
|
+
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GA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AM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG9C;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaL,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,sCAAsC,GAChD,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;QAG3C;;WAEG;;;;;;EAuBL,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAC7C,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAEzC;;GAEG;AAEH,KAAK,aAAa,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,4BAA4B,GAC5B,2BAA2B,GAC3B,+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/events.d.mts
CHANGED
@@ -16,7 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
16
16
|
method: "notify:accountCreated";
|
17
17
|
params: {
|
18
18
|
account: {
|
19
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
20
20
|
id: string;
|
21
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
22
22
|
entropy?: {
|
@@ -44,7 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
44
44
|
method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
|
45
45
|
params: import("@metamask/superstruct").Struct<{
|
46
46
|
account: {
|
47
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
48
48
|
id: string;
|
49
49
|
options: Record<string, import("@metamask/utils").Json> & {
|
50
50
|
entropy?: {
|
@@ -77,7 +77,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
77
77
|
* New account object.
|
78
78
|
*/
|
79
79
|
account: import("@metamask/superstruct").Struct<{
|
80
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
81
81
|
id: string;
|
82
82
|
options: Record<string, import("@metamask/utils").Json> & {
|
83
83
|
entropy?: {
|
@@ -95,7 +95,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
95
95
|
methods: string[];
|
96
96
|
}, {
|
97
97
|
id: import("@metamask/superstruct").Struct<string, null>;
|
98
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
99
99
|
"eip155:eoa": "eip155:eoa";
|
100
100
|
"eip155:erc4337": "eip155:erc4337";
|
101
101
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -103,6 +103,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
103
103
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
104
104
|
"bip122:p2tr": "bip122:p2tr";
|
105
105
|
"solana:data-account": "solana:data-account";
|
106
|
+
"tron:eoa": "tron:eoa";
|
106
107
|
"any:account": "any:account";
|
107
108
|
}>;
|
108
109
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -151,7 +152,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
151
152
|
method: "notify:accountUpdated";
|
152
153
|
params: {
|
153
154
|
account: {
|
154
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
155
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
155
156
|
id: string;
|
156
157
|
options: Record<string, import("@metamask/utils").Json> & {
|
157
158
|
entropy?: {
|
@@ -173,7 +174,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
173
174
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
174
175
|
params: import("@metamask/superstruct").Struct<{
|
175
176
|
account: {
|
176
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
177
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
177
178
|
id: string;
|
178
179
|
options: Record<string, import("@metamask/utils").Json> & {
|
179
180
|
entropy?: {
|
@@ -195,7 +196,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
195
196
|
* Updated account object.
|
196
197
|
*/
|
197
198
|
account: import("@metamask/superstruct").Struct<{
|
198
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
199
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
199
200
|
id: string;
|
200
201
|
options: Record<string, import("@metamask/utils").Json> & {
|
201
202
|
entropy?: {
|
@@ -213,7 +214,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
213
214
|
methods: string[];
|
214
215
|
}, {
|
215
216
|
id: import("@metamask/superstruct").Struct<string, null>;
|
216
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
217
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
217
218
|
"eip155:eoa": "eip155:eoa";
|
218
219
|
"eip155:erc4337": "eip155:erc4337";
|
219
220
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -221,6 +222,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
221
222
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
222
223
|
"bip122:p2tr": "bip122:p2tr";
|
223
224
|
"solana:data-account": "solana:data-account";
|
225
|
+
"tron:eoa": "tron:eoa";
|
224
226
|
"any:account": "any:account";
|
225
227
|
}>;
|
226
228
|
address: import("@metamask/superstruct").Struct<string, null>;
|
package/dist/events.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;Q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A2B,GAAG,KAAK,CAC7C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,kCAAkC,GAC5C,2BAA2B,CAAC,QAAQ,CAAC,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG9C;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaL,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,sCAAsC,GAChD,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;QAG3C;;WAEG;;;;;;EAuBL,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAC7C,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAEzC;;GAEG;AAEH,KAAK,aAAa,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,4BAA4B,GAC5B,2BAA2B,GAC3B,+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/index.cjs
CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./api/index.cjs"), exports);
|
|
18
18
|
__exportStar(require("./btc/index.cjs"), exports);
|
19
19
|
__exportStar(require("./sol/index.cjs"), exports);
|
20
20
|
__exportStar(require("./eth/index.cjs"), exports);
|
21
|
+
__exportStar(require("./trx/index.cjs"), exports);
|
21
22
|
__exportStar(require("./rpc.cjs"), exports);
|
22
23
|
__exportStar(require("./events.cjs"), exports);
|
23
24
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AAEtB,4CAAsB;AACtB,+CAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AAEtB,4CAAsB;AACtB,+CAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport * from './trx';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
package/dist/index.d.cts
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.cjs";
|
|
2
2
|
export * from "./btc/index.cjs";
|
3
3
|
export * from "./sol/index.cjs";
|
4
4
|
export * from "./eth/index.cjs";
|
5
|
+
export * from "./trx/index.cjs";
|
5
6
|
export type * from "./contexts.cjs";
|
6
7
|
export * from "./rpc.cjs";
|
7
8
|
export * from "./events.cjs";
|
package/dist/index.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
package/dist/index.d.mts
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.mjs";
|
|
2
2
|
export * from "./btc/index.mjs";
|
3
3
|
export * from "./sol/index.mjs";
|
4
4
|
export * from "./eth/index.mjs";
|
5
|
+
export * from "./trx/index.mjs";
|
5
6
|
export type * from "./contexts.mjs";
|
6
7
|
export * from "./rpc.mjs";
|
7
8
|
export * from "./events.mjs";
|
package/dist/index.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
package/dist/index.mjs
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.mjs";
|
|
2
2
|
export * from "./btc/index.mjs";
|
3
3
|
export * from "./sol/index.mjs";
|
4
4
|
export * from "./eth/index.mjs";
|
5
|
+
export * from "./trx/index.mjs";
|
5
6
|
export * from "./rpc.mjs";
|
6
7
|
export * from "./events.mjs";
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AAEtB,0BAAsB;AACtB,6BAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AAEtB,0BAAsB;AACtB,6BAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport * from './trx';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
package/dist/rpc.d.cts
CHANGED
@@ -39,7 +39,7 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
43
43
|
id: string;
|
44
44
|
options: Record<string, import("@metamask/utils").Json> & {
|
45
45
|
entropy?: {
|
@@ -56,7 +56,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
56
56
|
scopes: `${string}:${string}`[];
|
57
57
|
methods: string[];
|
58
58
|
}[], import("@metamask/superstruct").Struct<{
|
59
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
60
60
|
id: string;
|
61
61
|
options: Record<string, import("@metamask/utils").Json> & {
|
62
62
|
entropy?: {
|
@@ -74,7 +74,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
74
74
|
methods: string[];
|
75
75
|
}, {
|
76
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
77
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
78
78
|
"eip155:eoa": "eip155:eoa";
|
79
79
|
"eip155:erc4337": "eip155:erc4337";
|
80
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -82,6 +82,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
82
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
83
83
|
"bip122:p2tr": "bip122:p2tr";
|
84
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"tron:eoa": "tron:eoa";
|
85
86
|
"any:account": "any:account";
|
86
87
|
}>;
|
87
88
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -119,7 +120,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
119
120
|
}>;
|
120
121
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
121
122
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
122
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
123
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
123
124
|
id: string;
|
124
125
|
options: Record<string, import("@metamask/utils").Json> & {
|
125
126
|
entropy?: {
|
@@ -137,7 +138,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
137
138
|
methods: string[];
|
138
139
|
}, {
|
139
140
|
id: import("@metamask/superstruct").Struct<string, null>;
|
140
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
141
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
141
142
|
"eip155:eoa": "eip155:eoa";
|
142
143
|
"eip155:erc4337": "eip155:erc4337";
|
143
144
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -145,6 +146,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
145
146
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
146
147
|
"bip122:p2tr": "bip122:p2tr";
|
147
148
|
"solana:data-account": "solana:data-account";
|
149
|
+
"tron:eoa": "tron:eoa";
|
148
150
|
"any:account": "any:account";
|
149
151
|
}>;
|
150
152
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -182,7 +184,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
182
184
|
}>;
|
183
185
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
184
186
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
185
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
187
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
186
188
|
id: string;
|
187
189
|
options: Record<string, import("@metamask/utils").Json> & {
|
188
190
|
entropy?: {
|
@@ -200,7 +202,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
200
202
|
methods: string[];
|
201
203
|
}, {
|
202
204
|
id: import("@metamask/superstruct").Struct<string, null>;
|
203
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
205
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
204
206
|
"eip155:eoa": "eip155:eoa";
|
205
207
|
"eip155:erc4337": "eip155:erc4337";
|
206
208
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -208,6 +210,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
208
210
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
209
211
|
"bip122:p2tr": "bip122:p2tr";
|
210
212
|
"solana:data-account": "solana:data-account";
|
213
|
+
"tron:eoa": "tron:eoa";
|
211
214
|
"any:account": "any:account";
|
212
215
|
}>;
|
213
216
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -707,7 +710,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
707
710
|
jsonrpc: "2.0";
|
708
711
|
params: {
|
709
712
|
account: {
|
710
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
713
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
711
714
|
id: string;
|
712
715
|
options: Record<string, import("@metamask/utils").Json> & {
|
713
716
|
entropy?: {
|
@@ -729,7 +732,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
729
732
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
730
733
|
params: import("@metamask/superstruct").Struct<{
|
731
734
|
account: {
|
732
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
735
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
733
736
|
id: string;
|
734
737
|
options: Record<string, import("@metamask/utils").Json> & {
|
735
738
|
entropy?: {
|
@@ -748,7 +751,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
748
751
|
};
|
749
752
|
}, {
|
750
753
|
account: import("@metamask/superstruct").Struct<{
|
751
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
754
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
752
755
|
id: string;
|
753
756
|
options: Record<string, import("@metamask/utils").Json> & {
|
754
757
|
entropy?: {
|
@@ -766,7 +769,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
766
769
|
methods: string[];
|
767
770
|
}, {
|
768
771
|
id: import("@metamask/superstruct").Struct<string, null>;
|
769
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
772
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
770
773
|
"eip155:eoa": "eip155:eoa";
|
771
774
|
"eip155:erc4337": "eip155:erc4337";
|
772
775
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -774,6 +777,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
774
777
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
775
778
|
"bip122:p2tr": "bip122:p2tr";
|
776
779
|
"solana:data-account": "solana:data-account";
|
780
|
+
"tron:eoa": "tron:eoa";
|
777
781
|
"any:account": "any:account";
|
778
782
|
}>;
|
779
783
|
address: import("@metamask/superstruct").Struct<string, null>;
|
package/dist/rpc.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BA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AM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAKxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;QAAwB,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAK9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B,oDAAgB,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAKhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/rpc.d.mts
CHANGED
@@ -39,7 +39,7 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
43
43
|
id: string;
|
44
44
|
options: Record<string, import("@metamask/utils").Json> & {
|
45
45
|
entropy?: {
|
@@ -56,7 +56,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
56
56
|
scopes: `${string}:${string}`[];
|
57
57
|
methods: string[];
|
58
58
|
}[], import("@metamask/superstruct").Struct<{
|
59
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
60
60
|
id: string;
|
61
61
|
options: Record<string, import("@metamask/utils").Json> & {
|
62
62
|
entropy?: {
|
@@ -74,7 +74,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
74
74
|
methods: string[];
|
75
75
|
}, {
|
76
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
77
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
78
78
|
"eip155:eoa": "eip155:eoa";
|
79
79
|
"eip155:erc4337": "eip155:erc4337";
|
80
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -82,6 +82,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
82
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
83
83
|
"bip122:p2tr": "bip122:p2tr";
|
84
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"tron:eoa": "tron:eoa";
|
85
86
|
"any:account": "any:account";
|
86
87
|
}>;
|
87
88
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -119,7 +120,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
119
120
|
}>;
|
120
121
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
121
122
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
122
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
123
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
123
124
|
id: string;
|
124
125
|
options: Record<string, import("@metamask/utils").Json> & {
|
125
126
|
entropy?: {
|
@@ -137,7 +138,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
137
138
|
methods: string[];
|
138
139
|
}, {
|
139
140
|
id: import("@metamask/superstruct").Struct<string, null>;
|
140
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
141
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
141
142
|
"eip155:eoa": "eip155:eoa";
|
142
143
|
"eip155:erc4337": "eip155:erc4337";
|
143
144
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -145,6 +146,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
145
146
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
146
147
|
"bip122:p2tr": "bip122:p2tr";
|
147
148
|
"solana:data-account": "solana:data-account";
|
149
|
+
"tron:eoa": "tron:eoa";
|
148
150
|
"any:account": "any:account";
|
149
151
|
}>;
|
150
152
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -182,7 +184,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
182
184
|
}>;
|
183
185
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
184
186
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
185
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
187
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
186
188
|
id: string;
|
187
189
|
options: Record<string, import("@metamask/utils").Json> & {
|
188
190
|
entropy?: {
|
@@ -200,7 +202,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
200
202
|
methods: string[];
|
201
203
|
}, {
|
202
204
|
id: import("@metamask/superstruct").Struct<string, null>;
|
203
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
205
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
204
206
|
"eip155:eoa": "eip155:eoa";
|
205
207
|
"eip155:erc4337": "eip155:erc4337";
|
206
208
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -208,6 +210,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
208
210
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
209
211
|
"bip122:p2tr": "bip122:p2tr";
|
210
212
|
"solana:data-account": "solana:data-account";
|
213
|
+
"tron:eoa": "tron:eoa";
|
211
214
|
"any:account": "any:account";
|
212
215
|
}>;
|
213
216
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -707,7 +710,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
707
710
|
jsonrpc: "2.0";
|
708
711
|
params: {
|
709
712
|
account: {
|
710
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
713
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
711
714
|
id: string;
|
712
715
|
options: Record<string, import("@metamask/utils").Json> & {
|
713
716
|
entropy?: {
|
@@ -729,7 +732,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
729
732
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
730
733
|
params: import("@metamask/superstruct").Struct<{
|
731
734
|
account: {
|
732
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
735
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
733
736
|
id: string;
|
734
737
|
options: Record<string, import("@metamask/utils").Json> & {
|
735
738
|
entropy?: {
|
@@ -748,7 +751,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
748
751
|
};
|
749
752
|
}, {
|
750
753
|
account: import("@metamask/superstruct").Struct<{
|
751
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
754
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
752
755
|
id: string;
|
753
756
|
options: Record<string, import("@metamask/utils").Json> & {
|
754
757
|
entropy?: {
|
@@ -766,7 +769,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
766
769
|
methods: string[];
|
767
770
|
}, {
|
768
771
|
id: import("@metamask/superstruct").Struct<string, null>;
|
769
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
772
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
770
773
|
"eip155:eoa": "eip155:eoa";
|
771
774
|
"eip155:erc4337": "eip155:erc4337";
|
772
775
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -774,6 +777,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
774
777
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
775
778
|
"bip122:p2tr": "bip122:p2tr";
|
776
779
|
"solana:data-account": "solana:data-account";
|
780
|
+
"tron:eoa": "tron:eoa";
|
777
781
|
"any:account": "any:account";
|
778
782
|
}>;
|
779
783
|
address: import("@metamask/superstruct").Struct<string, null>;
|