cargo-contract:aj-fix-compilation commitshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commits/aj-fix-compilation2020-08-13T21:23:43+01:00https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/ebc3bcab0ae055eaaaf07dbeddf4a78150b1afeaFix ManifestPath compiler errors2020-08-13T21:23:43+01:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/819a5bfa356ac8d065666d3542ca2edb54318522Update subxt and async-std dependencies (#66)2020-08-05T09:42:17+01:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/d28a743b32a77d2ab3ddb463d101e1fe91344b15Generate extended contract metadata (#62)2020-07-23T11:36:51+01:00Andrew Jonesascjones@gmail.com
* Generate main.rs with quote for passing extension metadata
* Update template to scale-info 0.3
* Rename ink_abi package to ink_metadata
* Temporarily change ink dependency branch to aj-extra-metadata
* Fix up metadata generation codegen
* Promote metadata mod to directory
* Move InkProjectExtension data structure over from ink! PR
* Revert "Generate main.rs with quote for passing extension metadata"
This reverts commit <a href="/sergejparity/cargo-contract/-/commit/0929ce8a781b5b421be663cbec4adbe052e9e6c4" data-reference-type="commit" data-original="0929ce8a" data-link="false" data-link-reference="false" data-project="588" data-commit="0929ce8a781b5b421be663cbec4adbe052e9e6c4" data-container="body" data-placement="top" title="Generate main.rs with quote for passing extension metadata" class="gfm gfm-commit has-tooltip">0929ce8a</a>
* Make it compile
* Flatten metadata struct
* Fmt
* Capture ink metadata from stdout
* Update comment
* Construct hardcoded metadata values
* Remove contract metadata builder, it is redundant
* Generate contract wasm hash
* Refactor: extract CrateMetadata for use in both metadata and build
* Fmt
* Rust version
* Contract version
* Add remaining optional enhanced metadata
* Move wasm build, make repo and license work
* Just use a String for the license
* Remove unused variants
* Read docs and homepage urls directly from manifest
* Read user defined metadata
* Fmt
* This PR no longer depends on an updated version of ink!
* Fix test error, refactor commands to use common method name
* Fmt
* Refactor crate metadata collection
* Remove ink_lang dependency from generated metadata crate
* Fmt
* Return metadata path from generation
* Fmt
* Test metadata wasm hash
* Fmt
* Read ink language version
* Ensure tmp dir is cleaned up after build
* Make cargo-contract tmp dir not hidden
* Fmt
* Test source compiler, contract name, contract version
* Use ink branch temporarily
* Test for authors and documentation
* Test user provided metadata section
* Drop automatically handles tempdir removal
* Remove redundant unwind bound
* Comment crate features
* Revert template to point at ink master
* Self
* Update comment
* Remove redundant commenthttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/efa9280cfd20a8bf616672067228cfc640ce1c23Update CI docker image (#64)2020-07-09T15:42:21+01:00Andrew Jonesascjones@gmail.com
* Update CI docker image`
* Rename ink_abi -> ink_metadata to fix testshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/5b60517de5156b1f8b0de3c9fc5d3b327ae630daAdd file header check, update file headers (#63)2020-07-09T13:35:37+01:00Andrew Jonesascjones@gmail.com
* Add file header check
* Update file headers replacing ink!https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/37d3929418efa3c20da8f2e9057c351d52c350e8Update to latest subxt release (#61)2020-06-25T10:53:31+01:00Andrew Jonesascjones@gmail.com
* Use latest subxt release
* Use subxt 0.9.0https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/80716750591f507cd0613a0cc6aea933709d4461Autogenerate abi/metadata package (#58)2020-06-24T10:55:34+01:00Andrew Jonesascjones@gmail.com
* Use into for constructing toml values
* Promote workspace mod to directory
* Fix import warnings
* Update license headers
* Remove abi package from template, generate it instead
* Extract contract name and generate files
* Fix some errors
* Insert ink_lang dependency
* Fmt
* ink! v2 compatibility
* Use new generate_metadata extern
* Warn the user if they have legacy abi_gen artifacts
* Move existing abi package check to the right place
* Remove v2 backwards compat, use ink! master in template
* Remove type_metadata dependency
* Fix up template for working with ink! master
* Update template lib.rs for ink! 3
* Fix template
* Fix template constructors
* Try again with template
* Move template files to templates dir
* Rename abi to metadata
* Rename abi constant and update warning
* More renames from abi to metadata
* Document generate_package function
* Fmt
* More abi to metadata renames
* Update template parity-scale-codec
* Bump versionhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/fbffaf6d6b972e935037e945ddc92462d54d372aExtract workspace to module directory (#59)2020-06-19T07:18:44+01:00Andrew Jonesascjones@gmail.com
* Use into for constructing toml values
* Promote workspace mod to directory
* Fix import warnings
* Update license headers
* Fmt
* Remove code from original PRhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/4a265c3da658604e3dbc857f8f8d6f791c3f83f6Add preferred default release profile settings (#55)2020-06-16T07:04:03+01:00Andrew Jonesascjones@gmail.com
* Add preferred defaults to `[profile.release]` section
* Add preferred profile.release defaults for contract build
* Remove [release.profile] section, update to scale-info release
* Fmt
* Fix remaining type-metadata reference in template
* Remove unused default impl of Profile
* OptLevel refactoring
* Indent test toml for readability
* Specify exact Lto values
* Make OptLevel consistent with Lto (no option)
* Revert to using type-metadata until ink! 3.0 releasehttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/06a9e8dde87e608a98e9bed3b4ee436e20fede14Add option to build with unmodified original manifest (#51)2020-05-22T20:05:52+01:00Andrew Jonesascjones@gmail.com
* Add option to build with unmodified original manifest
* Fmt
* Add unstable-options
* Fmt
* Warn during build if original-manifest enabled
* Fmt
* Update comment
* Fix metadata generationhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/76d02069945159c41959a44c5789fc0407008278Update cargo-xbuild (#54)2020-05-18T15:05:08+01:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/9f02b07195c622b63b4c6a9d8d71b06afbbe716cUpgrade to subxt v0.7.0 (#53)2020-05-13T10:36:34+01:00Andrew Jonesascjones@gmail.com
* Update installation instructions
* Upgrade to latest subxt
* Fmthttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/ee8facd5bddedc997c6c20bc5786a129eab0ed76Update dependencies2020-05-12T19:40:19+01:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/285a0495cba0e903b350907f92c671550d7e8ba3Fix LTO regressions in nightly toolchain (#52)2020-05-12T19:35:08+01:00Andrew Jonesascjones@gmail.com
* Upgrade cargo-xbuild to include LTO fix
* Bump version
* Update CHANGELOG
* Disable lto for metadata generation, enable for contract build
* Fmt
* Update changeloghttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/25b7234b0bac911438227fac482ca6470d88bef4Release v0.6.0 (#50)2020-03-26T08:39:17+00:00Andrew Jonesascjones@gmail.com
* Update subxt and bump version
* Update CHANGELOG
* Update README
* Fail build.rs when error, add diagnostics
* Rename template Cargo.toml files so they are not excluded from the package
It appears any dir with a Cargo.toml (not included in the workspace) is excluded from the package.
* Reorder env vars for clarity
* Add mention of crates.io release in CHANGELOG
* Valid category slugshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/ac0ddfa4f16361144fa6e057fc8ebed3ed7c5e4fRelease v0.5.0 (#48)2020-03-18T13:00:38+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/c38e134dc14d78e17b7d4aafb422d26ce89bc6a3Update template to ink! 2.0 dependencies (#47)2020-03-18T12:47:48+01:00Hero Birdrobin.freyler@gmail.com
* update template to ink! 2.0 dependencies
* fix abi_gen ink_lang version
* change version tag latest-v2.0 -> latest-v2
* fix Cargo version of ink! crateshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/47befe5ca0713edc5c7d156c5dbdde58a32655a3Fix saving artifact (#46)2020-03-09T15:39:15+00:00Denis Pisarevdenis.pisarev@parity.io
* change the CI docker image
* should have created the dir to store artifacts
* test saving artifact
* test ok, ready to mergehttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/1a8cd357a98eae9cc5488e23bb1c6e755b402f9dUpgrade dependencies (#45)2020-03-06T12:55:25+00:00Andrew Jonesascjones@gmail.com
* Update parity-scale codec to 1.2
* Update subxt version and use crates.io for sp-corehttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/208e0bed23816f6754e67e6530d71978eed5673echange file name of action file (#43)2020-03-03T15:38:52+01:00Stefanie Dollstefie.doll@googlemail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/ffe422660a4032feab5d25938110c22d9c600395Added github workflow for release bot (#42)2020-03-03T14:23:51+00:00Stefanie Dollstefie.doll@googlemail.com
To automatically post release updates to Riot roomhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/7da03c18fe0f163112e677828924a8aebdfadae2Save built artifact, it will be available in gitlab job (#17)2020-03-02T10:09:50+00:00Denis Pisarevdenis.pisarev@parity.io
* save built artifact, it will be available in gitlab job
* change the CI docker image
* if gitlab can rebase
* if gitlab can rebase to origin
* git creds
* whatever origin should work
* how to know that I'm on the right branch
* remove --release from testhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/f129a8015b4f1bde002e5f4e8ecaf2d1f2449146Update CHANGELOG for 0.4.1 release2020-02-26T16:55:14+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/d6fe3b04745eda1585d10721026e89a3148246c7Bump to v0.4.12020-02-26T16:36:30+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/2e8f9e6f9f1f19997e87f4120cde2d88a86cd3fdFail the build if xbuild fails (#41)2020-02-26T14:33:47+00:00Andrew Jonesascjones@gmail.com
* Fail the build if xbuild fails
* Debug log now redundant
* Add wasm-opt to release noteshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/ec118fff9b497e080c1b02f219d853949a7a8eadReduce wasm binary size with `cargo-xbuild` & removing `rlib` crate-type (#33)2020-02-26T10:02:50+00:00Andrew Jonesascjones@gmail.com
* WIP: building wasm with xargo
* Fix compilation errors
* Fmt
* Run commands with `rustup run nightly`
* Pass separate link-args in rustflags for xargo compat
* Warn user if 'rlib' crate type
* Colourise printed error
* Ignore Xargo.toml in template
* Refactor Xargo file generation, only remove if generated.
* WIP: Add rlib crate-type when generating metadata
* Add rlib when building metadata, remove when building wasm
* Fmt
* Make error bright red
* Fix generating without modified Cargo.toml
* Don't need to check nightly installed, the command will fail
* Only load toml when ready to modify: allow for multi usage
* Fmt
* Show error context
* Debug crate metadata
* Disable rlib by default for template
* Use correct working dir, not workspace root
* Use `cargo-xbuild` as lib
* Check for nightly channel
* Check for correct xbuild configuration
* Add xbuild config to template
* Fix xbuild config check and use latest xbuild version
* Fmt
* Restore tempfile dev dependency
* Move xbuild config to the end of the file
* Enable rlib by default in template
* Don't need nightly for generating the metadata
* Actually do need nightly, and just run plain cargo
* Not verbose: need to pass that flag through properly
* Fmt
* Fix tests
* Error when xbuild config not present, and update README
* Fix tests
* Remove references to xargo and update readmes
* Fmt
* Add error context to cargo invocation
* Fix tests compilation
* Fmt
* Nightly toolchain for CI
* Add docs for nightly toolchain requirement
* Link to nightly docs
* Disable backtrace on CI
* Make tests pass
* Install rust-src
* Disable backtrace to make tests pass
* Move args closer to invocation
* Create temporary Cargo.toml
* Rework temp manifest api
* Target dir is already absolute
* temp dir prefix
* xbuild config with sysroot path and explicit args
* Use custom xbuild branch
* Remove check for xbuild config
* Rewrite relatives paths when using temp file
* Fix dependency path rewrite
* Update cargo-xbuild
* workspaces: parse workspace member manifests
* WIP workspaces
* Implement temp workspace copy
* Fmt
* Rewrite bin relative path
* Handle package rename for contracts
* Fmt
* Pass rustflags by setting env var
* Fmt
* Use abs path for lib default
* Add 1 decimal place to file size
* Make generate-metadata work, introduces ManifestPath
* Fmt
* cargo update
* Rename manifest to workspace
* Fix test compilation and fmt
* Fix link
* Add prerequisites section to readme
* Remove rust-src component (added to image)
* Fix deploy build
* Use builder like method for amending root manifest
* List installed components
* Show active-toolchain and whether rust-src installed
* Install nightly rust-src (temporary)
* Fix metadata test
* Fmt
* Remove manual install of rust-src and diagnostics
* More doc comments
* Add verbosity flags
* Add verbosity flags to metadata command
* Fix working dir for generate-metadata
* Add verbosity to tests
* Add verbosity to tests
* Make url optional and cargo update
* Remove bk file from gitignore
* Bump version
* Fix comment and formatting
* Add CHANGELOG.mdhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/15afa2807f41632f46393131efefc06d831cb4abUpdate subxt for latest substrate compatibility2020-02-20T13:26:06+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/164ecde994a308e9b34ae145e9e3bfe8f600ebc0Upgrade dependencies (#30)2020-02-04T13:38:24+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/eb48c8d3f5449090f737fadfb53393b5f9c7a034Add wasm-opt optimization build step (#29)2020-02-04T13:30:24+00:00Andrew Jonesascjones@gmail.com
* Optimize wasm with Binaryen wasm-opt
* Friendly message and pretty colours
* Print optimized size compared to original
* Fmt
* Update src/cmd/build.rs
Co-Authored-By: <span data-trailer="Co-Authored-By:"><a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/557df8edfe28c1b73dfca387972b0ad4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com">Hero Bird</a> <<a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com">robin.freyler@gmail.com</a>></span>
* Update src/cmd/build.rs
Co-Authored-By: <span data-trailer="Co-Authored-By:"><a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/557df8edfe28c1b73dfca387972b0ad4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com">Hero Bird</a> <<a href="mailto:robin.freyler@gmail.com" title="robin.freyler@gmail.com">robin.freyler@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:robbepop@web.de" title="robbepop@web.de"><img alt="default avatar" src="https://secure.gravatar.com/avatar/2ff3a8bebdb18071a3a56d6202075e03?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:robbepop@web.de" title="robbepop@web.de">Hero Bird</a> <<a href="mailto:robbepop@web.de" title="robbepop@web.de">robbepop@web.de</a>></span>
https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/562123e62d29c648076af553c18e6e7c9f1b0fdareplace ink_lang2 with ink_lang (#28)2020-02-04T11:17:36+01:00Satyam Agrawalsatyam0499@gmail.com
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:34787127+SatyamSB@users.noreply.github.com" title="34787127+SatyamSB@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/8bd9d1712fccf14b2ee77bcac9f74ab8?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:34787127+SatyamSB@users.noreply.github.com" title="34787127+SatyamSB@users.noreply.github.com">Satyam agrawal</a> <<a href="mailto:34787127+SatyamSB@users.noreply.github.com" title="34787127+SatyamSB@users.noreply.github.com">34787127+SatyamSB@users.noreply.github.com</a>></span>
https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/01e60630b9af07709250236a8a19956fc1e1c6b3update template for upcoming merge of ink! PR #312 (#25)2020-02-03T13:53:40+00:00Hero Birdrobin.freyler@gmail.com
Link to PR: <a href="https://github.com/paritytech/ink/pull/312" rel="nofollow noreferrer noopener" target="_blank">https://github.com/paritytech/ink/pull/312</a>https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/e3ba2212522bfe58080b25931bb129f3a008f513Fix default features build (#26)2020-02-03T10:40:18+00:00Andrew Jonesascjones@gmail.com
* Check default features build in CI
* Hide extrinsics only stuff behind feature
* Make submit_extrinsic crate public
* Fmt
* Make build run on CI with default featureshttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/9e8fdf0aaa64713d14b2522fb356630dab5a9f5dUpdate to latest subxt with async/await (#20)2020-01-31T15:20:45+00:00Andrew Jonesascjones@gmail.com
* Update to latest subxt with async/await, latest substrate
* Factor out common extrinsic submission
* Fmthttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/46fea42e82a8c815521aec6e316e936565962d4achange the CI docker image (#19)2020-01-13T11:18:18+00:00Denis Pisarevdenis.pisarev@parity.iohttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/02081dda6ed0700de8490f6d65040e9c08171bb5Add CI badges and fix CI (#18)2020-01-09T10:53:15+00:00Andrew Jonesascjones@gmail.com
* Add CI badges and update title
* Revert to original title
* Try using different image
* Image path
* Install rustfmthttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/d02081b9820289cb499cd9eea56212776844ca92initial fail-fast CI with 3 stages (#16)2020-01-08T14:37:14+00:00Denis Pisarevdenis.pisarev@parity.io
* initial fail-fast CI with 3 stages
* build will happen nightly and on merges
* typo in name
* Format code
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:ascjones@gmail.com" title="ascjones@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/8f4ad867da5f4f14b72f9ba1689abddb?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:ascjones@gmail.com" title="ascjones@gmail.com">Andrew Jones</a> <<a href="mailto:ascjones@gmail.com" title="ascjones@gmail.com">ascjones@gmail.com</a>></span>
https://gitlab.parity.io/sergejparity/cargo-contract/-/commit/14aea50e3ad7d1a1e9b5e30525a0c68f8d06a702Update to latest subxt (#14)2020-01-07T15:58:30+00:00Andrew Jonesascjones@gmail.comhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/288c5427be76e077f5f02ef692e88b8aaad1f0d5Remove ink! abstraction layer (#13)2020-01-06T13:34:34+00:00Andrew Jonesascjones@gmail.com
* Update to latest subxt
* Update subxt and dependencies
* Remove ink abstraction layer
* Format codehttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/25df0b82bbfe50dc339bca28ca8a0a55829f49f0Implement instantiate command (#12)2019-12-18T14:38:10+00:00Andrew Jonesascjones@gmail.com
* Implement instantiate command
* Bump version
* Doc comments
* Fix invalid default gas value
* Default empty constructor data
* Require constructor data
* Hide instantiate behind deploy feature
* Rename deploy feature to extrinsics to include instantiate
* Format code
* Fix deploy test
* Instantiate test
* Update READMEhttps://gitlab.parity.io/sergejparity/cargo-contract/-/commit/bedf3fd43b9f1ff7d502ed2be003765b02c9998cAdd feature deploy (#8)2019-11-28T10:05:55+00:00Qinxuan Chenkoushiro.cqx@gmail.com
* Add feature deploy
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/43cf3ad074bd676058e15a585c837690?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com">koushiro</a> <<a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com">koushiro.cqx@gmail.com</a>></span>
* Update README about the deploy feature
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/43cf3ad074bd676058e15a585c837690?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com">koushiro</a> <<a href="mailto:koushiro.cqx@gmail.com" title="koushiro.cqx@gmail.com">koushiro.cqx@gmail.com</a>></span>