Skip to content

Commit b96b7a6

Browse files
committed
Revert "feat: add RGB++ known scripts (RgbppLock, BtcTimeLock)"
This reverts commit 507c6e8. This information is outdated
1 parent 99a2036 commit b96b7a6

File tree

3 files changed

+0
-236
lines changed

3 files changed

+0
-236
lines changed

packages/core/src/client/clientPublicMainnet.advanced.ts

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -457,72 +457,4 @@ export const MAINNET_SCRIPTS: Record<KnownScript, ScriptInfoLike | undefined> =
457457
},
458458
],
459459
},
460-
[KnownScript.RgbppLock]: {
461-
codeHash:
462-
"0xbc6c568a1a0d0a09f6844dc9d74ddb4343c32143ff25f727c59edf4fb72d6936",
463-
hashType: "type",
464-
cellDeps: [
465-
{
466-
cellDep: {
467-
outPoint: {
468-
txHash:
469-
"0x04c5c3e69f1aa6ee27fb9de3d15a81704e387ab3b453965adbe0b6ca343c6f41",
470-
index: 0,
471-
},
472-
depType: "code",
473-
},
474-
type: {
475-
codeHash:
476-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
477-
hashType: "type",
478-
args: "0x68ad3d9e0bb9ea841a5d1fcd600137bd3f45401e759e353121f26cd0d981452f",
479-
},
480-
},
481-
// Rgbpp lock config cell dep
482-
{
483-
cellDep: {
484-
outPoint: {
485-
txHash:
486-
"0x04c5c3e69f1aa6ee27fb9de3d15a81704e387ab3b453965adbe0b6ca343c6f41",
487-
index: 1,
488-
},
489-
depType: "code",
490-
},
491-
},
492-
],
493-
},
494-
[KnownScript.BtcTimeLock]: {
495-
codeHash:
496-
"0x70d64497a075bd651e98ac030455ea200637ee325a12ad08aff03f1a117e5a62",
497-
hashType: "type",
498-
cellDeps: [
499-
{
500-
cellDep: {
501-
outPoint: {
502-
txHash:
503-
"0x6257bf4297ee75fcebe2654d8c5f8d93bc9fc1b3dc62b8cef54ffe166162e996",
504-
index: 0,
505-
},
506-
depType: "code",
507-
},
508-
type: {
509-
codeHash:
510-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
511-
hashType: "type",
512-
args: "0x44b8253ae18e913a2845b0d548eaf6b3ba1099ed26835888932a754194028a8a",
513-
},
514-
},
515-
// btc time lock config cell dep
516-
{
517-
cellDep: {
518-
outPoint: {
519-
txHash:
520-
"0x6257bf4297ee75fcebe2654d8c5f8d93bc9fc1b3dc62b8cef54ffe166162e996",
521-
index: 1,
522-
},
523-
depType: "code",
524-
},
525-
},
526-
],
527-
},
528460
});

packages/core/src/client/clientPublicTestnet.advanced.ts

