-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat(source-scan): exports, needed for factory build.rs
#164
Closed
dj8yfo
wants to merge
13
commits into
near:source-scan-integration
from
dj8yfo:source-scan-factory-exports
Closed
feat(source-scan): exports, needed for factory build.rs
#164
dj8yfo
wants to merge
13
commits into
near:source-scan-integration
from
dj8yfo:source-scan-factory-exports
Conversation
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
near contract call-function as-read-only repro-fct-11.testnet contract_source_metadata json-args {} network-config testnet now {
"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-factory-2@sha256:a1341785c2cd7e048f72750b168d6ef1a6c256b7c63034b98f16ba1c178d2ce0",
"contract_path": "factory",
"source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0"
},
"link": "https://github.com/dj8yfo/factory-rust/tree/aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0",
"standards": [
{
"standard": "nep330",
"version": "1.2.0"
}
],
"version": "0.1.0"
} near contract call-function as-read-only donation-product.repro-fct-11.testnet contract_source_metadata json-args {} network-config testnet now {
"build_info": {
"build_command": [
"cargo",
"near",
"build"
],
"build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-factory-2@sha256:a1341785c2cd7e048f72750b168d6ef1a6c256b7c63034b98f16ba1c178d2ce0",
"contract_path": "product-donation",
"source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0"
},
"link": "https://github.com/dj8yfo/factory-rust/tree/aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0",
"standards": [
{
"standard": "nep330",
"version": "1.2.0"
}
],
"version": "0.1.0"
} near contract call-function as-read-only repro-fct-product-11.testnet contract_source_metadata json-args {} network-config testnet now {
"build_info": {
"build_command": [
"cargo",
"near",
"build"
],
"build_environment": "dj8yfo/sourcescan:0.x.x-dev-cargo-near-factory-2@sha256:a1341785c2cd7e048f72750b168d6ef1a6c256b7c63034b98f16ba1c178d2ce0",
"contract_path": "product-donation",
"source_code_snapshot": "git+https://github.com/dj8yfo/factory-rust.git?rev=aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0"
},
"link": "https://github.com/dj8yfo/factory-rust/tree/aeb5b4c22cf3a99524d6e549de5caadeb6dff9b0",
"standards": [
{
"standard": "nep330",
"version": "1.2.0"
}
],
"version": "0.1.0"
} |
dj8yfo
force-pushed
the
source-scan-factory-exports
branch
2 times, most recently
from
May 21, 2024 13:41
bdba514
to
210e8e3
Compare
dj8yfo
force-pushed
the
source-scan-factory-exports
branch
6 times, most recently
from
May 22, 2024 09:53
1eb9f37
to
7d2e11d
Compare
dj8yfo
force-pushed
the
source-scan-factory-exports
branch
from
May 24, 2024 15:57
f37a29c
to
fbed198
Compare
…SABLE_INTERACTIVE`
dj8yfo
changed the title
chore(source-scan): exports, needed for factory
feat(source-scan): exports, needed for factory Jun 7, 2024
build.rs
build.rs
frol
pushed a commit
that referenced
this pull request
Jun 19, 2024
fast-forward extension of #164 1. [Cargo.toml](https://github.com/dj8yfo/sample_no_workspace/blob/1fd39bcbe4d523ac26c3d07c1f49ecc0fc65d9e7/Cargo.toml) => `sample-crate-12.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 2. [Cargo.toml](https://github.com/dj8yfo/sample_workspace/blob/86aa6ccf4610f072cd207db86869e6324779780f/self-updates/update/Cargo.toml) => `sample-subpath-in-repo-6.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 3. [dir containing submodule](https://github.com/dj8yfo/sample_workspace_with_submodules/tree/4b466921b89df67d6e8d1f9956b55a677edb2497/self-updates) => `sample-crate-in-submodule-5.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 4. [Cargo.toml](https://bitbucket.org/dj8yfomule/scratch_check_git/src/finalization/Cargo.toml) => `bitbucket-scratch-4.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 5. factory [Cargo.toml](https://github.com/dj8yfo/factory-rust/blob/62a34ac86e6323ee6351b20fded7fc668b1e0277/factory/Cargo.toml) => `repro-fct-19.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 6. `repro-fct-19.testnet` => product `donation-product.repro-fct-19.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details> 7. product [Cargo.toml](https://github.com/dj8yfo/factory-rust/blob/62a34ac86e6323ee6351b20fded7fc668b1e0277/product-donation/Cargo.toml) => `repro-fct-product-19.testnet` <details> <summary>contract_source_metadata</summary><p> ```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" } ``` </p> </details>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
tested this against modified near-examples repo/tree/main:
Obtained 3 contracts by deploying :
1st & 2nd:
=>
repro-fct-11.testnet
anddonation-product.repro-fct-11.testnet
3rd:
cd product-donation cargo near deploy repro-fct-product-11.testnet
=>
repro-fct-product-11.testnet
2nd and 3rd have identical code hashes and contract source metadata:
section https://github.com/dj8yfo/factory-rust/blob/main/product-donation/Cargo.toml#L10-L14 was needed to deploy
product-donation
subfolder as a standalone contract (to check that metadata is same whilecargo near verify
is not implemented)