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

Alpha into beta #27

Merged
merged 24 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c257170
Merge pull request #13 from PolymeshAssociation/beta
prashantasdeveloper Apr 16, 2024
7cd662d
fix: 🐛 Modify updateReadme script to update chain version
prashantasdeveloper Apr 16, 2024
6c96de4
Merge pull request #23 from PolymeshAssociation/fix/update-readme
prashantasdeveloper Apr 17, 2024
197fbe6
feat: 🎸 Export public entities, utils and consts
prashantasdeveloper Apr 23, 2024
82776f3
chore: 🤖 Bump polmesh-sdk to `24.2.1`
prashantasdeveloper Apr 24, 2024
43fcf7f
docs: ✏️ include `src/entities/types.ts` in sdk-docs
prashantasdeveloper Apr 25, 2024
2c6aa0b
Merge pull request #24 from PolymeshAssociation/feat/extend-public-sdk
polymath-eric Apr 26, 2024
316bd91
feat: 🎸 add `getProofDetails` to `ConfidentialTransaction`
polymath-eric Apr 30, 2024
a526420
Merge pull request #25 from PolymeshAssociation/get-leg-proofs
prashantasdeveloper May 1, 2024
8001f0d
Merge branch 'alpha' into master-into-alpha
polymath-eric May 1, 2024
783cdae
Merge pull request #26 from PolymeshAssociation/master-into-alpha
polymath-eric May 2, 2024
b021b67
chore: 🤖 Add actions for authenticate and fast forward commits
prashantasdeveloper Jun 7, 2024
95af6de
chore: 🤖 use variable instead of secret for allowed signers
prashantasdeveloper Jun 7, 2024
d3ea05f
feat: 🎸 add confidential methods to `getIdentity` return
polymath-eric Jul 19, 2024
5a41127
chore: 🤖 fix authenticate commit github action
polymath-eric Jul 19, 2024
81e5c1d
feat: 🎸 Return balance info when applying incoming balance
prashantasdeveloper Jul 26, 2024
8e84740
feat: 🎸 moveFunds procedure
sansan Jul 29, 2024
46670d3
refactor: 💡 pr comments
sansan Jul 31, 2024
2ad1d18
feat: 🎸 add checks to check if asset/account exists
sansan Aug 2, 2024
56b663b
refactor: 💡 more detailed error messages
sansan Aug 5, 2024
1f616f7
feat: 🎸 update sdk to support private v2 chains (public v7)
polymath-eric Nov 13, 2024
02ff572
chore: 🤖 update github action release token to org level
polymath-eric Nov 13, 2024
48b3942
fix: 🐛 fix type import path
polymath-eric Nov 13, 2024
dd40dc5
feat: 🎸 update sdk to v26.2.0
polymath-eric Nov 14, 2024
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
48 changes: 48 additions & 0 deletions .github/workflows/authenticate-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Authenticate Commits
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Import allowed SSH keys
env:
ALLOWED_SIGNERS: ${{ vars.MIDDLEWARE_ALLOWED_SIGNERS }}
run: |
mkdir -p ~/.ssh
echo "$ALLOWED_SIGNERS" > ~/.ssh/allowed_signers
git config --global gpg.ssh.allowedSignersFile "~/.ssh/allowed_signers"

- name: Validate commit signatures
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
# Function to verify a commit
verify_commit() {
local commit=$1
local status=$(git show --pretty="format:%G?" $commit | head -n 1)

if [ "$status" != "G" ]; then
local committer=$(git log -1 --pretty=format:'%cn (%ce)' $commit)
echo "Commit $commit from $committer has an invalid signature or is not signed by an allowed key."
exit 1
fi

}

# Get all commits in the PR
commits=$(git rev-list $BASE_SHA..$HEAD_SHA)

# Iterate over all commits in the PR and verify each one
for COMMIT in $commits; do
verify_commit $COMMIT
done

