@onekeyfe/hd-core 1.0.12 → 1.0.13

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.
Files changed (84) hide show
  1. package/dist/api/alephium/AlephiumGetAddress.d.ts.map +1 -1
  2. package/dist/api/allnetwork/AllNetworkGetAddress.d.ts.map +1 -1
  3. package/dist/api/aptos/AptosGetAddress.d.ts.map +1 -1
  4. package/dist/api/aptos/AptosGetPublicKey.d.ts +2 -7
  5. package/dist/api/aptos/AptosGetPublicKey.d.ts.map +1 -1
  6. package/dist/api/cosmos/CosmosGetPublicKey.d.ts +2 -7
  7. package/dist/api/cosmos/CosmosGetPublicKey.d.ts.map +1 -1
  8. package/dist/api/evm/EVMGetPublicKey.d.ts +2 -1
  9. package/dist/api/evm/EVMGetPublicKey.d.ts.map +1 -1
  10. package/dist/api/lightning/LnurlAuth.d.ts +6 -1
  11. package/dist/api/lightning/LnurlAuth.d.ts.map +1 -1
  12. package/dist/api/nostr/NostrGetPublicKey.d.ts.map +1 -1
  13. package/dist/api/polkadot/PolkadotGetAddress.d.ts.map +1 -1
  14. package/dist/api/sui/SuiGetAddress.d.ts.map +1 -1
  15. package/dist/api/sui/SuiGetPublicKey.d.ts +2 -7
  16. package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -1
  17. package/dist/api/ton/TonGetAddress.d.ts.map +1 -1
  18. package/dist/api/xrp/XrpGetAddress.d.ts +5 -1
  19. package/dist/api/xrp/XrpGetAddress.d.ts.map +1 -1
  20. package/dist/constants/ui-request.d.ts +1 -0
  21. package/dist/constants/ui-request.d.ts.map +1 -1
  22. package/dist/events/ui-request.d.ts +8 -1
  23. package/dist/events/ui-request.d.ts.map +1 -1
  24. package/dist/index.d.ts +38 -13
  25. package/dist/index.js +159 -89
  26. package/dist/types/api/alephiumGetAddress.d.ts +1 -0
  27. package/dist/types/api/alephiumGetAddress.d.ts.map +1 -1
  28. package/dist/types/api/allNetworkGetAddress.d.ts +9 -3
  29. package/dist/types/api/allNetworkGetAddress.d.ts.map +1 -1
  30. package/dist/types/api/aptosGetAddress.d.ts +1 -0
  31. package/dist/types/api/aptosGetAddress.d.ts.map +1 -1
  32. package/dist/types/api/aptosGetPublicKey.d.ts +2 -1
  33. package/dist/types/api/aptosGetPublicKey.d.ts.map +1 -1
  34. package/dist/types/api/cardanoGetPublicKey.d.ts +1 -1
  35. package/dist/types/api/cardanoGetPublicKey.d.ts.map +1 -1
  36. package/dist/types/api/cosmosGetPublicKey.d.ts +2 -1
  37. package/dist/types/api/cosmosGetPublicKey.d.ts.map +1 -1
  38. package/dist/types/api/evmGetPublicKey.d.ts +2 -1
  39. package/dist/types/api/evmGetPublicKey.d.ts.map +1 -1
  40. package/dist/types/api/lnurlAuth.d.ts +1 -0
  41. package/dist/types/api/lnurlAuth.d.ts.map +1 -1
  42. package/dist/types/api/nostrGetPublicKey.d.ts +2 -1
  43. package/dist/types/api/nostrGetPublicKey.d.ts.map +1 -1
  44. package/dist/types/api/polkadotGetAddress.d.ts +2 -1
  45. package/dist/types/api/polkadotGetAddress.d.ts.map +1 -1
  46. package/dist/types/api/suiGetAddress.d.ts +1 -0
  47. package/dist/types/api/suiGetAddress.d.ts.map +1 -1
  48. package/dist/types/api/suiGetPublicKey.d.ts +2 -1
  49. package/dist/types/api/suiGetPublicKey.d.ts.map +1 -1
  50. package/dist/types/api/tonGetAddress.d.ts +2 -1
  51. package/dist/types/api/tonGetAddress.d.ts.map +1 -1
  52. package/dist/types/api/xrpGetAddress.d.ts +1 -0
  53. package/dist/types/api/xrpGetAddress.d.ts.map +1 -1
  54. package/package.json +4 -4
  55. package/src/api/alephium/AlephiumGetAddress.ts +2 -1
  56. package/src/api/allnetwork/AllNetworkGetAddress.ts +54 -30
  57. package/src/api/aptos/AptosGetAddress.ts +63 -38
  58. package/src/api/aptos/AptosGetPublicKey.ts +9 -6
  59. package/src/api/cardano/CardanoGetPublicKey.ts +2 -2
  60. package/src/api/cosmos/CosmosGetPublicKey.ts +9 -6
  61. package/src/api/evm/EVMGetPublicKey.ts +4 -2
  62. package/src/api/lightning/LnurlAuth.ts +4 -1
  63. package/src/api/nostr/NostrGetPublicKey.ts +3 -1
  64. package/src/api/polkadot/PolkadotGetAddress.ts +2 -1
  65. package/src/api/sui/SuiGetAddress.ts +58 -38
  66. package/src/api/sui/SuiGetPublicKey.ts +9 -6
  67. package/src/api/ton/TonGetAddress.ts +2 -1
  68. package/src/api/xrp/XrpGetAddress.ts +2 -1
  69. package/src/constants/ui-request.ts +1 -0
  70. package/src/events/ui-request.ts +9 -0
  71. package/src/types/api/alephiumGetAddress.ts +4 -0
  72. package/src/types/api/allNetworkGetAddress.ts +16 -4
  73. package/src/types/api/aptosGetAddress.ts +4 -0
  74. package/src/types/api/aptosGetPublicKey.ts +5 -1
  75. package/src/types/api/cardanoGetPublicKey.ts +1 -1
  76. package/src/types/api/cosmosGetPublicKey.ts +5 -1
  77. package/src/types/api/evmGetPublicKey.ts +5 -1
  78. package/src/types/api/lnurlAuth.ts +4 -0
  79. package/src/types/api/nostrGetPublicKey.ts +5 -1
  80. package/src/types/api/polkadotGetAddress.ts +5 -1
  81. package/src/types/api/suiGetAddress.ts +4 -0
  82. package/src/types/api/suiGetPublicKey.ts +5 -1
  83. package/src/types/api/tonGetAddress.ts +5 -1
  84. package/src/types/api/xrpGetAddress.ts +4 -0
