@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;;;;;;;;;;;;;;;;;;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.union({
|
|
3
|
-
Script:
|
|
3
|
+
Script: ccc.Script,
|
|
4
4
|
});
|
|
5
5
|
/**
|
|
6
6
|
* Spore
|
|
7
7
|
*/
|
|
8
8
|
export const CreateSpore = mol.table({
|
|
9
|
-
sporeId: mol.
|
|
9
|
+
sporeId: mol.Byte32,
|
|
10
10
|
to: Address,
|
|
11
|
-
dataHash: mol.
|
|
11
|
+
dataHash: mol.Byte32,
|
|
12
12
|
});
|
|
13
13
|
export const TransferSpore = mol.table({
|
|
14
|
-
sporeId: mol.
|
|
14
|
+
sporeId: mol.Byte32,
|
|
15
15
|
from: Address,
|
|
16
16
|
to: Address,
|
|
17
17
|
});
|
|
18
18
|
export const MeltSpore = mol.table({
|
|
19
|
-
sporeId: mol.
|
|
19
|
+
sporeId: mol.Byte32,
|
|
20
20
|
from: Address,
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Cluster
|
|
24
24
|
*/
|
|
25
25
|
export const CreateCluster = mol.table({
|
|
26
|
-
clusterId: mol.
|
|
26
|
+
clusterId: mol.Byte32,
|
|
27
27
|
to: Address,
|
|
28
|
-
dataHash: mol.
|
|
28
|
+
dataHash: mol.Byte32,
|
|
29
29
|
});
|
|
30
30
|
export const TransferCluster = mol.table({
|
|
31
|
-
clusterId: mol.
|
|
31
|
+
clusterId: mol.Byte32,
|
|
32
32
|
from: Address,
|
|
33
33
|
to: Address,
|
|
34
34
|
});
|
|
@@ -36,36 +36,36 @@ export const TransferCluster = mol.table({
|
|
|
36
36
|
* ClusterProxy
|
|
37
37
|
*/
|
|
38
38
|
export const CreateClusterProxy = mol.table({
|
|
39
|
-
clusterId: mol.
|
|
40
|
-
clusterProxyId: mol.
|
|
39
|
+
clusterId: mol.Byte32,
|
|
40
|
+
clusterProxyId: mol.Byte32,
|
|
41
41
|
to: Address,
|
|
42
42
|
});
|
|
43
43
|
export const TransferClusterProxy = mol.table({
|
|
44
|
-
clusterId: mol.
|
|
45
|
-
clusterProxyId: mol.
|
|
44
|
+
clusterId: mol.Byte32,
|
|
45
|
+
clusterProxyId: mol.Byte32,
|
|
46
46
|
from: Address,
|
|
47
47
|
to: Address,
|
|
48
48
|
});
|
|
49
49
|
export const MeltClusterProxy = mol.table({
|
|
50
|
-
clusterId: mol.
|
|
51
|
-
clusterProxyId: mol.
|
|
50
|
+
clusterId: mol.Byte32,
|
|
51
|
+
clusterProxyId: mol.Byte32,
|
|
52
52
|
from: Address,
|
|
53
53
|
});
|
|
54
54
|
/**
|
|
55
55
|
* ClusterAgent
|
|
56
56
|
*/
|
|
57
57
|
export const CreateClusterAgent = mol.table({
|
|
58
|
-
clusterId: mol.
|
|
59
|
-
clusterProxyId: mol.
|
|
58
|
+
clusterId: mol.Byte32,
|
|
59
|
+
clusterProxyId: mol.Byte32,
|
|
60
60
|
to: Address,
|
|
61
61
|
});
|
|
62
62
|
export const TransferClusterAgent = mol.table({
|
|
63
|
-
clusterId: mol.
|
|
63
|
+
clusterId: mol.Byte32,
|
|
64
64
|
from: Address,
|
|
65
65
|
to: Address,
|
|
66
66
|
});
|
|
67
67
|
export const MeltClusterAgent = mol.table({
|
|
68
|
-
clusterId: mol.
|
|
68
|
+
clusterId: mol.Byte32,
|
|
69
69
|
from: Address,
|
|
70
70
|
});
|
|
71
71
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ClusterDataV2View {
|
|
|
12
12
|
export declare const ClusterDataV2: mol.Codec<ClusterDataV2View>;
|
|
13
13
|
export type ClusterDataView = ClusterDataV2View;
|
|
14
14
|
export type ClusterDataVersion = "v1" | "v2";
|
|
15
|
-
export declare const ClusterData:
|
|
15
|
+
export declare const ClusterData: mol.Codec<ClusterDataV2View, ClusterDataV2View>;
|
|
16
16
|
/**
|
|
17
17
|
* Pack RawClusterData to Uint8Array.
|
|
18
18
|
* Pass an optional "version" field to select a specific packing version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../src/codec/cluster.ts"],"names":[],"mapp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gB,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,eAAe,GAAG,UAAU,CAAC;AAC1E,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,IAAI,GACZ,UAAU,CAAC;AACd,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,IAAI,GACZ,UAAU,CAAC;AAgBd,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,UAAU,CAO5E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,UAAU,CAQ5E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,SAAS,GACxB,eAAe,CAAC;AACnB,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,GACZ,iBAAiB,CAAC;AACrB,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,GACZ,iBAAiB,CAAC;AA0BrB,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,GAAG,CAAC,SAAS,GACxB,iBAAiB,CAEnB;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,GAAG,CAAC,SAAS,GACxB,iBAAiB,CAEnB"}
|
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
import { mol } from "@ckb-ccc/core";
|
|
1
|
+
import { ccc, mol } from "@ckb-ccc/core";
|
|
2
2
|
export declare const Action: mol.Codec<mol.EncodableRecord<{
|
|
3
|
-
scriptInfoHash: mol.Codec<
|
|
4
|
-
scriptHash: mol.Codec<
|
|
5
|
-
data: mol.Codec<
|
|
3
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
4
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
5
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
6
6
|
}>, mol.DecodedRecord<{
|
|
7
|
-
scriptInfoHash: mol.Codec<
|
|
8
|
-
scriptHash: mol.Codec<
|
|
9
|
-
data: mol.Codec<
|
|
7
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
8
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
9
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
10
10
|
}>>;
|
|
11
11
|
export declare const ActionVec: mol.Codec<mol.EncodableRecord<{
|
|
12
|
-
scriptInfoHash: mol.Codec<
|
|
13
|
-
scriptHash: mol.Codec<
|
|
14
|
-
data: mol.Codec<
|
|
12
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
13
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
14
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
15
15
|
}>[], mol.DecodedRecord<{
|
|
16
|
-
scriptInfoHash: mol.Codec<
|
|
17
|
-
scriptHash: mol.Codec<
|
|
18
|
-
data: mol.Codec<
|
|
16
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
17
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
18
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
19
19
|
}>[]>;
|
|
20
20
|
export declare const Message: mol.Codec<mol.EncodableRecord<{
|
|
21
21
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
22
|
-
scriptInfoHash: mol.Codec<
|
|
23
|
-
scriptHash: mol.Codec<
|
|
24
|
-
data: mol.Codec<
|
|
22
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
23
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
24
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
25
25
|
}>[], mol.DecodedRecord<{
|
|
26
|
-
scriptInfoHash: mol.Codec<
|
|
27
|
-
scriptHash: mol.Codec<
|
|
28
|
-
data: mol.Codec<
|
|
26
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
27
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
28
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
29
29
|
}>[]>;
|
|
30
30
|
}>, mol.DecodedRecord<{
|
|
31
31
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
32
|
-
scriptInfoHash: mol.Codec<
|
|
33
|
-
scriptHash: mol.Codec<
|
|
34
|
-
data: mol.Codec<
|
|
32
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
33
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
34
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
35
35
|
}>[], mol.DecodedRecord<{
|
|
36
|
-
scriptInfoHash: mol.Codec<
|
|
37
|
-
scriptHash: mol.Codec<
|
|
38
|
-
data: mol.Codec<
|
|
36
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
37
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
38
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
39
39
|
}>[]>;
|
|
40
40
|
}>>;
|
|
41
41
|
export declare const ResolvedInputs: mol.Codec<mol.EncodableRecord<{
|
|
42
|
-
outputs: mol.Codec<
|
|
43
|
-
outputsData: mol.Codec<
|
|
42
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
43
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
44
44
|
}>, mol.DecodedRecord<{
|
|
45
|
-
outputs: mol.Codec<
|
|
46
|
-
outputsData: mol.Codec<
|
|
45
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
46
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
47
47
|
}>>;
|
|
48
48
|
export declare const ScriptInfo: mol.Codec<mol.EncodableRecord<{
|
|
49
49
|
name: mol.Codec<string, string>;
|
|
50
50
|
url: mol.Codec<string, string>;
|
|
51
|
-
scriptHash: mol.Codec<
|
|
51
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
52
52
|
schema: mol.Codec<string, string>;
|
|
53
53
|
messageType: mol.Codec<string, string>;
|
|
54
54
|
}>, mol.DecodedRecord<{
|
|
55
55
|
name: mol.Codec<string, string>;
|
|
56
56
|
url: mol.Codec<string, string>;
|
|
57
|
-
scriptHash: mol.Codec<
|
|
57
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
58
58
|
schema: mol.Codec<string, string>;
|
|
59
59
|
messageType: mol.Codec<string, string>;
|
|
60
60
|
}>>;
|
|
61
61
|
export declare const ScriptInfoVec: mol.Codec<mol.EncodableRecord<{
|
|
62
62
|
name: mol.Codec<string, string>;
|
|
63
63
|
url: mol.Codec<string, string>;
|
|
64
|
-
scriptHash: mol.Codec<
|
|
64
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
65
65
|
schema: mol.Codec<string, string>;
|
|
66
66
|
messageType: mol.Codec<string, string>;
|
|
67
67
|
}>[], mol.DecodedRecord<{
|
|
68
68
|
name: mol.Codec<string, string>;
|
|
69
69
|
url: mol.Codec<string, string>;
|
|
70
|
-
scriptHash: mol.Codec<
|
|
70
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
71
71
|
schema: mol.Codec<string, string>;
|
|
72
72
|
messageType: mol.Codec<string, string>;
|
|
73
73
|
}>[]>;
|
|
74
74
|
export declare const BuildingPacketV1: mol.Codec<mol.EncodableRecord<{
|
|
75
75
|
message: mol.Codec<mol.EncodableRecord<{
|
|
76
76
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
77
|
-
scriptInfoHash: mol.Codec<
|
|
78
|
-
scriptHash: mol.Codec<
|
|
79
|
-
data: mol.Codec<
|
|
77
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
78
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
79
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
80
80
|
}>[], mol.DecodedRecord<{
|
|
81
|
-
scriptInfoHash: mol.Codec<
|
|
82
|
-
scriptHash: mol.Codec<
|
|
83
|
-
data: mol.Codec<
|
|
81
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
82
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
83
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
84
84
|
}>[]>;
|
|
85
85
|
}>, mol.DecodedRecord<{
|
|
86
86
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
87
|
-
scriptInfoHash: mol.Codec<
|
|
88
|
-
scriptHash: mol.Codec<
|
|
89
|
-
data: mol.Codec<
|
|
87
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
88
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
89
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
90
90
|
}>[], mol.DecodedRecord<{
|
|
91
|
-
scriptInfoHash: mol.Codec<
|
|
92
|
-
scriptHash: mol.Codec<
|
|
93
|
-
data: mol.Codec<
|
|
91
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
92
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
93
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
94
94
|
}>[]>;
|
|
95
95
|
}>>;
|
|
96
|
-
payload:
|
|
96
|
+
payload: typeof ccc.Transaction;
|
|
97
97
|
resolvedInputs: mol.Codec<mol.EncodableRecord<{
|
|
98
|
-
outputs: mol.Codec<
|
|
99
|
-
outputsData: mol.Codec<
|
|
98
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
99
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
100
100
|
}>, mol.DecodedRecord<{
|
|
101
|
-
outputs: mol.Codec<
|
|
102
|
-
outputsData: mol.Codec<
|
|
101
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
102
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
103
103
|
}>>;
|
|
104
|
-
changeOutput: mol.Codec<
|
|
104
|
+
changeOutput: mol.Codec<ccc.NumLike | null | undefined, number | undefined>;
|
|
105
105
|
scriptInfos: mol.Codec<mol.EncodableRecord<{
|
|
106
106
|
name: mol.Codec<string, string>;
|
|
107
107
|
url: mol.Codec<string, string>;
|
|
108
|
-
scriptHash: mol.Codec<
|
|
108
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
109
109
|
schema: mol.Codec<string, string>;
|
|
110
110
|
messageType: mol.Codec<string, string>;
|
|
111
111
|
}>[], mol.DecodedRecord<{
|
|
112
112
|
name: mol.Codec<string, string>;
|
|
113
113
|
url: mol.Codec<string, string>;
|
|
114
|
-
scriptHash: mol.Codec<
|
|
114
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
115
115
|
schema: mol.Codec<string, string>;
|
|
116
116
|
messageType: mol.Codec<string, string>;
|
|
117
117
|
}>[]>;
|
|
118
118
|
lockActions: mol.Codec<mol.EncodableRecord<{
|
|
119
|
-
scriptInfoHash: mol.Codec<
|
|
120
|
-
scriptHash: mol.Codec<
|
|
121
|
-
data: mol.Codec<
|
|
119
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
120
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
121
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
122
122
|
}>[], mol.DecodedRecord<{
|
|
123
|
-
scriptInfoHash: mol.Codec<
|
|
124
|
-
scriptHash: mol.Codec<
|
|
125
|
-
data: mol.Codec<
|
|
123
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
124
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
125
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
126
126
|
}>[]>;
|
|
127
127
|
}>, mol.DecodedRecord<{
|
|
128
128
|
message: mol.Codec<mol.EncodableRecord<{
|
|
129
129
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
130
|
-
scriptInfoHash: mol.Codec<
|
|
131
|
-
scriptHash: mol.Codec<
|
|
132
|
-
data: mol.Codec<
|
|
130
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
131
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
132
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
133
133
|
}>[], mol.DecodedRecord<{
|
|
134
|
-
scriptInfoHash: mol.Codec<
|
|
135
|
-
scriptHash: mol.Codec<
|
|
136
|
-
data: mol.Codec<
|
|
134
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
135
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
136
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
137
137
|
}>[]>;
|
|
138
138
|
}>, mol.DecodedRecord<{
|
|
139
139
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
140
|
-
scriptInfoHash: mol.Codec<
|
|
141
|
-
scriptHash: mol.Codec<
|
|
142
|
-
data: mol.Codec<
|
|
140
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
141
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
142
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
143
143
|
}>[], mol.DecodedRecord<{
|
|
144
|
-
scriptInfoHash: mol.Codec<
|
|
145
|
-
scriptHash: mol.Codec<
|
|
146
|
-
data: mol.Codec<
|
|
144
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
145
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
146
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
147
147
|
}>[]>;
|
|
148
148
|
}>>;
|
|
149
|
-
payload:
|
|
149
|
+
payload: typeof ccc.Transaction;
|
|
150
150
|
resolvedInputs: mol.Codec<mol.EncodableRecord<{
|
|
151
|
-
outputs: mol.Codec<
|
|
152
|
-
outputsData: mol.Codec<
|
|
151
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
152
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
153
153
|
}>, mol.DecodedRecord<{
|
|
154
|
-
outputs: mol.Codec<
|
|
155
|
-
outputsData: mol.Codec<
|
|
154
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
155
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
156
156
|
}>>;
|
|
157
|
-
changeOutput: mol.Codec<
|
|
157
|
+
changeOutput: mol.Codec<ccc.NumLike | null | undefined, number | undefined>;
|
|
158
158
|
scriptInfos: mol.Codec<mol.EncodableRecord<{
|
|
159
159
|
name: mol.Codec<string, string>;
|
|
160
160
|
url: mol.Codec<string, string>;
|
|
161
|
-
scriptHash: mol.Codec<
|
|
161
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
162
162
|
schema: mol.Codec<string, string>;
|
|
163
163
|
messageType: mol.Codec<string, string>;
|
|
164
164
|
}>[], mol.DecodedRecord<{
|
|
165
165
|
name: mol.Codec<string, string>;
|
|
166
166
|
url: mol.Codec<string, string>;
|
|
167
|
-
scriptHash: mol.Codec<
|
|
167
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
168
168
|
schema: mol.Codec<string, string>;
|
|
169
169
|
messageType: mol.Codec<string, string>;
|
|
170
170
|
}>[]>;
|
|
171
171
|
lockActions: mol.Codec<mol.EncodableRecord<{
|
|
172
|
-
scriptInfoHash: mol.Codec<
|
|
173
|
-
scriptHash: mol.Codec<
|
|
174
|
-
data: mol.Codec<
|
|
172
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
173
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
174
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
175
175
|
}>[], mol.DecodedRecord<{
|
|
176
|
-
scriptInfoHash: mol.Codec<
|
|
177
|
-
scriptHash: mol.Codec<
|
|
178
|
-
data: mol.Codec<
|
|
176
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
177
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
178
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
179
179
|
}>[]>;
|
|
180
180
|
}>>;
|
|
181
181
|
export declare const BuildingPacket: mol.Codec<{
|
|
182
182
|
type: "BuildingPacketV1";
|
|
183
183
|
value: {
|
|
184
|
-
changeOutput?:
|
|
184
|
+
changeOutput?: ccc.NumLike | null | undefined;
|
|
185
185
|
} & {
|
|
186
186
|
message: {} & {
|
|
187
187
|
actions: mol.EncodableRecord<{
|
|
188
|
-
scriptInfoHash: mol.Codec<
|
|
189
|
-
scriptHash: mol.Codec<
|
|
190
|
-
data: mol.Codec<
|
|
188
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
189
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
190
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
191
191
|
}>[];
|
|
192
192
|
};
|
|
193
|
-
payload:
|
|
193
|
+
payload: ccc.TransactionLike;
|
|
194
194
|
resolvedInputs: {} & {
|
|
195
|
-
outputs:
|
|
196
|
-
outputsData:
|
|
195
|
+
outputs: ccc.CellOutputLike[];
|
|
196
|
+
outputsData: ccc.BytesLike[];
|
|
197
197
|
};
|
|
198
198
|
scriptInfos: mol.EncodableRecord<{
|
|
199
199
|
name: mol.Codec<string, string>;
|
|
200
200
|
url: mol.Codec<string, string>;
|
|
201
|
-
scriptHash: mol.Codec<
|
|
201
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
202
202
|
schema: mol.Codec<string, string>;
|
|
203
203
|
messageType: mol.Codec<string, string>;
|
|
204
204
|
}>[];
|
|
205
205
|
lockActions: mol.EncodableRecord<{
|
|
206
|
-
scriptInfoHash: mol.Codec<
|
|
207
|
-
scriptHash: mol.Codec<
|
|
208
|
-
data: mol.Codec<
|
|
206
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
207
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
208
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
209
209
|
}>[];
|
|
210
210
|
};
|
|
211
211
|
}, {
|
|
@@ -213,55 +213,55 @@ export declare const BuildingPacket: mol.Codec<{
|
|
|
213
213
|
value: mol.DecodedRecord<{
|
|
214
214
|
message: mol.Codec<mol.EncodableRecord<{
|
|
215
215
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
216
|
-
scriptInfoHash: mol.Codec<
|
|
217
|
-
scriptHash: mol.Codec<
|
|
218
|
-
data: mol.Codec<
|
|
216
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
217
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
218
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
219
219
|
}>[], mol.DecodedRecord<{
|
|
220
|
-
scriptInfoHash: mol.Codec<
|
|
221
|
-
scriptHash: mol.Codec<
|
|
222
|
-
data: mol.Codec<
|
|
220
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
221
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
222
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
223
223
|
}>[]>;
|
|
224
224
|
}>, mol.DecodedRecord<{
|
|
225
225
|
actions: mol.Codec<mol.EncodableRecord<{
|
|
226
|
-
scriptInfoHash: mol.Codec<
|
|
227
|
-
scriptHash: mol.Codec<
|
|
228
|
-
data: mol.Codec<
|
|
226
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
227
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
228
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
229
229
|
}>[], mol.DecodedRecord<{
|
|
230
|
-
scriptInfoHash: mol.Codec<
|
|
231
|
-
scriptHash: mol.Codec<
|
|
232
|
-
data: mol.Codec<
|
|
230
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
231
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
232
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
233
233
|
}>[]>;
|
|
234
234
|
}>>;
|
|
235
|
-
payload:
|
|
235
|
+
payload: typeof ccc.Transaction;
|
|
236
236
|
resolvedInputs: mol.Codec<mol.EncodableRecord<{
|
|
237
|
-
outputs: mol.Codec<
|
|
238
|
-
outputsData: mol.Codec<
|
|
237
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
238
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
239
239
|
}>, mol.DecodedRecord<{
|
|
240
|
-
outputs: mol.Codec<
|
|
241
|
-
outputsData: mol.Codec<
|
|
240
|
+
outputs: mol.Codec<ccc.CellOutputLike[], ccc.CellOutput[]>;
|
|
241
|
+
outputsData: mol.Codec<ccc.BytesLike[], `0x${string}`[]>;
|
|
242
242
|
}>>;
|
|
243
|
-
changeOutput: mol.Codec<
|
|
243
|
+
changeOutput: mol.Codec<ccc.NumLike | null | undefined, number | undefined>;
|
|
244
244
|
scriptInfos: mol.Codec<mol.EncodableRecord<{
|
|
245
245
|
name: mol.Codec<string, string>;
|
|
246
246
|
url: mol.Codec<string, string>;
|
|
247
|
-
scriptHash: mol.Codec<
|
|
247
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
248
248
|
schema: mol.Codec<string, string>;
|
|
249
249
|
messageType: mol.Codec<string, string>;
|
|
250
250
|
}>[], mol.DecodedRecord<{
|
|
251
251
|
name: mol.Codec<string, string>;
|
|
252
252
|
url: mol.Codec<string, string>;
|
|
253
|
-
scriptHash: mol.Codec<
|
|
253
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
254
254
|
schema: mol.Codec<string, string>;
|
|
255
255
|
messageType: mol.Codec<string, string>;
|
|
256
256
|
}>[]>;
|
|
257
257
|
lockActions: mol.Codec<mol.EncodableRecord<{
|
|
258
|
-
scriptInfoHash: mol.Codec<
|
|
259
|
-
scriptHash: mol.Codec<
|
|
260
|
-
data: mol.Codec<
|
|
258
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
259
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
260
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
261
261
|
}>[], mol.DecodedRecord<{
|
|
262
|
-
scriptInfoHash: mol.Codec<
|
|
263
|
-
scriptHash: mol.Codec<
|
|
264
|
-
data: mol.Codec<
|
|
262
|
+
scriptInfoHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
263
|
+
scriptHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
264
|
+
data: mol.Codec<ccc.BytesLike, `0x${string}`>;
|
|
265
265
|
}>[]>;
|
|
266
266
|
}>;
|
|
267
267
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildingPacket.d.ts","sourceRoot":"","sources":["../../../src/codec/cobuild/buildingPacket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"buildingPacket.d.ts","sourceRoot":"","sources":["../../../src/codec/cobuild/buildingPacket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,MAAM;;;;;;;;GAIjB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;KAAqB,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;GAElB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;GAGzB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;GAMrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;KAAyB,CAAC;AAEpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAO3B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzB,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BuildingPacket = exports.BuildingPacketV1 = exports.ScriptInfoVec = exports.ScriptInfo = exports.ResolvedInputs = exports.Message = exports.ActionVec = exports.Action = void 0;
|
|
4
4
|
const core_1 = require("@ckb-ccc/core");
|
|
5
5
|
exports.Action = core_1.mol.table({
|
|
6
|
-
scriptInfoHash: core_1.mol.
|
|
7
|
-
scriptHash: core_1.mol.
|
|
6
|
+
scriptInfoHash: core_1.mol.Byte32,
|
|
7
|
+
scriptHash: core_1.mol.Byte32,
|
|
8
8
|
data: core_1.mol.Bytes,
|
|
9
9
|
});
|
|
10
10
|
exports.ActionVec = core_1.mol.vector(exports.Action);
|
|
@@ -12,20 +12,20 @@ exports.Message = core_1.mol.table({
|
|
|
12
12
|
actions: exports.ActionVec,
|
|
13
13
|
});
|
|
14
14
|
exports.ResolvedInputs = core_1.mol.table({
|
|
15
|
-
outputs: core_1.
|
|
15
|
+
outputs: core_1.ccc.CellOutputVec,
|
|
16
16
|
outputsData: core_1.mol.BytesVec,
|
|
17
17
|
});
|
|
18
18
|
exports.ScriptInfo = core_1.mol.table({
|
|
19
19
|
name: core_1.mol.String,
|
|
20
20
|
url: core_1.mol.String,
|
|
21
|
-
scriptHash: core_1.mol.
|
|
21
|
+
scriptHash: core_1.mol.Byte32,
|
|
22
22
|
schema: core_1.mol.String,
|
|
23
23
|
messageType: core_1.mol.String,
|
|
24
24
|
});
|
|
25
25
|
exports.ScriptInfoVec = core_1.mol.vector(exports.ScriptInfo);
|
|
26
26
|
exports.BuildingPacketV1 = core_1.mol.table({
|
|
27
27
|
message: exports.Message,
|
|
28
|
-
payload: core_1.
|
|
28
|
+
payload: core_1.ccc.Transaction,
|
|
29
29
|
resolvedInputs: exports.ResolvedInputs,
|
|
30
30
|
changeOutput: core_1.mol.Uint32Opt,
|
|
31
31
|
scriptInfos: exports.ScriptInfoVec,
|