Lines changed: 0 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -469,167 +469,4 @@ export const TESTNET_SCRIPTS: Record<KnownScript, ScriptInfoLike> =
469469
},
470470
],
471471
},
472-
[KnownScript.RgbppLock]: {
473-
codeHash:
474-
"0x61ca7a4796a4eb19ca4f0d065cb9b10ddcf002f10f7cbb810c706cb6bb5c3248",
475-
hashType: "type",
476-
cellDeps: [
477-
{
478-
cellDep: {
479-
outPoint: {
480-
txHash:
481-
"0xf1de59e973b85791ec32debbba08dff80c63197e895eb95d67fc1e9f6b413e00",
482-
index: 0,
483-
},
484-
depType: "code",
485-
},
486-
type: {
487-
codeHash:
488-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
489-
hashType: "type",
490-
args: "0xa3bc8441df149def76cfe15fec7b1e51d949548bc27fb7a75e9d4b3ef1c12c7f",
491-
},
492-
},
493-
// Rgbpp lock config cell dep for Bitcoin Testnet3
494-
{
495-
cellDep: {
496-
outPoint: {
497-
txHash:
498-
"0xf1de59e973b85791ec32debbba08dff80c63197e895eb95d67fc1e9f6b413e00",
499-
index: 1,
500-
},
501-
depType: "code",
502-
},
503-
},
504-
],
505-
},
506-
[KnownScript.BtcTimeLock]: {
507-
codeHash:
508-
"0x00cdf8fab0f8ac638758ebf5ea5e4052b1d71e8a77b9f43139718621f6849326",
509-
hashType: "type",
510-
cellDeps: [
511-
{
512-
cellDep: {
513-
outPoint: {
514-
txHash:
515-
"0xde0f87878a97500f549418e5d46d2f7704c565a262aa17036c9c1c13ad638529",
516-
index: 0,
517-
},
518-
depType: "code",
519-
},
520-
type: {
521-
codeHash:
522-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
523-
hashType: "type",
524-
args: "0xc9828585e6dd2afacb9e6e8ca7deb0975121aabee5c7983178a45509ffaec984",
525-
},
526-
},
527-
// btc time lock config cell dep for Bitcoin Testnet3
528-
{
529-
cellDep: {
530-
outPoint: {
531-
txHash:
532-
"0xde0f87878a97500f549418e5d46d2f7704c565a262aa17036c9c1c13ad638529",
533-
index: 1,
534-
},
535-
depType: "code",
536-
},
537-
},
538-
],
539-
},
540472
});
541-
542-
/**
543-
* Bitcoin Signet specific script overrides for testnet
544-
*
545-
* Contains script configurations that differ when using Bitcoin Signet
546-
* instead of Bitcoin Testnet3. Only RgbppLock and BtcTimeLock are affected.
547-
*
548-
* @example
549-
* ```typescript
550-
* import { ClientPublicTestnet } from "@ckb-ccc/core";
551-
* import { TESTNET_SCRIPTS, TESTNET_SCRIPTS_BTC_SIGNET_OVERRIDES } from "@ckb-ccc/core/advanced";
552-
*
553-
* // Use Bitcoin Testnet3 scripts (default)
554-
* const testnet3Client = new ClientPublicTestnet();
555-
*
556-
* // Use Bitcoin Signet scripts by merging overrides
557-
* const signetClient = new ClientPublicTestnet({
558-
* scripts: {
559-
* ...TESTNET_SCRIPTS,
560-
* ...TESTNET_SCRIPTS_BTC_SIGNET_OVERRIDES
561-
* }
562-
* });
563-
*/
564-
export const TESTNET_SCRIPTS_BTC_SIGNET_OVERRIDES: Partial<
565-
Record<KnownScript, ScriptInfoLike>
566-
> = Object.freeze({
567-
[KnownScript.RgbppLock]: {
568-
codeHash:
569-
"0xd07598deec7ce7b5665310386b4abd06a6d48843e953c5cc2112ad0d5a220364",
570-
hashType: "type",
571-
cellDeps: [
572-
{
573-
cellDep: {
574-
outPoint: {
575-
txHash:
576-
"0x61efdeddbaa0bb4132c0eb174b3e8002ff5ec430f61ba46f30768d683c516eec",
577-
index: 0,
578-
},
579-
depType: "code",
580-
},
581-
type: {
582-
codeHash:
583-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
584-
hashType: "type",
585-
args: "0xb69fe766ce3b7014a2a78ad1fe688d82f1679325805371d2856c3b8d18ebfa5a",
586-
},
587-
},
588-
// Rgbpp lock config cell dep for Bitcoin Signet
589-
{
590-
cellDep: {
591-
outPoint: {
592-
txHash:
593-
"0x61efdeddbaa0bb4132c0eb174b3e8002ff5ec430f61ba46f30768d683c516eec",
594-
index: 1,
595-
},
596-
depType: "code",
597-
},
598-
},
599-
],
600-
},
601-
[KnownScript.BtcTimeLock]: {
602-
codeHash:
603-
"0x80a09eca26d77cea1f5a69471c59481be7404febf40ee90f886c36a948385b55",
604-
hashType: "type",
605-
cellDeps: [
606-
{
607-
cellDep: {
608-
outPoint: {
609-
txHash:
610-
"0x5364b3535965e9eac9a35dd7af8e9e45a61d30a16e115923c032f80b28783e21",
611-
index: 0,
612-
},
613-
depType: "code",
614-
},
615-
type: {
616-
codeHash:
617-
"0x00000000000000000000000000000000000000000000000000545950455f4944",
618-
hashType: "type",
619-
args: "0x32fc8c70a6451a1439fd91e214bba093f9cdd9276bc4ab223430dab5940aff92",
620-
},
621-
},
622-
// btc time lock config cell dep for Bitcoin Signet
623-
{
624-
cellDep: {
625-
outPoint: {
626-
txHash:
627-
"0x5364b3535965e9eac9a35dd7af8e9e45a61d30a16e115923c032f80b28783e21",
628-
index: 1,
629-
},
630-
depType: "code",
631-
},
632-
},
633-
],
634-
},
635-
});

packages/core/src/client/knownScript.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,4 @@ export enum KnownScript {
2525
TypeBurnLock = "TypeBurnLock",
2626
EasyToDiscoverType = "EasyToDiscoverType",
2727
TimeLock = "TimeLock",
28-
29-
// RGB++ related scripts (default using Bitcoin Testnet3)
30-
// For Bitcoin Signet, use TESTNET_SCRIPTS_BTC_SIGNET_OVERRIDES from @ckb-ccc/core/advanced
31-
RgbppLock = "RgbppLock",
32-
BtcTimeLock = "BtcTimeLock",
3328
}

0 commit comments

Comments
 (0)