@ckb-ccc/spore 1.0.8 → 1.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 +22 -0
- package/dist/advanced.d.ts +2 -4
- package/dist/advanced.d.ts.map +1 -1
- package/dist/advanced.js +2 -4
- package/dist/advancedBarrel.d.ts +5 -0
- package/dist/advancedBarrel.d.ts.map +1 -0
- package/dist/advancedBarrel.js +4 -0
- package/dist/barrel.d.ts +5 -0
- package/dist/barrel.d.ts.map +1 -0
- package/dist/barrel.js +4 -0
- package/dist/cluster/index.d.ts +7 -2
- package/dist/cluster/index.d.ts.map +1 -1
- package/dist/cluster/index.js +21 -25
- package/dist/helper/index.d.ts +0 -2
- package/dist/helper/index.d.ts.map +1 -1
- package/dist/helper/index.js +0 -19
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/spore/advanced.d.ts.map +1 -1
- package/dist/spore/advanced.js +2 -10
- package/dist/spore/index.d.ts +9 -4
- package/dist/spore/index.d.ts.map +1 -1
- package/dist/spore/index.js +29 -30
- package/dist.commonjs/advanced.d.ts +2 -4
- package/dist.commonjs/advanced.d.ts.map +1 -1
- package/dist.commonjs/advanced.js +15 -4
- package/dist.commonjs/advancedBarrel.d.ts +5 -0
- package/dist.commonjs/advancedBarrel.d.ts.map +1 -0
- package/dist.commonjs/advancedBarrel.js +20 -0
- package/dist.commonjs/barrel.d.ts +5 -0
- package/dist.commonjs/barrel.d.ts.map +1 -0
- package/dist.commonjs/barrel.js +33 -0
- package/dist.commonjs/cluster/index.d.ts +7 -2
- package/dist.commonjs/cluster/index.d.ts.map +1 -1
- package/dist.commonjs/cluster/index.js +18 -22
- package/dist.commonjs/helper/index.d.ts +0 -2
- package/dist.commonjs/helper/index.d.ts.map +1 -1
- package/dist.commonjs/helper/index.js +0 -21
- package/dist.commonjs/index.d.ts +2 -4
- package/dist.commonjs/index.d.ts.map +1 -1
- package/dist.commonjs/index.js +3 -5
- package/dist.commonjs/spore/advanced.d.ts.map +1 -1
- package/dist.commonjs/spore/advanced.js +2 -10
- package/dist.commonjs/spore/index.d.ts +9 -4
- package/dist.commonjs/spore/index.d.ts.map +1 -1
- package/dist.commonjs/spore/index.js +26 -27
- package/package.json +12 -2
- package/src/advanced.ts +2 -4
- package/src/advancedBarrel.ts +4 -0
- package/src/barrel.ts +4 -0
- package/src/cluster/index.ts +33 -29
- package/src/helper/index.ts +0 -33
- package/src/index.ts +2 -4
- package/src/spore/advanced.ts +2 -12
- package/src/spore/index.ts +46 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @ckb-ccc/spore
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5d4517e`](https://github.com/ckb-devrel/ccc/commit/5d4517e049b541b2a695db7821c4cfc2218678e0) Thanks [@sfsf332](https://github.com/sfsf332)! - refactor(spore): unified findSpore(s) interface
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`a48cccf`](https://github.com/ckb-devrel/ccc/commit/a48cccfae3ce6b3456a5eb863f207e7e5a6e568f)]:
|
|
10
|
+
- @ckb-ccc/core@1.3.1
|
|
11
|
+
|
|
12
|
+
## 1.1.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#130](https://github.com/ckb-devrel/ccc/pull/130) [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: export backend packages in @ckb-ccc/shell
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#131](https://github.com/ckb-devrel/ccc/pull/131) [`4c76f9e`](https://github.com/ckb-devrel/ccc/commit/4c76f9e2a93a226fcfc4c32a5378bb531bfff08f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Transaction.completeInputs(Add/AtLeast)One
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`4dbf4fd`](https://github.com/ckb-devrel/ccc/commit/4dbf4fd8021cf14d05282706a7667ea7d108fb09), [`4c76f9e`](https://github.com/ckb-devrel/ccc/commit/4c76f9e2a93a226fcfc4c32a5378bb531bfff08f), [`c2c4c26`](https://github.com/ckb-devrel/ccc/commit/c2c4c264e04461948e4b913b2f22054e6032ddc8), [`b6a73fa`](https://github.com/ckb-devrel/ccc/commit/b6a73fa9628ebdff51cb8f246309654cd53e36f2), [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1)]:
|
|
23
|
+
- @ckb-ccc/core@1.3.0
|
|
24
|
+
|
|
3
25
|
## 1.0.8
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./predefined/advanced.js";
|
|
4
|
-
export * from "./spore/advanced.js";
|
|
1
|
+
export * from "./advancedBarrel.js";
|
|
2
|
+
export * as sporeA from "./advancedBarrel.js";
|
|
5
3
|
//# sourceMappingURL=advanced.d.ts.map
|
package/dist/advanced.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC"}
|
package/dist/advanced.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/dist/barrel.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
package/dist/barrel.js
ADDED
package/dist/cluster/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { ClusterDataView } from "../codec/index.js";
|
|
3
3
|
import { SporeScriptInfo, SporeScriptInfoLike } from "../predefined/index.js";
|
|
4
|
-
export declare function findCluster(client: ccc.Client,
|
|
4
|
+
export declare function findCluster(client: ccc.Client, id: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
5
5
|
cell: ccc.Cell;
|
|
6
|
+
cluster: ccc.Cell;
|
|
7
|
+
clusterData: ClusterDataView;
|
|
6
8
|
scriptInfo: SporeScriptInfo;
|
|
7
9
|
} | undefined>;
|
|
8
10
|
export declare function assertCluster(client: ccc.Client, args: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
@@ -60,12 +62,15 @@ export declare function transferSporeCluster(params: {
|
|
|
60
62
|
* @param order the order in creation time of clusters
|
|
61
63
|
* @param scriptInfos the deployed script infos of clusters
|
|
62
64
|
*/
|
|
63
|
-
export declare function findSporeClustersBySigner(
|
|
65
|
+
export declare function findSporeClustersBySigner({ signer, order, limit, scriptInfos, }: {
|
|
64
66
|
signer: ccc.Signer;
|
|
65
67
|
order?: "asc" | "desc";
|
|
68
|
+
limit?: number;
|
|
66
69
|
scriptInfos?: SporeScriptInfoLike[];
|
|
67
70
|
}): AsyncGenerator<{
|
|
71
|
+
cell: ccc.Cell;
|
|
68
72
|
cluster: ccc.Cell;
|
|
69
73
|
clusterData: ClusterDataView;
|
|
74
|
+
scriptInfo: SporeScriptInfo;
|
|
70
75
|
}>;
|
|
71
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,OAAO,EACL,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,eAAe,EACf,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAEhC,wBAAsB,WAAW,CAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,EAAE,EAAE,GAAG,CAAC,OAAO,EACf,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAgBA;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CAAC;IACT,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC,CAQD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,MAAM,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-1,10 +1,19 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { assembleCreateClusterAction, assembleTransferClusterAction, prepareSporeTransaction, } from "../advanced.js";
|
|
3
|
-
import {
|
|
4
|
-
import { findSingletonCellByArgs
|
|
5
|
-
import { getClusterScriptInfo, getClusterScriptInfos, } from "../predefined/index.js";
|
|
6
|
-
export async function findCluster(client,
|
|
7
|
-
|
|
3
|
+
import { packRawClusterData, unpackToRawClusterData, } from "../codec/index.js";
|
|
4
|
+
import { findSingletonCellByArgs } from "../helper/index.js";
|
|
5
|
+
import { SporeScriptInfo, getClusterScriptInfo, getClusterScriptInfos, } from "../predefined/index.js";
|
|
6
|
+
export async function findCluster(client, id, scripts) {
|
|
7
|
+
const found = await findSingletonCellByArgs(client, id, scripts ?? Object.values(getClusterScriptInfos(client)));
|
|
8
|
+
if (!found) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
cell: found.cell,
|
|
13
|
+
cluster: found.cell,
|
|
14
|
+
clusterData: unpackToRawClusterData(found.cell.outputData),
|
|
15
|
+
scriptInfo: found.scriptInfo,
|
|
16
|
+
};
|
|
8
17
|
}
|
|
9
18
|
export async function assertCluster(client, args, scripts) {
|
|
10
19
|
const res = await findCluster(client, args, scripts);
|
|
@@ -31,9 +40,7 @@ export async function createSporeCluster(params) {
|
|
|
31
40
|
const scriptInfo = params.scriptInfo ?? getClusterScriptInfo(signer.client);
|
|
32
41
|
// prepare transaction
|
|
33
42
|
const tx = ccc.Transaction.from(params.tx ?? {});
|
|
34
|
-
|
|
35
|
-
await injectOneCapacityCell(signer, tx);
|
|
36
|
-
}
|
|
43
|
+
await tx.completeInputsAtLeastOne(signer);
|
|
37
44
|
// build cluster cell
|
|
38
45
|
const id = ccc.hashTypeId(tx.inputs[0], tx.outputs.length);
|
|
39
46
|
const packedClusterData = packRawClusterData(data);
|
|
@@ -101,8 +108,7 @@ export async function transferSporeCluster(params) {
|
|
|
101
108
|
* @param order the order in creation time of clusters
|
|
102
109
|
* @param scriptInfos the deployed script infos of clusters
|
|
103
110
|
*/
|
|
104
|
-
export async function* findSporeClustersBySigner(
|
|
105
|
-
const { signer, order, scriptInfos } = params;
|
|
111
|
+
export async function* findSporeClustersBySigner({ signer, order, limit, scriptInfos, }) {
|
|
106
112
|
for (const scriptInfo of scriptInfos ??
|
|
107
113
|
Object.values(getClusterScriptInfos(signer.client))) {
|
|
108
114
|
if (!scriptInfo) {
|
|
@@ -111,24 +117,14 @@ export async function* findSporeClustersBySigner(params) {
|
|
|
111
117
|
for await (const cluster of signer.findCells({
|
|
112
118
|
script: {
|
|
113
119
|
...scriptInfo,
|
|
114
|
-
args:
|
|
120
|
+
args: "",
|
|
115
121
|
},
|
|
116
|
-
}, true, order,
|
|
117
|
-
let clusterData;
|
|
118
|
-
try {
|
|
119
|
-
clusterData = ClusterData.decode(cluster.outputData);
|
|
120
|
-
}
|
|
121
|
-
catch (_) {
|
|
122
|
-
try {
|
|
123
|
-
clusterData = ClusterDataV1.decode(cluster.outputData);
|
|
124
|
-
}
|
|
125
|
-
catch (e) {
|
|
126
|
-
throw new Error(`Cluster data decode failed: ${e.toString()}`);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
122
|
+
}, true, order, limit)) {
|
|
129
123
|
yield {
|
|
124
|
+
cell: cluster,
|
|
130
125
|
cluster,
|
|
131
|
-
clusterData,
|
|
126
|
+
clusterData: unpackToRawClusterData(cluster.outputData),
|
|
127
|
+
scriptInfo: SporeScriptInfo.from(scriptInfo),
|
|
132
128
|
};
|
|
133
129
|
}
|
|
134
130
|
}
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -4,6 +4,4 @@ export declare function findSingletonCellByArgs(client: ccc.Client, args: ccc.He
|
|
|
4
4
|
cell: ccc.Cell;
|
|
5
5
|
scriptInfo: SporeScriptInfo;
|
|
6
6
|
} | undefined>;
|
|
7
|
-
export declare function searchOneCellBySigner(signer: ccc.Signer): Promise<ccc.Cell | undefined>;
|
|
8
|
-
export declare function injectOneCapacityCell(signer: ccc.Signer, tx: ccc.Transaction): Promise<void>;
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,EAAE,CAAC,mBAAmB,GAAG,SAAS,CAAC,EAAE,GAC3C,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAqBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,EAAE,CAAC,mBAAmB,GAAG,SAAS,CAAC,EAAE,GAC3C,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAqBA"}
|
package/dist/helper/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ccc } from "@ckb-ccc/core";
|
|
2
1
|
import { SporeScriptInfo } from "../predefined/index.js";
|
|
3
2
|
export async function findSingletonCellByArgs(client, args, scripts) {
|
|
4
3
|
for (const scriptInfo of scripts) {
|
|
@@ -17,21 +16,3 @@ export async function findSingletonCellByArgs(client, args, scripts) {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
|
-
export async function searchOneCellBySigner(signer) {
|
|
21
|
-
for await (const cell of signer.findCells({
|
|
22
|
-
scriptLenRange: [0, 1],
|
|
23
|
-
outputDataLenRange: [0, 1],
|
|
24
|
-
}, true, undefined, 1)) {
|
|
25
|
-
return cell;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export async function injectOneCapacityCell(signer, tx) {
|
|
29
|
-
const liveCell = await searchOneCellBySigner(signer);
|
|
30
|
-
if (!liveCell) {
|
|
31
|
-
throw new Error("No live cell found");
|
|
32
|
-
}
|
|
33
|
-
tx.inputs.push(ccc.CellInput.from({
|
|
34
|
-
previousOutput: liveCell.outPoint,
|
|
35
|
-
...liveCell,
|
|
36
|
-
}));
|
|
37
|
-
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../src/spore/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../src/spore/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1D,wBAAsB,cAAc,CAClC,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,EAAE,EAAE,GAAG,CAAC,WAAW,EACnB,IAAI,EAAE,aAAa,EACnB,WAAW,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,MAAM,EAClD,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,GAC3B,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,GAAG,SAAS,CAAC,CAiEvD"}
|
package/dist/spore/advanced.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { assembleTransferClusterAction } from "../advanced.js";
|
|
3
3
|
import { assertCluster } from "../cluster/index.js";
|
|
4
|
-
import { searchOneCellBySigner } from "../helper/index.js";
|
|
5
4
|
export async function prepareCluster(signer, tx, data, clusterMode, scriptInfoHash) {
|
|
6
5
|
// skip if the spore is not belong to a cluster
|
|
7
6
|
if (!data.clusterId || clusterMode === "skip") {
|
|
@@ -15,17 +14,10 @@ export async function prepareCluster(signer, tx, data, clusterMode, scriptInfoHa
|
|
|
15
14
|
switch (clusterMode) {
|
|
16
15
|
case "lockProxy": {
|
|
17
16
|
const lock = cluster.cellOutput.lock;
|
|
18
|
-
if (await tx.findInputIndexByLock(lock, signer.client) === undefined) {
|
|
17
|
+
if ((await tx.findInputIndexByLock(lock, signer.client)) === undefined) {
|
|
19
18
|
// note: We can only search proxy of signer, if any custom logic is in need, developer should get
|
|
20
19
|
// the proxy filled in transaction before invoking `createSpore`
|
|
21
|
-
|
|
22
|
-
if (!proxy) {
|
|
23
|
-
throw new Error("Cluster lock proxy cell not found");
|
|
24
|
-
}
|
|
25
|
-
tx.inputs.push(ccc.CellInput.from({
|
|
26
|
-
previousOutput: proxy.outPoint,
|
|
27
|
-
...proxy,
|
|
28
|
-
}));
|
|
20
|
+
await tx.completeInputsAddOne(signer);
|
|
29
21
|
}
|
|
30
22
|
if (tx.outputs.every((output) => output.lock !== lock)) {
|
|
31
23
|
tx.addOutput({
|
package/dist/spore/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { SporeDataView } from "../codec/index.js";
|
|
3
3
|
import { SporeScriptInfo, SporeScriptInfoLike } from "../predefined/index.js";
|
|
4
|
-
export declare function findSpore(client: ccc.Client,
|
|
4
|
+
export declare function findSpore(client: ccc.Client, id: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
5
5
|
cell: ccc.Cell;
|
|
6
|
+
spore: ccc.Cell;
|
|
7
|
+
sporeData: SporeDataView;
|
|
6
8
|
scriptInfo: SporeScriptInfo;
|
|
7
9
|
} | undefined>;
|
|
8
10
|
export declare function assertSpore(client: ccc.Client, args: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
@@ -82,17 +84,20 @@ export declare function meltSpore(params: {
|
|
|
82
84
|
*
|
|
83
85
|
* @param signer the owner of spores
|
|
84
86
|
* @param order the order in creation time of spores
|
|
85
|
-
* @param clusterId the cluster that spores belong to
|
|
87
|
+
* @param clusterId the cluster that spores belong to. "" to find public spores
|
|
86
88
|
* @param scriptInfos the deployed script infos of spores
|
|
87
|
-
* @returns
|
|
89
|
+
* @returns specified spore cells
|
|
88
90
|
*/
|
|
89
|
-
export declare function findSporesBySigner(
|
|
91
|
+
export declare function findSporesBySigner({ signer, clusterId, scriptInfos, limit, order, }: {
|
|
90
92
|
signer: ccc.Signer;
|
|
91
93
|
order?: "asc" | "desc";
|
|
94
|
+
limit?: number;
|
|
92
95
|
clusterId?: ccc.HexLike;
|
|
93
96
|
scriptInfos?: SporeScriptInfoLike[];
|
|
94
97
|
}): AsyncGenerator<{
|
|
98
|
+
cell: ccc.Cell;
|
|
95
99
|
spore: ccc.Cell;
|
|
96
100
|
sporeData: SporeDataView;
|
|
101
|
+
scriptInfo: SporeScriptInfo;
|
|
97
102
|
}>;
|
|
98
103
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/spore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAOpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/spore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAOpC,OAAO,EACL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,eAAe,EACf,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAGhC,wBAAsB,SAAS,CAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,EAAE,EAAE,GAAG,CAAC,OAAO,EACf,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC;IAChB,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAgBA;AAED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CAAC;IACT,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC,CAQD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE;IACxC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,IAAI,EAAE,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KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACrC,GAAG,cAAc,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC;IAChB,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC,CAgCD"}
|
package/dist/spore/index.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { assembleCreateSporeAction, assembleMeltSporeAction, assembleTransferSporeAction, prepareSporeTransaction, } from "../advanced.js";
|
|
3
|
-
import {
|
|
4
|
-
import { findSingletonCellByArgs
|
|
5
|
-
import { getSporeScriptInfo, getSporeScriptInfos, } from "../predefined/index.js";
|
|
3
|
+
import { packRawSporeData, unpackToRawSporeData, } from "../codec/index.js";
|
|
4
|
+
import { findSingletonCellByArgs } from "../helper/index.js";
|
|
5
|
+
import { SporeScriptInfo, getSporeScriptInfo, getSporeScriptInfos, } from "../predefined/index.js";
|
|
6
6
|
import { prepareCluster } from "./advanced.js";
|
|
7
|
-
export async function findSpore(client,
|
|
8
|
-
|
|
7
|
+
export async function findSpore(client, id, scripts) {
|
|
8
|
+
const found = await findSingletonCellByArgs(client, id, scripts ?? Object.values(getSporeScriptInfos(client)));
|
|
9
|
+
if (!found) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
cell: found.cell,
|
|
14
|
+
spore: found.cell,
|
|
15
|
+
sporeData: unpackToRawSporeData(found.cell.outputData),
|
|
16
|
+
scriptInfo: found.scriptInfo,
|
|
17
|
+
};
|
|
9
18
|
}
|
|
10
19
|
export async function assertSpore(client, args, scripts) {
|
|
11
20
|
const res = await findSpore(client, args, scripts);
|
|
@@ -39,9 +48,7 @@ export async function createSpore(params) {
|
|
|
39
48
|
const actions = [];
|
|
40
49
|
const ids = [];
|
|
41
50
|
const tx = ccc.Transaction.from(params.tx ?? {});
|
|
42
|
-
|
|
43
|
-
await injectOneCapacityCell(signer, tx);
|
|
44
|
-
}
|
|
51
|
+
await tx.completeInputsAtLeastOne(signer);
|
|
45
52
|
const { script: lock } = await signer.getRecommendedAddressObj();
|
|
46
53
|
// build spore cell
|
|
47
54
|
const id = ccc.hashTypeId(tx.inputs[0], tx.outputs.length);
|
|
@@ -138,12 +145,11 @@ export async function meltSpore(params) {
|
|
|
138
145
|
*
|
|
139
146
|
* @param signer the owner of spores
|
|
140
147
|
* @param order the order in creation time of spores
|
|
141
|
-
* @param clusterId the cluster that spores belong to
|
|
148
|
+
* @param clusterId the cluster that spores belong to. "" to find public spores
|
|
142
149
|
* @param scriptInfos the deployed script infos of spores
|
|
143
|
-
* @returns
|
|
150
|
+
* @returns specified spore cells
|
|
144
151
|
*/
|
|
145
|
-
export async function* findSporesBySigner(
|
|
146
|
-
const { signer, clusterId, scriptInfos, order } = params;
|
|
152
|
+
export async function* findSporesBySigner({ signer, clusterId, scriptInfos, limit, order, }) {
|
|
147
153
|
for (const scriptInfo of scriptInfos ??
|
|
148
154
|
Object.values(getSporeScriptInfos(signer.client))) {
|
|
149
155
|
if (!scriptInfo) {
|
|
@@ -154,24 +160,17 @@ export async function* findSporesBySigner(params) {
|
|
|
154
160
|
...scriptInfo,
|
|
155
161
|
args: [],
|
|
156
162
|
},
|
|
157
|
-
}, true, order,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
spore,
|
|
169
|
-
sporeData,
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
catch (e) {
|
|
174
|
-
throw new Error(`Spore data decode failed: ${e.toString()}`);
|
|
163
|
+
}, true, order, limit)) {
|
|
164
|
+
const sporeData = unpackToRawSporeData(spore.outputData);
|
|
165
|
+
if (!clusterId ||
|
|
166
|
+
(clusterId === "" && !sporeData.clusterId) ||
|
|
167
|
+
sporeData.clusterId === ccc.hexFrom(clusterId)) {
|
|
168
|
+
yield {
|
|
169
|
+
cell: spore,
|
|
170
|
+
spore,
|
|
171
|
+
sporeData,
|
|
172
|
+
scriptInfo: SporeScriptInfo.from(scriptInfo),
|
|
173
|
+
};
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./predefined/advanced.js";
|
|
4
|
-
export * from "./spore/advanced.js";
|
|
1
|
+
export * from "./advancedBarrel.js";
|
|
2
|
+
export * as sporeA from "./advancedBarrel.js";
|
|
5
3
|
//# sourceMappingURL=advanced.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC"}
|
|
@@ -10,11 +10,22 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
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
|
+
});
|
|
13
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
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
|
+
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
|
|
20
|
-
__exportStar(require("./spore/advanced.js"), exports);
|
|
29
|
+
exports.sporeA = void 0;
|
|
30
|
+
__exportStar(require("./advancedBarrel.js"), exports);
|
|
31
|
+
exports.sporeA = __importStar(require("./advancedBarrel.js"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
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("./cobuild/index.js"), exports);
|
|
18
|
+
__exportStar(require("./codec/index.js"), exports);
|
|
19
|
+
__exportStar(require("./predefined/advanced.js"), exports);
|
|
20
|
+
__exportStar(require("./spore/advanced.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
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 __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.dob = void 0;
|
|
30
|
+
__exportStar(require("./cluster/index.js"), exports);
|
|
31
|
+
exports.dob = __importStar(require("./dob/index.js"));
|
|
32
|
+
__exportStar(require("./predefined/index.js"), exports);
|
|
33
|
+
__exportStar(require("./spore/index.js"), exports);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
2
|
import { ClusterDataView } from "../codec/index.js";
|
|
3
3
|
import { SporeScriptInfo, SporeScriptInfoLike } from "../predefined/index.js";
|
|
4
|
-
export declare function findCluster(client: ccc.Client,
|
|
4
|
+
export declare function findCluster(client: ccc.Client, id: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
5
5
|
cell: ccc.Cell;
|
|
6
|
+
cluster: ccc.Cell;
|
|
7
|
+
clusterData: ClusterDataView;
|
|
6
8
|
scriptInfo: SporeScriptInfo;
|
|
7
9
|
} | undefined>;
|
|
8
10
|
export declare function assertCluster(client: ccc.Client, args: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
|
|
@@ -60,12 +62,15 @@ export declare function transferSporeCluster(params: {
|
|
|
60
62
|
* @param order the order in creation time of clusters
|
|
61
63
|
* @param scriptInfos the deployed script infos of clusters
|
|
62
64
|
*/
|
|
63
|
-
export declare function findSporeClustersBySigner(
|
|
65
|
+
export declare function findSporeClustersBySigner({ signer, order, limit, scriptInfos, }: {
|
|
64
66
|
signer: ccc.Signer;
|
|
65
67
|
order?: "asc" | "desc";
|
|
68
|
+
limit?: number;
|
|
66
69
|
scriptInfos?: SporeScriptInfoLike[];
|
|
67
70
|
}): AsyncGenerator<{
|
|
71
|
+
cell: ccc.Cell;
|
|
68
72
|
cluster: ccc.Cell;
|
|
69
73
|
clusterData: ClusterDataView;
|
|
74
|
+
scriptInfo: SporeScriptInfo;
|
|
70
75
|
}>;
|
|
71
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,OAAO,EACL,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,eAAe,EACf,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAEhC,wBAAsB,WAAW,CAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,EAAE,EAAE,GAAG,CAAC,OAAO,EACf,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAgBA;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CAAC;IACT,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC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