@@ -1 +1 @@
1
- {"version":3,"file":"AlephiumGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/alephium/AlephiumGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAA4B,MAAM,aAAa,CAAC;AAExE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACtF,SAAS,UAAS;IAElB,IAAI;IAkCJ,eAAe;;;;;IAQT,GAAG;CA6BV"}
1
+ {"version":3,"file":"AlephiumGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/alephium/AlephiumGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAA4B,MAAM,aAAa,CAAC;AAExE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACtF,SAAS,UAAS;IAElB,IAAI;IAkCJ,eAAe;;;;;IAQT,GAAG;CA8BV"}
@@ -1 +1 @@
1
- {"version":3,"file":"AllNetworkGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/allnetwork/AllNetworkGetAddress.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,QAAQ,EACT,MAAM,sCAAsC,CAAC;AA4N9C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,UAAU,CAC1D;IACE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,EAAE,CACJ;IACC,IAAI;IAkBJ,kBAAkB,CAAC,EACjB,OAAO,EACP,OAAO,GACR,EAAE;QACD,OAAO,EAAE,QAAQ,CAAC;QAClB,OAAO,EAAE,uBAAuB,CAAC;KAClC,GAAG;QACF,UAAU,EAAE,MAAM,OAAO,CAAC;QAC1B,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,C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B,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/C,EAAE,GACH,SAAS,CAAC;KACf;IAyBK,UAAU,CAAC,UAAU,EAAE,MAAM,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,oBAAoB;IAkDnF,GAAG;CAqDV"}
@@ -1 +1 @@
1
- {"version":3,"file":"AptosGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/aptos/AptosGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAMpF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAIlE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,uBAAuB,EAAE,CAAC;IAChF,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IAiCJ,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAOpC,eAAe;;;;;IAQT,GAAG;CA2CV"}
1
+ {"version":3,"file":"AptosGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/aptos/AptosGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAMpF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAIlE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,uBAAuB,EAAE,CAAC;IAChF,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IAiCJ,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAOpC,eAAe;;;;;IAQT,GAAG;CAoEV"}
@@ -1,4 +1,5 @@
1
1
  import { BaseMethod } from '../BaseMethod';
2
+ import { AptosPublicKey } from '../../types';
2
3
  export default class AptosGetPublicKey extends BaseMethod<any> {
3
4
  hasBundle: boolean;
4
5
  init(): void;
@@ -7,12 +8,6 @@ export default class AptosGetPublicKey extends BaseMethod<any> {
7
8
  min: string;
8
9
  };
9
10
  };
10
- run(): Promise<{
11
- path: string;
12
- publicKey: string;
13
- } | {
14
- path: string;
15
- publicKey: string;
16
- }[]>;
11
+ run(): Promise<AptosPublicKey | AptosPublicKey[]>;
17
12
  }
18
13
  //# sourceMappingURL=AptosGetPublicKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AptosGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/aptos/AptosGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC5D,SAAS,UAAS;IAElB,IAAI;IA6BJ,eAAe;;;;;IAQT,GAAG;;;;;;;CAiBV"}
1
+ {"version":3,"file":"AptosGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/aptos/AptosGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAyB,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC5D,SAAS,UAAS;IAElB,IAAI;IA6BJ,eAAe;;;;;IAQT,GAAG;CAoBV"}
@@ -1,4 +1,5 @@
1
1
  import { BaseMethod } from '../BaseMethod';
