From 6ed6790bc274b59cad76503047140805267659f9 Mon Sep 17 00:00:00 2001 From: Crayon Shin-chan Date: Wed, 5 Feb 2025 16:52:14 +0800 Subject: [PATCH] chore: example for custom payment workflow --- examples/script.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/script.sh b/examples/script.sh index 00cd9ef..b144f63 100755 --- a/examples/script.sh +++ b/examples/script.sh @@ -15,17 +15,17 @@ cp -r examples/data/bitcoin.testnet/DemoToken.contract examples/data2/bitcoin.te $RGB contracts $RGB state -go -w alice #$RGB fund alice -AUTH_TOKEN=$($RGB_2 invoice -w bob --nonce 0 --seal-only DemoToken) +#AUTH_TOKEN=$($RGB_2 invoice -w bob --nonce 0 --seal-only DemoToken) INVOICE=$($RGB_2 invoice -w bob --nonce 0 DemoToken 10) rm examples/transfer.psbt examples/Transfer.yaml -$RGB script -w alice "$INVOICE" examples/Transfer.yaml || exit 1 -$RGB exec -w alice examples/Transfer.yaml examples/transfer.pfab 1000 examples/transfer.psbt || exit 1 - -$RGB complete -w alice examples/transfer.pfab examples/transfer.psbt || exit 1 +#$RGB script -w alice "$INVOICE" examples/Transfer.yaml || exit 1 +#$RGB exec -w alice examples/Transfer.yaml examples/transfer.pfab 1000 examples/transfer.psbt || exit 1 +#$RGB complete -w alice examples/transfer.pfab examples/transfer.psbt || exit 1 rm examples/transfer.rgb -$RGB consign DemoToken -t "$AUTH_TOKEN" examples/transfer.rgb || exit 1 +$RGB pay -w alice "$INVOICE" examples/transfer.rgb || exit 1 +#$RGB consign DemoToken -t "$AUTH_TOKEN" examples/transfer.rgb || exit 1 $RGB state -goa -w alice --sync --mempool $RGB_2 accept -w bob examples/transfer.rgb || exit 1