@ckb-ccc/spore 0.1.2 → 1.0.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 +20 -0
- package/dist/cobuild/index.js +1 -1
- 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/cobuild/index.js +1 -1
- 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/cobuild/index.ts +1 -1
- package/src/codec/cobuild/buildingPacket.ts +6 -6
- package/src/codec/cobuild/sporeAction.ts +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ckb-ccc/spore
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111](https://github.com/ckb-devrel/ccc/pull/111) [`719055b`](https://github.com/ckb-devrel/ccc/commit/719055b404f31b40362f51714b9f11c85b857581) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: call stack overflow caused by spread operator
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`719055b`](https://github.com/ckb-devrel/ccc/commit/719055b404f31b40362f51714b9f11c85b857581), [`94caaca`](https://github.com/ckb-devrel/ccc/commit/94caaca11c63752a25282d42f51161c94397dec6)]:
|
|
10
|
+
- @ckb-ccc/core@1.0.1
|
|
11
|
+
|
|
12
|
+
## 1.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [#107](https://github.com/ckb-devrel/ccc/pull/107) [`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: molecule
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc)]:
|
|
21
|
+
- @ckb-ccc/core@1.0.0
|
|
22
|
+
|
|
3
23
|
## 0.1.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cobuild/index.js
CHANGED
|
@@ -128,7 +128,7 @@ export async function prepareSporeTransaction(signer, txLike, actions) {
|
|
|
128
128
|
}
|
|
129
129
|
const existedActions = extractCobuildActionsFromTx(tx);
|
|
130
130
|
tx = await signer.prepareTransaction(tx);
|
|
131
|
-
injectCobuild(tx, [
|
|
131
|
+
injectCobuild(tx, [existedActions, actions].flat());
|
|
132
132
|
return tx;
|
|
133
133
|
}
|
|
134
134
|
export function unpackCommonCobuildProof(data) {
|
package/dist/codec/cluster.d.ts
CHANGED
|
@@ -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":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAGrD,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAIrD,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../src/codec/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAGrD,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAIrD,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,eAAO,MAAM,WAAW,iDAAgB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { mol } from "@ckb-ccc/core";
|
|
1
|
+
import { ccc, mol } from "@ckb-ccc/core";
|
|
2
2
|
export const Action = mol.table({
|
|
3
|
-
scriptInfoHash: mol.
|
|
4
|
-
scriptHash: mol.
|
|
3
|
+
scriptInfoHash: mol.Byte32,
|
|
4
|
+
scriptHash: mol.Byte32,
|
|
5
5
|
data: mol.Bytes,
|
|
6
6
|
});
|
|
7
7
|
export const ActionVec = mol.vector(Action);
|
|
@@ -9,20 +9,20 @@ export const Message = mol.table({
|
|
|
9
9
|
actions: ActionVec,
|
|
10
10
|
});
|
|
11
11
|
export const ResolvedInputs = mol.table({
|
|
12
|
-
outputs:
|
|
12
|
+
outputs: ccc.CellOutputVec,
|
|
13
13
|
outputsData: mol.BytesVec,
|
|
14
14
|
});
|
|
15
15
|
export const ScriptInfo = mol.table({
|
|
16
16
|
name: mol.String,
|
|
17
17
|
url: mol.String,
|
|
18
|
-
scriptHash: mol.
|
|
18
|
+
scriptHash: mol.Byte32,
|
|
19
19
|
schema: mol.String,
|
|
20
20
|
messageType: mol.String,
|
|
21
21
|
});
|
|
22
22
|
export const ScriptInfoVec = mol.vector(ScriptInfo);
|
|
23
23
|
export const BuildingPacketV1 = mol.table({
|
|
24
24
|
message: Message,
|
|
25
|
-
payload:
|
|
25
|
+
payload: ccc.Transaction,
|
|
26
26
|
resolvedInputs: ResolvedInputs,
|
|
27
27
|
changeOutput: mol.Uint32Opt,
|
|
28
28
|
scriptInfos: ScriptInfoVec,
|