Skip to content

Commit

Permalink
Mesh 2188/new ticker approach (#1694)
Browse files Browse the repository at this point in the history
* Change register_ticker to register_unique_ticker

* Compile all pallets

* Asset and compliance benchmarks

* Most benchmarks

* Compile all benchmarks

* Fix asset benchmarks

* Adjust Benchamarks

* Add link_ticker_to_asset_id extrinsic; Add missing benchmarks

* remove asset rpc

* Add asset_trasferReport

* Add nft transfer_report

* run cargo fmt

* Change ticker to AssetID in asset_pallet tests

* Change tests to use asset_id

* Fix more tests

* Add wrapper for AssetID type

* Fix typo

* Fix asset_tests

* Fix benchmarks to use wrapper AssetID

* Fix create_nft_collection

* Change tests to use AssetID

* Change all test to use AssetID

* Change nft create collection benchmark

* Remove useless tests

* Update schema.json

* Change AssetID generation

* Remove asset_id from offchain legs

* Add per account nonce

* Bump rpc versions; Emmit event for ticker transferring

* Bump rpc version

* Fix Rust integration tests.

---------

Co-authored-by: Robert G. Jakabosky <[email protected]>
  • Loading branch information
HenriqueNogara and Neopallium authored Aug 13, 2024
1 parent 8829e52 commit 140b6e3
Show file tree
Hide file tree
Showing 117 changed files with 7,687 additions and 9,527 deletions.
23 changes: 8 additions & 15 deletions integration/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name = "integration"
version = "0.1.0"
edition = "2021"

[patch.crates-io]
polymesh-api = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }
polymesh-api-client = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }
polymesh-api-client-extras = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }
polymesh-api-tester = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }
polymesh-api-codegen = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }
polymesh-api-codegen-macro = { git = "https://github.com/PolymeshAssociation/polymesh-api", branch = "asset_id_v7" }

[features]
default = []

Expand Down
4 changes: 2 additions & 2 deletions integration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl PalletPermissionsBuilder {

#[derive(Clone, Default)]
pub struct PermissionsBuilder {
asset: SubsetBuilder<Ticker>,
asset: SubsetBuilder<AssetID>,
portfolio: SubsetBuilder<PortfolioId>,
extrinsic: PalletPermissionsBuilder,
}
Expand All @@ -211,7 +211,7 @@ impl PermissionsBuilder {
}
}

pub fn set_asset(&mut self, assets: &[Ticker], these: bool) {
pub fn set_asset(&mut self, assets: &[AssetID], these: bool) {
self.asset.set(assets, these);
}

Expand Down
2 changes: 1 addition & 1 deletion node-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ where
C::Api: node_rpc::pips::PipsRuntimeApi<Block, AccountId>,
C::Api: node_rpc::identity::IdentityRuntimeApi<Block, IdentityId, Ticker, AccountId, Moment>,
C::Api: pallet_protocol_fee_rpc::ProtocolFeeRuntimeApi<Block>,
C::Api: node_rpc::asset::AssetRuntimeApi<Block, AccountId>,
C::Api: node_rpc::asset::AssetRuntimeApi<Block>,
C::Api: pallet_group_rpc::GroupRuntimeApi<Block>,
C::Api: BabeApi<Block>,
C::Api: BlockBuilder<Block>,
Expand Down
Loading

0 comments on commit 140b6e3

Please sign in to comment.