Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client-api: expose omniaccount pallet types #3146

Merged
merged 9 commits into from
Oct 28, 2024
6 changes: 6 additions & 0 deletions tee-worker/identity/client-api/parachain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Added

- Type definitions for the new OmniAccount Pallet.
- Expose getter to get the derived `omniaccount` address from a given identity
- Expose the OmniAccount `request_intent`'s trusted call.

## [0.9.20-4.1] - 2024-09-30

- Update for version [parachain-release v0.9.20-04](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.20-04)
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/identity/client-api/parachain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.20-04.1",
"version": "0.9.20-next.1",
"scripts": {
"clean": "rm -rf dist build node_modules",
"update-metadata": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9944 > prepare-build/litentry-parachain-metadata.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as identity } from "./identity/definitions";
export { default as vc } from "./vc/definitions";
export { default as omniAccount } from "./omniAccount/definitions";
export { default as trusted_operations } from "./trusted_operations/definitions";
export { default as sidechain } from "./sidechain/definitions";
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export default {
types: {
Intent: {
_enum: {
TransferEthereum: "IntentTransferEthereum",
CallEthereum: "IntentCallEthereum",
SystemRemark: "Bytes",
TransferNative: "IntentTransferNative",
},
},
IntentTransferEthereum: {
to: "H160",
value: "[u8;32]",
},
IntentCallEthereum: {
address: "H160",
input: "Bytes",
},
IntentTransferNative: {
to: "AccountId32",
value: "u128",
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default {
__Unused_24: "Null",

clean_id_graphs: "(LitentryIdentity)",
request_intent: "(LitentryIdentity, Intent)",
},
},
TrustedOperationStatus: {
Expand Down
4 changes: 4 additions & 0 deletions tee-worker/identity/client-api/sidechain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Added

- Type definitions for the new OmniAccount Pallet.

## [0.9.20-4] - 2024-09-30

- Update for version [parachain-release v0.9.20-04](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.20-04)
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/identity/client-api/sidechain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.20-04",
"version": "0.9.20-next.0",
"scripts": {
"clean": "rm -rf dist build node_modules",
"update-metadata": "../../bin/litentry-cli print-sgx-metadata-raw > prepare-build/litentry-sidechain-metadata.json",
Expand Down