release: promote develop → staging#3174
Merged
Conversation
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…iven app rendering (#3164)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Pulls in surface changes that landed in tnt-core PR #118 (slashing correctness) and PR #122 (interface declaration of expireServiceRequest): - disputeSlash is now payable. The contract requires `msg.value == disputeBond` (zero for SLASH_ADMIN, else the configured bond). Today's protocol config has bond=0 so existing call sites still work; flagging for follow-up if/when admin sets a non-zero bond. - expireServiceRequest(uint64) added — permissionless cleanup path that refunds escrow on stale unapproved requests after the grace period. - ServiceRequest gains `bool activated` (post-activation refund guard). - SlashProposal gains disputer/disputeBond/disputeDeadline fields. No UI changes here. Generated by `yarn sync:tnt-core-assets` against tnt-core@abd065c (post-#121); follow-up PR to surface expireServiceRequest in operator/owner UIs once a flow is designed.
- ABI: adds getSlashConfig() view - useSlashConfig: new hook reads disputeBond from active SlashConfig - useDisputeSlashTx: forwards disputeBond as msg.value; zero-bond path unchanged (value: undefined), so existing behaviour is preserved Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chore(abi): sync tnt-core v0.11.3 + wire disputeSlash bond value
Comment on lines
+9
to
+57
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Enable corepack | ||
| run: | | ||
| corepack enable | ||
|
|
||
| - name: Set up Node.js environment | ||
| uses: actions/setup-node@v6.4.0 | ||
| with: | ||
| node-version: '>=18.18.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Extract PR title | ||
| id: extract_pr_title | ||
| run: echo "title=$(jq -r '.pull_request.title' $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Fetch commit messages | ||
| id: fetch_commits | ||
| run: | | ||
| commits=$(jq -r '.pull_request.commits_url' $GITHUB_EVENT_PATH) | ||
| curl -s $commits | jq -r '.[].commit.message' > commit_messages.txt | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Check for release commit | ||
| id: check_commit | ||
| # Check if any commit message starts with [RELEASE] | ||
| run: | | ||
| if grep -qE '^\[RELEASE\]' commit_messages.txt; then | ||
| echo "contains_release=true" >> $GITHUB_ENV | ||
| else | ||
| echo "contains_release=false" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| - name: Validate PR title | ||
| id: check_pr_title | ||
| run: | | ||
| if [[ "${{ env.contains_release }}" == "true" && ! "${{ steps.extract_pr_title.outputs.title }}" =~ ^\[RELEASE\] ]]; then | ||
| echo "PR title must start with [RELEASE] if any commit starts with [RELEASE]." | ||
| exit 1 | ||
| else | ||
| echo "${{ steps.extract_pr_title.outputs.title }}" | yarn commitlint --verbose | ||
| fi |
Comment on lines
+15
to
+25
| runs-on: ubuntu-latest | ||
| timeout-minutes: 1 | ||
| steps: | ||
| - name: 'Block Concurrent Executions' | ||
| uses: softprops/turnstyle@v1 | ||
| with: | ||
| poll-interval-seconds: 10 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| build-publish: |
Comment on lines
+26
to
+96
| name: Build and Publish | ||
| needs: pre-ci | ||
| runs-on: ubuntu-latest | ||
|
|
||
| if: ( !startsWith(github.event.head_commit.message, '[SKIP CI]') && | ||
| startsWith(github.event.head_commit.message, '[RELEASE]') && | ||
| github.repository == 'tangle-network/dapp' ) | ||
|
|
||
| steps: | ||
| #Check out | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Enable corepack | ||
| run: | | ||
| corepack enable | ||
|
|
||
| - name: Setup Node.js environment | ||
| uses: actions/setup-node@v6.4.0 | ||
| with: | ||
| node-version: '>=18.18.x' | ||
| cache: yarn | ||
|
|
||
| #Identify changes | ||
| - uses: marceloprado/has-changed-path@v1 | ||
| id: changed-leaderboard | ||
| with: | ||
| paths: apps/leaderboard/CHANGELOG.md | ||
|
|
||
| - uses: marceloprado/has-changed-path@v1 | ||
| id: changed-tangle-dapp | ||
| with: | ||
| paths: apps/tangle-dapp/CHANGELOG.md | ||
|
|
||
| - uses: marceloprado/has-changed-path@v1 | ||
| id: changed-tangle-cloud | ||
| with: | ||
| paths: apps/tangle-cloud/CHANGELOG.md | ||
|
|
||
| - name: Install deps | ||
| run: yarn install | ||
|
|
||
| - name: build | ||
| # Fix: JavaScript heap out of memory | ||
| # https://github.com/actions/runner-images/issues/70#issuecomment-1191708172 | ||
| env: | ||
| NODE_OPTIONS: '--max_old_space_size=4096' | ||
| run: yarn run build | ||
|
|
||
| # Create github release | ||
| - name: Release Leaderboard | ||
| if: steps.changed-leaderboard.outputs.changed == 'true' | ||
| uses: ./.github/actions/create-dapp-release | ||
| with: | ||
| package-path: apps/leaderboard | ||
| repo-token: ${{ secrets.REPO_TOKEN }} | ||
|
|
||
| - name: Release Tangle dApp | ||
| if: steps.changed-tangle-dapp.outputs.changed == 'true' | ||
| uses: ./.github/actions/create-dapp-release | ||
| with: | ||
| package-path: apps/tangle-dapp | ||
| repo-token: ${{ secrets.REPO_TOKEN }} | ||
|
|
||
| - name: Release Tangle Cloud | ||
| if: steps.changed-tangle-cloud.outputs.changed == 'true' | ||
| uses: ./.github/actions/create-dapp-release | ||
| with: | ||
| package-path: apps/tangle-cloud | ||
| repo-token: ${{ secrets.REPO_TOKEN }} |
Comment on lines
+15
to
+25
| runs-on: ubuntu-latest | ||
| timeout-minutes: 1 | ||
| steps: | ||
| - name: 'Block Concurrent Executions' | ||
| uses: softprops/turnstyle@v1 | ||
| with: | ||
| poll-interval-seconds: 10 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| build-publish: |
Comment on lines
+14
to
+46
| name: run | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: ['>=18.18.x'] | ||
|
|
||
| steps: | ||
| - name: Cancel Previous Runs | ||
| uses: styfle/cancel-workflow-action@0.13.1 | ||
| with: | ||
| access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Enable corepack | ||
| run: | | ||
| corepack enable | ||
|
|
||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v6.4.0 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: yarn | ||
|
|
||
| - name: Install deps | ||
| run: yarn install | ||
|
|
||
| - name: Run tests | ||
| run: yarn test | ||
| # Fix: JavaScript heap out of memory | ||
| # https://github.com/actions/runner-images/issues/70#issuecomment-1191708172 | ||
| env: | ||
| NODE_OPTIONS: '--max_old_space_size=4096' |
| .replace(/>/g, '>'); | ||
| const initial = name.slice(0, 1).toUpperCase(); | ||
|
|
||
| return `<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630" role="img" aria-label="${name}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes
developtostagingfor deployment.Conflicts resolved in favour of develop (develop is canonical). Staging-only legacy files (bridge-dapp utils, old webb-provider utils) removed.
Recent highlights on develop
#3172tnt-core v0.11.3 —getSlashConfig(),disputeSlashbond value forwarding#3170tnt-core v0.11.2 —expireServiceRequest, unifiedapproveService(ApprovalParams)#3169Tangle Cloud approval form unified tosecurityCommitments[]#3168Tangle Cloud adopts unifiedapproveService(ApprovalParams)#3164Tangle Cloud cross-page redesign + brand adoption