Types
The types used by the Session Keys project.
export type SessionKey = {
publicKey: string
privateKey: string
}
export interface AllowedMethod {
"Contract Address": string
selector: string
}
export type MetadataTxFee = {
tokenAddress: string
maxAmount: string
}
export type SessionMetadata = {
projectID: string
txFees: MetadataTxFee[]
projectSignature?: Signature
}
export type BuildSessionAccountParams = {
session: Session
sessionKey: SessionKey
provider: ProviderInterface
useCacheAuthorisation?: boolean
argentSessionServiceBaseUrl?: string
}
export type CreateSessionParams = {
sessionKey: SessionKey
allowedMethods: AllowedMethod[]
expiry: bigint
metaData: SessionMetadata
}
Last updated