From bb09f1d0be455945329b247772783158d60b8bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sedl=C3=A1=C4=8Dek?= Date: Wed, 25 Sep 2024 17:26:23 +0200 Subject: [PATCH] gitignore --- .gitignore | 2 + intents/intent.gen.ts | 358 ------------------------------------------ 2 files changed, 2 insertions(+), 358 deletions(-) delete mode 100644 intents/intent.gen.ts diff --git a/.gitignore b/.gitignore index 3c3629e6..794f728a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ node_modules + +intents/intent.gen.ts diff --git a/intents/intent.gen.ts b/intents/intent.gen.ts deleted file mode 100644 index 1a6b9e20..00000000 --- a/intents/intent.gen.ts +++ /dev/null @@ -1,358 +0,0 @@ -/* eslint-disable */ -// sequence-waas-intents v0.1.0 1fe0a24abef81231c54c0886157c65ef738d5ed6 -// -- -// Code generated by webrpc-gen@v0.19.3 with typescript generator. DO NOT EDIT. -// -// webrpc-gen -schema=intent.ridl -target=typescript -out=./intent.gen.ts - -// WebRPC description and code-gen version -export const WebRPCVersion = "v1" - -// Schema version of your RIDL schema -export const WebRPCSchemaVersion = "v0.1.0" - -// Schema hash generated from your RIDL schema -export const WebRPCSchemaHash = "1fe0a24abef81231c54c0886157c65ef738d5ed6" - -// -// Types -// - - -export enum IntentName { - initiateAuth = 'initiateAuth', - openSession = 'openSession', - closeSession = 'closeSession', - validateSession = 'validateSession', - finishValidateSession = 'finishValidateSession', - listSessions = 'listSessions', - getSession = 'getSession', - sessionAuthProof = 'sessionAuthProof', - feeOptions = 'feeOptions', - signMessage = 'signMessage', - sendTransaction = 'sendTransaction', - getTransactionReceipt = 'getTransactionReceipt', - federateAccount = 'federateAccount', - removeAccount = 'removeAccount', - listAccounts = 'listAccounts', - getIdToken = 'getIdToken' -} - -export enum TransactionType { - transaction = 'transaction', - erc20send = 'erc20send', - erc721send = 'erc721send', - erc1155send = 'erc1155send', - delayedEncode = 'delayedEncode' -} - -export enum IntentResponseCode { - authInitiated = 'authInitiated', - sessionOpened = 'sessionOpened', - sessionClosed = 'sessionClosed', - sessionList = 'sessionList', - validationRequired = 'validationRequired', - validationStarted = 'validationStarted', - validationFinished = 'validationFinished', - sessionAuthProof = 'sessionAuthProof', - signedMessage = 'signedMessage', - feeOptions = 'feeOptions', - transactionReceipt = 'transactionReceipt', - transactionFailed = 'transactionFailed', - getSessionResponse = 'getSessionResponse', - accountList = 'accountList', - accountFederated = 'accountFederated', - accountRemoved = 'accountRemoved', - idToken = 'idToken' -} - -export enum FeeTokenType { - unknown = 'unknown', - erc20Token = 'erc20Token', - erc1155Token = 'erc1155Token' -} - -export enum IdentityType { - None = 'None', - Guest = 'Guest', - OIDC = 'OIDC', - Email = 'Email', - PlayFab = 'PlayFab', - Stytch = 'Stytch' -} - -export interface Intent { - version: string - name: IntentName - expiresAt: number - issuedAt: number - data: any - signatures: Array -} - -export interface Signature { - sessionId: string - signature: string -} - -export interface IntentDataInitiateAuth { - sessionId: string - identityType: IdentityType - verifier: string - metadata?: string -} - -export interface IntentDataOpenSession { - sessionId: string - identityType: IdentityType - verifier?: string - answer?: string - forceCreateAccount?: boolean - email?: string - idToken?: string -} - -export interface IntentDataCloseSession { - sessionId: string -} - -export interface IntentDataValidateSession { - sessionId: string - wallet: string - deviceMetadata: string -} - -export interface IntentDataFinishValidateSession { - sessionId: string - wallet: string - salt: string - challenge: string -} - -export interface IntentDataListSessions { - wallet: string -} - -export interface IntentDataGetSession { - sessionId: string - wallet: string -} - -export interface IntentDataSessionAuthProof { - network: string - wallet: string - nonce?: string -} - -export interface IntentDataSignMessage { - network: string - wallet: string - message: string -} - -export interface IntentDataFeeOptions { - network: string - wallet: string - identifier: string - transactions: Array -} - -export interface IntentDataSendTransaction { - network: string - wallet: string - identifier: string - transactions: Array - transactionsFeeQuote?: string -} - -export interface IntentDataGetTransactionReceipt { - network: string - wallet: string - metaTxHash: string -} - -export interface IntentDataFederateAccount { - sessionId: string - wallet: string - identityType: IdentityType - verifier?: string - answer?: string -} - -export interface IntentDataListAccounts { - wallet: string -} - -export interface IntentDataRemoveAccount { - wallet: string - accountId: string -} - -export interface IntentDataGetIdToken { - sessionId: string - wallet: string - nonce?: string -} - -export interface TransactionRaw { - type: string - to: string - value: string - data: string -} - -export interface TransactionERC20 { - type: string - tokenAddress: string - to: string - value: string -} - -export interface TransactionERC721 { - type: string - tokenAddress: string - to: string - id: string - safe?: boolean - data?: string -} - -export interface TransactionERC1155Value { - id: string - amount: string -} - -export interface TransactionDelayedEncode { - type: string - to: string - value: string - data: any -} - -export interface TransactionERC1155 { - type: string - tokenAddress: string - to: string - vals: Array - data?: string -} - -export interface IntentResponse { - code: IntentResponseCode - data: any -} - -export interface IntentResponseAuthInitiated { - sessionId: string - identityType: IdentityType - expiresIn: number - challenge?: string -} - -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 -} - -export interface IntentResponseGetSession { - sessionId: string - wallet: string - validated: boolean -} - -export interface IntentResponseSessionAuthProof { - sessionId: string - network: string - wallet: string - message: string - signature: string -} - -export interface IntentResponseSignedMessage { - signature: string - message: string -} - -export interface FeeOption { - token: FeeToken - to: string - value: string - gasLimit: number -} - -export interface FeeToken { - chainId: number - name: string - symbol: string - type: FeeTokenType - decimals?: number - logoURL: string - contractAddress?: string - tokenID?: string -} - -export interface IntentResponseFeeOptions { - feeOptions: Array - feeQuote?: 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 -} - -export interface IntentResponseAccountList { - accounts: Array - currentAccountId: string -} - -export interface IntentResponseAccountFederated { - account: Account -} - -export interface IntentResponseAccountRemoved { -} - -export interface IntentResponseIdToken { - idToken: string - expiresIn: number -} - -export interface Account { - id: string - type: IdentityType - issuer?: string - email?: string -}