@ckb-ccc/spore 0.1.1 → 1.0.0
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 +18 -0
- package/dist/codec/cluster.d.ts +1 -1
- package/dist/codec/cluster.d.ts.map +1 -1
- package/dist/codec/cobuild/buildingPacket.d.ts +122 -122
- package/dist/codec/cobuild/buildingPacket.d.ts.map +1 -1
- package/dist/codec/cobuild/buildingPacket.js +6 -6
- package/dist/codec/cobuild/sporeAction.d.ts +176 -176
- package/dist/codec/cobuild/sporeAction.d.ts.map +1 -1
- package/dist/codec/cobuild/sporeAction.js +19 -19
- package/dist.commonjs/codec/cluster.d.ts +1 -1
- package/dist.commonjs/codec/cluster.d.ts.map +1 -1
- package/dist.commonjs/codec/cobuild/buildingPacket.d.ts +122 -122
- package/dist.commonjs/codec/cobuild/buildingPacket.d.ts.map +1 -1
- package/dist.commonjs/codec/cobuild/buildingPacket.js +5 -5
- package/dist.commonjs/codec/cobuild/sporeAction.d.ts +176 -176
- package/dist.commonjs/codec/cobuild/sporeAction.d.ts.map +1 -1
- package/dist.commonjs/codec/cobuild/sporeAction.js +18 -18
- package/package.json +2 -2
- package/src/codec/cobuild/buildingPacket.ts +6 -6
- package/src/codec/cobuild/sporeAction.ts +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sporeAction.d.ts","sourceRoot":"","sources":["../../../src/codec/cobuild/sporeAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sporeAction.d.ts","sourceRoot":"","sources":["../../../src/codec/cobuild/sporeAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,OAAO;;;;;;EAElB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;GAItB,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;GAGpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK/B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;GAI3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI/B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;GAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
|
|
@@ -3,35 +3,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SporeAction = exports.MeltClusterAgent = exports.TransferClusterAgent = exports.CreateClusterAgent = exports.MeltClusterProxy = exports.TransferClusterProxy = exports.CreateClusterProxy = exports.TransferCluster = exports.CreateCluster = exports.MeltSpore = exports.TransferSpore = exports.CreateSpore = exports.Address = void 0;
|
|
4
4
|
const core_1 = require("@ckb-ccc/core");
|
|
5
5
|
exports.Address = core_1.mol.union({
|
|
6
|
-
Script: core_1.
|
|
6
|
+
Script: core_1.ccc.Script,
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
9
|
* Spore
|
|
10
10
|
*/
|
|
11
11
|
exports.CreateSpore = core_1.mol.table({
|
|
12
|
-
sporeId: core_1.mol.
|
|
12
|
+
sporeId: core_1.mol.Byte32,
|
|
13
13
|
to: exports.Address,
|
|
14
|
-
dataHash: core_1.mol.
|
|
14
|
+
dataHash: core_1.mol.Byte32,
|
|
15
15
|
});
|
|
16
16
|
exports.TransferSpore = core_1.mol.table({
|
|
17
|
-
sporeId: core_1.mol.
|
|
17
|
+
sporeId: core_1.mol.Byte32,
|
|
18
18
|
from: exports.Address,
|
|
19
19
|
to: exports.Address,
|
|
20
20
|
});
|
|
21
21
|
exports.MeltSpore = core_1.mol.table({
|
|
22
|
-
sporeId: core_1.mol.
|
|
22
|
+
sporeId: core_1.mol.Byte32,
|
|
23
23
|
from: exports.Address,
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
26
26
|
* Cluster
|
|
27
27
|
*/
|
|
28
28
|
exports.CreateCluster = core_1.mol.table({
|
|
29
|
-
clusterId: core_1.mol.
|
|
29
|
+
clusterId: core_1.mol.Byte32,
|
|
30
30
|
to: exports.Address,
|
|
31
|
-
dataHash: core_1.mol.
|
|
31
|
+
dataHash: core_1.mol.Byte32,
|
|
32
32
|
});
|
|
33
33
|
exports.TransferCluster = core_1.mol.table({
|
|
34
|
-
clusterId: core_1.mol.
|
|
34
|
+
clusterId: core_1.mol.Byte32,
|
|
35
35
|
from: exports.Address,
|
|
36
36
|
to: exports.Address,
|
|
37
37
|
});
|
|
@@ -39,36 +39,36 @@ exports.TransferCluster = core_1.mol.table({
|
|
|
39
39
|
* ClusterProxy
|
|
40
40
|
*/
|
|
41
41
|
exports.CreateClusterProxy = core_1.mol.table({
|
|
42
|
-
clusterId: core_1.mol.
|
|
43
|
-
clusterProxyId: core_1.mol.
|
|
42
|
+
clusterId: core_1.mol.Byte32,
|
|
43
|
+
clusterProxyId: core_1.mol.Byte32,
|
|
44
44
|
to: exports.Address,
|
|
45
45
|
});
|
|
46
46
|
exports.TransferClusterProxy = core_1.mol.table({
|
|
47
|
-
clusterId: core_1.mol.
|
|
48
|
-
clusterProxyId: core_1.mol.
|
|
47
|
+
clusterId: core_1.mol.Byte32,
|
|
48
|
+
clusterProxyId: core_1.mol.Byte32,
|
|
49
49
|
from: exports.Address,
|
|
50
50
|
to: exports.Address,
|
|
51
51
|
});
|
|
52
52
|
exports.MeltClusterProxy = core_1.mol.table({
|
|
53
|
-
clusterId: core_1.mol.
|
|
54
|
-
clusterProxyId: core_1.mol.
|
|
53
|
+
clusterId: core_1.mol.Byte32,
|
|
54
|
+
clusterProxyId: core_1.mol.Byte32,
|
|
55
55
|
from: exports.Address,
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
58
|
* ClusterAgent
|
|
59
59
|
*/
|
|
60
60
|
exports.CreateClusterAgent = core_1.mol.table({
|
|
61
|
-
clusterId: core_1.mol.
|
|
62
|
-
clusterProxyId: core_1.mol.
|
|
61
|
+
clusterId: core_1.mol.Byte32,
|
|
62
|
+
clusterProxyId: core_1.mol.Byte32,
|
|
63
63
|
to: exports.Address,
|
|
64
64
|
});
|
|
65
65
|
exports.TransferClusterAgent = core_1.mol.table({
|
|
66
|
-
clusterId: core_1.mol.
|
|
66
|
+
clusterId: core_1.mol.Byte32,
|
|
67
67
|
from: exports.Address,
|
|
68
68
|
to: exports.Address,
|
|
69
69
|
});
|
|
70
70
|
exports.MeltClusterAgent = core_1.mol.table({
|
|
71
|
-
clusterId: core_1.mol.
|
|
71
|
+
clusterId: core_1.mol.Byte32,
|
|
72
72
|
from: exports.Address,
|
|
73
73
|
});
|
|
74
74
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/spore",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector's support for Spore protocol",
|
|
5
5
|
"author": "ashuralyk <ashuralyk@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"axios": "^1.7.7",
|
|
47
|
-
"@ckb-ccc/core": "0.
|
|
47
|
+
"@ckb-ccc/core": "1.0.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json && copyfiles -u 2 misc/basedirs/**/* .",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { mol } from "@ckb-ccc/core";
|
|
1
|
+
import { ccc, mol } from "@ckb-ccc/core";
|
|
2
2
|
|
|
3
3
|
export const Action = mol.table({
|
|
4
|
-
scriptInfoHash: mol.
|
|
5
|
-
scriptHash: mol.
|
|
4
|
+
scriptInfoHash: mol.Byte32,
|
|
5
|
+
scriptHash: mol.Byte32,
|
|
6
6
|
data: mol.Bytes,
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -13,14 +13,14 @@ export const Message = mol.table({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
export const ResolvedInputs = mol.table({
|
|
16
|
-
outputs:
|
|
16
|
+
outputs: ccc.CellOutputVec,
|
|
17
17
|
outputsData: mol.BytesVec,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
export const ScriptInfo = mol.table({
|
|
21
21
|
name: mol.String,
|
|
22
22
|
url: mol.String,
|
|
23
|
-
scriptHash: mol.
|
|
23
|
+
scriptHash: mol.Byte32,
|
|
24
24
|
schema: mol.String,
|
|
25
25
|
messageType: mol.String,
|
|
26
26
|
});
|
|
@@ -29,7 +29,7 @@ export const ScriptInfoVec = mol.vector(ScriptInfo);
|
|
|
29
29
|
|
|
30
30
|
export const BuildingPacketV1 = mol.table({
|
|
31
31
|
message: Message,
|
|
32
|
-
payload:
|
|
32
|
+
payload: ccc.Transaction,
|
|
33
33
|
resolvedInputs: ResolvedInputs,
|
|
34
34
|
changeOutput: mol.Uint32Opt,
|
|
35
35
|
scriptInfos: ScriptInfoVec,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { mol } from "@ckb-ccc/core";
|
|
1
|
+
import { ccc, mol } from "@ckb-ccc/core";
|
|
2
2
|
|
|
3
3
|
export const Address = mol.union({
|
|
4
|
-
Script:
|
|
4
|
+
Script: ccc.Script,
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Spore
|
|
9
9
|
*/
|
|
10
10
|
export const CreateSpore = mol.table({
|
|
11
|
-
sporeId: mol.
|
|
11
|
+
sporeId: mol.Byte32,
|
|
12
12
|
to: Address,
|
|
13
|
-
dataHash: mol.
|
|
13
|
+
dataHash: mol.Byte32,
|
|
14
14
|
});
|
|
15
15
|
export const TransferSpore = mol.table({
|
|
16
|
-
sporeId: mol.
|
|
16
|
+
sporeId: mol.Byte32,
|
|
17
17
|
from: Address,
|
|
18
18
|
to: Address,
|
|
19
19
|
});
|
|
20
20
|
export const MeltSpore = mol.table({
|
|
21
|
-
sporeId: mol.
|
|
21
|
+
sporeId: mol.Byte32,
|
|
22
22
|
from: Address,
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -26,12 +26,12 @@ export const MeltSpore = mol.table({
|
|
|
26
26
|
* Cluster
|
|
27
27
|
*/
|
|
28
28
|
export const CreateCluster = mol.table({
|
|
29
|
-
clusterId: mol.
|
|
29
|
+
clusterId: mol.Byte32,
|
|
30
30
|
to: Address,
|
|
31
|
-
dataHash: mol.
|
|
31
|
+
dataHash: mol.Byte32,
|
|
32
32
|
});
|
|
33
33
|
export const TransferCluster = mol.table({
|
|
34
|
-
clusterId: mol.
|
|
34
|
+
clusterId: mol.Byte32,
|
|
35
35
|
from: Address,
|
|
36
36
|
to: Address,
|
|
37
37
|
});
|
|
@@ -40,19 +40,19 @@ export const TransferCluster = mol.table({
|
|
|
40
40
|
* ClusterProxy
|
|
41
41
|
*/
|
|
42
42
|
export const CreateClusterProxy = mol.table({
|
|
43
|
-
clusterId: mol.
|
|
44
|
-
clusterProxyId: mol.
|
|
43
|
+
clusterId: mol.Byte32,
|
|
44
|
+
clusterProxyId: mol.Byte32,
|
|
45
45
|
to: Address,
|
|
46
46
|
});
|
|
47
47
|
export const TransferClusterProxy = mol.table({
|
|
48
|
-
clusterId: mol.
|
|
49
|
-
clusterProxyId: mol.
|
|
48
|
+
clusterId: mol.Byte32,
|
|
49
|
+
clusterProxyId: mol.Byte32,
|
|
50
50
|
from: Address,
|
|
51
51
|
to: Address,
|
|
52
52
|
});
|
|
53
53
|
export const MeltClusterProxy = mol.table({
|
|
54
|
-
clusterId: mol.
|
|
55
|
-
clusterProxyId: mol.
|
|
54
|
+
clusterId: mol.Byte32,
|
|
55
|
+
clusterProxyId: mol.Byte32,
|
|
56
56
|
from: Address,
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -60,17 +60,17 @@ export const MeltClusterProxy = mol.table({
|
|
|
60
60
|
* ClusterAgent
|
|
61
61
|
*/
|
|
62
62
|
export const CreateClusterAgent = mol.table({
|
|
63
|
-
clusterId: mol.
|
|
64
|
-
clusterProxyId: mol.
|
|
63
|
+
clusterId: mol.Byte32,
|
|
64
|
+
clusterProxyId: mol.Byte32,
|
|
65
65
|
to: Address,
|
|
66
66
|
});
|
|
67
67
|
export const TransferClusterAgent = mol.table({
|
|
68
|
-
clusterId: mol.
|
|
68
|
+
clusterId: mol.Byte32,
|
|
69
69
|
from: Address,
|
|
70
70
|
to: Address,
|
|
71
71
|
});
|
|
72
72
|
export const MeltClusterAgent = mol.table({
|
|
73
|
-
clusterId: mol.
|
|
73
|
+
clusterId: mol.Byte32,
|
|
74
74
|
from: Address,
|
|
75
75
|
});
|
|
76
76
|
|