Skip to content

Commit

Permalink
rename build_environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Canvinus committed Mar 6, 2024
1 parent c38d9f5 commit aa84739
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions neps/nep-0330.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Standard {
}

type BuildInfo {
build_environment_ref: string, // reference to a reproducible build environment docker image, e.g. "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471" or something else pointing to the build environment.
build_environment: string, // reference to a reproducible build environment docker image, e.g. "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471" or something else pointing to the build environment.
source_code_snapshot: string, // reference to the source code snapshot that was used to build the contract, e.g. "git+https://github.com/near-DevHub/neardevhub-contract.git#335e89edec95d56a4744e7160c3fd590e41ec38e" or "ipfs://<ipfs-hash>"
contract_path: string|null, // relative path to contract folder within the source code e.g. "src/contract". Often, it is the root of the repository, so can be omitted.
build_command: string[], // the exact command that was used to build the contract, with all the flags e.g. ["cargo", "near", "build", "no-abi"].
Expand Down Expand Up @@ -92,7 +92,7 @@ type ContractSourceMetadata = {
}
],
build_info: {
build_environment_ref: "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471",
build_environment: "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471",
source_code_snapshot: "git+https://github.com/near-examples/nft-tutorial.git#39f2d2646f2f60e18ab53337501370dc02a5661c",
contract_path: "nft-contract",
build_command: ["cargo", "near", "deploy", "--no-abi"]
Expand Down Expand Up @@ -122,7 +122,7 @@ Calling the view function `contract_source_metadata`, the contract would return:
}
],
build_info: {
build_environment_ref: "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471",
build_environment: "sourcescan/cargo-near@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471",
source_code_snapshot: "git+https://github.com/near-examples/nft-tutorial.git#39f2d2646f2f60e18ab53337501370dc02a5661c",
contract_path: "nft-contract",
build_command: ["cargo", "near", "deploy", "--no-abi"]
Expand All @@ -149,10 +149,10 @@ pub struct Standard {

/// BuildDetails structure
pub struct BuildDetails {
pub build_environment_ref: String,
pub build_environment: String,
pub source_code_snapshot: String,
pub contract_path: Option<String>,
pub build_command: Vec<String>,
pub contract_path: Option<String>,
pub build_command: Vec<String>,
}

/// Contract metadata structure
Expand Down

0 comments on commit aa84739

Please sign in to comment.