-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One-time command to upload the current idgraph to parachain (#3131)
* relocate aes key * add skeleton * small update * init * add cli * fix param parsing * update lockfile * fix bug * use subcommand * remove rpc * fix clippy * fix clippy * fix test
- Loading branch information
1 parent
2fd6307
commit 7ead80a
Showing
30 changed files
with
634 additions
and
208 deletions.
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
45 changes: 45 additions & 0 deletions
45
tee-worker/common/core-primitives/node-api/metadata/src/pallet_omni_account.rs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2020-2024 Trust Computing GmbH. | ||
// This file is part of Litentry. | ||
// | ||
// Litentry is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Litentry is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Litentry. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
// TODO: maybe use macros to simplify this | ||
use crate::{error::Result, NodeMetadata}; | ||
|
||
const OMNIACCOUNT: &str = "OmniAccount"; | ||
|
||
pub trait OmniAccountCallIndexes { | ||
fn dispatch_as_omni_account_call_indexes(&self) -> Result<[u8; 2]>; | ||
fn dispatch_as_signed_call_indexes(&self) -> Result<[u8; 2]>; | ||
fn create_account_store_call_indexes(&self) -> Result<[u8; 2]>; | ||
fn update_account_store_by_one_call_indexes(&self) -> Result<[u8; 2]>; | ||
} | ||
|
||
impl OmniAccountCallIndexes for NodeMetadata { | ||
fn dispatch_as_omni_account_call_indexes(&self) -> Result<[u8; 2]> { | ||
self.call_indexes(OMNIACCOUNT, "dispatch_as_omni_account") | ||
} | ||
|
||
fn dispatch_as_signed_call_indexes(&self) -> Result<[u8; 2]> { | ||
self.call_indexes(OMNIACCOUNT, "dispatch_as_signed") | ||
} | ||
|
||
fn create_account_store_call_indexes(&self) -> Result<[u8; 2]> { | ||
self.call_indexes(OMNIACCOUNT, "create_account_store") | ||
} | ||
|
||
fn update_account_store_by_one_call_indexes(&self) -> Result<[u8; 2]> { | ||
self.call_indexes(OMNIACCOUNT, "update_account_store_by_one") | ||
} | ||
} |
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
Oops, something went wrong.