Skip to content

Commit

Permalink
Update pallets to external repo (#1)
Browse files Browse the repository at this point in the history
* πŸ”§ chore(Cargo.toml): update dependencies to use specific tags for pallets
πŸ”§ chore(lib.rs): add pallet_mapped_assets and pallet_afloat to the runtime configuration
πŸ”§ chore(lib.rs): update configuration parameters for pallet_gated_marketplace, pallet_confidential_docs, pallet_rbac, pallet_afloat, and pallet_fund_admin_records

* πŸ”§ chore(lib.rs): refactor pallet_mapped_assets configuration for improved readability and maintainability
πŸ”§ chore(lib.rs): refactor pallet_rbac configuration for improved readability and maintainability

* πŸ“¦ chore(gpt-commit-summarizer.yml): add GitHub Actions workflow file for GPT Commits summarizer
πŸ”’ chore(gpt-commit-summarizer.yml): add necessary permissions to the workflow for repositories that require it
πŸ”§ chore(gpt-commit-summarizer.yml): configure the workflow to trigger on pull request opened and synchronized events
πŸš€ chore(gpt-commit-summarizer.yml): add job to summarize commits and generate file and PR summaries
πŸ”‘ chore(gpt-commit-summarizer.yml): add environment variables for GitHub token and OpenAI API key

* πŸ”§ chore(chain_spec.rs): add default value for mapped_assets field in testnet_genesis function to prevent potential runtime errors
  • Loading branch information
tlacloc authored Sep 22, 2023
1 parent 19ffad5 commit fb66911
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 57 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/gpt-commit-summarizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: GPT Commits summarizer
# Summary: This action will write a comment about every commit in a pull request, as well as generate a summary for every file that was modified and add it to the review page, compile a PR summary from all commit summaries and file diff summaries, and delete outdated code review comments

on:
pull_request:
types: [opened, synchronize]

jobs:
summarize:
runs-on: ubuntu-latest
permissions: write-all # Some repositories need this line

steps:
- uses: KanHarI/gpt-commit-summarizer@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
83 changes: 76 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,6 @@ fn testnet_genesis(
bitcoin_vaults : BitcoinVaultsConfig{
bdk_services_url : BDK_SERVICES_MAINNET_URL.as_bytes().to_vec(),
},
mapped_assets: Default::default(),
}
}
21 changes: 14 additions & 7 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,16 @@ frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", b
hex-literal = { version = "0.4.1", optional = true }

# Hashed Dependencies
pallet-template = { path = "../pallets/template", default-features = false }
pallet-bitcoin-vaults = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-fruniques = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-gated-marketplace = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-rbac = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-confidential-docs = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-fund-admin = { git = "https://github.com/hashed-io/hashed-pallets", branch = "bump-versions/substrate-940", default-features = false }
pallet-template = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-fruniques = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-bitcoin-vaults = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-gated-marketplace = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-rbac = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-confidential-docs = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-fund-admin = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-afloat = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-mapped-assets = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }
pallet-fund-admin-records = { git = "https://github.com/hashed-io/hashed-pallets", tag = "0.1.1", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.40" }
Expand Down Expand Up @@ -112,6 +115,8 @@ std = [
"pallet-rbac/std",
"pallet-confidential-docs/std",
"pallet-fund-admin/std",
"pallet-mapped-assets/std",
"pallet-afloat/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
Expand Down Expand Up @@ -167,4 +172,6 @@ try-runtime = [
"pallet-gated-marketplace/try-runtime",
"pallet-rbac/try-runtime",
"pallet-template/try-runtime",
"pallet-mapped-assets/try-runtime",
"pallet-afloat/try-runtime",
]
Loading

0 comments on commit fb66911

Please sign in to comment.