-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating client-api type definitions for the omni executor (#3251)
- Loading branch information
Showing
44 changed files
with
150 additions
and
51 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
{ | ||
"type": "module", | ||
"license": "ISC", | ||
"scripts": { | ||
"update": "pnpm --filter parachain-api run update-metadata && pnpm --filter sidechain-api run update-metadata", | ||
"build": "pnpm --filter parachain-api run build && pnpm --filter sidechain-api run build", | ||
"update-build": "pnpm run update && pnpm run build", | ||
"format": "pnpm run --recursive format", | ||
"check-format": "pnpm run --recursive check-format", | ||
"clean": "pnpm --filter parachain-api run clean && pnpm --filter sidechain-api run clean" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
96 changes: 96 additions & 0 deletions
96
tee-worker/client-api/parachain-api/prepare-build/interfaces/omniExecutor/definitions.ts
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,96 @@ | ||
export default { | ||
types: { | ||
OmniAesRequest: { | ||
mrenclave: "MrEnclave", | ||
key: "Vec<u8>", | ||
payload: "AesOutput", | ||
}, | ||
PlainRequest: { | ||
mrenclave: "MrEnclave", | ||
payload: "Vec<u8>", | ||
}, | ||
MrEnclave: "H256", | ||
NativeCall: { | ||
_enum: { | ||
request_intent: "(LitentryIdentity, Intent)", | ||
create_account_store: "(LitentryIdentity)", | ||
add_account: "(LitentryIdentity, LitentryIdentity, LitentryValidationData, bool, Option<Vec<OmniAccountPermission>>)", | ||
remove_accounts: "(LitentryIdentity, Vec<LitentryIdentity>)", | ||
publicize_account: "(LitentryIdentity, LitentryIdentity)", | ||
set_permissions: "(LitentryIdentity, LitentryIdentity, Vec<OmniAccountPermission>)", | ||
}, | ||
}, | ||
NativeCallAuthenticated: { | ||
call: "NativeCall", | ||
nonce: "Index", | ||
authentication: "Authentication", | ||
}, | ||
Authentication: { | ||
_enum: { | ||
Web3: "(LitentryMultiSignature)", | ||
Email: "(Text)", | ||
AuthToken: "(Text)", | ||
OAuth2: "(OAuth2Data)", | ||
}, | ||
}, | ||
OAuth2Data: { | ||
provider: "OAuth2Provider", | ||
code: "Text", | ||
state: "Text", | ||
redirect_uri: "Text", | ||
}, | ||
OAuth2Provider: { | ||
_enum: ["Google"], | ||
}, | ||
NativeCallResponse: "Result<NativeCallOk, NativeCallError>", | ||
NativeCallOk: { | ||
_enum: { | ||
AuthToken: "(Text)", | ||
ExtrinsicReport: "(XtReport)", | ||
}, | ||
}, | ||
XtReport: { | ||
// Hash of the extrinsic. | ||
extrinsic_hash: "H256", | ||
// Block hash of the block the extrinsic was included in. | ||
// Only available if watched until at least `InBlock`. | ||
block_hash: "Option<H256>", | ||
// Last known Transaction Status. | ||
status: "TxStatus", | ||
}, | ||
TxStatus: { | ||
// Transaction is part of the future queue. | ||
Future: "Null", | ||
// Transaction is part of the ready queue. | ||
Ready: "Null", | ||
// The transaction has been broadcast to the given peers. | ||
Broadcast: "Vec<Text>", | ||
// Transaction has been included in block with given hash. | ||
InBlock: "H256", | ||
// The block this transaction was included in has been retracted. | ||
Retracted: "H256", | ||
// Maximum number of finality watchers has been reached, | ||
// old watchers are being removed. | ||
FinalityTimeout: "H256", | ||
// Transaction has been finalized by a finality-gadget, e.g GRANDPA | ||
Finalized: "H256", | ||
// Transaction has been replaced in the pool, by another transaction | ||
// that provides the same tags. (e.g. same (sender, nonce)). | ||
Usurped: "H256", | ||
// Transaction has been dropped from the pool because of the limit. | ||
Dropped: "Null", | ||
// Transaction is no longer valid in the current state. | ||
Invalid: "Null", | ||
}, | ||
NativeCallError: { | ||
_enum: { | ||
UnexpectedCall: "(Text)", | ||
UnauthorizedSender: "Null", | ||
AuthTokenCreationFailed: "Null", | ||
InternalError: "Null", | ||
IInvalidMemberIdentity: "Null", | ||
ValidationDataVerificationFailed: "Null", | ||
}, | ||
}, | ||
}, | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
packages: ["parachain-api", "sidechain-api"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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
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
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
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
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.