forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: deprecate auction, metaplex, token-vault * chore: rebuild lock file * chore: adding mpl token vault back to toml file * chore: removing build-metaplex from ci * chore: removing build-metaplex from ci * chore: adding token-vault to testing utils * chore: adding token-vault to testing utils * chore: adding crates * chore: clippy * chore: clippy * chore: clippy * chore: clippy * chore: remove package from local test context * chore: clippy * chore: clippy * chore: clippy * chore: major clippy * chore: major clippy * chore: clippy * chore: test * chore: test * chore: try to fix auctioneer ci * chore: update lock * chore: fixing token-metadata tests * chore: fixing token-metadata tests * chore: fixing builds failing on devdep error * chore: fixing builds failing on devdep error * chore: fixing builds failing on devdep error * chore: fixing builds failing on devdep error * chore: fixing builds failing on devdep error * chore: fixing builds failing on devdep error * chore: bumping solana versions * chore: hopefully final changes before all tests passing * chore: update ci for token-metadata * chore: update ci for token-metadata * chore: merge conflicts * chore: fixing auctioneer tests * chore: fixing auctioneer tests * chore: fix lockfile * chore: delete unneeded deps in toml file, deprecate test and associated code * chore: delete unneeded deps in toml file, deprecate test and associated code * add additional deprecation messages * generate JS lib * remove deprecated function warning to soothe clippy * chore(fixed-price-sale/js): generate JS code * rebase * chore: regen token entangler * chore: merge conflivts * chore: merge conflivts * chore: finally changes for fps * chore: fixing fps tests * chore: updated lock * chore: trying to fix timeouts * chore: trying to fix timeouts * chore: merge conflicts * chore: merge conflicts * feat: hydra tests passing Co-authored-by: Weiyuan Wu <[email protected]> Co-authored-by: Samuel Vanderwaal <[email protected]>
- Loading branch information
1 parent
a7fb06e
commit d0de9f4
Showing
110 changed files
with
12,381 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ body: | |
- core | ||
- fixed-price-sale | ||
- gumdrop | ||
- hydra | ||
- nft-packs | ||
- token-entangler | ||
- token-metadata | ||
|
This file contains 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 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,16 @@ | ||
# Implicit dependencies | ||
# - actions/checkout@v2 | ||
# - ./.github/actions/install-linux-build-deps | ||
# - ./.github/actions/install-solana | ||
# - ./.github/actions/install-rust | ||
|
||
name: Build Hydra | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: build-hydra-program | ||
working-directory: ./hydra/program | ||
run: | | ||
cargo +${{ env.RUST_STABLE }} build-bpf --version | ||
cargo +${{ env.RUST_STABLE }} build-bpf --bpf-out-dir ../../target/deploy/ | ||
shell: bash |
This file contains 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 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,86 @@ | ||
name: Integration Hydra | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
SOLANA_VERSION: 1.10.35 | ||
RUST_TOOLCHAIN: stable | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
# Set job outputs to values from filter step | ||
outputs: | ||
core: ${{ steps.filter.outputs.core }} | ||
package: ${{ steps.filter.outputs.package }} | ||
workflow: ${{ steps.filter.outputs.workflow }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# For pull requests it's not necessary to checkout the code | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
core: | ||
- 'core/**' | ||
package: | ||
- 'hydra/**' | ||
workflow: | ||
- '.github/workflows/integration-hydra.yml' | ||
build-and-integration-test-hydra: | ||
runs-on: ubuntu-latest | ||
env: | ||
cache_id: program-hydra | ||
needs: changes | ||
if: ${{ needs.changes.outputs.core == 'true' || needs.changes.outputs.package == 'true' || needs.changes.outputs.workflow == 'true' }} | ||
steps: | ||
# Setup Deps | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/install-linux-build-deps | ||
- uses: ./.github/actions/install-solana | ||
with: | ||
solana_version: ${{ env.SOLANA_VERSION }} | ||
- uses: ./.github/actions/install-rust | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
|
||
# Restore Cache from previous build/test | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
./rust/target | ||
key: ${{ env.cache_id }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUSTC_HASH }} | ||
|
||
# Build Rust Program | ||
- uses: ./.github/actions/build-hydra | ||
- uses: ./.github/actions/build-token-metadata | ||
|
||
# Install JS SDK deps | ||
- uses: ./.github/actions/yarn-install-and-build | ||
with: | ||
cache_id: sdk-hydra | ||
working_dir: ./hydra/js | ||
build_token_metadata: true | ||
|
||
# Run integration test | ||
- name: start-local-test-validator | ||
working-directory: ./hydra/js | ||
run: yarn run api:gen && yarn run build && DEBUG=amman* yarn amman:start && DEBUG=mpl* yarn test && yarn run amman:stop | ||
|
||
# - name: integration-test-hydra-program | ||
# id: run_integration_test | ||
# working-directory: ./hydra/js | ||
# run: DEBUG=mpl* yarn test | ||
|
||
# - name: stop-local-test-validator | ||
# working-directory: ./hydra/js | ||
# run: yarn amman:stop |
This file contains 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,79 @@ | ||
name: Program Hydra | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
SOLANA_VERSION: 1.10.25 | ||
RUST_TOOLCHAIN: stable | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
# Set job outputs to values from filter step | ||
outputs: | ||
core: ${{ steps.filter.outputs.core }} | ||
package: ${{ steps.filter.outputs.package }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# For pull requests it's not necessary to checkout the code | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
core: | ||
- 'core/**' | ||
package: | ||
- 'hydra/**' | ||
build-and-test-hyrdra: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.core == 'true' || needs.changes.outputs.package == 'true' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
cache_id: program-hydra | ||
|
||
steps: | ||
# Setup Deps | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/install-linux-build-deps | ||
- uses: ./.github/actions/install-solana | ||
with: | ||
solana_version: ${{ env.SOLANA_VERSION }} | ||
- uses: ./.github/actions/install-rust | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
|
||
# Restore Cache from previous build/test | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
./rust/target | ||
key: | ||
${{ env.cache_id }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ | ||
env.RUSTC_HASH }} | ||
|
||
# Run lint checks | ||
- uses: ./.github/actions/verify-rust | ||
with: | ||
working-directory: ./hydra/program | ||
|
||
# Build deps | ||
- uses: ./.github/actions/build-token-metadata | ||
|
||
# Run test | ||
# - name: test-hydra-program | ||
# id: run_test | ||
# working-directory: ./hydra/program | ||
# run: | | ||
# cargo +${{ env.RUST_TOOLCHAIN }} test -- --nocapture --test-threads 1 | ||
# cargo +${{ env.RUST_TOOLCHAIN }} test-bpf --version | ||
# cargo +${{ env.RUST_TOOLCHAIN }} test-bpf -- --nocapture --test-threads 1 |
This file contains 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,53 @@ | ||
name: SDK Hydra | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
SOLANA_VERSION: 1.10.35 | ||
RUST_TOOLCHAIN: stable | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
# Set job outputs to values from filter step | ||
outputs: | ||
core: ${{ steps.filter.outputs.core }} | ||
package: ${{ steps.filter.outputs.package }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# For pull requests it's not necessary to checkout the code | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
core: | ||
- 'core/**' | ||
package: | ||
- 'hydra/**' | ||
build-lint-and-test-hydra: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.core == 'true' || needs.changes.outputs.package == 'true' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Setup Deps | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/install-linux-build-deps | ||
- uses: ./.github/actions/install-solana | ||
with: | ||
solana_version: ${{ env.SOLANA_VERSION }} | ||
- uses: ./.github/actions/install-rust | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
|
||
- uses: ./.github/actions/yarn-install-and-verify | ||
with: | ||
cache_id: sdk-hydra | ||
working_dir: ./hydra/js | ||
build_token_metadata: true | ||
skip_test: true |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -29,3 +29,4 @@ num = "~0.4" | |
num-derive = "~0.3" | ||
num-traits = "~0.2" | ||
borsh = "~0.9.1" | ||
|
This file contains 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 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,40 @@ | ||
use clap::{crate_description, crate_name, crate_version, App, Arg, SubCommand}; | ||
use solana_clap_utils::input_validators::{is_url, is_valid_signer}; | ||
|
||
pub const SHOW: &str = "show_hydra"; | ||
|
||
pub fn init_api<'a, 'b>() -> App<'a, 'b> { | ||
App::new(crate_name!()) | ||
.about(crate_description!()) | ||
.version(crate_version!()) | ||
.arg( | ||
Arg::with_name("keypair") | ||
.long("keypair") | ||
.value_name("KEYPAIR") | ||
.validator(is_valid_signer) | ||
.takes_value(true) | ||
.global(true) | ||
.help("Filepath or URL to a keypair"), | ||
) | ||
.arg( | ||
Arg::with_name("rpc") | ||
.long("json_rpc_url") | ||
.value_name("URL") | ||
.takes_value(true) | ||
.global(true) | ||
.validator(is_url) | ||
.help("JSON RPC URL for the cluster [default: devnet]"), | ||
) | ||
.subcommand( | ||
SubCommand::with_name(SHOW) | ||
.about("Show Hydra") | ||
.arg( | ||
Arg::with_name("hydra_address") | ||
.long("hydra_address") | ||
.global(true) | ||
.value_name("NAME") | ||
.takes_value(true) | ||
.help("The Hydra Address. Note this must be the parent address not the mint addresses"), | ||
) | ||
) | ||
} |
Oops, something went wrong.