echo "All commits are signed with allowed keys."
27 changes: 27 additions & 0 deletions .github/workflows/fast-forward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: fast-forward
on:
issue_comment:
types: [created, edited]
jobs:
fast-forward:
# Only run if the comment contains the /fast-forward command.
if: ${{ contains(github.event.comment.body, '/fast-forward')
&& github.event.issue.pull_request }}
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
issues: write

steps:
- name: Fast forwarding
uses: sequoia-pgp/fast-forward@v1
with:
merge: true
# To reduce the workflow's verbosity, use 'on-error'
# to only post a comment when an error occurs, or 'never' to
# never post a comment. (In all cases the information is
# still available in the step's summary.)
comment: on-error
GITHUB_TOKEN: ${{ secrets.ASSOCIATION_RELEASE_TOKEN }} ## This allows to trigger push action from within this workflow. Read more - https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
name: Building and releasing project
runs-on: ubuntu-latest
needs: [lint, sonar]
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -97,3 +98,27 @@ jobs:
cd dist
yarn --frozen-lockfile
yarn semantic-release

check-fast-forward:
name: Check if fast forwarding is possible
runs-on: ubuntu-latest
needs: [lint, sonar]
if: github.event_name == 'pull_request'

permissions:
contents: read
# We appear to need write permission for both pull-requests and
# issues in order to post a comment to a pull request.
pull-requests: write
issues: write

steps:
- name: Checking if fast forwarding is possible
uses: sequoia-pgp/fast-forward@v1
with:
merge: false
# To reduce the workflow's verbosity, use 'on-error'
# to only post a comment when an error occurs, or 'never' to
# never post a comment. (In all cases the information is
# still available in the step's summary.)
comment: never
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## Polymesh version

This release is compatible with Polymesh v6.x.x and Polymesh Private v1.x.x
This release is compatible with Polymesh v6.3/v7.0 and Polymesh Private v1.0/v2.0

<!--- End of section --->

