Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Testing on Testnet3 using 'https://rgbpp.testnet3.awesomeckb.xyz' #290

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
if: ${{ matrix.env_set == 'xudt' }}
run: pnpm run integration:xudt
env:
VITE_SERVICE_URL: https://api.signet.rgbpp.io
VITE_SERVICE_TOKEN: ${{ secrets.SIGNET_SERVICE_TOKEN }}
VITE_SERVICE_ORIGIN: https://api.signet.rgbpp.io
VITE_SERVICE_URL: https://api.testnet.rgbpp.io
VITE_SERVICE_TOKEN: ${{ secrets.TESTNET_SERVICE_TOKEN }}
VITE_SERVICE_ORIGIN: https://api.testnet.rgbpp.io
INTEGRATION_CKB_PRIVATE_KEY: ${{ secrets.INTEGRATION_CKB_PRIVATE_KEY }}
INTEGRATION_BTC_PRIVATE_KEY: ${{ secrets.INTEGRATION_BTC_PRIVATE_KEY }}

Expand All @@ -60,8 +60,8 @@ jobs:
if: ${{ matrix.env_set == 'spore' }}
run: pnpm run integration:spore
env:
VITE_SERVICE_URL: https://api.signet.rgbpp.io
VITE_SERVICE_TOKEN: ${{ secrets.SIGNET_SERVICE_TOKEN }}
VITE_SERVICE_ORIGIN: https://api.signet.rgbpp.io
VITE_SERVICE_URL: https://api.testnet.rgbpp.io
VITE_SERVICE_TOKEN: ${{ secrets.TESTNET_SERVICE_TOKEN }}
VITE_SERVICE_ORIGIN: https://api.testnet.rgbpp.io
INTEGRATION_CKB_PRIVATE_KEY: ${{ secrets.INTEGRATION_CKB_SPORE_PRIVATE_KEY }}
INTEGRATION_BTC_PRIVATE_KEY: ${{ secrets.INTEGRATION_BTC_SPORE_PRIVATE_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
env:
VITE_CKB_NODE_URL: https://testnet.ckb.dev/rpc
VITE_CKB_INDEXER_URL: https://testnet.ckb.dev/indexer
VITE_BTC_SERVICE_URL: https://btc-assets-api.testnet.mibao.pro
VITE_BTC_SERVICE_URL: https://api.testnet.rgbpp.io
VITE_BTC_SERVICE_TOKEN: ${{ secrets.TESTNET_SERVICE_TOKEN }}
VITE_BTC_SERVICE_ORIGIN: https://btc-assets-api.testnet.mibao.pro
VITE_BTC_SERVICE_ORIGIN: https://api.testnet.rgbpp.io

- name: Run unit tests for the rgbpp-sdk-service
run: pnpm run test:service
2 changes: 1 addition & 1 deletion tests/rgbpp/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dotenv.config({ path: __dirname + '/.env' });

export const isMainnet = false;

export const BTC_TESTNET_TYPE = 'Signet';
export const BTC_TESTNET_TYPE = 'Testnet3';

export const collector = new Collector({
ckbNodeUrl: 'https://testnet.ckb.dev/rpc',
Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/shared/prepare-utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const prepareUtxo = async (index: string | number) => {
console.log(tx.toHex());

const { txid: btcTxId } = await btcService.sendBtcTransaction(tx.toHex());
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

writeStepLog(String(index), {
txid: btcTxId,
Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/spore/4-transfer-spore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const transferSpore = async ({ sporeRgbppLockArgs, toBtcAddress, sporeTypeArgs }

const { txId: btcTxId } = await signAndSendPsbt(psbt, btcAccount, btcService);
console.log('BTC TxId: ', btcTxId);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

await btcService.sendRgbppCkbTransaction({ btc_txid: btcTxId, ckb_virtual_result: ckbVirtualTxResult });

Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/spore/5-leap-spore-to-ckb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const leapSporeFromBtcToCkb = async ({ sporeRgbppLockArgs, toCkbAddress, sporeTy

const { txId: btcTxId } = await signAndSendPsbt(psbt, btcAccount, btcService);
console.log('BTC TxId: ', btcTxId);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

await btcService.sendRgbppCkbTransaction({ btc_txid: btcTxId, ckb_virtual_result: ckbVirtualTxResult });

Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/spore/launch/2-create-cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const createCluster = async ({ ownerRgbppLockArgs }: { ownerRgbppLockArgs: strin
index: 1,
});
console.log('BTC TxId: ', btcTxId);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

const interval = setInterval(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/spore/launch/3-create-spores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const createSpores = async ({ clusterRgbppLockArgs, receivers }: SporeCreatePara
txid: btcTxId,
});
console.log('BTC TxId: ', btcTxId);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

const interval = setInterval(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/xudt/2-btc-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const transfer = async ({ rgbppLockArgsList, toBtcAddress, xudtTypeArgs, transfe
const psbt = bitcoin.Psbt.fromHex(btcPsbtHex);
const { txId: btcTxId } = await signAndSendPsbt(psbt, btcAccount, btcService);
console.log(`BTC ${BTC_TESTNET_TYPE} TxId: ${btcTxId}`);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

writeStepLog('transfer-id', {
txid: btcTxId,
Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/xudt/3-btc-leap-ckb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const leapFromBtcToCKB = async ({ rgbppLockArgsList, toCkbAddress, xudtTypeArgs,

const { txId: btcTxId } = await signAndSendPsbt(psbt, btcAccount, btcService);
console.log(`BTC ${BTC_TESTNET_TYPE} TxId: ${btcTxId}`);
console.log(`explorer: https://mempool.space/signet/tx/${btcTxId}`);
console.log(`explorer: https://mempool.space/testnet/tx/${btcTxId}`);

await btcService.sendRgbppCkbTransaction({ btc_txid: btcTxId, ckb_virtual_result: ckbVirtualTxResult });

Expand Down
2 changes: 1 addition & 1 deletion tests/rgbpp/xudt/btc-transfer-all/1-btc-transfer-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const rgbppTransferAllTxs = async ({ xudtTypeArgs, fromAddress, toAddress }: Tes

const successfulTxIds = sentGroups
.filter((group) => group.btcTxId)
.map((group) => `https://mempool.space/signet/tx/${group.btcTxId}`);
.map((group) => `https://mempool.space/testnet/tx/${group.btcTxId}`);

console.log('Successful Transactions:', successfulTxIds.join('\n'));

Expand Down
Loading