2
+ import { CosmosAddress } from '../../types';
2
3
  export default class CosmosGetPublicKey extends BaseMethod<any> {
3
4
  hasBundle: boolean;
4
5
  init(): void;
@@ -10,12 +11,6 @@ export default class CosmosGetPublicKey extends BaseMethod<any> {
10
11
  min: string;
11
12
  };
12
13
  };
13
- run(): Promise<{
14
- path: string;
15
- publicKey: string;
16
- } | {
17
- path: string;
18
- publicKey: string;
19
- }[]>;
14
+ run(): Promise<CosmosAddress | CosmosAddress[]>;
20
15
  }
21
16
  //# sourceMappingURL=CosmosGetPublicKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CosmosGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/cosmos/CosmosGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC7D,SAAS,UAAS;IAElB,IAAI;IAwCJ,eAAe;;;;;;;;IAWT,GAAG;;;;;;;CAiBV"}
1
+ {"version":3,"file":"CosmosGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/cosmos/CosmosGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAA4B,MAAM,aAAa,CAAC;AAEtE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC7D,SAAS,UAAS;IAElB,IAAI;IAwCJ,eAAe;;;;;;;;IAWT,GAAG;CAoBV"}
@@ -6,8 +6,9 @@ export default class EVMGetPublicKey extends BaseMethod<EthereumGetPublicKeyOneK
6
6
  useBatch: boolean;
7
7
  init(): void;
8
8
  getEvmPublicKey(param: EthereumGetPublicKey): Promise<import("@onekeyfe/hd-transport").MessageResponse<"EthereumPublicKeyOneKey">> | Promise<import("@onekeyfe/hd-transport").MessageResponse<"EthereumPublicKey">>;
9
- run(): Promise<EVMPublicKey | {
9
+ run(): Promise<EVMPublicKey | EVMPublicKey[] | {
10
10
  path: string;
11
+ pub: string;
11
12
  publicKey: string;
12
13
  }[]>;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EVMGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/evm/EVMGetPublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AAMlE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACnF,SAAS,UAAS;IAElB,QAAQ,UAAS;IAEjB,IAAI;IAgCJ,eAAe,CAAC,KAAK,EAAE,oBAAoB;IAcrC,GAAG;;;;CAqCV"}
1
+ {"version":3,"file":"EVMGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/evm/EVMGetPublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AAMlE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACnF,SAAS,UAAS;IAElB,QAAQ,UAAS;IAEjB,IAAI;IAgCJ,eAAe,CAAC,KAAK,EAAE,oBAAoB;IAcrC,GAAG;;;;;CAuCV"}
@@ -11,6 +11,11 @@ export default class LnurlAuth1 extends BaseMethod<ILnurlAuth> {
11
11
  min: string;
12
12
  };
13
13
  };
14
- run(): Promise<import("@onekeyfe/hd-transport").LnurlAuthResp>;
14
+ run(): Promise<{
15
+ pub: string | undefined;
16
+ publickey?: string | undefined;
17
+ path?: string | undefined;
18
+ signature?: string | undefined;
19
+ }>;
15
20
  }
16
21
  //# sourceMappingURL=LnurlAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LnurlAuth.d.ts","sourceRoot":"","sources":["../../../src/api/lightning/LnurlAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU,CAAC,UAAU,CAAC;IAC5D,SAAS,UAAS;IAElB,IAAI;IAgBJ,eAAe;;;;;;;;IAWT,GAAG;CAWV"}
