@ckb-ccc/core 0.0.5-alpha.10 → 0.0.5-alpha.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 (110) hide show
  1. package/dist/ckb/transaction.d.ts +15 -4
  2. package/dist/ckb/transaction.d.ts.map +1 -1
  3. package/dist/ckb/transaction.js +37 -12
  4. package/dist/client/client.js +1 -1
  5. package/dist.commonjs/address/address.advanced.d.ts +24 -29
  6. package/dist.commonjs/address/address.advanced.js +92 -114
  7. package/dist.commonjs/address/advanced.d.ts +1 -1
  8. package/dist.commonjs/address/advanced.js +14 -30
  9. package/dist.commonjs/address/index.d.ts +44 -51
  10. package/dist.commonjs/address/index.js +68 -87
  11. package/dist.commonjs/advanced.d.ts +1 -1
  12. package/dist.commonjs/advanced.js +22 -47
  13. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  14. package/dist.commonjs/advancedBarrel.js +14 -30
  15. package/dist.commonjs/barrel.d.ts +1 -1
  16. package/dist.commonjs/barrel.js +14 -30
  17. package/dist.commonjs/bytes/advanced.d.ts +2 -11
  18. package/dist.commonjs/bytes/index.d.ts +3 -9
  19. package/dist.commonjs/bytes/index.js +26 -28
  20. package/dist.commonjs/ckb/advanced.d.ts +1 -1
  21. package/dist.commonjs/ckb/advanced.js +22 -47
  22. package/dist.commonjs/ckb/index.d.ts +1 -1
  23. package/dist.commonjs/ckb/index.js +14 -30
  24. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +260 -420
  25. package/dist.commonjs/ckb/molecule.advanced/generated.js +1332 -1536
  26. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
  27. package/dist.commonjs/ckb/molecule.advanced/index.js +18 -34
  28. package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
  29. package/dist.commonjs/ckb/script.advanced.js +9 -12
  30. package/dist.commonjs/ckb/script.d.ts +76 -76
  31. package/dist.commonjs/ckb/script.js +126 -166
  32. package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
  33. package/dist.commonjs/ckb/transaction.advanced.js +4 -4
  34. package/dist.commonjs/ckb/transaction.d.ts +543 -570
  35. package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
  36. package/dist.commonjs/ckb/transaction.js +747 -839
  37. package/dist.commonjs/client/advanced.d.ts +1 -1
  38. package/dist.commonjs/client/advanced.js +14 -30
  39. package/dist.commonjs/client/client.d.ts +21 -52
  40. package/dist.commonjs/client/client.js +57 -66
  41. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +2 -5
  42. package/dist.commonjs/client/clientPublicMainnet.advanced.js +24 -30
  43. package/dist.commonjs/client/clientPublicMainnet.d.ts +4 -6
  44. package/dist.commonjs/client/clientPublicMainnet.js +9 -9
  45. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +2 -5
  46. package/dist.commonjs/client/clientPublicTestnet.advanced.js +24 -30
  47. package/dist.commonjs/client/clientPublicTestnet.d.ts +4 -6
  48. package/dist.commonjs/client/clientPublicTestnet.js +9 -9
  49. package/dist.commonjs/client/clientTypes.d.ts +36 -51
  50. package/dist.commonjs/client/clientTypes.js +19 -34
  51. package/dist.commonjs/client/index.d.ts +1 -1
  52. package/dist.commonjs/client/index.js +14 -30
  53. package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
  54. package/dist.commonjs/client/jsonRpc/advanced.js +14 -30
  55. package/dist.commonjs/client/jsonRpc/index.d.ts +75 -92
  56. package/dist.commonjs/client/jsonRpc/index.js +108 -135
  57. package/dist.commonjs/client/jsonRpc/transformers.d.ts +38 -78
  58. package/dist.commonjs/client/jsonRpc/transformers.js +150 -175
  59. package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
  60. package/dist.commonjs/fixedPoint/index.d.ts +3 -9
  61. package/dist.commonjs/fixedPoint/index.js +20 -26
  62. package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
  63. package/dist.commonjs/fixedPoint/index.test.js +36 -42
  64. package/dist.commonjs/hasher/advanced.d.ts +1 -1
  65. package/dist.commonjs/hasher/index.d.ts +36 -36
  66. package/dist.commonjs/hasher/index.js +45 -52
  67. package/dist.commonjs/hex/index.d.ts +1 -1
  68. package/dist.commonjs/hex/index.js +1 -1
  69. package/dist.commonjs/index.d.ts +1 -1
  70. package/dist.commonjs/index.js +22 -47
  71. package/dist.commonjs/num/index.d.ts +1 -1
  72. package/dist.commonjs/num/index.js +19 -30
  73. package/dist.commonjs/signer/btc/index.d.ts +1 -1
  74. package/dist.commonjs/signer/btc/index.js +14 -30
  75. package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
  76. package/dist.commonjs/signer/btc/signerBtc.js +65 -85
  77. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
  78. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
  79. package/dist.commonjs/signer/btc/verify.d.ts +2 -6
  80. package/dist.commonjs/signer/btc/verify.js +2 -5
  81. package/dist.commonjs/signer/ckb/index.d.ts +1 -1
  82. package/dist.commonjs/signer/ckb/index.js +14 -30
  83. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
  84. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
  85. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +2 -6
  86. package/dist.commonjs/signer/ckb/verifyJoyId.js +8 -11
  87. package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
  88. package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
  89. package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
  90. package/dist.commonjs/signer/dummy/dummy.js +16 -16
  91. package/dist.commonjs/signer/dummy/index.d.ts +1 -1
  92. package/dist.commonjs/signer/dummy/index.js +14 -30
  93. package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
  94. package/dist.commonjs/signer/dummy/openLink.js +7 -7
  95. package/dist.commonjs/signer/evm/index.d.ts +1 -1
  96. package/dist.commonjs/signer/evm/index.js +14 -30
  97. package/dist.commonjs/signer/evm/signerEvm.d.ts +38 -42
  98. package/dist.commonjs/signer/evm/signerEvm.js +68 -100
  99. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
  100. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
  101. package/dist.commonjs/signer/evm/verify.d.ts +2 -6
  102. package/dist.commonjs/signer/evm/verify.js +2 -7
  103. package/dist.commonjs/signer/index.d.ts +1 -1
  104. package/dist.commonjs/signer/index.js +14 -30
  105. package/dist.commonjs/signer/signer/index.d.ts +153 -159
  106. package/dist.commonjs/signer/signer/index.js +181 -204
  107. package/dist.commonjs/utils/index.d.ts +8 -36
  108. package/dist.commonjs/utils/index.js +12 -18
  109. package/package.json +2 -2
  110. package/src/ckb/transaction.ts +46 -13