Expand Down
110 changes: 55 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/typescript": "4.0.1",
"@ovos-media/ts-transform-paths": "^1.7.18-1",
"@polkadot/dev-ts": "^0.76.22",
"@polkadot/typegen": "10.9.1",
"@polkadot/dev-ts": "^0.79.3",
"@polkadot/typegen": "11.2.1",
"@polymeshassociation/local-signing-manager": "^3.0.1",
"@polymeshassociation/polymesh-types": "^5.8.0",
"@polymeshassociation/polymesh-types": "^5.15.0",
"@polymeshassociation/signing-manager-types": "^3.0.0",
"@polymeshassociation/typedoc-theme": "^1.1.0",
"@semantic-release/changelog": "^6.0.1",
Expand Down Expand Up @@ -124,10 +124,10 @@
"dependencies": {
"@apollo/client": "^3.8.1",
"@noble/curves": "^1.4.0",
"@polkadot/api": "10.9.1",
"@polkadot/util": "12.4.2",
"@polkadot/util-crypto": "12.4.2",
"@polymeshassociation/polymesh-sdk": "24.1.0",
"@polkadot/api": "11.2.1",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@polymeshassociation/polymesh-sdk": "26.2.0",
"bignumber.js": "9.0.1",
"bluebird": "^3.7.2",
"cross-fetch": "^4.0.0",
Expand All @@ -142,59 +142,59 @@
"websocket": "^1.0.34"
},
"resolutions": {
"@polkadot/keyring": "12.4.2",
"@polkadot/api-augment": "10.9.1",
"@polkadot/api-base": "10.9.1",
"@polkadot/api-derive": "10.9.1",
"@polkadot/rpc-augment": "10.9.1",
"@polkadot/rpc-core": "10.9.1",
"@polkadot/rpc-provider": "10.9.1",
"@polkadot/types": "10.9.1",
"@polkadot/types-augment": "10.9.1",
"@polkadot/types-codec": "10.9.1",
"@polkadot/types-create": "10.9.1",
"@polkadot/types-known": "10.9.1",
"@polkadot/util": "12.4.2",
"@polkadot/networks": "12.4.2",
"@polkadot/util-crypto": "12.4.2",
"@polkadot/x-bigint": "12.4.2"
"@polkadot/keyring": "12.6.2",
"@polkadot/api-augment": "11.2.1",
"@polkadot/api-base": "11.2.1",
"@polkadot/api-derive": "11.2.1",
"@polkadot/rpc-augment": "11.2.1",
"@polkadot/rpc-core": "11.2.1",
"@polkadot/rpc-provider": "11.2.1",
"@polkadot/types": "11.2.1",
"@polkadot/types-augment": "11.2.1",
"@polkadot/types-codec": "11.2.1",
"@polkadot/types-create": "11.2.1",
"@polkadot/types-known": "11.2.1",
"@polkadot/util": "12.6.2",
"@polkadot/networks": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@polkadot/x-bigint": "12.6.2"
},
"overrides": {
"@polkadot/keyring": "12.4.2",
"@polkadot/api-augment": "10.9.1",
"@polkadot/api-base": "10.9.1",
"@polkadot/api-derive": "10.9.1",
"@polkadot/rpc-augment": "10.9.1",
"@polkadot/rpc-core": "10.9.1",
"@polkadot/rpc-provider": "10.9.1",
"@polkadot/types": "10.9.1",
"@polkadot/types-augment": "10.9.1",
"@polkadot/types-codec": "10.9.1",
"@polkadot/types-create": "10.9.1",
"@polkadot/types-known": "10.9.1",
"@polkadot/util": "12.4.2",
"@polkadot/networks": "12.4.2",
"@polkadot/util-crypto": "12.4.2",
"@polkadot/x-bigint": "12.4.2"
"@polkadot/keyring": "12.6.2",
"@polkadot/api-augment": "11.2.1",
"@polkadot/api-base": "11.2.1",
"@polkadot/api-derive": "11.2.1",
"@polkadot/rpc-augment": "11.2.1",
"@polkadot/rpc-core": "11.2.1",
"@polkadot/rpc-provider": "11.2.1",
"@polkadot/types": "11.2.1",
"@polkadot/types-augment": "11.2.1",
"@polkadot/types-codec": "11.2.1",
"@polkadot/types-create": "11.2.1",
"@polkadot/types-known": "11.2.1",
"@polkadot/util": "12.6.2",
"@polkadot/networks": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@polkadot/x-bigint": "12.6.2"
},
"pnpm": {
"overrides": {
"@polkadot/keyring": "12.4.2",
"@polkadot/api-augment": "10.9.1",
"@polkadot/api-base": "10.9.1",
"@polkadot/api-derive": "10.9.1",
"@polkadot/rpc-augment": "10.9.1",
"@polkadot/rpc-core": "10.9.1",
"@polkadot/rpc-provider": "10.9.1",
"@polkadot/types": "10.9.1",
"@polkadot/types-augment": "10.9.1",
"@polkadot/types-codec": "10.9.1",
"@polkadot/types-create": "10.9.1",
"@polkadot/types-known": "10.9.1",
"@polkadot/util": "12.4.2",
"@polkadot/networks": "12.4.2",
"@polkadot/util-crypto": "12.4.2",
"@polkadot/x-bigint": "12.4.2"
"@polkadot/keyring": "12.6.2",
"@polkadot/api-augment": "11.2.1",
"@polkadot/api-base": "11.2.1",
"@polkadot/api-derive": "11.2.1",
"@polkadot/rpc-augment": "11.2.1",
"@polkadot/rpc-core": "11.2.1",
"@polkadot/rpc-provider": "11.2.1",
"@polkadot/types": "11.2.1",
"@polkadot/types-augment": "11.2.1",
"@polkadot/types-codec": "11.2.1",
"@polkadot/types-create": "11.2.1",
"@polkadot/types-known": "11.2.1",
"@polkadot/util": "12.6.2",
"@polkadot/networks": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@polkadot/x-bigint": "12.6.2"
}
}
}
6 changes: 0 additions & 6 deletions scripts/consts.js

This file was deleted.

Loading
Loading