1
+ {"version":3,"file":"LnurlAuth.d.ts","sourceRoot":"","sources":["../../../src/api/lightning/LnurlAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU,CAAC,UAAU,CAAC;IAC5D,SAAS,UAAS;IAElB,IAAI;IAgBJ,eAAe;;;;;;;;IAWT,GAAG;;;;;;CAcV"}
@@ -1 +1 @@
1
- {"version":3,"file":"NostrGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/nostr/NostrGetPublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU,CAAC,YAAY,EAAE,CAAC;IACvE,SAAS,UAAS;IAElB,IAAI;IA4BJ,eAAe;;;;;;;;IAWT,GAAG;CAoBV"}
1
+ {"version":3,"file":"NostrGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/nostr/NostrGetPublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU,CAAC,YAAY,EAAE,CAAC;IACvE,SAAS,UAAS;IAElB,IAAI;IA4BJ,eAAe;;;;;;;;IAWT,GAAG;CAsBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"PolkadotGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/polkadot/PolkadotGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAA4B,MAAM,aAAa,CAAC;AAGxE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACtF,SAAS,UAAS;IAElB,IAAI;IAkCJ,eAAe;;;;;;;;IAKT,GAAG;CA+BV"}
1
+ {"version":3,"file":"PolkadotGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/polkadot/PolkadotGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAA4B,MAAM,aAAa,CAAC;AAGxE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU,CAAC,0BAA0B,EAAE,CAAC;IACtF,SAAS,UAAS;IAElB,IAAI;IAkCJ,eAAe;;;;;;;;IAKT,GAAG;CAgCV"}
@@ -1 +1 @@
1
- {"version":3,"file":"SuiGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/sui/SuiGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAI9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IAiCJ,eAAe;;;;;;;;IAWT,GAAG;CA2CV"}
1
+ {"version":3,"file":"SuiGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/sui/SuiGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAI9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IAiCJ,eAAe;;;;;;;;IAWT,GAAG;CA+DV"}
@@ -1,4 +1,5 @@
1
1
  import { BaseMethod } from '../BaseMethod';
2
+ import { SuiPublicKey } from '../../types';
2
3
  export default class SuiGetPublicKey extends BaseMethod<any> {
3
4
  hasBundle: boolean;
4
5
  init(): void;
@@ -10,12 +11,6 @@ export default class SuiGetPublicKey extends BaseMethod<any> {
10
11
  min: string;
11
12
  };
12
13
  };
13
- run(): Promise<{
14
- path: string;
15
- publicKey: string;
16
- } | {
17
- path: string;
18
- publicKey: string;
19
- }[]>;
14
+ run(): Promise<SuiPublicKey | SuiPublicKey[]>;
20
15
  }
21
16
  //# sourceMappingURL=SuiGetPublicKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuiGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/sui/SuiGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC1D,SAAS,UAAS;IAElB,IAAI;IA6BJ,eAAe;;;;;;;;IAWT,GAAG;;;;;;;CAiBV"}
1
+ {"version":3,"file":"SuiGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/api/sui/SuiGetPublicKey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAuB,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC1D,SAAS,UAAS;IAElB,IAAI;IA6BJ,eAAe;;;;;;;;IAWT,GAAG;CAoBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"TonGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA2CJ,eAAe;;;;;IAQT,GAAG;CA0BV"}
1
+ {"version":3,"file":"TonGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/ton/TonGetAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAC5E,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA2CJ,eAAe;;;;;IAQT,GAAG;CA2BV"}
@@ -12,6 +12,10 @@ export default class XrpGetAddress extends BaseMethod<{
12
12
  min: string;
13
13
  };
14
14
  };
15
- run(): Promise<XrpAddress | XrpAddress[]>;
15
+ run(): Promise<XrpAddress | XrpAddress[] | {
16
+ path: string;
17
+ publicKey: string;
18
+ address: string;
19
+ }[]>;
16
20
  }
17
21
  //# sourceMappingURL=XrpGetAddress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"XrpGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/xrp/XrpGetAddress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAuB,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CACnD;IACE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB,EAAE,CACJ;IACC,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA+BJ,eAAe;;;;;IAQT,GAAG;CAwDV"}
