From 2eeacc59fd50081a6794a30ee56cd4887124d7b3 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 11:46:46 -0500 Subject: [PATCH 01/13] feat/ tuning changes --- .github/workflows/devportal-update.yml | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index ca99277..2201b06 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -71,4 +71,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d '{"title":"Automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper","base":"main"}' \ No newline at end of file + -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper","base":"main"}' \ No newline at end of file diff --git a/README.md b/README.md index edeabb3..2ee3e14 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/btc-transaction-solidity-helper/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/btc-transaction-solidity-helper) RSK Logo -# btc-transaction-solidity-helper + +# BTC Transaction Solidity Helper Bitcoin, a decentralized digital currency, serves as both a store of value and a means of transferring wealth. Its security is rooted in the blockchain, a distributed ledger maintained by a network of miners. These miners expend significant computational power and energy to create new blocks, which are added to the blockchain every 10 minutes. The more hashing power contributed by miners, the more secure the network becomes. [Learn more about Bitcoin](https://developer.bitcoin.org/index.html). From 819e873d3db9eed7b7741c33c199c1aa9e5f80f2 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 13:07:28 -0500 Subject: [PATCH 02/13] changing branch name for test --- .github/workflows/devportal-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index 2201b06..f0cd935 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -5,7 +5,7 @@ on: paths: - 'README.md' branches: - - main + - devportalAutoImplem permissions: read-all From 6e7ad5bf45149c2d059ad0412c68d7c1f7eda681 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 13:25:30 -0500 Subject: [PATCH 03/13] feat/tuning changes for test --- .github/workflows/devportal-update.yml | 6 +++--- README.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index f0cd935..a65f39f 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -23,7 +23,7 @@ jobs: run: | git clone https://github.com/rsksmart/devportal.git cd devportal - git checkout -b update-from-btc-transaction-solidity-helper || git checkout update-from-btc-transaction-solidity-helper + git checkout -b update-from-btc-transaction-solidity-helper-test || git checkout update-from-btc-transaction-solidity-helper-test cd .. # Step 2: Transform Each File and Copy to Devportal Repository @@ -59,7 +59,7 @@ jobs: git commit -m "Automated update from repository" # Configure the remote URL with the token for authentication git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/rsksmart/devportal.git - git push -f origin update-from-btc-transaction-solidity-helper + git push -f origin update-from-btc-transaction-solidity-helper-test # Step 4: Create a Pull Request in the Devportal Repository - name: Create Pull Request @@ -71,4 +71,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper","base":"main"}' \ No newline at end of file + -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper-test","base":"main"}' \ No newline at end of file diff --git a/README.md b/README.md index 2ee3e14..735d870 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ require(expectedValue <= outputs[0].value, "incorrect amount"); The value field of the output structure is in satoshis. ::: + ## Hashing Transactions The hash algorithm used in the Bitcoin Network is just the `SHA256(SHA256())` of the serialized transaction. The library exposes one function that will apply this hash algorithm to any byte array passed to it, making it easy to calculate the transaction id of any raw transaction present in the contract. From e44ca5e2797a4c3cd046335e5d8a70fe00c2be3f Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 13:30:34 -0500 Subject: [PATCH 04/13] testing no image --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 735d870..345c5e7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/btc-transaction-solidity-helper/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/btc-transaction-solidity-helper) -RSK Logo - # BTC Transaction Solidity Helper Bitcoin, a decentralized digital currency, serves as both a store of value and a means of transferring wealth. Its security is rooted in the blockchain, a distributed ledger maintained by a network of miners. These miners expend significant computational power and energy to create new blocks, which are added to the blockchain every 10 minutes. The more hashing power contributed by miners, the more secure the network becomes. [Learn more about Bitcoin](https://developer.bitcoin.org/index.html). From 1df8c20c1528dc8b77f2ba41bc0522b85d16da54 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 13:40:24 -0500 Subject: [PATCH 05/13] test add img folder --- README.md | 1 + rootstock-logo.png => img/rootstock-logo.png | Bin 2 files changed, 1 insertion(+) rename rootstock-logo.png => img/rootstock-logo.png (100%) diff --git a/README.md b/README.md index 345c5e7..ee9aec2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/btc-transaction-solidity-helper/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/btc-transaction-solidity-helper) +RSK Logo # BTC Transaction Solidity Helper diff --git a/rootstock-logo.png b/img/rootstock-logo.png similarity index 100% rename from rootstock-logo.png rename to img/rootstock-logo.png From b43e989cdbfadc1fef2eb3d1343578ba300dd422 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 15:31:41 -0500 Subject: [PATCH 06/13] feat/ adding remove img tag on pr creation --- .github/workflows/devportal-update.yml | 9 ++++++++- README.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index a65f39f..51d00cc 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -31,6 +31,9 @@ jobs: run: | mkdir -p transformed + # Remove the unwanted tag from README.md + sed '/RSK Logo/d' README.md > temp_README.md + # Process README.md echo "---" > transformed/README.md echo "sidebar_label: Bitcoin Transaction Solidity Helper Library" >> transformed/README.md @@ -44,7 +47,11 @@ jobs: echo "If you wish to suggest changes on this document, please open a PR on the [Bitcoin Transaction Solidity Helper](https://github.com/rsksmart/btc-transaction-solidity-helper.git)" >> transformed/README.md echo ":::" >> transformed/README.md echo "" >> transformed/README.md - cat README.md >> transformed/README.md + cat temp_README.md >> transformed/README.md + + # Clean up temporary file + rm temp_README.md + cp transformed/README.md devportal/docs/02-developers/08-libraries/bitcoin-tx-solidity-helper.md # Step 3: Commit and Push Changes to Devportal Repository diff --git a/README.md b/README.md index ee9aec2..c60356f 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,4 @@ Congratulations, we have successfully learnt how to use the Solidity Helper libr * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock +MIT License - Copyright (c) 2023 Rootstock \ No newline at end of file From 72667f2dca29ef8613b466ab54e5b6c915bf2789 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 13 Dec 2024 15:48:51 -0500 Subject: [PATCH 07/13] feat/changing rsk image and setting devportal-update file for remove first 2 lines on readme on migration to devportal --- .github/workflows/devportal-update.yml | 6 +++--- README.md | 2 +- img/rootstock-docs.png | Bin 0 -> 14838 bytes 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 img/rootstock-docs.png diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index 51d00cc..b283f50 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -31,8 +31,8 @@ jobs: run: | mkdir -p transformed - # Remove the unwanted tag from README.md - sed '/RSK Logo/d' README.md > temp_README.md + # Remove the unwanted lines from README.md + tail -n +3 README.md > temp_README.md # Process README.md echo "---" > transformed/README.md @@ -51,7 +51,7 @@ jobs: # Clean up temporary file rm temp_README.md - + cp transformed/README.md devportal/docs/02-developers/08-libraries/bitcoin-tx-solidity-helper.md # Step 3: Commit and Push Changes to Devportal Repository diff --git a/README.md b/README.md index c60356f..ed47ebb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/btc-transaction-solidity-helper/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/btc-transaction-solidity-helper) -RSK Logo +RSK Logo # BTC Transaction Solidity Helper diff --git a/img/rootstock-docs.png b/img/rootstock-docs.png new file mode 100644 index 0000000000000000000000000000000000000000..946107cb03c747d1d7d4291d4a36db77cbbcb604 GIT binary patch literal 14838 zcmeIZS6CBU8#WAGX3aBe)_Tf)-z(uCYjcq!(nkaY z1VnD$FufxnaG+8^U|+=HzxXXSSE5}61oT^OnqIvdDY#5Fe(eg+r|}@|9=V5lHvaDL zh)6B{jeb1iZIttGV5aHD@oA)Ex%78XS{mrhP5cWh)vD3zduahVudC8~1J5h(7whpY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WG5_PK0_|+oKj%KDCNGY;Ne#VT(3k3CZ^fJZIut)7Chmr$Qg-^! zI9^xkFaHk9gb=FacPGf?#~DaBLjwSg`$zFY|M%RDKu*+seG-?u#eKk|1?blWTE7OJ z(yy-}+>|#|K$x(Mg4qbE^4es=)uN19>D=vXvFArkcKb~Z&q}+;y1js{?b=K(ROA>M zDw85@@D2Efv@MtDiBxK@P64f&@_TxA*`4}oGy>K>*2hjKWK%UYzUH7Os(WkK9xP2ykYP@5u_$Lh>1 z-$@7x`)B4-NfZJx?Q~j+wm_x*VF!UrAmJkdeOlM1wtJXiw%tdc{Zam%6;{n-2uO1o zWJBj%jYYoh;Me+9fsOQ}RxObu0&|cfXD*FpgzTEN`TlCIwsnZ;+Rs<~NfaI5SLh?W zj;N1m+k8rSWzX*^>8yufq0j%X%zBv-86J2pj;~Q{m*ih7tk30Z3#suYL(5GeRM!l# zM(e$SGR80AkTCw8mogt6R1M^FQ42?rs|Aet$I(r(oJpyXoP%TTQEYOCKie11#zn{; z;A3_RD{@e2M-@c#!Hb3!Q;D3Yg-yr Date: Fri, 13 Dec 2024 16:00:57 -0500 Subject: [PATCH 08/13] feat/ completing setting for devportal automation on readme --- .github/workflows/devportal-update.yml | 8 ++++---- README.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index b283f50..c80ceec 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -5,7 +5,7 @@ on: paths: - 'README.md' branches: - - devportalAutoImplem + - main permissions: read-all @@ -23,7 +23,7 @@ jobs: run: | git clone https://github.com/rsksmart/devportal.git cd devportal - git checkout -b update-from-btc-transaction-solidity-helper-test || git checkout update-from-btc-transaction-solidity-helper-test + git checkout -b update-from-btc-transaction-solidity-helper || git checkout update-from-btc-transaction-solidity-helper cd .. # Step 2: Transform Each File and Copy to Devportal Repository @@ -66,7 +66,7 @@ jobs: git commit -m "Automated update from repository" # Configure the remote URL with the token for authentication git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/rsksmart/devportal.git - git push -f origin update-from-btc-transaction-solidity-helper-test + git push -f origin update-from-btc-transaction-solidity-helper # Step 4: Create a Pull Request in the Devportal Repository - name: Create Pull Request @@ -78,4 +78,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper-test","base":"main"}' \ No newline at end of file + -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper","base":"main"}' \ No newline at end of file diff --git a/README.md b/README.md index ed47ebb..00624b7 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,4 @@ Congratulations, we have successfully learnt how to use the Solidity Helper libr * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock \ No newline at end of file +MIT License - Copyright (c) 2023 Rootstock From 4dd81177a5758d4aea640aa9b2ff60a08a3bbae6 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Tue, 17 Dec 2024 11:52:06 -0500 Subject: [PATCH 09/13] fix/ error on repeated names --- .github/workflows/devportal-update.yml | 4 +++- README.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index c80ceec..ec4f277 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -74,8 +74,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }} run: | cd devportal + TIMESTAMP=$(date +'%Y-%m-%d-%H-%M-%S') + PR_TITLE="Btc-transaction-solidity-helper automated update of documentation - $TIMESTAMP" curl -L -X POST -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d '{"title":"Btc-transaction-solidity-helper automated update of documentation","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"update-from-btc-transaction-solidity-helper","base":"main"}' \ No newline at end of file + -d "{\"title\":\"${PR_TITLE}\",\"body\":\"This PR updates the Devportal documentation with the latest changes from the original repository.\",\"head\":\"update-from-btc-transaction-solidity-helper\",\"base\":\"main\"}" \ No newline at end of file diff --git a/README.md b/README.md index 00624b7..54b8ffd 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,4 @@ Congratulations, we have successfully learnt how to use the Solidity Helper libr * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock +MIT License - Copyright (c) 2023 Rootstock \ No newline at end of file From 31219bf7aa369179b03abe6b93d8c8bdf9dce7e2 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Tue, 17 Dec 2024 11:53:37 -0500 Subject: [PATCH 10/13] test auto PR created on devporta; --- .github/workflows/devportal-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index ec4f277..e280a32 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -5,7 +5,7 @@ on: paths: - 'README.md' branches: - - main + - devportalAutoImplem permissions: read-all From de1c934f002732d5d47c31da18707bcc8ce4bc9d Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Tue, 17 Dec 2024 11:56:05 -0500 Subject: [PATCH 11/13] updating readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54b8ffd..578ea8c 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,4 @@ Congratulations, we have successfully learnt how to use the Solidity Helper libr * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock \ No newline at end of file +MIT License - Copyright (c) 2023 Rootstock. \ No newline at end of file From 3f5d083855654000ddc2aaaab65c25a366c25e33 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Tue, 17 Dec 2024 12:05:02 -0500 Subject: [PATCH 12/13] feat/ adding timestamp to branchname --- .github/workflows/devportal-update.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index e280a32..dc94530 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -21,9 +21,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }} run: | + TIMESTAMP=$(date +'%Y%m%d-%H%M%S') + BRANCH_NAME="update-from-btc-transaction-solidity-helper-${TIMESTAMP}" + echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV + git clone https://github.com/rsksmart/devportal.git cd devportal - git checkout -b update-from-btc-transaction-solidity-helper || git checkout update-from-btc-transaction-solidity-helper + git checkout -b ${BRANCH_NAME} || git checkout ${BRANCH_NAME} cd .. # Step 2: Transform Each File and Copy to Devportal Repository @@ -66,7 +70,7 @@ jobs: git commit -m "Automated update from repository" # Configure the remote URL with the token for authentication git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/rsksmart/devportal.git - git push -f origin update-from-btc-transaction-solidity-helper + git push -f origin ${BRANCH_NAME} # Step 4: Create a Pull Request in the Devportal Repository - name: Create Pull Request @@ -80,4 +84,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d "{\"title\":\"${PR_TITLE}\",\"body\":\"This PR updates the Devportal documentation with the latest changes from the original repository.\",\"head\":\"update-from-btc-transaction-solidity-helper\",\"base\":\"main\"}" \ No newline at end of file + -d "{\"title\":\"Btc-transaction-solidity-helper automated update of documentation ${TIMESTAMP}\",\"body\":\"This PR updates the Devportal documentation with the latest changes from the original repository.\",\"head\":\"${BRANCH_NAME}\",\"base\":\"main\"}" \ No newline at end of file From a137432c537da1f76733ebc8e36c64451f690468 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Tue, 17 Dec 2024 12:06:58 -0500 Subject: [PATCH 13/13] test on devportal autom PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 578ea8c..c88e632 100644 --- a/README.md +++ b/README.md @@ -175,4 +175,4 @@ Congratulations, we have successfully learnt how to use the Solidity Helper libr * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock. \ No newline at end of file +MIT License - Copyright (c) 2023 Rootstock.