Commit Graph

12 Commits

Author SHA1 Message Date
Amar Singh 8e0feecc14 Pallet grouping macros (#300)
* init using relative paths for now

* not working

* cannot define same types with alias names in 2 places relalias todo

* node compiles using impl oz system to abstract over frame system

* clean

* timestamp

* parachain info

* preimage and scheduler

* proxy and balances

* utility and parachain system

* use construct openzeppelin runtime

* generic runtime apis

* pause construct runtime until other macros validated by cross template usage

* hold runtime construction until inner macros validated

* evm template impl openzeppelin system

* revert back to generic construct runtime minimal wrapper for now

* use the trivial versions for the construct runtime and impl runtime api macros for now

* fix system grouping macro name

* consensus wrapper in generic template

* include ExistentialDeposit as explicit system parameter and add asset grouping for generic

* wip governance

* wip governnace for generic

* rm placeholders for runtime api and construct runtime until implemented

* fix evm template after latest changes to system grouping

* whitelist

* custom origins and referenda to finish governance grouping in generic template

* init xcm grouping for generic template queue pallets first

* more xcm

* replace direct paths with git url and branch for the macro dep

* update cargo locks and template fuzzer paths used for constants

* use consensus macro for evm template

* fix path in generic templates constant tests

* fix more test imports for the generic template

* fix template fuzzer build for generic template

* evm template governance and clean generic governance config as well

* impl xcm for evm template compiles w unused imports

* clean evm template commented out code and init assets impl for evm template

* progress on using impl assets for evm template

* error persists despite moving from impls into scope of macro expansion

* fix imports to fix errors for assets impl for evm template

* init evm works

* generic runtime compiles with most recent changeset

* update to latest macro changes

* move asset manager config into macro expansion as much as possible

* fix and clean

* update package name use git url and rename marker struct to OpenZeppelinRuntime

* compiles

* batch merge comment suggestions

* expose ProxyType and move defn from macro expansion to types file for each runtime

* generic single file config and minimal type aliases

* single file evm config need to clean imports and minimize type aliasing next

* clean evm template

* evm compilation post macro updates

* clean evm runtimes

* clean generic

* toml sort

* fix

* fmt fixes, supported the last changes

---------

Co-authored-by: Nikita Khateev <nikita.khateev@openzeppelin.com>
2024-11-04 09:59:47 -04:00
Özgün Özerk 033cf12f34 merge changes/fixes from v2 back into main (#333)
* update version for antora

* improving zombienet guide (#280)

* update docs version to 2.0.1 (#315)

* Change all references from rococo to paseo (#330)

* remove rococo-native featire from cargo.toml and other doc changes

* use evm compatible accounts, and fix properties for chain spec (#326)

* doc changes

* bump node and docs versions

* impl_runtime_apis need to be in the same file with construct runtime for the moment

* account type fix

* zombienet script update

* slot duration fix

---------

Co-authored-by: Nikita Khateev <nikita.khateev@gmail.com>
Co-authored-by: Özgün Özerk <ozgunozerk.elo@gmail.com>
Co-authored-by: Gustavo Gonzalez <gustavo.gonzalez@openzeppelin.com>

---------
2024-10-24 09:36:38 +03:00
Özgün Özerk a21d0e3648 Upgrade to polkadot-stable2407-1 from v1.13.0 (#299)
* generic template updated to stable2407-1

* evm template update wip

* evm template update finalized

* fuzzers finalized

* rebased onto v1.13.0
2024-09-17 13:45:11 +03:00
Özgün Özerk ba730fab22 Upgrade polkadot sdk v1.13.0 (#298)
* generic template updated to v1.13.0

* evm dependency upgrades

* evm dependency upgrades after moonbeam

* importing frontier updates 

* upgrade fuzzer to v1.11.0 

* upgrade fuzzer to v1.12.0

* generic template fuzzer updated

* evm fuzzer

---------

Co-authored-by: Nikita Khateev <nikita.khateev@openzeppelin.com>
2024-09-13 12:18:35 +03:00
Nikita Khateev 1b67c98311 Docs Update (#250)
* Updating the docs

* fix fmt

* suggestion

---------

Co-authored-by: Özgün Özerk <ozgunozerk.elo@gmail.com>
2024-08-07 11:41:55 -04:00
Nikita Khateev 526adb32c5 Bound GasLimitPovRatio to u64::MAX (#246)
* Bound GasLimitPovRatio to u64::MAX

* minor changes
2024-08-07 11:41:55 -04:00
Nikita Khateev 5e61a2d8a6 Fix for treasury config and benchmark (#240)
* Fix treasury config

* fix build

* Updated benchmarks

* fix generic fmt

* fix clippy

* fix comments

---------

Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
2024-08-07 11:41:55 -04:00
Nikita Khateev be0abb6bf1 #235 Updated benchmarks for the next release (#238)
Added benchmarking for EVM template.
Updated benchmarking for Generic Templates.
Fixed config for EVM template.
Added benchmarking utils.
2024-06-28 15:49:02 +04:00
Özgün Özerk 3c9696b982 Port the trivial audit fixes to evm (#236)
* port the trivial audit fixes to evm

* MAX_POV_SIZE is imported instead of declaring
2024-06-27 20:22:50 +03:00
Amar Singh b0c0a81219 [evm-template] XCM config for foreign assets (#219) 2024-06-18 11:42:17 -04:00
Amar Singh 7b1388b15c Precompiles (#201)
* Moved PR to monorepo

* Update evm-template/runtime/src/lib.rs

Co-authored-by: Amar Singh <asinghchrony@protonmail.com>

* minimal precompile config

* try fix remaining merge conflicts by accepting all incoming

* into merge again

* clippy fix

* use workspace dep as per suggestion

* try fix

* insert revert bytecode in evm account storage at genesis for precompile addresses

* toml sort

---------

Co-authored-by: Nikita Khateev <nikita.khateev@openzeppelin.com>
2024-05-31 16:04:14 -04:00
Özgün Özerk dc4f0129f1 Runtime lib restructure (#202)
* impl apis exported

* runtime version test moved to constants

* constants exported

* constant related errors fixed

* pallet configs exported

* xmc_config moved to configs

* types extracted
2024-05-31 20:06:18 +03:00