1
+ {"version":3,"file":"XrpGetAddress.d.ts","sourceRoot":"","sources":["../../../src/api/xrp/XrpGetAddress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAuB,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CACnD;IACE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB,EAAE,CACJ;IACC,SAAS,UAAS;IAElB,aAAa,UAAS;IAEtB,IAAI;IA+BJ,eAAe;;;;;IAQT,GAAG;;;;;CAyDV"}
@@ -11,5 +11,6 @@ export declare const UI_REQUEST: {
11
11
  readonly NOT_USE_ONEKEY_DEVICE: "ui-device_please_use_onekey_device";
12
12
  readonly FIRMWARE_TIP: "ui-firmware-tip";
13
13
  readonly PREVIOUS_ADDRESS_RESULT: "ui-previous_address_result";
14
+ readonly DEVICE_PROGRESS: "ui-device_progress";
14
15
  };
15
16
  //# sourceMappingURL=ui-request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-request.d.ts","sourceRoot":"","sources":["../../src/constants/ui-request.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAeb,CAAC"}
1
+ {"version":3,"file":"ui-request.d.ts","sourceRoot":"","sources":["../../src/constants/ui-request.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAgBb,CAAC"}
@@ -10,6 +10,7 @@ export declare const UI_REQUEST: {
10
10
  readonly REQUEST_PASSPHRASE: "ui-request_passphrase";
11
11
  readonly REQUEST_PASSPHRASE_ON_DEVICE: "ui-request_passphrase_on_device";
12
12
  readonly CLOSE_UI_WINDOW: "ui-close_window";
13
+ readonly DEVICE_PROGRESS: "ui-device_progress";
13
14
  readonly BLUETOOTH_PERMISSION: "ui-bluetooth_permission";
14
15
  readonly BLUETOOTH_CHARACTERISTIC_NOTIFY_CHANGE_FAILURE: "ui-bluetooth_characteristic_notify_change_failure";
15
16
  readonly LOCATION_PERMISSION: "ui-location_permission";
@@ -63,6 +64,12 @@ export interface FirmwareTip {
63
64
  };
64
65
  };
65
66
  }
67
+ export interface DeviceProgress {
68
+ type: typeof UI_REQUEST.DEVICE_PROGRESS;
69
+ payload: {
70
+ progress?: number;
71
+ };
72
+ }
66
73
  export interface PreviousAddressResult {
67
74
  type: typeof UI_REQUEST.PREVIOUS_ADDRESS_RESULT;
68
75
  payload: {
@@ -73,7 +80,7 @@ export interface PreviousAddressResult {
73
80
  };
74
81
  };
75
82
  }
76
- export type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | PreviousAddressResult;
83
+ export type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | DeviceProgress | PreviousAddressResult;
77
84
  export type UiEventMessage = UiEvent & {
78
85
  event: typeof UI_EVENT;
79
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ui-request.d.ts","sourceRoot":"","sources":["../../src/events/ui-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,aAAa,CAAC;AAEnC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAmBb,CAAC;AAEX,MAAM,WAAW,uBAAuB;IACtC,IAAI,EACA,OAAO,UAAU,CAAC,eAAe,GACjC,OAAO,UAAU,CAAC,oBAAoB,GACtC,OAAO,UAAU,CAAC,8CAA8C,GAChE,OAAO,UAAU,CAAC,mBAAmB,GACrC,OAAO,UAAU,CAAC,2BAA2B,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,OAAO,UAAU,CAAC,WAAW,CAAC;IACpC,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;KAC9D,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,UAAU,CA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M,eAAe,EAAE,gBAAgB,CAAC,OAAO,QAAQ,EAAE,OAAO,CAK5D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -668,11 +668,13 @@ type AllNetworkAddressParams = {
668
668
  chainName?: string;
669
669
  prefix?: string;
670
670
  showOnOneKey?: boolean;
671
+ includePublicKey?: boolean;
672
+ group?: string;
671
673
  };
672
674
  type AllNetworkAddressPayload = {
673
675
  address: string;
674
- publicKey?: string;
675
676
  pub?: string;
677
+ publicKey?: string;
676
678
  npub?: string;
677
679
  } | {
678
680
  addressParameters: CardanoAddressParameters;
@@ -698,8 +700,12 @@ type AllNetworkAddressPayload = {
698
700
  };
699
701
  type AllNetworkAddress = CommonResponseParams & {
700
702
  success: boolean;
701
- error?: string;
702
- payload?: AllNetworkAddressPayload;
703
+ payload?: AllNetworkAddressPayload | {
704
+ error: string;
705
+ code: number;
706
+ connectId: string;
707
+ deviceId: string;
708
+ };
703
709
  };
704
710
  type AllNetworkGetAddressParams = {
705
711
  bundle: AllNetworkAddressParams[];
@@ -722,7 +728,8 @@ declare function evmGetAddress(connectId: string, deviceId: string, params: Comm
722
728
 
723
729
  type EVMPublicKey = {
724
730
  path: string;
725
- publicKey: string;
731
+ pub: string;
732
+ publicKey?: string;
726
733
  } & EthereumPublicKey;
727
734
  type EVMGetPublicKeyParams = {
728
735
  path: string | number[];
@@ -1411,6 +1418,7 @@ declare function nearSignTransaction(connectId: string, deviceId: string, params
1411
1418
 
1412
1419
  type AptosAddress = {
1413
1420
  path: string;
1421
+ pub?: string;
1414
1422
  publicKey?: string;
1415
1423
  } & AptosAddress$1;
1416
1424
  type AptosGetAddressParams = {
@@ -1424,7 +1432,8 @@ declare function aptosGetAddress(connectId: string, deviceId: string, params: Co
1424
1432
 
1425
1433
  type AptosPublicKey = {
1426
1434
  path: string;
1427
- publicKey: string;
1435
+ pub: string;
1436
+ publicKey?: string;
1428
1437
  };
1429
1438
  type AptosGetPublicKeyParams = {
1430
1439
  path: string | number[];
@@ -1497,7 +1506,8 @@ declare function cosmosGetAddress(connectId: string, deviceId: string, params: C
1497
1506
 
1498
1507
  type CosmosPublicKey = {
1499
1508
  path: string;
1500
- publicKey: string;
1509
+ pub: string;
1510
+ publicKey?: string;
1501
1511
  };
1502
1512
  type CosmosGetPublicKeyParams = {
1503
1513
  path: string | number[];
@@ -1520,6 +1530,7 @@ declare function cosmosSignTransaction(connectId: string, deviceId: string, para
1520
1530
 
1521
1531
  type XrpAddress = {
1522
1532
  path: string;
1533
+ pub?: string;
1523
1534
  publicKey?: string;
1524
1535
  address: string;
1525
1536
  };
@@ -1552,6 +1563,7 @@ declare function xrpSignTransaction(connectId: string, deviceId: string, params:
1552
1563
 
1553
1564
  type SuiAddress = {
1554
1565
  path: string;
1566
+ pub?: string;
1555
1567
  publicKey?: string;
1556
1568
  } & SuiAddress$1;
1557
1569
  type SuiGetAddressParams = {
@@ -1565,7 +1577,8 @@ declare function suiGetAddress(connectId: string, deviceId: string, params: Comm
1565
1577
 
1566
1578
  type SuiPublicKey = {
1567
1579
  path: string;
1568
- publicKey: string;
1580
+ pub: string;
1581
+ publicKey?: string;
1569
1582
  };
1570
1583
  type SuiGetPublicKeyParams = {
1571
1584
  path: string | number[];
@@ -1626,7 +1639,7 @@ declare function cardanoGetAddress(connectId: string, deviceId: string, params:
1626
1639
  type CardanoPublicKey = {
1627
1640
  path: number[];
1628
1641
  serializedPath: string;
1629
- publicKey: string;
1642
+ xpub: string;
1630
1643
  node: Messages.HDNodeType;
1631
1644
  };
1632
1645
  type CardanoPublicKeyMethodParams = {
@@ -1677,7 +1690,8 @@ declare function filecoinSignTransaction(connectId: string, deviceId: string, pa
1677
1690
 
1678
1691
  type PolkadotAddress = {
1679
1692
  path: string;
1680
- publicKey: string;
1693
+ pub: string;
1694
+ publicKey?: string;
1681
1695
  } & PolkadotAddress$1;
1682
1696
  type PolkadotGetAddressParams = {
1683
1697
  path: string | number[];
@@ -1792,7 +1806,8 @@ declare function nexaSignTransaction(connectId: string, deviceId: string, params
1792
1806
 
1793
1807
  type NostrPublicKey = {
1794
1808
  npub?: string;
1795
- publickey?: string;
1809
+ pub?: string;
1810
+ publicKey?: string;
1796
1811
  path: string;
1797
1812
  };
1798
1813
  interface NostrPublicKeyParams {
@@ -1887,6 +1902,7 @@ type NostrSignedSchnorrResponse = {
1887
1902
  declare function nostrSignSchnorr(connectId: string, deviceId: string, params: CommonParams & NostrSignSchnorrParams): Response<NostrSignedSchnorrResponse>;
1888
1903
 
1889
1904
  interface LnurlAuth {
1905
+ pub?: string;
1890
1906
  publickey?: string;
1891
1907
  path?: string;
1892
1908
  signature?: string;
@@ -1962,7 +1978,8 @@ declare function dnxSignTransaction(connectId: string, deviceId: string, params:
1962
1978
 
1963
1979
  type TonAddress = {
1964
1980
  path: string;
1965
- publicKey: string;
1981
+ pub: string;
1982
+ publicKey?: string;
1966
1983
  address: string;
1967
1984
  };
1968
1985
  type TonGetAddressParams = {
@@ -2056,6 +2073,7 @@ declare function scdoSignTransaction(connectId: string, deviceId: string, params
2056
2073
  type AlephiumAddress = {
2057
2074
  path: string;
2058
2075
  publicKey?: string;
2076
+ pub?: string;
2059
2077
  address: string;
2060
2078
  derivedPath: string;
2061
2079
  };
@@ -2300,6 +2318,7 @@ declare const UI_REQUEST: {
2300
2318
  readonly REQUEST_PASSPHRASE: "ui-request_passphrase";
2301
2319
  readonly REQUEST_PASSPHRASE_ON_DEVICE: "ui-request_passphrase_on_device";
2302
2320
  readonly CLOSE_UI_WINDOW: "ui-close_window";
2321
+ readonly DEVICE_PROGRESS: "ui-device_progress";
2303
2322
  readonly BLUETOOTH_PERMISSION: "ui-bluetooth_permission";
2304
2323
  readonly BLUETOOTH_CHARACTERISTIC_NOTIFY_CHANGE_FAILURE: "ui-bluetooth_characteristic_notify_change_failure";
2305
2324
  readonly LOCATION_PERMISSION: "ui-location_permission";
@@ -2353,6 +2372,12 @@ interface FirmwareTip {
2353
2372
  };
2354
2373
  };
2355
2374
  }
2375
+ interface DeviceProgress {
2376
+ type: typeof UI_REQUEST.DEVICE_PROGRESS;
2377
+ payload: {
2378
+ progress?: number;
2379
+ };
2380
+ }
2356
2381
  interface PreviousAddressResult {
2357
2382
  type: typeof UI_REQUEST.PREVIOUS_ADDRESS_RESULT;
2358
2383
  payload: {
@@ -2363,7 +2388,7 @@ interface PreviousAddressResult {
2363
2388
  };
2364
2389
  };
2365
2390
  }
2366
- type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | PreviousAddressResult;
2391
+ type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | DeviceProgress | PreviousAddressResult;
2367
2392
  type UiEventMessage = UiEvent & {
2368
2393
  event: typeof UI_EVENT;
2369
2394
  };
@@ -2844,4 +2869,4 @@ declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, can
2844
2869
  declare const HardwareSDKLowLevel: ({ init, call, dispose, eventEmitter, addHardwareGlobalEventListener, uiResponse, cancel, updateSettings, }: LowLevelInjectApi) => LowLevelCoreApi;
2845
2870
  declare const HardwareTopLevelSdk: () => CoreApi;
2846
2871
 
2847
- export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceModelToTypes, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceTypeToModels, DeviceUploadResourceParams, DeviceVerifyParams, DeviceVerifySignature, DnxAddress, DnxGetAddressParams, DnxSignTransactionParams, DnxSignature, DnxTxKey, EOneKeyDeviceMode, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FilecoinAddress, FilecoinGetAddressParams, FilecoinSignTransactionParams, FilecoinSignedTx, FirmwareEvent, FirmwareMessage, FirmwareProgress, FirmwareRange, FirmwareRelease$2 as FirmwareRelease, FirmwareTip, FirmwareUpdateBinaryParams, FirmwareUpdateParams, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, IVersionRange, KaspaAddress, KaspaGetAddressParams, KaspaSignInputParams, KaspaSignOutputParams, KaspaSignTransactionParams, KaspaSignature, KnownDevice, LOG, LOG_EVENT, LogBlockEvent, LogEvent, LogEventMessage, LogOutput, LoggerNames, LowLevelCoreApi, LowLevelInjectApi, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, NervosAddress, NervosGetAddressParams, NervosSignTransactionParams, NervosSignedTx, NexaAddress, NexaGetAddressParams, NexaSignInputParams, NexaSignOutputParams, NexaSignTransactionParams, NexaSignature, OnekeyFeatures, Params, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, Response, ScdoAddress, ScdoGetAddressParams, ScdoSignMessageParams, ScdoSignTransactionParams, ScdoSignedTx, SearchDevice, SignedTransaction, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SuiAddress, SuiGetAddressParams, SuiGetPublicKeyParams, SuiPublicKey, SuiSignMessageParams, SuiSignTransactionParams, SuiSignedTx, SupportFeatureType, SupportFeatures, TonAddress, TonGetAddressParams, TonSignMessageParams, TonSignProofParams, TopLevelInjectApi, TransactionOptions, TransportReleaseStatus, TronAddress, TronDelegateResourceContract, TronFreezeBalanceV2Contract, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestPassphrase, UiRequestPassphraseOnDevice, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePassphrase, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceBLEFirmwareVersion, getDeviceBleName, getDeviceBoardloaderVersion, getDeviceBootloaderVersion, getDeviceFirmwareVersion, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceUUID, getEnv, getFirmwareUpdateField, getHDPath, getHomeScreenDefaultList, getHomeScreenHex, getHomeScreenSize, getLog, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init as initCore, isBleConnect, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, versionCompare, versionSplit, wait, whitelist, whitelistExtension };
2872
+ export { AccountAddress, AccountAddresses, AlephiumAddress, AlephiumGetAddressParams, AlephiumSignMessageParams, AlephiumSignTransactionParams, AlephiumSignedTx, AlgoAddress, AlgoGetAddressParams, AlgoSignTransactionParams, AlgoSignedTx, AllNetworkAddressParams, AllNetworkGetAddressParams, AptosAddress, AptosGetAddressParams, AptosGetPublicKeyParams, AptosMessageSignature, AptosPublicKey, AptosSignMessageParams, AptosSignTransactionParams, AptosSignedTx, AssetsMap, BTCAddress, BTCGetAddressParams, BTCGetPublicKeyParams, BTCPublicKey, BTCSignMessageParams, BTCSignTransactionParams, BTCVerifyMessageParams, BleReleaseInfoEvent, BleReleaseInfoPayload, CORE_EVENT, CallMethod, CallMethodAnyResponse, CallMethodKeys, CallMethodPayload, CallMethodResponse, CallMethodUnion, CardanoAddress, CardanoGetAddressMethodParams, CardanoGetAddressParams, CardanoSignTransaction, CardanoSignedTxData, CipheredKeyValue, CipheredKeyValueParams, CommonParams, ConfluxAddress, ConfluxGetAddressParams, ConfluxSignMessageCIP23Params, ConfluxSignMessageParams, ConfluxSignTransactionParams, ConfluxSignedTx, ConfluxTransaction, ConnectSettings, Core, CoreApi, CoreMessage, CosmosAddress, CosmosGetAddressParams, CosmosGetPublicKeyParams, CosmosPublicKey, CosmosSignTransactionParams, CosmosSignedTx, DEFAULT_PRIORITY, DEVICE, DEVICE_EVENT, DataManager, Device$1 as Device, DeviceButtonRequest, DeviceButtonRequestPayload, DeviceChangePinParams, DeviceConnnectRequest, DeviceDisconnnectRequest, DeviceEvent, DeviceEventListenerFn, DeviceEventMessage, DeviceFeaturesPayload, DeviceFirmwareRange, DeviceFlagsParams, DeviceModelToTypes, DeviceProgress, DeviceRecoveryParams, DeviceResetParams, DeviceSendFeatures, DeviceSendSupportFeatures, DeviceSettingsParams, DeviceStatus, DeviceSupportFeatures, DeviceSupportFeaturesPayload, DeviceTypeMap, DeviceTypeToModels, DeviceUploadResourceParams, DeviceVerifyParams, DeviceVerifySignature, DnxAddress, DnxGetAddressParams, DnxSignTransactionParams, DnxSignature, DnxTxKey, EOneKeyDeviceMode, EVMAccessList, EVMAddress, EVMGetAddressParams, EVMGetPublicKeyParams, EVMPublicKey, EVMSignMessageEIP712Params, EVMSignMessageParams, EVMSignTransactionParams, EVMSignTypedDataParams, EVMSignedTx, EVMTransaction, EVMTransactionEIP1559, EVMVerifyMessageParams, EthereumSignTypedDataMessage, EthereumSignTypedDataTypeProperty, EthereumSignTypedDataTypes, FIRMWARE, FIRMWARE_EVENT, Features, FilecoinAddress, FilecoinGetAddressParams, FilecoinSignTransactionParams, FilecoinSignedTx, FirmwareEvent, FirmwareMessage, FirmwareProgress, FirmwareRange, FirmwareRelease$2 as FirmwareRelease, FirmwareTip, FirmwareUpdateBinaryParams, FirmwareUpdateParams, HardwareSDKLowLevel, HardwareTopLevelSdk, IBLEFirmwareReleaseInfo, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IDeviceModel, IDeviceType, IFRAME, IFirmwareReleaseInfo, IFrameBridge, IFrameCallMessage, IFrameCancelMessage, IFrameEvent, IFrameEventMessage, IFrameInit, ILocale, ITransportStatus, IVersionArray, IVersionRange, KaspaAddress, KaspaGetAddressParams, KaspaSignInputParams, KaspaSignOutputParams, KaspaSignTransactionParams, KaspaSignature, KnownDevice, LOG, LOG_EVENT, LogBlockEvent, LogEvent, LogEventMessage, LogOutput, LoggerNames, LowLevelCoreApi, LowLevelInjectApi, MajorVersion, MethodResponseMessage, NEMAddress, NEMAggregateModificationTransaction, NEMGetAddressParams, NEMImportanceTransaction, NEMMosaic, NEMMosaicCreationTransaction, NEMMultisigTransaction, NEMProvisionNamespaceTransaction, NEMSignTransactionParams, NEMSupplyChangeTransaction, NEMTransaction, NEMTransferTransaction, NearAddress, NearGetAddressParams, NearSignTransactionParams, NervosAddress, NervosGetAddressParams, NervosSignTransactionParams, NervosSignedTx, NexaAddress, NexaGetAddressParams, NexaSignInputParams, NexaSignOutputParams, NexaSignTransactionParams, NexaSignature, OnekeyFeatures, Params, PolkadotAddress, PolkadotGetAddressParams, PolkadotSignTransactionParams, PolkadotSignedTx, PostMessageEvent, PreviousAddressResult, RESPONSE_EVENT, RefTransaction, ReleaseInfo, ReleaseInfoEvent, ReleaseInfoPayload, RemoteConfigResponse, Response, ScdoAddress, ScdoGetAddressParams, ScdoSignMessageParams, ScdoSignTransactionParams, ScdoSignedTx, SearchDevice, SignedTransaction, SolanaAddress, SolanaGetAddressParams, SolanaSignTransactionParams, SolanaSignedTx, StarcoinAddress, StarcoinGetAddressParams, StarcoinGetPublicKeyParams, StarcoinPublicKey, StarcoinSignMessageParams, StarcoinSignTransactionParams, StarcoinVerifyMessageParams, StellarAddress, StellarAsset, StellarGetAddressParams, StellarOperation, StellarSignTransactionParams, StellarTransaction, StrictFeatures, Success, SuiAddress, SuiGetAddressParams, SuiGetPublicKeyParams, SuiPublicKey, SuiSignMessageParams, SuiSignTransactionParams, SuiSignedTx, SupportFeatureType, SupportFeatures, TonAddress, TonGetAddressParams, TonSignMessageParams, TonSignProofParams, TopLevelInjectApi, TransactionOptions, TransportReleaseStatus, TronAddress, TronDelegateResourceContract, TronFreezeBalanceV2Contract, TronGetAddressParams, TronSignMessageParams, TronSignTransactionParams, TronTransaction, TronTransactionContract, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, UI_EVENT, UI_REQUEST, UI_RESPONSE, UiEvent, UiEventMessage, UiPromise, UiPromiseResponse, UiRequestButton, UiRequestDeviceAction, UiRequestPassphrase, UiRequestPassphraseOnDevice, UiRequestWithoutPayload, UiResponseEvent, UiResponseMessage, UiResponsePassphrase, UiResponsePin, UnavailableCapabilities, UnavailableCapability, Unsuccessful, VersionArray, checkNeedUpdateBootForClassicAndMini, checkNeedUpdateBootForTouch, corsValidator, createDeviceMessage, createErrorMessage, createFirmwareMessage, createIFrameMessage, createLogMessage, createResponseMessage, createUiMessage, createUiResponse, HardwareSdk as default, enableLog, getDeviceBLEFirmwareVersion, getDeviceBleName, getDeviceBoardloaderVersion, getDeviceBootloaderVersion, getDeviceFirmwareVersion, getDeviceLabel, getDeviceType, getDeviceTypeByBleName, getDeviceUUID, getEnv, getFirmwareUpdateField, getHDPath, getHomeScreenDefaultList, getHomeScreenHex, getHomeScreenSize, getLog, getLogger, getMethodVersionRange, getOutputScriptType, getSDKVersion, getScriptType, getTimeStamp, httpRequest, init as initCore, isBleConnect, isValidVersionArray, isValidVersionString, normalizeVersionArray, parseConnectSettings, parseMessage, patchFeatures, safeThrowError, setLoggerPostMessage, supportInputPinOnSoftware, versionCompare, versionSplit, wait, whitelist, whitelistExtension };