@@ -14,107 +14,75 @@ const signer_1 = require("../signer");
14
14
  * This class provides methods to get EVM account, internal address, and signing transactions.
15
15
  */
16
16
  class SignerEvm extends signer_1.Signer {
17
- get type() {
18
- return signer_1.SignerType.EVM;
19
- }
20
- get signType() {
21
- return signer_1.SignerSignType.EvmPersonal;
22
- }
23
- /**
24
- * Gets the internal address, which is the EVM account in this case.
25
- *
26
- * @returns A promise that resolves to a string representing the internal address.
27
- */
28
- async getInternalAddress() {
29
- return this.getEvmAccount();
30
- }
31
- /**
32
- * Gets an array of Address objects representing the known script addresses for the signer.
33
- *
34
- * @returns A promise that resolves to an array of Address objects.
35
- */
36
- async getAddressObjs() {
37
- const account = await this.getEvmAccount();
38
- return [
39
- await this._getOmniLockEvmAddressObj(account),
40
- await this._getOmniLockOldEvmAddressObj(account),
41
- ];
42
- }
43
- async _getOmniLockEvmAddressObj(account) {
44
- return address_1.Address.fromKnownScript(
45
- client_1.KnownScript.OmniLock,
46
- (0, hex_1.hexFrom)([0x12, ...(0, bytes_1.bytesFrom)(account), 0x00]),
47
- this.client,
48
- );
49
- }
50
- async _getOmniLockOldEvmAddressObj(account) {
51
- return address_1.Address.fromKnownScript(
52
- client_1.KnownScript.OmniLock,
53
- (0, hex_1.hexFrom)([0x1, ...(0, bytes_1.bytesFrom)(account), 0x00]),
54
- this.client,
55
- );
56
- }
57
- /**
58
- * prepare a transaction before signing. This method is not implemented and should be overridden by subclasses.
59
- *
60
- * @param txLike - The transaction to prepare, represented as a TransactionLike object.
61
- * @returns A promise that resolves to the prepared Transaction object.
62
- */
63
- async prepareTransaction(txLike) {
64
- return (0, utils_1.reduceAsync)(
65
- await this.getAddressObjs(),
66
- (tx, { script }) => tx.prepareSighashAllWitness(script, 85, this.client),
67
- ckb_1.Transaction.from(txLike),
68
- );
69
- }
70
- /**
71
- * Signs a transaction without modifying it.
72
- *
73
- * @param txLike - The transaction to sign, represented as a TransactionLike object.
74
- * @returns A promise that resolves to a signed Transaction object.
75
- */
76
- async signOnlyTransaction(txLike) {
77
- let tx = ckb_1.Transaction.from(txLike);
78
- const account = await this.getEvmAccount();
79
- const { script: evmScript } = await this._getOmniLockEvmAddressObj(account);
80
- const { script: oldEvmScript } =
81
- await this._getOmniLockOldEvmAddressObj(account);
82
- tx = await this._signOmniLockScriptForTransaction(
83
- tx,
84
- evmScript,
85
- (hash) => `CKB transaction: ${hash}`,
86
- );
87
- tx = await this._signOmniLockScriptForTransaction(
88
- tx,
89
- oldEvmScript,
90
- (hash) => (0, bytes_1.bytesFrom)(hash),
91
- );
92
- return tx;
93
- }
94
- async _signOmniLockScriptForTransaction(tx, script, messageTransformer) {
95
- const info = await tx.getSignHashInfo(script, this.client);
96
- if (!info) {
97
- return tx;
17
+ get type() {
18
+ return signer_1.SignerType.EVM;
98
19
  }
99
- const signature = (0, bytes_1.bytesFrom)(
100
- await this.signMessageRaw(messageTransformer(info.message)),
101
- );
102
- if (signature[signature.length - 1] >= 27) {
103
- signature[signature.length - 1] -= 27;
20
+ get signType() {
21
+ return signer_1.SignerSignType.EvmPersonal;
22
+ }
23
+ /**
24
+ * Gets the internal address, which is the EVM account in this case.
25
+ *
26
+ * @returns A promise that resolves to a string representing the internal address.
27
+ */
28
+ async getInternalAddress() {
29
+ return this.getEvmAccount();
30
+ }
31
+ /**
32
+ * Gets an array of Address objects representing the known script addresses for the signer.
33
+ *
34
+ * @returns A promise that resolves to an array of Address objects.
35
+ */
36
+ async getAddressObjs() {
37
+ const account = await this.getEvmAccount();
38
+ return [
39
+ await this._getOmniLockEvmAddressObj(account),
40
+ await this._getOmniLockOldEvmAddressObj(account),
41
+ ];
42
+ }
43
+ async _getOmniLockEvmAddressObj(account) {
44
+ return address_1.Address.fromKnownScript(client_1.KnownScript.OmniLock, (0, hex_1.hexFrom)([0x12, ...(0, bytes_1.bytesFrom)(account), 0x00]), this.client);
45
+ }
46
+ async _getOmniLockOldEvmAddressObj(account) {
47
+ return address_1.Address.fromKnownScript(client_1.KnownScript.OmniLock, (0, hex_1.hexFrom)([0x1, ...(0, bytes_1.bytesFrom)(account), 0x00]), this.client);
48
+ }
49
+ /**
50
+ * prepare a transaction before signing. This method is not implemented and should be overridden by subclasses.
51
+ *
52
+ * @param txLike - The transaction to prepare, represented as a TransactionLike object.
53
+ * @returns A promise that resolves to the prepared Transaction object.
54
+ */
55
+ async prepareTransaction(txLike) {
56
+ return (0, utils_1.reduceAsync)(await this.getAddressObjs(), (tx, { script }) => tx.prepareSighashAllWitness(script, 85, this.client), ckb_1.Transaction.from(txLike));
57
+ }
58
+ /**
59
+ * Signs a transaction without modifying it.
60
+ *
61
+ * @param txLike - The transaction to sign, represented as a TransactionLike object.
62
+ * @returns A promise that resolves to a signed Transaction object.
63
+ */
64
+ async signOnlyTransaction(txLike) {
65
+ let tx = ckb_1.Transaction.from(txLike);
66
+ const account = await this.getEvmAccount();
67
+ const { script: evmScript } = await this._getOmniLockEvmAddressObj(account);
68
+ const { script: oldEvmScript } = await this._getOmniLockOldEvmAddressObj(account);
69
+ tx = await this._signOmniLockScriptForTransaction(tx, evmScript, (hash) => `CKB transaction: ${hash}`);
70
+ tx = await this._signOmniLockScriptForTransaction(tx, oldEvmScript, (hash) => (0, bytes_1.bytesFrom)(hash));
71
+ return tx;
72
+ }
73
+ async _signOmniLockScriptForTransaction(tx, script, messageTransformer) {
74
+ const info = await tx.getSignHashInfo(script, this.client);
75
+ if (!info) {
76
+ return tx;
77
+ }
78
+ const signature = (0, bytes_1.bytesFrom)(await this.signMessageRaw(messageTransformer(info.message)));
79
+ if (signature[signature.length - 1] >= 27) {
80
+ signature[signature.length - 1] -= 27;
81
+ }
82
+ const witness = ckb_1.WitnessArgs.fromBytes(tx.witnesses[info.position]);
83
+ witness.lock = (0, hex_1.hexFrom)((0, bytes_1.bytesConcat)((0, num_1.numToBytes)(5 * 4 + signature.length, 4), (0, num_1.numToBytes)(4 * 4, 4), (0, num_1.numToBytes)(5 * 4 + signature.length, 4), (0, num_1.numToBytes)(5 * 4 + signature.length, 4), (0, num_1.numToBytes)(signature.length, 4), signature));
84
+ tx.witnesses[info.position] = (0, hex_1.hexFrom)(witness.toBytes());
85
+ return tx;
104
86
  }
105
- const witness = ckb_1.WitnessArgs.fromBytes(tx.witnesses[info.position]);
106
- witness.lock = (0, hex_1.hexFrom)(
107
- (0, bytes_1.bytesConcat)(
108
- (0, num_1.numToBytes)(5 * 4 + signature.length, 4),
109
- (0, num_1.numToBytes)(4 * 4, 4),
110
- (0, num_1.numToBytes)(5 * 4 + signature.length, 4),
111
- (0, num_1.numToBytes)(5 * 4 + signature.length, 4),
112
- (0, num_1.numToBytes)(signature.length, 4),
113
- signature,
114
- ),
115
- );
116
- tx.witnesses[info.position] = (0, hex_1.hexFrom)(witness.toBytes());
117
- return tx;
118
- }
119
87
  }
120
88
  exports.SignerEvm = SignerEvm;
@@ -6,41 +6,41 @@ import { SignerEvm } from "./signerEvm";
6
6
  * This class does not support signing operations.
7
7
  */
8
8
  export declare class SignerEvmAddressReadonly extends SignerEvm {
9
- private readonly address;
10
- /**
11
- * Creates an instance of SignerEvmAddressReadonly.
12
- *
13
- * @param client - The client instance used for communication.
14
- * @param address - The EVM address associated with the signer.
15
- */
16
- constructor(client: Client, address: HexLike);
17
- /**
18
- * Connects to the client. This implementation does nothing as the class is read-only.
19
- *
20
- * @returns A promise that resolves when the connection is complete.
21
- *
22
- * @example
23
- * ```typescript
24
- * await signer.connect();
25
- * ```
26
- */
27
- connect(): Promise<void>;
28
- /**
29
- * Check if the signer is connected.
30
- *
31
- * @returns A promise that resolves the connection status.
32
- */
33
- isConnected(): Promise<boolean>;
34
- /**
35
- * Gets the EVM account associated with the signer.
36
- *
37
- * @returns A promise that resolves to a string representing the EVM account.
38
- *
39
- * @example
40
- * ```typescript
41
- * const account = await signer.getEvmAccount(); // Outputs the EVM account
42
- * ```
43
- */
44
- getEvmAccount(): Promise<string>;
9
+ private readonly address;
10
+ /**
11
+ * Creates an instance of SignerEvmAddressReadonly.
12
+ *
13
+ * @param client - The client instance used for communication.
14
+ * @param address - The EVM address associated with the signer.
15
+ */
16
+ constructor(client: Client, address: HexLike);
17
+ /**
18
+ * Connects to the client. This implementation does nothing as the class is read-only.
19
+ *
20
+ * @returns A promise that resolves when the connection is complete.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * await signer.connect();
25
+ * ```
26
+ */
27
+ connect(): Promise<void>;
28
+ /**
29
+ * Check if the signer is connected.
30
+ *
31
+ * @returns A promise that resolves the connection status.
32
+ */
33
+ isConnected(): Promise<boolean>;
34
+ /**
35
+ * Gets the EVM account associated with the signer.
36
+ *
37
+ * @returns A promise that resolves to a string representing the EVM account.
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * const account = await signer.getEvmAccount(); // Outputs the EVM account
42
+ * ```
43
+ */
44
+ getEvmAccount(): Promise<string>;
45
45
  }
46
- //# sourceMappingURL=signerEvmAddressReadonly.d.ts.map
46
+ //# sourceMappingURL=signerEvmAddressReadonly.d.ts.map
@@ -8,47 +8,47 @@ const signerEvm_1 = require("./signerEvm");
8
8
  * This class does not support signing operations.
9
9
  */
10
10
  class SignerEvmAddressReadonly extends signerEvm_1.SignerEvm {
11
- /**
12
- * Creates an instance of SignerEvmAddressReadonly.
13
- *
14
- * @param client - The client instance used for communication.
15
- * @param address - The EVM address associated with the signer.
16
- */
17
- constructor(client, address) {
18
- super(client);
19
- this.address = (0, hex_1.hexFrom)(address);
20
- }
21
- /**
22
- * Connects to the client. This implementation does nothing as the class is read-only.
23
- *
24
- * @returns A promise that resolves when the connection is complete.
25
- *
26
- * @example
27
- * ```typescript
28
- * await signer.connect();
29
- * ```
30
- */
31
- async connect() {}
32
- /**
33
- * Check if the signer is connected.
34
- *
35
- * @returns A promise that resolves the connection status.
36
- */
37
- async isConnected() {
38
- return true;
39
- }
40
- /**
41
- * Gets the EVM account associated with the signer.
42
- *
43
- * @returns A promise that resolves to a string representing the EVM account.
44
- *
45
- * @example
46
- * ```typescript
47
- * const account = await signer.getEvmAccount(); // Outputs the EVM account
48
- * ```
49
- */
50
- async getEvmAccount() {
51
- return this.address;
52
- }
11
+ /**
12
+ * Creates an instance of SignerEvmAddressReadonly.
13
+ *
14
+ * @param client - The client instance used for communication.
15
+ * @param address - The EVM address associated with the signer.
16
+ */
17
+ constructor(client, address) {
18
+ super(client);
19
+ this.address = (0, hex_1.hexFrom)(address);
20
+ }
21
+ /**
22
+ * Connects to the client. This implementation does nothing as the class is read-only.
23
+ *
24
+ * @returns A promise that resolves when the connection is complete.
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * await signer.connect();
29
+ * ```
30
+ */
31
+ async connect() { }
32
+ /**
33
+ * Check if the signer is connected.
34
+ *
35
+ * @returns A promise that resolves the connection status.
36
+ */
37
+ async isConnected() {
38
+ return true;
39
+ }
40
+ /**
41
+ * Gets the EVM account associated with the signer.
42
+ *
43
+ * @returns A promise that resolves to a string representing the EVM account.
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * const account = await signer.getEvmAccount(); // Outputs the EVM account
48
+ * ```
49
+ */
50
+ async getEvmAccount() {
51
+ return this.address;
52
+ }
53
53
  }
54
54
  exports.SignerEvmAddressReadonly = SignerEvmAddressReadonly;
@@ -1,7 +1,3 @@
1
1
  import { BytesLike } from "../../bytes";
2
- export declare function verifyMessageEvmPersonal(
3
- message: string | BytesLike,
4
- signature: string,
5
- address: string,
6
- ): boolean;
7
- //# sourceMappingURL=verify.d.ts.map
2
+ export declare function verifyMessageEvmPersonal(message: string | BytesLike, signature: string, address: string): boolean;
3
+ //# sourceMappingURL=verify.d.ts.map
@@ -4,12 +4,7 @@ exports.verifyMessageEvmPersonal = void 0;
4
4
  const ethers_1 = require("ethers");
5
5
  const bytes_1 = require("../../bytes");
6
6
  function verifyMessageEvmPersonal(message, signature, address) {
7
- return (
8
- address.toLowerCase() ===
9
- (0, ethers_1.verifyMessage)(
10
- typeof message === "string" ? message : (0, bytes_1.bytesFrom)(message),
11
- signature,
12
- ).toLowerCase()
13
- );
7
+ return (address.toLowerCase() ===
8
+ (0, ethers_1.verifyMessage)(typeof message === "string" ? message : (0, bytes_1.bytesFrom)(message), signature).toLowerCase());
14
9
  }
15
10
  exports.verifyMessageEvmPersonal = verifyMessageEvmPersonal;
@@ -3,4 +3,4 @@ export * from "./ckb";
3
3
  export * from "./dummy";
4
4
  export * from "./evm";
5
5
  export * from "./signer";
6
- //# sourceMappingURL=index.d.ts.map
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1,34 +1,18 @@
1
1
  "use strict";
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (
9
- !desc ||
10
- ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
- ) {
12
- desc = {
13
- enumerable: true,
14
- get: function () {
15
- return m[k];
16
- },
17
- };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }
21
- : function (o, m, k, k2) {
22
- if (k2 === undefined) k2 = k;
23
- o[k2] = m[k];
24
- });
25
- var __exportStar =
26
- (this && this.__exportStar) ||
27
- function (m, exports) {
28
- for (var p in m)
29
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
30
- __createBinding(exports, m, p);
31
- };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
32
16
  Object.defineProperty(exports, "__esModule", { value: true });
33
17
  __exportStar(require("./btc"), exports);
34
18
  __exportStar(require("./ckb"), exports);