near / cargo-near

Cargo extension for building Rust smart contracts on NEAR
Apache License 2.0
33 stars 16 forks source link

feat(source-scan): docker checks #166

Closed dj8yfo closed 2 months ago

dj8yfo commented 3 months ago

fast-forward extension of #164

  1. Cargo.toml => sample-crate-12.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build", "--no-default-features", "--features", "near-sdk/expensive-debug" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "", "source_code_snapshot": "git+https://github.com/dj8yfo/sample_no_workspace.git?rev=1fd39bcbe4d523ac26c3d07c1f49ecc0fc65d9e7" }, "link": "https://github.com/dj8yfo/sample_no_workspace/tree/1fd39bcbe4d523ac26c3d07c1f49ecc0fc65d9e7", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "0.7.7" } ```

  1. Cargo.toml => sample-subpath-in-repo-6.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build", "--no-release", "--no-doc" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "self-updates/update", "source_code_snapshot": "git+https://github.com/dj8yfo/sample_workspace.git?rev=86aa6ccf4610f072cd207db86869e6324779780f" }, "link": "https://github.com/dj8yfo/sample_workspace/tree/86aa6ccf4610f072cd207db86869e6324779780f", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "1.7.7" } ```

  1. dir containing submodule => sample-crate-in-submodule-5.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build", "--no-release", "--no-doc" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "self-updates/update", "source_code_snapshot": "git+https://github.com/dj8yfo/sample_workspace_with_submodules.git?rev=4b466921b89df67d6e8d1f9956b55a677edb2497" }, "link": "https://github.com/dj8yfo/sample_workspace_with_submodules/tree/4b466921b89df67d6e8d1f9956b55a677edb2497", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "1.0.0" } ```

  1. Cargo.toml => bitbucket-scratch-4.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build", "--no-release", "--no-doc" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "", "source_code_snapshot": "git+https://feepdake27@bitbucket.org/dj8yfomule/scratch_check_git.git?rev=af9e835380053205f7fcc9b232a7ebb1c2c20694" }, "link": "https://bitbucket.org/dj8yfomule/scratch_check_git/src/finalization/", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "0.1.0" } ```

  1. factory Cargo.toml => repro-fct-19.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build", "--no-default-features", "--features", "near-sdk/expensive-debug" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "factory", "source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=62a34ac86e6323ee6351b20fded7fc668b1e0277" }, "link": "https://github.com/dj8yfo/factory-rust/tree/62a34ac86e6323ee6351b20fded7fc668b1e0277", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "0.1.13" } ```

  1. repro-fct-19.testnet => product donation-product.repro-fct-19.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "product-donation", "source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=62a34ac86e6323ee6351b20fded7fc668b1e0277" }, "link": "https://github.com/dj8yfo/factory-rust/tree/62a34ac86e6323ee6351b20fded7fc668b1e0277", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "0.2.9" } ```

  1. product Cargo.toml => repro-fct-product-19.testnet

    contract_source_metadata

    ```json { "build_info": { "build_command": [ "cargo", "near", "build" ], "build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-finalization@sha256:f86a095cb3daed21d0b5f86a4b5d9da0c0e26835f85c42678e1d460c9caa2c12", "contract_path": "product-donation", "source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=62a34ac86e6323ee6351b20fded7fc668b1e0277" }, "link": "https://github.com/dj8yfo/factory-rust/tree/62a34ac86e6323ee6351b20fded7fc668b1e0277", "standards": [ { "standard": "nep330", "version": "1.2.0" } ], "version": "0.2.9" } ```

dj8yfo commented 3 months ago

no_bin_linux perm_denied_linux

no_image_linux no_bin_mac

no_nested_virtualization_windows