-
Notifications
You must be signed in to change notification settings - Fork 8
Add svm bid data extraction from transaction #136
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 all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
015ccba
Add svm bid data extraction from transaction
danimhr 40d4c14
Address comments
danimhr f193260
Add anchor to pre-commit
danimhr b80793a
Fix dockerfile build
danimhr d112312
Add router to permission_keyx
danimhr d18d643
Address more comments
danimhr 66d5aa0
Address more comments
danimhr 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,8 @@ jobs: | |
- name: Install forge dependencies 5 | ||
working-directory: contracts/evm | ||
run: forge install nomad-xyz/ExcessivelySafeCall@be417ab0c26233578b8d8f3a37b87bd1fcb4e286 --no-git --no-commit | ||
- name: Install Anchor CLI | ||
run: npm install -g @coral-xyz/[email protected] | ||
- uses: pre-commit/[email protected] | ||
if: ${{ github.event_name == 'pull_request' }} | ||
with: | ||
|
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 |
---|---|---|
|
@@ -7,28 +7,11 @@ COPY contracts/evm contracts/evm | |
WORKDIR /src/contracts/evm | ||
RUN npm install | ||
|
||
# Build solana anchor | ||
FROM solanalabs/solana:v1.18.18 AS solana_build | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
apt-utils \ | ||
curl \ | ||
gcc \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN curl https://sh.rustup.rs -sSf > /tmp/rustup-init.sh \ | ||
&& chmod +x /tmp/rustup-init.sh \ | ||
&& sh /tmp/rustup-init.sh -y \ | ||
&& rm -rf /tmp/rustup-init.sh | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN ["/bin/bash", "-c", "source $HOME/.cargo/env"] | ||
FROM rust:${RUST_VERSION} AS build | ||
|
||
# Latest version supporting anchor | ||
RUN rustup default nightly-2024-02-04 | ||
RUN cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked | ||
WORKDIR /src | ||
COPY contracts/svm contracts/svm | ||
WORKDIR /src/contracts/svm | ||
RUN anchor build | ||
|
||
FROM rust:${RUST_VERSION} AS build | ||
|
||
# Set default toolchain | ||
RUN rustup default nightly-2024-04-10 | ||
|
@@ -51,9 +34,6 @@ RUN forge install OpenZeppelin/[email protected] --no-gi | |
RUN forge install Uniswap/permit2@0x000000000022D473030F116dDEE9F6B43aC78BA3 --no-git --no-commit | ||
RUN forge install nomad-xyz/ExcessivelySafeCall@be417ab0c26233578b8d8f3a37b87bd1fcb4e286 --no-git --no-commit | ||
|
||
# Add solana dependencies | ||
COPY --from=solana_build /src/contracts/svm/target/ /src/contracts/svm/target/ | ||
|
||
# Build auction-server | ||
WORKDIR /src | ||
COPY auction-server auction-server | ||
|
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.