From 48c3b2b3ac43f4b2039557e9c745ec717aecdaef Mon Sep 17 00:00:00 2001 From: Leonard Paturel Date: Thu, 6 Jun 2024 16:08:54 +0100 Subject: [PATCH] reorder claim.ts --- lib/claim.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/claim.ts b/lib/claim.ts index 0e74d24..0ca1bd8 100644 --- a/lib/claim.ts +++ b/lib/claim.ts @@ -37,6 +37,19 @@ export async function getClaimExternalData(claimExternal: ClaimExternal) { }; } +export interface AccountConstructorArguments { + sender: string; + amount: Uint256; + max_fee: bigint; + token: string; + claim_pubkey: bigint; +} + +export interface Claim extends AccountConstructorArguments { + factory: string; + class_hash: string; +} + export function buildClaim( factory: Contract, claimAccountClassHash: string, @@ -75,19 +88,6 @@ export async function claimExternal( return transaction_hash; } -export interface AccountConstructorArguments { - sender: string; - amount: Uint256; - max_fee: bigint; - token: string; - claim_pubkey: bigint; -} - -export interface Claim extends AccountConstructorArguments { - factory: string; - class_hash: string; -} - export async function claimInternal( factory: Contract, tokenContract: Contract,