-
Notifications
You must be signed in to change notification settings - Fork 3
include permissions account in instructions #42
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3496275
delete oracle file from git
ayazabbas 83ec7b8
include permissions account in instructions
ayazabbas 438c3d7
bump app version, update poetry version
ayazabbas 7130b11
update solana version
ayazabbas 23bf2a9
add pydoc
ayazabbas 15ef39e
run poetry lock
ayazabbas 66b275c
linting
ayazabbas d9713bf
remove ecr build
ayazabbas 10ebc91
remove useless if-else
ayazabbas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,41 +20,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/python-poetry | ||
- run: sh -c "$(curl -sSfL https://release.solana.com/v1.10.35/install)" | ||
- run: sh -c "$(curl -sSfL https://release.solana.com/v1.18.17/install)" | ||
- run: echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | ||
- run: poetry run pytest | ||
env: | ||
TEST_MODE: "1" | ||
DEV_MODE: "1" | ||
build-and-push-ecr: | ||
runs-on: ubuntu-latest | ||
needs: [run-tests] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr | ||
aws-region: eu-west-2 | ||
- uses: docker/login-action@v2 | ||
with: | ||
registry: public.ecr.aws | ||
env: | ||
AWS_REGION: us-east-1 | ||
- run: docker context create builders | ||
- uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: latest | ||
endpoint: builders | ||
- uses: haya14busa/action-cond@v1 | ||
id: image_tag | ||
with: | ||
cond: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
if_true: ${{ github.ref_name }} | ||
if_false: ${{ github.sha }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: public.ecr.aws/pyth-network/${{ github.event.repository.name }}:${{ steps.image_tag.outputs.value }} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lint: | ||
poetry run isort --profile=black program_admin/ tests/ | ||
poetry run black program_admin/ tests/ | ||
poetry run pyright program_admin/ tests/ | ||
poetry run pyflakes program_admin/ tests/ | ||
|
||
install: | ||
poetry install | ||
|
||
test: | ||
poetry run pytest |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
7 changes: 7 additions & 0 deletions
7
program_admin/program_authority_escrow/instructions/__init__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from .accept import AcceptAccounts, accept | ||
from .propose import ProposeAccounts, propose | ||
from .revert import RevertAccounts, revert | ||
|
||
assert AcceptAccounts | ||
assert accept | ||
assert ProposeAccounts | ||
assert propose | ||
assert RevertAccounts | ||
assert revert |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you removed the optional wrapper around ref auth permissions, but here it implies that it can be nil, right?