-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
201 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* eslint-disable */ | ||
// sequence-waas-intents v0.1.0 2e194b57788277e83563e48f4a88fac890a5a069 | ||
// sequence-waas-intents v0.1.0 a199ec1e7889726ed0a6468c1b434f4a2da44728 | ||
// -- | ||
// Code generated by [email protected] with typescript generator. DO NOT EDIT. | ||
// | ||
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = "v1" | |
export const WebRPCSchemaVersion = "v0.1.0" | ||
|
||
// Schema hash generated from your RIDL schema | ||
export const WebRPCSchemaHash = "2e194b57788277e83563e48f4a88fac890a5a069" | ||
export const WebRPCSchemaHash = "a199ec1e7889726ed0a6468c1b434f4a2da44728" | ||
|
||
// | ||
// Types | ||
|
@@ -41,7 +41,6 @@ export interface IntentDataOpenSession { | |
|
||
export interface IntentDataCloseSession { | ||
sessionId: string | ||
wallet: string | ||
} | ||
|
||
export interface IntentDataValidateSession { | ||
|
@@ -52,11 +51,13 @@ export interface IntentDataValidateSession { | |
|
||
export interface IntentDataFinishValidateSession { | ||
sessionId: string | ||
wallet: string | ||
salt: string | ||
challenge: string | ||
} | ||
|
||
export interface IntentDataListSessions { | ||
wallet: string | ||
} | ||
|
||
export interface IntentDataGetSession { | ||
|
@@ -124,6 +125,59 @@ export interface IntentResponse { | |
data: any | ||
} | ||
|
||
export interface IntentResponseSessionOpened { | ||
sessionId: string | ||
wallet: string | ||
} | ||
|
||
export interface IntentResponseSessionClosed { | ||
} | ||
|
||
export interface IntentResponseValidateSession { | ||
} | ||
|
||
export interface IntentResponseValidationRequired { | ||
sessionId: string | ||
} | ||
|
||
export interface IntentResponseValidationStarted { | ||
salt: string | ||
} | ||
|
||
export interface IntentResponseValidationFinished { | ||
isValid: boolean | ||
} | ||
|
||
export interface IntentResponseListSessions { | ||
sessions: Array<string> | ||
} | ||
|
||
export interface IntentResponseGetSession { | ||
sessionId: string | ||
wallet: string | ||
validated: boolean | ||
} | ||
|
||
export interface IntentResponseSignedMessage { | ||
signature: string | ||
message: string | ||
} | ||
|
||
export interface IntentResponseTransactionReceipt { | ||
request: any | ||
txHash: string | ||
metaTxHash: string | ||
receipt: any | ||
nativeReceipt: any | ||
simulations: any | ||
} | ||
|
||
export interface IntentResponseTransactionFailed { | ||
error: string | ||
request: any | ||
simulations: any | ||
} | ||
|
||
|
||
|
||
const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => { | ||
|
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
Oops, something went wrong.