@ckb-ccc/core 0.0.2-alpha.3 → 0.0.2
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/dist/address/address.advanced.js +29 -34
- package/dist/address/advanced.js +1 -17
- package/dist/address/index.js +12 -16
- package/dist/advanced.js +2 -31
- package/dist/advancedBarrel.js +4 -20
- package/dist/barrel.js +10 -26
- package/dist/bytes/index.js +8 -15
- package/dist/ckb/advanced.js +3 -32
- package/dist/ckb/index.js +2 -18
- package/dist/ckb/molecule.advanced/generated.js +64 -132
- package/dist/ckb/molecule.advanced/index.js +2 -20
- package/dist/ckb/script.advanced.js +3 -6
- package/dist/ckb/script.js +19 -49
- package/dist/ckb/transaction.advanced.js +3 -6
- package/dist/ckb/transaction.js +54 -89
- package/dist/client/advanced.js +2 -18
- package/dist/client/client.d.ts +1 -0
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +2 -5
- package/dist/client/clientPublicMainnet.advanced.js +7 -10
- package/dist/client/clientPublicMainnet.js +4 -8
- package/dist/client/clientPublicTestnet.advanced.js +7 -10
- package/dist/client/clientPublicTestnet.js +4 -8
- package/dist/client/clientTypes.js +1 -2
- package/dist/client/index.js +4 -20
- package/dist/client/jsonRpc/advanced.js +13 -17
- package/dist/client/jsonRpc/index.js +5 -12
- package/dist/fixedPoint/index.js +4 -9
- package/dist/hasher/advanced.js +1 -4
- package/dist/hasher/index.js +8 -16
- package/dist/hex/index.js +4 -8
- package/dist/index.js +2 -31
- package/dist/num/index.js +15 -26
- package/dist/signer/helpers.js +7 -11
- package/dist/signer/index.js +4 -20
- package/dist/signer/signer.js +1 -5
- package/dist/signer/signerReadonly.js +2 -6
- package/dist/signer/signerReadonlyCkbScript.js +4 -8
- package/dist/utils/index.js +1 -5
- package/package.json +2 -2
- package/src/client/client.ts +2 -0
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const client_1 = require("../client");
|
|
7
|
-
const hex_1 = require("../hex");
|
|
8
|
-
function addressPayloadFromString(address) {
|
|
1
|
+
import { bech32, bech32m } from "bech32";
|
|
2
|
+
import { hashTypeFromBytes } from "../ckb";
|
|
3
|
+
import { KnownScript } from "../client";
|
|
4
|
+
import { hexFrom } from "../hex";
|
|
5
|
+
export function addressPayloadFromString(address) {
|
|
9
6
|
// Try parse full format address
|
|
10
7
|
{
|
|
11
|
-
const { words, prefix } =
|
|
12
|
-
const [formatType, ...payload] =
|
|
8
|
+
const { words, prefix } = bech32m.decode(address, ADDRESS_BECH32_LIMIT);
|
|
9
|
+
const [formatType, ...payload] = bech32m.fromWords(words);
|
|
13
10
|
if (formatType === AddressFormat.Full) {
|
|
14
11
|
return { prefix, format: AddressFormat.Full, payload };
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
14
|
// Try parse legacy 2019 format address
|
|
18
15
|
{
|
|
19
|
-
const { prefix, words } =
|
|
20
|
-
const [formatType, ...payload] =
|
|
16
|
+
const { prefix, words } = bech32.decode(address, ADDRESS_BECH32_LIMIT);
|
|
17
|
+
const [formatType, ...payload] = bech32.fromWords(words);
|
|
21
18
|
if ([
|
|
22
19
|
AddressFormat.FullData,
|
|
23
20
|
AddressFormat.FullType,
|
|
@@ -28,69 +25,67 @@ function addressPayloadFromString(address) {
|
|
|
28
25
|
}
|
|
29
26
|
throw Error(`Unknown address format ${address}`);
|
|
30
27
|
}
|
|
31
|
-
|
|
32
|
-
async function addressFromPayload(prefix, format, payload, client) {
|
|
28
|
+
export async function addressFromPayload(prefix, format, payload, client) {
|
|
33
29
|
if (format === AddressFormat.Full) {
|
|
34
30
|
if (payload.length < 32 + 1) {
|
|
35
|
-
throw new Error(`Invalid full address without enough payload ${
|
|
31
|
+
throw new Error(`Invalid full address without enough payload ${hexFrom(payload)}`);
|
|
36
32
|
}
|
|
37
33
|
return {
|
|
38
34
|
script: {
|
|
39
|
-
codeHash:
|
|
40
|
-
hashType:
|
|
41
|
-
args:
|
|
35
|
+
codeHash: hexFrom(payload.slice(0, 32)),
|
|
36
|
+
hashType: hashTypeFromBytes(payload.slice(32, 33)),
|
|
37
|
+
args: hexFrom(payload.slice(33)),
|
|
42
38
|
},
|
|
43
39
|
prefix,
|
|
44
40
|
};
|
|
45
41
|
}
|
|
46
42
|
if (format === AddressFormat.FullData) {
|
|
47
43
|
if (payload.length < 32) {
|
|
48
|
-
throw new Error(`Invalid full data address without enough payload ${
|
|
44
|
+
throw new Error(`Invalid full data address without enough payload ${hexFrom(payload)}`);
|
|
49
45
|
}
|
|
50
46
|
return {
|
|
51
47
|
script: {
|
|
52
|
-
codeHash:
|
|
48
|
+
codeHash: hexFrom(payload.slice(0, 32)),
|
|
53
49
|
hashType: "data",
|
|
54
|
-
args:
|
|
50
|
+
args: hexFrom(payload.slice(32)),
|
|
55
51
|
},
|
|
56
52
|
prefix,
|
|
57
53
|
};
|
|
58
54
|
}
|
|
59
55
|
if (format === AddressFormat.FullType) {
|
|
60
56
|
if (payload.length < 32) {
|
|
61
|
-
throw new Error(`Invalid full type address without enough payload ${
|
|
57
|
+
throw new Error(`Invalid full type address without enough payload ${hexFrom(payload)}`);
|
|
62
58
|
}
|
|
63
59
|
return {
|
|
64
60
|
script: {
|
|
65
|
-
codeHash:
|
|
61
|
+
codeHash: hexFrom(payload.slice(0, 32)),
|
|
66
62
|
hashType: "type",
|
|
67
|
-
args:
|
|
63
|
+
args: hexFrom(payload.slice(32)),
|
|
68
64
|
},
|
|
69
65
|
prefix,
|
|
70
66
|
};
|
|
71
67
|
}
|
|
72
68
|
// format === AddressFormat.Short
|
|
73
69
|
if (payload.length !== 21) {
|
|
74
|
-
throw new Error(`Invalid short address without enough payload ${
|
|
70
|
+
throw new Error(`Invalid short address without enough payload ${hexFrom(payload)}`);
|
|
75
71
|
}
|
|
76
72
|
const script = [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
KnownScript.Secp256k1Blake160,
|
|
74
|
+
KnownScript.Secp256k1Multisig,
|
|
75
|
+
KnownScript.AnyoneCanPay,
|
|
80
76
|
][payload[0]];
|
|
81
77
|
if (script === undefined) {
|
|
82
|
-
throw new Error(`Invalid short address with unknown script ${
|
|
78
|
+
throw new Error(`Invalid short address with unknown script ${hexFrom(payload)}`);
|
|
83
79
|
}
|
|
84
80
|
return {
|
|
85
81
|
script: {
|
|
86
82
|
...(await client.getKnownScript(script)),
|
|
87
|
-
args:
|
|
83
|
+
args: hexFrom(payload.slice(1)),
|
|
88
84
|
},
|
|
89
85
|
prefix,
|
|
90
86
|
};
|
|
91
87
|
}
|
|
92
|
-
|
|
93
|
-
var AddressFormat;
|
|
88
|
+
export var AddressFormat;
|
|
94
89
|
(function (AddressFormat) {
|
|
95
90
|
/**
|
|
96
91
|
* full version identifies the hashType
|
|
@@ -111,5 +106,5 @@ var AddressFormat;
|
|
|
111
106
|
* full version with hashType = "Type", deprecated
|
|
112
107
|
*/
|
|
113
108
|
AddressFormat[AddressFormat["FullType"] = 4] = "FullType";
|
|
114
|
-
})(AddressFormat || (
|
|
115
|
-
|
|
109
|
+
})(AddressFormat || (AddressFormat = {}));
|
|
110
|
+
export const ADDRESS_BECH32_LIMIT = 1023;
|
package/dist/address/advanced.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./address.advanced"), exports);
|
|
1
|
+
export * from "./address.advanced";
|
package/dist/address/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const ckb_1 = require("../ckb");
|
|
7
|
-
const address_advanced_1 = require("./address.advanced");
|
|
8
|
-
class Address {
|
|
1
|
+
import { bech32m } from "bech32";
|
|
2
|
+
import { bytesConcat, bytesFrom } from "../bytes";
|
|
3
|
+
import { Script, hashTypeToBytes } from "../ckb";
|
|
4
|
+
import { ADDRESS_BECH32_LIMIT, AddressFormat, addressFromPayload, addressPayloadFromString, } from "./address.advanced";
|
|
5
|
+
export class Address {
|
|
9
6
|
constructor(script, prefix) {
|
|
10
7
|
this.script = script;
|
|
11
8
|
this.prefix = prefix;
|
|
@@ -14,10 +11,10 @@ class Address {
|
|
|
14
11
|
if (address instanceof Address) {
|
|
15
12
|
return address;
|
|
16
13
|
}
|
|
17
|
-
return new Address(
|
|
14
|
+
return new Address(Script.from(address.script), address.prefix);
|
|
18
15
|
}
|
|
19
16
|
static async fromString(address, clients) {
|
|
20
|
-
const { prefix, format, payload } =
|
|
17
|
+
const { prefix, format, payload } = addressPayloadFromString(address);
|
|
21
18
|
const client = clients[prefix] ?? clients;
|
|
22
19
|
if (!client) {
|
|
23
20
|
throw new Error(`Unknown address prefix ${prefix}`);
|
|
@@ -26,20 +23,19 @@ class Address {
|
|
|
26
23
|
if (expectedPrefix !== prefix) {
|
|
27
24
|
throw new Error(`Unknown address prefix ${prefix}, expected ${expectedPrefix}`);
|
|
28
25
|
}
|
|
29
|
-
return Address.from(await
|
|
26
|
+
return Address.from(await addressFromPayload(prefix, format, payload, client));
|
|
30
27
|
}
|
|
31
28
|
static async fromScript(script, client) {
|
|
32
|
-
return new Address(
|
|
29
|
+
return new Address(Script.from(script), await client.getAddressPrefix());
|
|
33
30
|
}
|
|
34
31
|
static async fromKnownScript(script, args, client) {
|
|
35
|
-
return new Address(
|
|
32
|
+
return new Address(Script.from({
|
|
36
33
|
...(await client.getKnownScript(script)),
|
|
37
34
|
args,
|
|
38
35
|
}), await client.getAddressPrefix());
|
|
39
36
|
}
|
|
40
37
|
toString() {
|
|
41
|
-
const data =
|
|
42
|
-
return
|
|
38
|
+
const data = bytesConcat([AddressFormat.Full], bytesFrom(this.script.codeHash), hashTypeToBytes(this.script.hashType), bytesFrom(this.script.args));
|
|
39
|
+
return bech32m.encode(this.prefix, bech32m.toWords(data), ADDRESS_BECH32_LIMIT);
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
|
-
exports.Address = Address;
|
package/dist/advanced.js
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.cccA = void 0;
|
|
30
|
-
__exportStar(require("./advancedBarrel"), exports);
|
|
31
|
-
exports.cccA = __importStar(require("./advancedBarrel"));
|
|
1
|
+
export * from "./advancedBarrel";
|
|
2
|
+
export * as cccA from "./advancedBarrel";
|
package/dist/advancedBarrel.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./address/advanced"), exports);
|
|
18
|
-
__exportStar(require("./ckb/advanced"), exports);
|
|
19
|
-
__exportStar(require("./client/advanced"), exports);
|
|
20
|
-
__exportStar(require("./hasher/advanced"), exports);
|
|
1
|
+
export * from "./address/advanced";
|
|
2
|
+
export * from "./ckb/advanced";
|
|
3
|
+
export * from "./client/advanced";
|
|
4
|
+
export * from "./hasher/advanced";
|
package/dist/barrel.js
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./address"), exports);
|
|
18
|
-
__exportStar(require("./bytes"), exports);
|
|
19
|
-
__exportStar(require("./ckb"), exports);
|
|
20
|
-
__exportStar(require("./client"), exports);
|
|
21
|
-
__exportStar(require("./fixedPoint"), exports);
|
|
22
|
-
__exportStar(require("./hasher"), exports);
|
|
23
|
-
__exportStar(require("./hex"), exports);
|
|
24
|
-
__exportStar(require("./num"), exports);
|
|
25
|
-
__exportStar(require("./signer"), exports);
|
|
26
|
-
__exportStar(require("./utils"), exports);
|
|
1
|
+
export * from "./address";
|
|
2
|
+
export * from "./bytes";
|
|
3
|
+
export * from "./ckb";
|
|
4
|
+
export * from "./client";
|
|
5
|
+
export * from "./fixedPoint";
|
|
6
|
+
export * from "./hasher";
|
|
7
|
+
export * from "./hex";
|
|
8
|
+
export * from "./num";
|
|
9
|
+
export * from "./signer";
|
|
10
|
+
export * from "./utils";
|
package/dist/bytes/index.js
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.bytesFrom = exports.bytesToUtf8 = exports.bytesFromUtf8 = exports.bytesConcat = void 0;
|
|
4
|
-
const buffer_1 = require("buffer/");
|
|
5
|
-
function bytesConcat(...args) {
|
|
1
|
+
import { Buffer } from "buffer/";
|
|
2
|
+
export function bytesConcat(...args) {
|
|
6
3
|
return new Uint8Array(args.reduce((acc, v) => {
|
|
7
4
|
acc.push(...bytesFrom(v));
|
|
8
5
|
return acc;
|
|
9
6
|
}, []));
|
|
10
7
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return buffer_1.Buffer.from(val, "utf-8");
|
|
8
|
+
export function bytesFromUtf8(val) {
|
|
9
|
+
return Buffer.from(val, "utf-8");
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return buffer_1.Buffer.from(bytesFrom(val)).toString("utf-8");
|
|
11
|
+
export function bytesToUtf8(val) {
|
|
12
|
+
return Buffer.from(bytesFrom(val)).toString("utf-8");
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
function bytesFrom(bytes) {
|
|
14
|
+
export function bytesFrom(bytes) {
|
|
21
15
|
if (bytes instanceof Uint8Array) {
|
|
22
16
|
return bytes;
|
|
23
17
|
}
|
|
@@ -32,10 +26,9 @@ function bytesFrom(bytes) {
|
|
|
32
26
|
}
|
|
33
27
|
const str = bytes.startsWith("0x") ? bytes.slice(2) : bytes;
|
|
34
28
|
const paddedStr = str.length % 2 === 0 ? str : `0${str}`;
|
|
35
|
-
const data =
|
|
29
|
+
const data = Buffer.from(paddedStr, "hex");
|
|
36
30
|
if (data.length * 2 !== paddedStr.length) {
|
|
37
31
|
throw new Error(`Invalid bytes ${bytes}`);
|
|
38
32
|
}
|
|
39
33
|
return data;
|
|
40
34
|
}
|
|
41
|
-
exports.bytesFrom = bytesFrom;
|
package/dist/ckb/advanced.js
CHANGED
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.moleculeCodecCkb = void 0;
|
|
30
|
-
exports.moleculeCodecCkb = __importStar(require("./molecule.advanced"));
|
|
31
|
-
__exportStar(require("./script.advanced"), exports);
|
|
32
|
-
__exportStar(require("./transaction.advanced"), exports);
|
|
1
|
+
export * as moleculeCodecCkb from "./molecule.advanced";
|
|
2
|
+
export * from "./script.advanced";
|
|
3
|
+
export * from "./transaction.advanced";
|
package/dist/ckb/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./script"), exports);
|
|
18
|
-
__exportStar(require("./transaction"), exports);
|
|
1
|
+
export * from "./script";
|
|
2
|
+
export * from "./transaction";
|