Skip to content

Commit

Permalink
reorder claim.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard-Pat committed Jun 6, 2024
1 parent 0990486 commit 48c3b2b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 48c3b2b

Please sign in to comment.