@ckb-ccc/core 0.0.6-alpha.0 → 0.0.7-alpha.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/dist/address/address.advanced.d.ts.map +1 -1
- package/dist/address/address.advanced.js +2 -5
- package/dist/address/index.d.ts +1 -1
- package/dist/address/index.d.ts.map +1 -1
- package/dist/address/index.js +2 -5
- package/dist/ckb/script.d.ts +43 -1
- package/dist/ckb/script.d.ts.map +1 -1
- package/dist/ckb/script.js +51 -0
- package/dist/ckb/transaction.d.ts +198 -21
- package/dist/ckb/transaction.d.ts.map +1 -1
- package/dist/ckb/transaction.js +437 -21
- package/dist/client/advanced.d.ts +2 -0
- package/dist/client/advanced.d.ts.map +1 -1
- package/dist/client/advanced.js +2 -0
- package/dist/client/client.advanced.d.ts +10 -0
- package/dist/client/client.advanced.d.ts.map +1 -0
- package/dist/client/client.advanced.js +80 -0
- package/dist/client/client.d.ts +44 -8
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +137 -9
- package/dist/client/clientPublicMainnet.advanced.d.ts +4 -2
- package/dist/client/clientPublicMainnet.advanced.d.ts.map +1 -1
- package/dist/client/clientPublicMainnet.advanced.js +102 -0
- package/dist/client/clientPublicMainnet.d.ts +4 -2
- package/dist/client/clientPublicMainnet.d.ts.map +1 -1
- package/dist/client/clientPublicMainnet.js +5 -1
- package/dist/client/clientPublicTestnet.advanced.d.ts +4 -2
- package/dist/client/clientPublicTestnet.advanced.d.ts.map +1 -1
- package/dist/client/clientPublicTestnet.advanced.js +151 -0
- package/dist/client/clientPublicTestnet.d.ts +4 -2
- package/dist/client/clientPublicTestnet.d.ts.map +1 -1
- package/dist/client/clientPublicTestnet.js +6 -1
- package/dist/client/clientTypes.advanced.d.ts +23 -0
- package/dist/client/clientTypes.advanced.d.ts.map +1 -0
- package/dist/client/clientTypes.advanced.js +4 -0
- package/dist/client/clientTypes.d.ts +22 -36
- package/dist/client/clientTypes.d.ts.map +1 -1
- package/dist/client/clientTypes.js +15 -12
- package/dist/client/jsonRpc/index.d.ts +3 -3
- package/dist/client/jsonRpc/index.d.ts.map +1 -1
- package/dist/client/jsonRpc/index.js +3 -3
- package/dist/client/jsonRpc/transformers.d.ts +5 -7
- package/dist/client/jsonRpc/transformers.d.ts.map +1 -1
- package/dist/client/jsonRpc/transformers.js +8 -6
- package/dist/hasher/index.d.ts +1 -1
- package/dist/hasher/index.d.ts.map +1 -1
- package/dist/hasher/index.js +4 -2
- package/dist/num/index.d.ts +12 -0
- package/dist/num/index.d.ts.map +1 -1
- package/dist/num/index.js +21 -0
- package/dist/signer/btc/signerBtc.d.ts.map +1 -1
- package/dist/signer/btc/signerBtc.js +2 -1
- package/dist/signer/evm/signerEvm.d.ts.map +1 -1
- package/dist/signer/evm/signerEvm.js +5 -3
- package/dist/signer/nostr/signerNostr.d.ts.map +1 -1
- package/dist/signer/nostr/signerNostr.js +2 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist.commonjs/address/address.advanced.d.ts +29 -24
- package/dist.commonjs/address/address.advanced.d.ts.map +1 -1
- package/dist.commonjs/address/address.advanced.js +115 -92
- package/dist.commonjs/address/advanced.d.ts +1 -1
- package/dist.commonjs/address/advanced.js +30 -14
- package/dist.commonjs/address/index.d.ts +51 -44
- package/dist.commonjs/address/index.d.ts.map +1 -1
- package/dist.commonjs/address/index.js +84 -68
- package/dist.commonjs/advanced.d.ts +1 -1
- package/dist.commonjs/advanced.js +47 -22
- package/dist.commonjs/advancedBarrel.d.ts +1 -1
- package/dist.commonjs/advancedBarrel.js +30 -14
- package/dist.commonjs/barrel.d.ts +1 -1
- package/dist.commonjs/barrel.js +30 -14
- package/dist.commonjs/bytes/advanced.d.ts +11 -2
- package/dist.commonjs/bytes/index.d.ts +9 -3
- package/dist.commonjs/bytes/index.js +28 -26
- package/dist.commonjs/ckb/advanced.d.ts +1 -1
- package/dist.commonjs/ckb/advanced.js +47 -22
- package/dist.commonjs/ckb/index.d.ts +1 -1
- package/dist.commonjs/ckb/index.js +30 -14
- package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +420 -260
- package/dist.commonjs/ckb/molecule.advanced/generated.js +1536 -1332
- package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
- package/dist.commonjs/ckb/molecule.advanced/index.js +34 -18
- package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
- package/dist.commonjs/ckb/script.advanced.js +12 -9
- package/dist.commonjs/ckb/script.d.ts +123 -77
- package/dist.commonjs/ckb/script.d.ts.map +1 -1
- package/dist.commonjs/ckb/script.js +221 -126
- package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
- package/dist.commonjs/ckb/transaction.advanced.js +4 -4
- package/dist.commonjs/ckb/transaction.d.ts +796 -544
- package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
- package/dist.commonjs/ckb/transaction.js +1371 -725
- package/dist.commonjs/client/advanced.d.ts +3 -1
- package/dist.commonjs/client/advanced.d.ts.map +1 -1
- package/dist.commonjs/client/advanced.js +32 -14
- package/dist.commonjs/client/client.advanced.d.ts +27 -0
- package/dist.commonjs/client/client.advanced.d.ts.map +1 -0
- package/dist.commonjs/client/client.advanced.js +116 -0
- package/dist.commonjs/client/client.d.ts +118 -22
- package/dist.commonjs/client/client.d.ts.map +1 -1
- package/dist.commonjs/client/client.js +218 -56
- package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +9 -3
- package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts.map +1 -1
- package/dist.commonjs/client/clientPublicMainnet.advanced.js +144 -25
- package/dist.commonjs/client/clientPublicMainnet.d.ts +9 -5
- package/dist.commonjs/client/clientPublicMainnet.d.ts.map +1 -1
- package/dist.commonjs/client/clientPublicMainnet.js +18 -12
- package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +8 -3
- package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts.map +1 -1
- package/dist.commonjs/client/clientPublicTestnet.advanced.js +204 -28
- package/dist.commonjs/client/clientPublicTestnet.d.ts +9 -5
- package/dist.commonjs/client/clientPublicTestnet.d.ts.map +1 -1
- package/dist.commonjs/client/clientPublicTestnet.js +14 -9
- package/dist.commonjs/client/clientTypes.advanced.d.ts +23 -0
- package/dist.commonjs/client/clientTypes.advanced.d.ts.map +1 -0
- package/dist.commonjs/client/clientTypes.advanced.js +8 -0
- package/dist.commonjs/client/clientTypes.d.ts +57 -46
- package/dist.commonjs/client/clientTypes.d.ts.map +1 -1
- package/dist.commonjs/client/clientTypes.js +60 -22
- package/dist.commonjs/client/index.d.ts +1 -1
- package/dist.commonjs/client/index.js +30 -14
- package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
- package/dist.commonjs/client/jsonRpc/advanced.js +30 -14
- package/dist.commonjs/client/jsonRpc/index.d.ts +94 -75
- package/dist.commonjs/client/jsonRpc/index.d.ts.map +1 -1
- package/dist.commonjs/client/jsonRpc/index.js +135 -108
- package/dist.commonjs/client/jsonRpc/transformers.d.ts +76 -38
- package/dist.commonjs/client/jsonRpc/transformers.d.ts.map +1 -1
- package/dist.commonjs/client/jsonRpc/transformers.js +174 -150
- package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
- package/dist.commonjs/fixedPoint/index.d.ts +9 -3
- package/dist.commonjs/fixedPoint/index.js +26 -20
- package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
- package/dist.commonjs/fixedPoint/index.test.js +42 -36
- package/dist.commonjs/hasher/advanced.d.ts +1 -1
- package/dist.commonjs/hasher/index.d.ts +37 -37
- package/dist.commonjs/hasher/index.d.ts.map +1 -1
- package/dist.commonjs/hasher/index.js +55 -46
- package/dist.commonjs/hex/index.d.ts +1 -1
- package/dist.commonjs/hex/index.js +1 -1
- package/dist.commonjs/index.d.ts +1 -1
- package/dist.commonjs/index.js +47 -22
- package/dist.commonjs/num/index.d.ts +13 -1
- package/dist.commonjs/num/index.d.ts.map +1 -1
- package/dist.commonjs/num/index.js +53 -19
- package/dist.commonjs/signer/btc/index.d.ts +1 -1
- package/dist.commonjs/signer/btc/index.js +30 -14
- package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
- package/dist.commonjs/signer/btc/signerBtc.d.ts.map +1 -1
- package/dist.commonjs/signer/btc/signerBtc.js +89 -65
- package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
- package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
- package/dist.commonjs/signer/btc/verify.d.ts +6 -2
- package/dist.commonjs/signer/btc/verify.js +10 -3
- package/dist.commonjs/signer/ckb/index.d.ts +1 -1
- package/dist.commonjs/signer/ckb/index.js +30 -14
- package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
- package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
- package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +6 -2
- package/dist.commonjs/signer/ckb/verifyJoyId.js +11 -8
- package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
- package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
- package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
- package/dist.commonjs/signer/dummy/dummy.js +16 -16
- package/dist.commonjs/signer/dummy/index.d.ts +1 -1
- package/dist.commonjs/signer/dummy/index.js +30 -14
- package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
- package/dist.commonjs/signer/dummy/openLink.js +7 -7
- package/dist.commonjs/signer/evm/index.d.ts +1 -1
- package/dist.commonjs/signer/evm/index.js +30 -14
- package/dist.commonjs/signer/evm/signerEvm.d.ts +42 -38
- package/dist.commonjs/signer/evm/signerEvm.d.ts.map +1 -1
- package/dist.commonjs/signer/evm/signerEvm.js +105 -68
- package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
- package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
- package/dist.commonjs/signer/evm/verify.d.ts +6 -2
- package/dist.commonjs/signer/evm/verify.js +7 -2
- package/dist.commonjs/signer/index.d.ts +1 -1
- package/dist.commonjs/signer/index.js +30 -14
- package/dist.commonjs/signer/nostr/index.d.ts +1 -1
- package/dist.commonjs/signer/nostr/index.js +30 -14
- package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
- package/dist.commonjs/signer/nostr/signerNostr.d.ts.map +1 -1
- package/dist.commonjs/signer/nostr/signerNostr.js +100 -70
- package/dist.commonjs/signer/nostr/verify.d.ts +9 -3
- package/dist.commonjs/signer/nostr/verify.js +50 -39
- package/dist.commonjs/signer/signer/index.d.ts +156 -150
- package/dist.commonjs/signer/signer/index.js +208 -181
- package/dist.commonjs/utils/index.d.ts +38 -8
- package/dist.commonjs/utils/index.d.ts.map +1 -1
- package/dist.commonjs/utils/index.js +18 -12
- package/package.json +2 -2
- package/src/address/address.advanced.ts +2 -5
- package/src/address/index.ts +2 -5
- package/src/ckb/script.ts +62 -2
- package/src/ckb/transaction.ts +634 -46
- package/src/client/advanced.ts +2 -0
- package/src/client/client.advanced.ts +134 -0
- package/src/client/client.ts +225 -16
- package/src/client/clientPublicMainnet.advanced.ts +116 -2
- package/src/client/clientPublicMainnet.ts +8 -3
- package/src/client/clientPublicTestnet.advanced.ts +171 -2
- package/src/client/clientPublicTestnet.ts +9 -3
- package/src/client/clientTypes.advanced.ts +26 -0
- package/src/client/clientTypes.ts +41 -43
- package/src/client/jsonRpc/index.ts +4 -4
- package/src/client/jsonRpc/transformers.ts +13 -11
- package/src/hasher/index.ts +4 -2
- package/src/num/index.ts +22 -0
- package/src/signer/btc/signerBtc.ts +2 -1
- package/src/signer/evm/signerEvm.ts +5 -3
- package/src/signer/nostr/signerNostr.ts +2 -1
- package/src/utils/index.ts +6 -2
|
@@ -3,29 +3,180 @@ export const TESTNET_SCRIPTS = {
|
|
|
3
3
|
[KnownScript.Secp256k1Blake160]: {
|
|
4
4
|
codeHash: "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
|
|
5
5
|
hashType: "type",
|
|
6
|
+
cellDeps: [
|
|
7
|
+
{
|
|
8
|
+
cellDep: {
|
|
9
|
+
outPoint: {
|
|
10
|
+
txHash: "0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",
|
|
11
|
+
index: 0,
|
|
12
|
+
},
|
|
13
|
+
depType: "depGroup",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
6
17
|
},
|
|
7
18
|
[KnownScript.Secp256k1Multisig]: {
|
|
8
19
|
codeHash: "0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8",
|
|
9
20
|
hashType: "type",
|
|
21
|
+
cellDeps: [
|
|
22
|
+
{
|
|
23
|
+
cellDep: {
|
|
24
|
+
outPoint: {
|
|
25
|
+
txHash: "0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",
|
|
26
|
+
index: 1,
|
|
27
|
+
},
|
|
28
|
+
depType: "depGroup",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
],
|
|
10
32
|
},
|
|
11
33
|
[KnownScript.AnyoneCanPay]: {
|
|
12
34
|
codeHash: "0x3419a1c09eb2567f6552ee7a8ecffd64155cffe0f1796e6e61ec088d740c1356",
|
|
13
35
|
hashType: "type",
|
|
36
|
+
cellDeps: [
|
|
37
|
+
{
|
|
38
|
+
cellDep: {
|
|
39
|
+
outPoint: {
|
|
40
|
+
txHash: "0xec26b0f85ed839ece5f11c4c4e837ec359f5adc4420410f6453b1f6b60fb96a6",
|
|
41
|
+
index: 0,
|
|
42
|
+
},
|
|
43
|
+
depType: "depGroup",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
[KnownScript.TypeId]: {
|
|
49
|
+
codeHash: "0x00000000000000000000000000000000000000000000000000545950455f4944",
|
|
50
|
+
hashType: "type",
|
|
51
|
+
cellDeps: [],
|
|
52
|
+
},
|
|
53
|
+
[KnownScript.XUdt]: {
|
|
54
|
+
codeHash: "0x25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb",
|
|
55
|
+
hashType: "type",
|
|
56
|
+
cellDeps: [
|
|
57
|
+
{
|
|
58
|
+
cellDep: {
|
|
59
|
+
outPoint: {
|
|
60
|
+
txHash: "0xbf6fb538763efec2a70a6a3dcb7242787087e1030c4e7d86585bc63a9d337f5f",
|
|
61
|
+
index: 0,
|
|
62
|
+
},
|
|
63
|
+
depType: "code",
|
|
64
|
+
},
|
|
65
|
+
type: {
|
|
66
|
+
codeHash: "0x00000000000000000000000000000000000000000000000000545950455f4944",
|
|
67
|
+
hashType: "type",
|
|
68
|
+
args: "0x44ec8b96663e06cc94c8c468a4d46d7d9af69eaf418f6390c9f11bb763dda0ae",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
],
|
|
14
72
|
},
|
|
15
73
|
[KnownScript.JoyId]: {
|
|
16
74
|
codeHash: "0xd23761b364210735c19c60561d213fb3beae2fd6172743719eff6920e020baac",
|
|
17
75
|
hashType: "type",
|
|
76
|
+
cellDeps: [
|
|
77
|
+
{
|
|
78
|
+
cellDep: {
|
|
79
|
+
outPoint: {
|
|
80
|
+
txHash: "0x4dcf3f3b09efac8995d6cbee87c5345e812d310094651e0c3d9a730f32dc9263",
|
|
81
|
+
index: 0,
|
|
82
|
+
},
|
|
83
|
+
depType: "depGroup",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
],
|
|
18
87
|
},
|
|
19
88
|
[KnownScript.COTA]: {
|
|
20
89
|
codeHash: "0x89cd8003a0eaf8e65e0c31525b7d1d5c1becefd2ea75bb4cff87810ae37764d8",
|
|
21
90
|
hashType: "type",
|
|
91
|
+
cellDeps: [
|
|
92
|
+
{
|
|
93
|
+
cellDep: {
|
|
94
|
+
outPoint: {
|
|
95
|
+
txHash: "0x636a786001f87cb615acfcf408be0f9a1f077001f0bbc75ca54eadfe7e221713",
|
|
96
|
+
index: 0,
|
|
97
|
+
},
|
|
98
|
+
depType: "depGroup",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
],
|
|
22
102
|
},
|
|
23
103
|
[KnownScript.OmniLock]: {
|
|
24
104
|
codeHash: "0xf329effd1c475a2978453c8600e1eaf0bc2087ee093c3ee64cc96ec6847752cb",
|
|
25
105
|
hashType: "type",
|
|
106
|
+
cellDeps: [
|
|
107
|
+
{
|
|
108
|
+
cellDep: {
|
|
109
|
+
outPoint: {
|
|
110
|
+
txHash: "0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",
|
|
111
|
+
index: 0,
|
|
112
|
+
},
|
|
113
|
+
depType: "depGroup",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
cellDep: {
|
|
118
|
+
outPoint: {
|
|
119
|
+
txHash: "0xec18bf0d857c981c3d1f4e17999b9b90c484b303378e94de1a57b0872f5d4602",
|
|
120
|
+
index: 0,
|
|
121
|
+
},
|
|
122
|
+
depType: "code",
|
|
123
|
+
},
|
|
124
|
+
type: {
|
|
125
|
+
codeHash: "0x00000000000000000000000000000000000000000000000000545950455f4944",
|
|
126
|
+
hashType: "type",
|
|
127
|
+
args: "0x761f51fc9cd6a504c32c6ae64b3746594d1af27629b427c5ccf6c9a725a89144",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
],
|
|
26
131
|
},
|
|
27
132
|
[KnownScript.NostrLock]: {
|
|
28
133
|
codeHash: "0x6ae5ee0cb887b2df5a9a18137315b9bdc55be8d52637b2de0624092d5f0c91d5",
|
|
29
134
|
hashType: "type",
|
|
135
|
+
cellDeps: [
|
|
136
|
+
{
|
|
137
|
+
cellDep: {
|
|
138
|
+
outPoint: {
|
|
139
|
+
txHash: "0xa2a434dcdbe280b9ed75bb7d6c7d68186a842456aba0fc506657dc5ed7c01d68",
|
|
140
|
+
index: 0,
|
|
141
|
+
},
|
|
142
|
+
depType: "code",
|
|
143
|
+
},
|
|
144
|
+
type: {
|
|
145
|
+
codeHash: "0x00000000000000000000000000000000000000000000000000545950455f4944",
|
|
146
|
+
hashType: "type",
|
|
147
|
+
args: "0x8dc56c6f35f0c535e23ded1629b1f20535477a1b43e59f14617d11e32c50e0aa",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
[KnownScript.SingleUseLock]: {
|
|
153
|
+
codeHash: "0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf",
|
|
154
|
+
hashType: "data1",
|
|
155
|
+
cellDeps: [
|
|
156
|
+
{
|
|
157
|
+
cellDep: {
|
|
158
|
+
outPoint: {
|
|
159
|
+
txHash: "0x968c326f7a418f07a128f30d9a415251beaa2ec8bd6bbfda65780c94bebb2a85",
|
|
160
|
+
index: 4,
|
|
161
|
+
},
|
|
162
|
+
depType: "code",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
[KnownScript.OutputTypeProxyLock]: {
|
|
168
|
+
codeHash: "0xc0382e4109cff68a4f536441c0266d2e22f2808e61573129c9289ee0e5e5ed43",
|
|
169
|
+
hashType: "data1",
|
|
170
|
+
cellDeps: [
|
|
171
|
+
{
|
|
172
|
+
cellDep: {
|
|
173
|
+
outPoint: {
|
|
174
|
+
txHash: "0x968c326f7a418f07a128f30d9a415251beaa2ec8bd6bbfda65780c94bebb2a85",
|
|
175
|
+
index: 2,
|
|
176
|
+
},
|
|
177
|
+
depType: "code",
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
],
|
|
30
181
|
},
|
|
31
182
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Script } from "../ckb";
|
|
2
|
-
import { KnownScript } from "./client";
|
|
2
|
+
import { CellDepInfo, KnownScript } from "./client";
|
|
3
3
|
import { ClientJsonRpc } from "./jsonRpc";
|
|
4
4
|
export declare class ClientPublicTestnet extends ClientJsonRpc {
|
|
5
5
|
constructor(url?: string, timeout?: number);
|
|
6
6
|
get addressPrefix(): string;
|
|
7
|
-
getKnownScript(script: KnownScript): Promise<Pick<Script, "codeHash" | "hashType"
|
|
7
|
+
getKnownScript(script: KnownScript): Promise<Pick<Script, "codeHash" | "hashType"> & {
|
|
8
|
+
cellDeps: CellDepInfo[];
|
|
9
|
+
}>;
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=clientPublicTestnet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientPublicTestnet.d.ts","sourceRoot":"","sources":["../../src/client/clientPublicTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"clientPublicTestnet.d.ts","sourceRoot":"","sources":["../../src/client/clientPublicTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,mBAAoB,SAAQ,aAAa;gBACxC,GAAG,SAAgC,EAAE,OAAO,CAAC,EAAE,MAAM;IAIjE,IAAI,aAAa,IAAI,MAAM,CAE1B;IAEK,cAAc,CAClB,MAAM,EAAE,WAAW,GAClB,OAAO,CACR,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;QAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;KAAE,CACpE;CAOF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CellDepInfo } from "./client";
|
|
1
2
|
import { TESTNET_SCRIPTS } from "./clientPublicTestnet.advanced";
|
|
2
3
|
import { ClientJsonRpc } from "./jsonRpc";
|
|
3
4
|
export class ClientPublicTestnet extends ClientJsonRpc {
|
|
@@ -8,6 +9,10 @@ export class ClientPublicTestnet extends ClientJsonRpc {
|
|
|
8
9
|
return "ckt";
|
|
9
10
|
}
|
|
10
11
|
async getKnownScript(script) {
|
|
11
|
-
|
|
12
|
+
const found = TESTNET_SCRIPTS[script];
|
|
13
|
+
return {
|
|
14
|
+
...found,
|
|
15
|
+
cellDeps: found.cellDeps.map((c) => CellDepInfo.from(c)),
|
|
16
|
+
};
|
|
12
17
|
}
|
|
13
18
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScriptLike } from "../ckb";
|
|
2
|
+
import { HexLike } from "../hex";
|
|
3
|
+
import { Num, NumLike } from "../num";
|
|
4
|
+
export declare function clientSearchKeyRangeFrom([a, b]: [NumLike, NumLike]): [
|
|
5
|
+
Num,
|
|
6
|
+
Num
|
|
7
|
+
];
|
|
8
|
+
export type ClientCollectableSearchKeyFilterLike = {
|
|
9
|
+
script?: ScriptLike;
|
|
10
|
+
scriptLenRange?: [NumLike, NumLike];
|
|
11
|
+
outputData?: HexLike;
|
|
12
|
+
outputDataSearchMode?: "prefix" | "exact" | "partial";
|
|
13
|
+
outputDataLenRange?: [NumLike, NumLike];
|
|
14
|
+
outputCapacityRange?: [NumLike, NumLike];
|
|
15
|
+
};
|
|
16
|
+
export type ClientCollectableSearchKeyLike = {
|
|
17
|
+
script: ScriptLike;
|
|
18
|
+
scriptType: "lock" | "type";
|
|
19
|
+
scriptSearchMode: "prefix" | "exact" | "partial";
|
|
20
|
+
filter?: ClientCollectableSearchKeyFilterLike;
|
|
21
|
+
withData?: boolean;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=clientTypes.advanced.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientTypes.advanced.d.ts","sourceRoot":"","sources":["../../src/client/clientTypes.advanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,GAAG,EAAW,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE/C,wBAAgB,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;IACpE,GAAG;IACH,GAAG;CACJ,CAEA;AAED,MAAM,MAAM,oCAAoC,GAAG;IACjD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACtD,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxC,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CAC1C,CAAC;AACF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gBAAgB,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjD,MAAM,CAAC,EAAE,oCAAoC,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1,51 +1,37 @@
|
|
|
1
|
-
import { Cell, Script,
|
|
2
|
-
import { Hex
|
|
1
|
+
import { Cell, Script, Transaction } from "../ckb";
|
|
2
|
+
import { Hex } from "../hex";
|
|
3
3
|
import { Num, NumLike } from "../num";
|
|
4
|
+
import { ClientCollectableSearchKeyFilterLike, ClientCollectableSearchKeyLike } from "./clientTypes.advanced";
|
|
4
5
|
export type OutputsValidator = "passthrough" | "well_known_scripts_only";
|
|
5
6
|
export type TransactionStatus = "pending" | "proposed" | "committed" | "unknown" | "rejected";
|
|
6
7
|
export type ClientTransactionResponse = {
|
|
7
8
|
transaction: Transaction;
|
|
8
9
|
status: TransactionStatus;
|
|
9
|
-
blockNumber: Num;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
export type ClientIndexerSearchKeyFilterLike = ClientCollectableSearchKeyFilterLike & {
|
|
12
|
+
blockRange?: [NumLike, NumLike];
|
|
13
|
+
};
|
|
14
|
+
export declare class ClientIndexerSearchKeyFilter {
|
|
15
|
+
script: Script | undefined;
|
|
16
|
+
scriptLenRange: [Num, Num] | undefined;
|
|
17
|
+
outputData: Hex | undefined;
|
|
18
|
+
outputDataSearchMode: "prefix" | "exact" | "partial" | undefined;
|
|
19
|
+
outputDataLenRange: [Num, Num] | undefined;
|
|
20
|
+
outputCapacityRange: [Num, Num] | undefined;
|
|
21
|
+
blockRange: [Num, Num] | undefined;
|
|
22
|
+
constructor(script: Script | undefined, scriptLenRange: [Num, Num] | undefined, outputData: Hex | undefined, outputDataSearchMode: "prefix" | "exact" | "partial" | undefined, outputDataLenRange: [Num, Num] | undefined, outputCapacityRange: [Num, Num] | undefined, blockRange: [Num, Num] | undefined);
|
|
23
|
+
static from(filterLike: ClientIndexerSearchKeyFilterLike): ClientIndexerSearchKeyFilter;
|
|
24
|
+
}
|
|
25
|
+
export type ClientIndexerSearchKeyLike = ClientCollectableSearchKeyLike & {
|
|
26
|
+
filter?: ClientIndexerSearchKeyFilterLike;
|
|
25
27
|
};
|
|
26
28
|
export declare class ClientIndexerSearchKey {
|
|
27
29
|
script: Script;
|
|
28
30
|
scriptType: "lock" | "type";
|
|
29
|
-
scriptSearchMode: "prefix" | "exact" | "partial"
|
|
30
|
-
filter:
|
|
31
|
-
script?: Script;
|
|
32
|
-
scriptLenRange?: [Num, Num];
|
|
33
|
-
outputData?: Hex;
|
|
34
|
-
outputDataSearchMode?: "prefix" | "exact" | "partial";
|
|
35
|
-
outputDataLenRange?: [Num, Num];
|
|
36
|
-
outputCapacityRange?: [Num, Num];
|
|
37
|
-
blockRange?: [Num, Num];
|
|
38
|
-
} | undefined;
|
|
31
|
+
scriptSearchMode: "prefix" | "exact" | "partial";
|
|
32
|
+
filter: ClientIndexerSearchKeyFilter | undefined;
|
|
39
33
|
withData: boolean | undefined;
|
|
40
|
-
constructor(script: Script, scriptType: "lock" | "type", scriptSearchMode: "prefix" | "exact" | "partial" | undefined,
|
|
41
|
-
script?: Script;
|
|
42
|
-
scriptLenRange?: [Num, Num];
|
|
43
|
-
outputData?: Hex;
|
|
44
|
-
outputDataSearchMode?: "prefix" | "exact" | "partial";
|
|
45
|
-
outputDataLenRange?: [Num, Num];
|
|
46
|
-
outputCapacityRange?: [Num, Num];
|
|
47
|
-
blockRange?: [Num, Num];
|
|
48
|
-
} | undefined, withData: boolean | undefined);
|
|
34
|
+
constructor(script: Script, scriptType: "lock" | "type", scriptSearchMode: "prefix" | "exact" | "partial", filter: ClientIndexerSearchKeyFilter | undefined, withData: boolean | undefined);
|
|
49
35
|
static from(keyLike: ClientIndexerSearchKeyLike): ClientIndexerSearchKey;
|
|
50
36
|
}
|
|
51
37
|
export type ClientFindCellsResponse = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientTypes.d.ts","sourceRoot":"","sources":["../../src/client/clientTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"clientTypes.d.ts","sourceRoot":"","sources":["../../src/client/clientTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,GAAG,EAAW,MAAM,QAAQ,CAAC;AACt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SAAS,EAC3C,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;IAG3C,MAAM,CAAC,IAAI,CACT,UAAU,EAAE,gCAAgC,GAC3C,4BAA4B;CAWhC;AAED,MAAM,MAAM,0BAA0B,GAAG,8BAA8B,GAAG;IACxE,MAAM,CAAC,EAAE,gCAAgC,CAAC;CAC3C,CAAC;AAEF,qBAAa,sBAAsB;IAExB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM,GAAG,MAAM;IAC3B,gBAAgB,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS;IAChD,MAAM,EAAE,4BAA4B,GAAG,SAAS;IAChD,QAAQ,EAAE,OAAO,GAAG,SAAS;gBAJ7B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,gBAAgB,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,EAChD,MAAM,EAAE,4BAA4B,GAAG,SAAS,EAChD,QAAQ,EAAE,OAAO,GAAG,SAAS;IAGtC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,GAAG,sBAAsB;CASzE;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { Script } from "../ckb";
|
|
2
2
|
import { hexFrom } from "../hex";
|
|
3
|
-
import { numFrom } from "../num";
|
|
4
3
|
import { apply } from "../utils";
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { clientSearchKeyRangeFrom, } from "./clientTypes.advanced";
|
|
5
|
+
export class ClientIndexerSearchKeyFilter {
|
|
6
|
+
constructor(script, scriptLenRange, outputData, outputDataSearchMode, outputDataLenRange, outputCapacityRange, blockRange) {
|
|
7
|
+
this.script = script;
|
|
8
|
+
this.scriptLenRange = scriptLenRange;
|
|
9
|
+
this.outputData = outputData;
|
|
10
|
+
this.outputDataSearchMode = outputDataSearchMode;
|
|
11
|
+
this.outputDataLenRange = outputDataLenRange;
|
|
12
|
+
this.outputCapacityRange = outputCapacityRange;
|
|
13
|
+
this.blockRange = blockRange;
|
|
14
|
+
}
|
|
15
|
+
static from(filterLike) {
|
|
16
|
+
return new ClientIndexerSearchKeyFilter(apply(Script.from, filterLike.script), apply(clientSearchKeyRangeFrom, filterLike.scriptLenRange), apply(hexFrom, filterLike.outputData), filterLike.outputDataSearchMode, apply(clientSearchKeyRangeFrom, filterLike.outputDataLenRange), apply(clientSearchKeyRangeFrom, filterLike.outputCapacityRange), apply(clientSearchKeyRangeFrom, filterLike.blockRange));
|
|
17
|
+
}
|
|
7
18
|
}
|
|
8
19
|
export class ClientIndexerSearchKey {
|
|
9
20
|
constructor(script, scriptType, scriptSearchMode, filter, withData) {
|
|
@@ -14,14 +25,6 @@ export class ClientIndexerSearchKey {
|
|
|
14
25
|
this.withData = withData;
|
|
15
26
|
}
|
|
16
27
|
static from(keyLike) {
|
|
17
|
-
return new ClientIndexerSearchKey(Script.from(keyLike.script), keyLike.scriptType, keyLike.scriptSearchMode, apply(
|
|
18
|
-
script: apply(Script.from, filter.script),
|
|
19
|
-
scriptLenRange: apply(rangeFrom, filter.scriptLenRange),
|
|
20
|
-
outputData: apply(hexFrom, filter.outputData),
|
|
21
|
-
outputDataSearchMode: filter.outputDataSearchMode,
|
|
22
|
-
outputDataLenRange: apply(rangeFrom, filter.outputDataLenRange),
|
|
23
|
-
outputCapacityRange: apply(rangeFrom, filter.outputCapacityRange),
|
|
24
|
-
blockRange: apply(rangeFrom, filter.blockRange),
|
|
25
|
-
}), keyLike.filter), keyLike.withData);
|
|
28
|
+
return new ClientIndexerSearchKey(Script.from(keyLike.script), keyLike.scriptType, keyLike.scriptSearchMode, apply(ClientIndexerSearchKeyFilter.from, keyLike.filter), keyLike.withData);
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -31,14 +31,14 @@ export declare abstract class ClientJsonRpc extends Client {
|
|
|
31
31
|
* @param validator - "passthrough": Disable validation. "well_known_scripts_only": Only accept well known scripts in the transaction.
|
|
32
32
|
* @returns Transaction hash.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
sendTransactionNoCache: (transaction: TransactionLike, validator?: OutputsValidator | undefined) => Promise<Hex>;
|
|
35
35
|
/**
|
|
36
36
|
* Get a transaction from node.
|
|
37
37
|
*
|
|
38
38
|
* @param txHash - The hash of the transaction.
|
|
39
39
|
* @returns The transaction with status.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
getTransactionNoCache: (txHash: HexLike) => Promise<ClientTransactionResponse | null>;
|
|
42
42
|
/**
|
|
43
43
|
* find cells from node.
|
|
44
44
|
*
|
|
@@ -48,7 +48,7 @@ export declare abstract class ClientJsonRpc extends Client {
|
|
|
48
48
|
* @param after - Pagination parameter.
|
|
49
49
|
* @returns The found cells.
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
findCellsPagedNoCache: (key: ClientIndexerSearchKeyLike, order?: "asc" | "desc", limit?: NumLike, after?: string) => Promise<ClientFindCellsResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* get cells capacity from node.
|
|
54
54
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/jsonRpc/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,cAAc,EAAuB,MAAM,YAAY,CAAC;AA0BjE;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B,CAAC,CAAC;IAEtC;;;;;OAKG;IAEH,gBAAgB,QAIL,0BAA0B,KAAK,QAAQ,GAAG,CAAC,CAAC;IAEvD;;;;;;;OAOG;IAEH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC,EAAE,EACrD,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,YAEd,OAAO,EAAE;IAkBjC;;;;;;;OAOG;IAEG,IAAI,CAAC,OAAO,EAAE,cAAc;IA4BlC;;;;;;OAMG;IAEH,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,cAAc;CAQpE"}
|
|
@@ -44,14 +44,14 @@ export class ClientJsonRpc extends Client {
|
|
|
44
44
|
* @param validator - "passthrough": Disable validation. "well_known_scripts_only": Only accept well known scripts in the transaction.
|
|
45
45
|
* @returns Transaction hash.
|
|
46
46
|
*/
|
|
47
|
-
this.
|
|
47
|
+
this.sendTransactionNoCache = this.buildSender("send_transaction", [JsonRpcTransformers.transactionFrom], hexFrom);
|
|
48
48
|
/**
|
|
49
49
|
* Get a transaction from node.
|
|
50
50
|
*
|
|
51
51
|
* @param txHash - The hash of the transaction.
|
|
52
52
|
* @returns The transaction with status.
|
|
53
53
|
*/
|
|
54
|
-
this.
|
|
54
|
+
this.getTransactionNoCache = this.buildSender("get_transaction", [hexFrom], JsonRpcTransformers.transactionResponseTo);
|
|
55
55
|
/**
|
|
56
56
|
* find cells from node.
|
|
57
57
|
*
|
|
@@ -61,7 +61,7 @@ export class ClientJsonRpc extends Client {
|
|
|
61
61
|
* @param after - Pagination parameter.
|
|
62
62
|
* @returns The found cells.
|
|
63
63
|
*/
|
|
64
|
-
this.
|
|
64
|
+
this.findCellsPagedNoCache = this.buildSender("get_cells", [
|
|
65
65
|
JsonRpcTransformers.indexerSearchKeyFrom,
|
|
66
66
|
(order) => order ?? "asc",
|
|
67
67
|
(limit) => numToHex(limit ?? 10),
|
|
@@ -12,7 +12,7 @@ export declare class JsonRpcTransformers {
|
|
|
12
12
|
static scriptTo(script: JsonRpcScript): Script;
|
|
13
13
|
static outPointFrom(outPointLike: OutPointLike): JsonRpcOutPoint;
|
|
14
14
|
static outPointTo(outPoint: JsonRpcOutPoint): OutPoint;
|
|
15
|
-
static cellInputFrom(
|
|
15
|
+
static cellInputFrom(cellInputLike: CellInputLike): JsonRpcCellInput;
|
|
16
16
|
static cellInputTo(cellInput: JsonRpcCellInput): CellInput;
|
|
17
17
|
static cellOutputFrom(cellOutput: CellOutputLike): JsonRpcCellOutput;
|
|
18
18
|
static cellOutputTo(cellOutput: JsonRpcCellOutput): CellOutput;
|
|
@@ -20,22 +20,20 @@ export declare class JsonRpcTransformers {
|
|
|
20
20
|
static cellDepTo(cellDep: JsonRpcCellDep): CellDep;
|
|
21
21
|
static transactionFrom(txLike: TransactionLike): JsonRpcTransaction;
|
|
22
22
|
static transactionTo(tx: JsonRpcTransaction): Transaction;
|
|
23
|
-
static transactionResponseTo({ tx_status: { status
|
|
23
|
+
static transactionResponseTo({ tx_status: { status }, transaction, }: {
|
|
24
24
|
tx_status: {
|
|
25
25
|
status: TransactionStatus;
|
|
26
|
-
block_number: Hex;
|
|
27
26
|
};
|
|
28
|
-
transaction: JsonRpcTransaction;
|
|
29
|
-
}): ClientTransactionResponse;
|
|
27
|
+
transaction: JsonRpcTransaction | null;
|
|
28
|
+
}): ClientTransactionResponse | null;
|
|
30
29
|
static rangeFrom([a, b]: [NumLike, NumLike]): [Hex, Hex];
|
|
31
30
|
static indexerSearchKeyFrom(keyLike: ClientIndexerSearchKeyLike): JsonRpcIndexerSearchKey;
|
|
32
31
|
static findCellsResponseTo({ last_cursor, objects, }: {
|
|
33
32
|
last_cursor: string;
|
|
34
33
|
objects: {
|
|
35
|
-
block_number: Hex;
|
|
36
34
|
out_point: JsonRpcOutPoint;
|
|
37
35
|
output: JsonRpcCellOutput;
|
|
38
|
-
output_data
|
|
36
|
+
output_data?: Hex;
|
|
39
37
|
}[];
|
|
40
38
|
}): ClientFindCellsResponse;
|
|
41
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../src/client/jsonRpc/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,WAAW,EACX,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,WAAW,EACX,eAAe,EAGhB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../src/client/jsonRpc/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,WAAW,EACX,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,WAAW,EACX,eAAe,EAGhB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAY,MAAM,WAAW,CAAC;AAE9C,OAAO,EACL,uBAAuB,EAEvB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,YAAY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AAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC;IAGxD,MAAM,CAAC,oBAAoB,CACzB,OAAO,EAAE,0BAA0B,GAClC,uBAAuB;IA8B1B,MAAM,CAAC,mBAAmB,CAAC,EACzB,WAAW,EACX,OAAO,GACR,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE;YACP,SAAS,EAAE,eAAe,CAAC;YAC3B,MAAM,EAAE,iBAAiB,CAAC;YAC1B,WAAW,CAAC,EAAE,GAAG,CAAC;SACnB,EAAE,CAAC;KACL,GAAG,uBAAuB;CAY5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cell, CellDep, CellInput, CellOutput, OutPoint, Script, Transaction, depTypeFrom, hashTypeFrom, } from "../../ckb";
|
|
2
|
-
import {
|
|
2
|
+
import { numToHex } from "../../num";
|
|
3
3
|
import { apply } from "../../utils";
|
|
4
4
|
import { ClientIndexerSearchKey, } from "../clientTypes";
|
|
5
5
|
export class JsonRpcTransformers {
|
|
@@ -53,7 +53,8 @@ export class JsonRpcTransformers {
|
|
|
53
53
|
txHash: outPoint.tx_hash,
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
static cellInputFrom(
|
|
56
|
+
static cellInputFrom(cellInputLike) {
|
|
57
|
+
const cellInput = CellInput.from(cellInputLike);
|
|
57
58
|
return {
|
|
58
59
|
previous_output: JsonRpcTransformers.outPointFrom(cellInput.previousOutput),
|
|
59
60
|
since: numToHex(cellInput.since),
|
|
@@ -114,11 +115,13 @@ export class JsonRpcTransformers {
|
|
|
114
115
|
witnesses: tx.witnesses,
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
|
-
static transactionResponseTo({ tx_status: { status
|
|
118
|
+
static transactionResponseTo({ tx_status: { status }, transaction, }) {
|
|
119
|
+
if (transaction == null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
118
122
|
return {
|
|
119
123
|
transaction: JsonRpcTransformers.transactionTo(transaction),
|
|
120
124
|
status,
|
|
121
|
-
blockNumber: numFrom(block_number),
|
|
122
125
|
};
|
|
123
126
|
}
|
|
124
127
|
static rangeFrom([a, b]) {
|
|
@@ -146,10 +149,9 @@ export class JsonRpcTransformers {
|
|
|
146
149
|
return {
|
|
147
150
|
lastCursor: last_cursor,
|
|
148
151
|
cells: objects.map((cell) => Cell.from({
|
|
149
|
-
blockNumber: cell.block_number,
|
|
150
152
|
outPoint: JsonRpcTransformers.outPointTo(cell.out_point),
|
|
151
153
|
cellOutput: JsonRpcTransformers.cellOutputTo(cell.output),
|
|
152
|
-
outputData: cell.output_data,
|
|
154
|
+
outputData: cell.output_data ?? "0x",
|
|
153
155
|
})),
|
|
154
156
|
};
|
|
155
157
|
}
|
package/dist/hasher/index.d.ts
CHANGED
|
@@ -48,5 +48,5 @@ export declare class Hasher {
|
|
|
48
48
|
* const hash = ckbHash("some data"); // Outputs something like "0x..."
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
export declare function ckbHash(data: BytesLike): Hex;
|
|
51
|
+
export declare function ckbHash(...data: BytesLike[]): Hex;
|
|
52
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasher/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC;;;;;OAKG;gBAES,SAAS,SAAK,EAAE,QAAQ,SAAuB;IAS3D;;;;;;;;;;;;OAYG;IAEH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAK/B;;;;;;;;;;;OAWG;IAEH,MAAM,IAAI,GAAG;CAGd;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasher/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC;;;;;OAKG;gBAES,SAAS,SAAK,EAAE,QAAQ,SAAuB;IAS3D;;;;;;;;;;;;OAYG;IAEH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAK/B;;;;;;;;;;;OAWG;IAEH,MAAM,IAAI,GAAG;CAGd;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,OAAO,CAAC,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,GAAG,CAIjD"}
|
package/dist/hasher/index.js
CHANGED
|
@@ -55,6 +55,8 @@ export class Hasher {
|
|
|
55
55
|
* const hash = ckbHash("some data"); // Outputs something like "0x..."
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
export function ckbHash(data) {
|
|
59
|
-
|
|
58
|
+
export function ckbHash(...data) {
|
|
59
|
+
const hasher = new Hasher();
|
|
60
|
+
data.forEach((d) => hasher.update(d));
|
|
61
|
+
return hasher.digest();
|
|
60
62
|
}
|
package/dist/num/index.d.ts
CHANGED
|
@@ -9,6 +9,18 @@ export type Num = bigint;
|
|
|
9
9
|
* It can be a string, number, bigint, or HexLike.
|
|
10
10
|
*/
|
|
11
11
|
export type NumLike = string | number | bigint | HexLike;
|
|
12
|
+
/**
|
|
13
|
+
* Get the max among all numbers.
|
|
14
|
+
*
|
|
15
|
+
* @param numbers - numbers.
|
|
16
|
+
* @returns The max numbers among them.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* numMax(1, 2, 3); // Outputs 3n
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function numMax(a: NumLike, ...numbers: NumLike[]): Num;
|
|
12
24
|
/**
|
|
13
25
|
* Converts a NumLike value to a Num (bigint).
|
|
14
26
|
*
|
package/dist/num/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/num/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAA0B,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAW,MAAM,QAAQ,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAUzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAE1C;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAEhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAUhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAEhD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE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AG,EAAE,SAAS,GAAG,GAAG,CAElD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAElD"}
|
package/dist/num/index.js
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { bytesConcat, bytesFrom } from "../bytes";
|
|
2
2
|
import { hexFrom } from "../hex";
|
|
3
|
+
/**
|
|
4
|
+
* Get the max among all numbers.
|
|
5
|
+
*
|
|
6
|
+
* @param numbers - numbers.
|
|
7
|
+
* @returns The max numbers among them.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* numMax(1, 2, 3); // Outputs 3n
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export function numMax(a, ...numbers) {
|
|
15
|
+
let max = numFrom(a);
|
|
16
|
+
numbers.forEach((nLike) => {
|
|
17
|
+
const n = numFrom(nLike);
|
|
18
|
+
if (n > max) {
|
|
19
|
+
max = n;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return max;
|
|
23
|
+
}
|
|
3
24
|
/**
|
|
4
25
|
* Converts a NumLike value to a Num (bigint).
|
|
5
26
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerBtc.d.ts","sourceRoot":"","sources":["../../../src/signer/btc/signerBtc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAe,MAAM,WAAW,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/D;;;;GAIG;AACH,8BAAsB,SAAU,SAAQ,MAAM;IAC5C,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG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