Andrew Jones
31f9593324
Bump version of pallet-contracts-primitives for release ( #14288 )
...
* Bump version of `pallet-contracts-primitives` for release
* Cargo.lock
2023-06-02 15:01:45 +01:00
Andrew Jones
d5a5f3673e
Release sp-keyring and pallet-contracts-primitives 7.0.0 ( #12716 )
...
* Bump sp-keyring
* Bump pallet-contracts-primitives
* Cargo.lock
2022-11-16 10:07:56 +00:00
Andrew Jones
da46ab18ec
sp-runtime: make parity-util-mem dependency optional (#12657 )
...
* `sp-runtime`: make `parity-util-mem` dependency optional
* Use default-features = false for sp-runtime in sp-keyring
* Remove parity-util-mem from sp-core
* Cargo.lock
* Restore default-features for keyring dependency
2022-11-09 21:30:50 +00:00
Andrew Jones
072c81ee2a
Register dev rpc api for canvas parachain ( #1102 )
...
* Register dev api for canvas parachain
* Update Substrate
* Update Polkadot
2022-03-30 09:14:48 +00:00
Andrew Jones
6006968199
Update new whitelist pallet to new primitive versions ( #10953 )
2022-03-01 15:41:07 +01:00
Andrew Jones
a3a7fe9041
Release primitive crates ( #10937 )
...
* cargo set-version --bump major -p pallet-contracts-primitives
* cargo set-version --bump major -p sp-core
* cargo set-version --bump major -p sp-runtime-interface
* cargo set-version --bump major -p sp-wasm-interface
* cargo set-version --bump major -p sp-runtime
* cargo set-version --bump major -p sp-storage
* cargo set-version --bump major -p sp-rpc
* cargo set-version --bump major -p sp-io
* cargo set-version --bump major -p sp-trie
* cargo set-version -p sp-state-machine -- 0.12.0
* cargo set-version -p sp-externalities -- 0.12.0
* cargo set-version -p sp-keystore -- 0.12.0
* cargo set-version --bump major -p sp-keyring
* cargo set-version --bump major -p sp-version
* cargo set-version --bump major -p sp-tracing
* cargo set-version --bump major -p sp-application-crypto
* cargo set-version --bump major -p sp-arithmetic
* cargo unleash version bump-major -p sp-runtime-interface-proc-macro
* Add codec max-encoded-len feature to sp-arithmetic
* cargo unleash version bump-major -p sp-core-hashing-proc-macro
2022-03-01 14:35:23 +01:00
Andrew Jones
07d4a6743e
Bump sp-keyring ( #10790 )
2022-02-03 16:58:16 +00:00
Andrew Jones
9c9ea8da85
Serialize CodeUploadReturnValue deposit correctly ( #10526 )
2021-12-21 15:09:37 +00:00
Andrew Jones
e0742bcd6d
contracts: Add event field names ( #9896 )
...
* Add struct variant fields to contract Event
* Update comments and usages
* Fmt
2021-09-30 08:12:25 +00:00
Andrew Jones
3c0173b8fa
Remove unused sp-maybe-compressed-blob from sp-io ( #9849 )
2021-09-24 18:53:22 +01:00
e3eb3a0a12
Metadata v14 (companion to #3336 ) ( #564 )
...
* Remove event pallet::metadata attributes
* Add scale-info deps, TypeInfo derives, update call variants
* Update metadata runtime APIs
* Add missing scale_info dependency, update rococo runtime API
* Add missing scale_info dependency
* Remove pushed diener patches
* Cargo.lock
* Add missing scale-info dependencies
* Fixes
* Statemint runtime fixes
* Call struct variant empty matches
* Add missing scale-info dependency
* Fixes
* scale-info 1.0
* cargo update -p xcm
* update lock
* Update Cargo.lock
* update to latest polkadot
* remove rpc_http_threads
https://github.com/paritytech/substrate/pull/9737
* replace task executor with tokio handler
https://github.com/paritytech/substrate/pull/9737
* fix test compilation?
* Update Cargo.lock
* cargo update
* remove unused
* Update substrate and polkadot
* Update test/client/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 12:11:05 +02:00
4c7539cab5
Companion for #8615 : enrich metadata with type information ( #3336 )
...
* Use beefy branch with scale-info
* Add patches
* Sprinkle some TypeInfo derives
* Add some TypeInfo deriv
* Cargo.lock
* Derive TypeInfo and skip type params for Xcm types
* Cargo.lock
* Fix up scale_info bounds attributes
* Fix up dependencies
* Use my own beefy-primitives branch
* Bump BEEFY
* Update patches
* Add some scale-info dependencies and TypeInfo derives
* More TypeInfo decoration
* Update scale-info
* Some TypeInfos and remove more Event pallet::metadata
* Moar TypeInfos
* TypeInfos galore, fix up metadata runtime API
* TypeInfo
* TypeInfos, update other runtime metadata APIs
* Fix up Kusama, comment out some `usize` QueueSize parameter types
* Remove local diener patches
* Cargo.lock
* Cargo.lock
* Update to scale-info crates.io release
* Update primitive-types branch
* Update pallet-beefy to use custom branch
* Update other parity-common deps
* Update parity-common patches
* bump a bunch of deps in parity-common
* Remove parity-common patches
* Bump finality-grandpa version
* Cargo.lock
* Update scale-info to 0.9.1
* Add recursion_limit for runtime-parachains
* Add some scale_info attributes
* Cargo.lock
* Revert finality-grandpa bump
* Cargo.lock, scale-info update
* cargo update
* Make sure using patched version of finality-grandpa
* Use patched scale-info
* Update to scale-info 0.10.0
* Update finality-grandpa
* Cargo.lock
* Update beefy deps
* Update beefy deps again
* Add scale-info dependency
* Remove deprecated pallet::metadata attributes.
* Add some missing scale-info deps and derives
* Use some variant struct call syntax
* Add missing TypeInfo impl
* Add some more TypeInfo impls
* Convert some call enum struct variant constructors
* More scale-info deps and derives
* Call enum struct variants
* TypeInfo derives
* Call enum variant structs
* scale-info deps and derives
* Call enum variant struct constructors
* Use beefy-primitives scale-info feature
* Use grandpa-bridge-gadget master branch
* Remove finality-grandpa patch
* Add missing scale_info dependency and derive
* Fix up some call variant constructors
* Add missing scale_info dependency
* Fix some test errors
* More TypeInfo derives
* More call variant structs
* Call variant structs in tests
* Cargo.lock
* Fmt
* Fix more call struct variants
* Another call struct variant
* add scale-info/std features explicitly
* More call struct variants
* Add missing scale-info dependency
* Fmt
* review: activate scale-info/std where missing
* Remove some duplicate std feature activation
* review: add scale_info bounds() attr
* More call variant structs
* Remove recursion limit
* Update beefy-primitives
* Update beefy-primitives
* Fix simnet call variant struct errors
* Fmt
* cargo update -p beefy-primitives
* Add some missing TypeInfo derives
* Fix some call variants
* Fix some call variant underscores
* Cargo.lock
* Cargo.lock
* Add missing TypeInfo derive
* Add some more missing TypeInfo derives
* Even more missing TypeInfo derives
* Add TypeInfo derives to new xcm types
* Fmt
* Cargo.lock
* Add missing TypeInfo impls
* Cargo.lock
* More missing TypeInfos
* Fixes
* Cargo.lock
* Cargo.lock
* Add TypeInfo impls to xcm v2
* Update to scale-info 1.0
* Update finality-grandpa 0.14.4, patch for now
* Update beefy
* Remove patched finality-grandpa
* Add TypeInfo impl to Outcome
* Fixes
* Call variant struct
* Call variant struct
* Fix test
* Add TypeInfo impl
* Cargo.lock
* Cargo.lock
* Cargo.lock
* git checkout master Cargo.lock
* update Substrate
* Add missing scale-info features for beefy-primitives
* Fmt
* Remove check for now
* Update beefy-primitives, removes scale-info feature
* Update beefy-primitives again
Co-authored-by: adoerr <0xad@gmx.net >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-15 15:38:45 -05:00
49b6dfd2e5
Enrich metadata with type information ( #8615 )
...
* Cargo.lock after merge
* Restore scale-info feature
* Fully qualify TypeInfo derive
* Skip PendingSwap T
* Add missing skip_type_params attr
* metadata docs features
* Reduce pallet event attribute to struct
* Cargo.lock
* Update frame/balances/src/tests_composite.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Line widths check
* Cargo.lock
* Add scale-info/std
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Use `skip_type_params` to remove `TypeInfo` requirements on checks
* Revert "Remove unused Call metadata stuff"
This reverts commit 41311f85
* Skip BalanceSwapAction type parameter
* Remove unused event metadata macro
* Update frame-metadata
* Update primitives/npos-elections/compact/src/codec.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Manual TypeInfo for Header
* Remove TypeInfo requirement for consts in BoundedVec etc.
* Another TypeInfo bound removed
* review: fix indentation
* TypeInfo impls for Identity types
* Add some todos to add custom TypeInfo impls
* Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Add some todos to add custom TypeInfo impls
* Add a test for manual Data TypeInfo impl
* Add custom TypeInfo impl for Vote
* Era custom TypeInfo crimes
* Revert finality-grandpa version to 0.14.z
* review: renamed module to pallet_constants_metadata
* New line at end of file
* Add missing scale-info/std
* Update frame/support/src/storage/types/mod.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Remove StorageEntryType::Map unused flag
* Add missing scale-info dependency after merge
* SignedExtension::AdditionalSigned metadata
* Update frame-metadata, use abbreviated docs and args fields
* Update frame/example/Cargo.toml
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Add scale_info/std and remove unused scale-info dependency
* Remove scale-info dependency
* Remove treasury pallet::metadata
* Remove redundant Event test
* Add back scale-info as dev dependency
* fix error metadata when no error defined in decl_module
* Add Module3 to tests
* Fix metadata test
* Add docs feature to frame-support test
* WIP fixing pallet metadata test
* Remove redundant FunctionMetadata, FunctionArgumentMetadata as per https://github.com/paritytech/frame-metadata/pull/20
* Use main branch of frame-metadata
* Use patch of scale-info for latest changes
* Use latest patched scale-info
* Manual TypeInfo for DigestItem
* Manual TypeInfo for DigestItem
* Update scale-info
* Skip __Ignore variants for Error, depends on https://github.com/paritytech/scale-info/pull/117
* Named fields for FRAME v2 pallet Call variants
* Named fields for FRAME v1 pallet Call variants
* Add missing scale-info dependency
* WIP expand benchmark call variant
* fix benchmark with new function
create a new function for each variant of a pallet call.
This function is called by benchmarking macro in order not to break call
creation with unnamed argument
* fix tests
* more fix
* Fix staking tests
* Fix offchain workers calls
* Cherry pick rustfmt.toml from master
* cargo +nightly-2021-06-22 fmt --all
* Update to new call variant structs
* More call variant struct updates
* Remove unused import
* More call variant structs
* More call variant structs
* Even more call variant structs
* Mooar variant structs
* Evermore variant structs
* Call variant structs ad infinitum
* Fmt
* More call variants
* Last call variant
* Call variants all done?
* Fix SS58Prefix type
* Potential workaround for BitFlags<IdentityFields> TypeInfo
* Enable docs capturing for Call, Event, and Error types
* Fix IdentityFields TypeInfo
* Remove metadata-docs feature
* Add capture_docs = true for legacy Call, Event and Error types
* Fmt
* Fix metadata test type
* Update benchmarks with call struct variants
* Fmt
* More test fixes
* Fmt
* Fix benches
* Use latest capture_docs attr
* Latest scale_info
* Fmt
* review: change &Vec to &[]
* Remove pallet metadata attr
* review: remove commented out test code
* review: skip_type_params trailing comma suggestion
* Update to scale-info 0.10.0
* Update construct_runtime ui tests, different because of metadata TypeInfo impls
* Add some TypeInfo derives for UI tests
* Update storage ensure span ui stderrs
* Update call argument bound ui tests
Possibly changed because change from tuple to struct variants?
* Add scale-info dev dependency
* Update to latest finality-grandpa release
* review: missing newline
* review: missing scale-info/std
* review: remove duplicate scale-info/std
* review: remove fully qualified TypeInfo
* review: add missing scale-info/std
* review: remove unnecessary imports.
* Fmt
* Use crates.io RC version of frame-metadata
* Remove scale-info/std because it is a dev dependency
* Add missing scale_info dev-dependency for test
* Delete empty metadata folder
* Fix sp_std import
* review: improve manual UncheckedExtrinsic TypeInfo impl
* review: use full scale-info for dev-dependency
* Remove DefaultByteGetter impl
* review: derive TypeInfo for generic header
* Fmt
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update bin/node/executor/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/identity/src/types.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/support/src/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove redundant derive
* Simplify scale-info dependency
* Strip underscore prefix from call variant struct names
* Another underscore field
* More underscore fields
* Another underscore field
* Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
* Fmt
* Revert weights formatting
* Fix up some tests
* Fix up some tests for StorageEntryTypeMetadata
* scale-info dev dependency
* Fix test error
* Add missing TypeInfo derives
* Add back missing scale-info dependency
* Add back missing scale-info dependency
* Fix npos compact impls
* Cargo.lock
* Fmt
* Fix errors
* Fmt
* Fix renamed raw_solution field
* Fix error
* Fmt
* Fix some benchmarks
* Fmt
* Stray R
* Fix
* Add missing TypeInfos
* ui test fix
* Fix line widths
* Revert "ui test fix"
This reverts commit 2d15ec058a216e3f92d713f1174603a2bb1eac65.
* Upgrade to scale-info 0.11.0
* Revert "Upgrade to scale-info 0.11.0"
This reverts commit 047bb179085a0059c36cd20ab405f55cf0867e28.
* Add Runtime type
* Update to scale-info 0.12
* Update to scale-info 1.0
* Update frame-metadata to version 14.0.0
* Patch finality-grandpa until release available
* Fix metadata tests
* Fix metadata tests
* Fmt
* Remove patched finality-grandpa
* Fix tests, use scale_info imports
* Fix pallet tests
* Add BlockNumber TypeInfo bound
* ui test fix
* Cargo.lock
* Remove pallet metadata
* Cargo.lock
* Add missing scale-info dependency
* Remove pallet event metadata
* Fix error
* Fix collective errors
* Semicolol
* Fmt
* Remove another metadata attribute
* Add new variant to custom digest TypeInfo
* Fmt
* Cargo.lock from master
* Remove comma lol
* Fix example call error
* Fix example call error properly
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-15 11:40:41 +00:00
Andrew Jones
02930e098b
Allow additional trait bounds for #[pallet::constant] ( #9050 )
...
* Allow additional trait bounds for constants
* Add ui test for constants with additional trait bounds
* Update trait constant ui test
* Import syn::Error
* Use reference instead of cloning
* Add extra invalid bound ui test
* Out or order valid bounds
* Fix ui test
* Fix ui test
* Apply review suggestion about error message
2021-06-13 02:36:36 +02:00
Andrew Jones
74793a83a5
Delete legacy runtime metadata macros ( #9043 )
2021-06-08 11:16:56 +00:00
Andrew Jones
8e2b7b7c25
Remove grandpa StoredPendingChange shim ( #8788 )
...
* Remove grandpa StoredPendingChange shim
* Unused import
2021-05-12 16:35:33 +00:00
Andrew Jones
0e6481d01a
Migrate pallet-indices to pallet! ( #8465 )
...
* tmp add upgrade file
* Migrate pallet-indices to `pallet!`
* Delete temp upgrade file
* Fix some migration errors
* Fix some warnings
* Add serde bound, explicit balance type
* Module -> Pallet
2021-03-31 18:08:28 +00:00
Andrew Jones and Guillaume Thiolliere
e7cd48767a
Migrate pallet-sudo to pallet! ( #8448 )
...
* WIP convert sudo pallet to attribute macros
* Fix up tests and migrate mock
* Fix up genesis build
* Migrate doc comment example
* Update frame/sudo/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/sudo/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/sudo/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/sudo/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Allow unused metadata call_functions
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-03-26 14:54:08 +00:00
Andrew Jones and Pierre Krieger
b483c026e9
Remove redundant libp2p dependency from test runner ( #8455 )
...
* Upgrade test runner to use latest libp2p
* Update test-utils/test-runner/Cargo.toml
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* Update Cargo.lock
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2021-03-25 13:46:36 +00:00
Andrew Jones
fb649f19c2
Update to latest Substrate and Polkadot ( #348 )
...
* Update to latest Substrate and Polkadot
* log::debug!
* Add log dependecies to runtime
* Comma
* Fix tests
2021-03-03 13:20:17 +01:00
Andrew Jones and parity-processbot
50d1522a49
Companion for #7936 : Migrate pallet-balances to pallet attribute macro ( #2331 )
...
* Fix up balances Events
* "Update Substrate"
* Update substrate
Co-authored-by: parity-processbot <>
2021-02-10 13:50:51 +00:00
Andrew Jones and David
8481e9a33a
Migrate pallet-balances to pallet attribute macro ( #7936 )
...
* Initial migration of balances pallet
* Fix some errors
* Remove unused imports
* Formatting and removing some todos
* Delete Subtrait
* Add genesis builder impls for tests
* Fix GenesisConfig impl
* Make set_balance visible to tests, rename RawEvent to Event
* Fix tests with Event rename etc.
* More test RawEvent renames
* Even more RawEvent renames
* Rename module to pallet in comments
* Add PalletInfo impl to avid storage collision, fixes tests
* Apply review suggestion: remove trailing a
Co-authored-by: David <dvdplm@gmail.com >
* BalancesEvent alias
* Remove BalancesEvent alias
* Review suggestion: remove redundant comment
* Apply review suggestion: make vis super
* Fis doc links
* Add RawEvent alias
* Add missing Instance parameter to deprecated RawEvent alias
* Fix RawEvent deprecation warnings
Co-authored-by: David <dvdplm@gmail.com >
2021-02-10 12:33:25 +00:00
Andrew Jones
ef6615ba65
Remove PalletInfo impl for () ( #8090 )
2021-02-09 16:45:59 +00:00
Andrew Jones and Guillaume Thiolliere
7343c974a2
Use construct_runtime in tests, remove default PalletInfo impl ( #2409 )
...
* Claims
* Crowdloan
* Runtime common
* Parachains registrar
* Impls
* Purchase
* Slots
* parachains runtime mock
* Use MockGenesisConfig in tests
* Update runtime/common/src/claims.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-02-09 16:36:15 +00:00
Andrew Jones
e5ef38330d
Migrate more pallet tests to construct_runtime ( #8051 )
...
* Migrate bounties tests to use construct_runtime
* Migrate contracts tests to use construct_runtime
* Migrate democracy tests to use construct_runtime
* review: rename TreasuryEvent -> TreasuryError
2021-02-04 16:34:15 +00:00
82d9d5adcf
Pallet proc macro doc improvements ( #7955 )
...
* Fix weight syntax in comments
* Mention to add `IsType` bound
* Link to subsee
* Fix link
* Update frame/support/procedural/src/pallet/parse/call.rs
Co-authored-by: David <dvdplm@gmail.com >
* Apply review suggestion from @dvdplm, make StorageInstance doc link
* fix ui test
Co-authored-by: David <dvdplm@gmail.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-01-25 17:18:38 +00:00
ee85121c57
Migrate some more pallets to construct_runtime ( #7975 )
...
* WIP converting balances tests to construct_runtime
* Converting balances tests_local to construct_runtime
* Fix up system and balances Events
* Use static Call instance in tests
* Migrate indices to construct_runtime
* Migrate babe test to construct_runtime
* Update frame/indices/src/mock.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/babe/src/mock.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/babe/src/mock.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove redundant import
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-01-25 15:56:07 +00:00
71ef82afbc
Migrate frame-system to pallet attribute macro ( #7898 )
...
* PRINT_PALLET_UPGRADE=1 cargo check -p frame-system
* Copy attributes, imports, mods and type defs
* Copy Config trait
* Annotate constants
* Tabify
* Migrate hooks
* Upgrade template rename interface to hooks
* Migrate pallet call
* Migrate Event
* Migrate Error
* Migrate Origin
* Remove optional validate_unsigned
* Remove remaining TODO_MAYBE_WHERE_CLAUSE
* Overwrite original lib.rs with migrated lib2.rs.
* Add required Event IsType constraint
* Add disable supertrait check
* Fix leftover Trait trait
* Add missing pallet prefix for weight attributes
* Add missing Error type parameter
* Add missing Hooks type parameter
* Private call visibility, restore original helper types and helpers etc
* Fix hooks type parameter
* Rename RawEvent to Event
* Add missing storage type annotations
* Remove unused imports
* Add GenesisConfig helpers for compat
* Fix unused import warnings
* Update frame/support/procedural/src/storage/print_pallet_upgrade.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix test errors and warnings
* Fix remaining errors and warnings
* Apply review suggestion: fix formatting
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Apply review suggestion: annotate BlockLength as constant
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Apply review suggestion: add triling comma
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Apply review suggestion: add triling comma
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Apply review suggestion: add trailing comma
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Apply review suggestion: fix storage type indentation
* Apply review suggestion: remove redundant Origin type alias
* Add missing codec derives for BlockLength
* Restore module docs
* Module -> Pallet renamel
* Revert "Update frame/support/procedural/src/storage/print_pallet_upgrade.rs"
This reverts commit d2a2d5b6
* Apply review suggestion: merge crate imports
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Revert "Upgrade template rename interface to hooks"
This reverts commit 306f0239
* Single line import
* Refactor generated genesis build
* Import sp_io::storage
* Revert previous, fully qualify sp_io::storage
* Fix ui tests
* Fix errors after merge, missing changes
* Set UpgradedToDualRefCount to true in genesis build
* Annotated Runtime version with constant, exposing it via metadata
* Add metadata attribute
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-01-20 10:48:19 +00:00
Andrew Jones
f1b8ee4e6e
sp-transaction-pool-api: make default std, remove unused sp-core dependency ( #4335 )
...
* transaction-pool-api: use primitives/std
* transaction-pool-api: make primitives default-features = false
* transaction-pool-api: make default feature std
* transaction-pool-api: remove redundant primitives dependency
2019-12-09 18:47:57 +01:00
Andrew Jones
4c2ba5b71f
Fix sp-session typo ( #4273 )
...
* Fix sp-session typo
* Remove erroneous whitespaces
* Don't mess with the file, editor
2019-12-02 20:24:25 +01:00
Andrew Jones
aae31831fb
Custom deserialize impl for ApisVec ( #3471 )
2019-08-26 09:37:42 +02:00
Andrew Jones
65a7629361
Derive CompactAs for Perbill/mill/U128 ( #3327 )
...
* Derive CompactAs for Perbill/mill/U128
* Increment impl_version
2019-08-07 21:48:30 +02:00
Andrew Jones
407970406d
wasm-builder: allow default cargo nightly ( #3195 )
...
* wasm-builder: use default cargo command if nightly is default toolchain
* wasm-builder: use get_nightly_cargo in prereq check
* wasm-builder: fix check_nightly_installed
* wasm-builder: add cargo command builder struct
* wasm-builder: remove unnecessary stuff
* wasm-builder: just use Strings
2019-07-24 21:43:55 +02:00
Andrew Jones and Sergei Pepyakin
770b94c20c
srml-contract: test calls not dispatched if tx fails ( #2917 )
...
* Test for not dispatching calls if top level execution fails
* Add comment to test
* Only dispatch calls if contract execution succeeded
Note that `calls` should be empty in this case, but this makes things
clearer
* Add comment to test
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
* Revert: Only dispatch calls if contract execution succeeded
2019-06-24 17:38:49 +02:00
Andrew Jones and thiolliere
bdc1502411
Remove dependency on error_chain ( #277 )
...
* Convert validation error
* Convert wasm_executor error
* Convert block evaluation error
* Convert collation errors and the compilation
* Remove error-chain dep from service
* Remove unused Result type
* Remove unused error variants
* Remove redundant intos
* Add missing comments
* Update validation/src/collation.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Fix new error variant
2019-06-05 10:25:08 +02:00
Andrew Jones
b2ea94d73d
Replace compile_fail doc tests with trybuild ( #2588 )
...
* WIP: use trybuild for compile tests
* declaring_old_block
* declaring_own_block_with_different_name
* adding_self_parameter
* adding_at_parameter
* invalid_api_version
* invalid_api_version2 & invalid_api_version3
* missing_block_generic_parameter
* Restore main functions
* missing_path_for_trait
* empty_impl_runtime_apis_call
* empty_impl_runtime_apis_call
* type_reference_in_impl_runtime_apis_call
* impl_incorrect_method_signature
* impl_two_traits_with_same_name
* changed_at_unknown_version
* changed_at > changed_in
* fix test
2019-05-16 09:13:46 +02:00
Andrew Jones
e5627e2480
Prevent divide by zero panic with checked_div ( #2575 )
2019-05-14 11:54:56 +02:00
Andrew Jones
9fc1db3280
Use saturating_pow for max digest interval ( #2506 )
...
* Use saturating_pow for max digest interval
* Impl version
2019-05-08 13:20:43 +02:00
Andrew Jones
9fdd7df582
Default rent allowance to max_value ( #2461 )
...
* Default rent allowance to max_value
* Bump spec version
* Fix exec test
* Address grumbles
* Make test comment less specific
* Default rent_allowance to max_value in exec
* Check default balance on creation
* Check default balance in deploy
* Use hex constant
Co-Authored-By: ascjones <ascjones@gmail.com >
* More specific code const
Co-Authored-By: ascjones <ascjones@gmail.com >
* Update srml/contract/src/tests.rs
Co-Authored-By: ascjones <ascjones@gmail.com >
* Update srml/contract/src/tests.rs
Co-Authored-By: ascjones <ascjones@gmail.com >
* Update srml/contract/src/tests.rs
Co-Authored-By: ascjones <ascjones@gmail.com >
2019-05-04 13:59:14 +02:00
Andrew Jones
3a87e9c8bc
Restrict patch version of syn ( #2327 )
2019-04-19 08:52:22 +02:00
Andrew Jones
7f59cdb900
Replace error-chain for client error ( #2231 )
...
* WIP: convert client error
* Remove error_chain for client error
* Ignore tx-pool error deprecation warning
* Update Cargo.lock files
* Fix tests
* Increment impl_version
* Derive From impls, remove allow(missing_docs)
* Remove space
* Remove redundant into()s
* Blockchain Error source
* Bump impl version
2019-04-11 21:33:43 +02:00
Andrew Jones
1e0c1d8850
Introduce ext_println to contract runtime ( #2239 )
...
* Implement `ext_println` in contract runtime
* Only allow contracts to import `ext_println` on dev chains
* Configure dev chain to allow contracts with `ext_println`
* Increment spec version
* Docs
* Rename config to the more specific enable_println
2019-04-11 15:49:17 +02:00
Andrew Jones
03f3fb1442
Contract import/export validation ( #2203 )
...
* Reject validation of contract with unknown exports
* Validate imports eagerly
* Increment spec version
2019-04-06 13:23:56 +02:00
Andrew Jones
b3931d3e2a
Remove redundant Ok(()) and explicitly specify StorageKey buffer type ( #2188 )
2019-04-03 11:59:03 +02:00
Andrew Jones
4c115e3f2d
Replace Vec<u8> with [u8; 32] for contract storage key ( #2184 )
...
* Replace Vec<u8> with [u8; 32] for contract storage key
* Read storage keys from sandbox memory into fixed size buffer
* Increment `impl_version`
2019-04-03 10:12:54 +02:00
Andrew Jones
0a25c425b0
Egress queue validation in runtime ( #155 )
...
* Add fn to validate egress routes
* Add blank tests
* Reject routing to non existent parachains
* Reject if routing to self
* Reject if egress route parachain ids out of order
* Extract method for checking egress routes
* Reject empty egress routes
* Extract test method
* Generate empty trie root constant in build script
* Remove unwraps
* Hardcode EMPTY_TRIE_ROOT and add test to verify
* Const not pu
2019-02-25 13:44:35 -05:00
Andrew Jones
7a619ea222
Rename polkadot-consensus -> polkadot-validation ( #151 )
...
* Initial rename of consensus -> validation
* Rename crate imports
* network: rename consensus to validation
* network: rename consensus in comments and logs
* Grumbles
* Rename tests consensus -> validation
2019-02-21 14:00:06 -05:00
Andrew Jones
22aa8482ae
Use BandwidthLogging struct from libp2p ( #1847 )
...
* Delete existing
* Use bandwidth from libp2p
2019-02-21 19:19:25 +01:00
Andrew Jones
0242cee284
Update to latest jsonrpc-derive: fixes aliases ( #1689 )
2019-02-05 14:11:04 +00:00
Andrew Jones
822c7ded45
Convert to jsonrpc-derive, use jsonrpc-* from crates.io ( #1679 )
...
* use local version of jsonrpc to test
* Convert rpcs to test out in progress jsonrpc-derive api
* Revert "Convert rpcs to test out in progress jsonrpc-derive api"
This reverts commit 69231784171180d9bdb1bde1fcfd20f233357b17.
* Convert to new jsonrpc-derive macro
* Add RPC trait Metadata comment
* Break up long pubsub attr lines
* Update to 10.0.1 jsonrpc-* from crates.io
* Remove typed::Subscriber prefixes
* Remove empty comment
2019-02-04 20:18:24 +01:00
Andrew Jones
c36998aeaf
Default boot_nodes to local node in build-spec ( #1181 )
...
* Default to local bootnode with build-spec
* Rexport libp2p stuff via network crate
* Remove unused imports and fix where formatting
* Remove spurious blank lines
* Remove unnecessary else clause
2018-12-01 16:47:40 +08:00
Andrew Jones
db075b57f0
RPC: expose chain spec properties ( #1104 )
...
* Add properties to chain spec
* Read properties as serde_json::Value
* Use a serde json::map::Map directly for properties
* Add type alias for json Map
* Update chain_spec.rs
2018-11-12 19:58:44 +01:00