diff --git a/artifacts/ts/contracts.ts b/artifacts/ts/contracts.ts index 1936e4a..b8ca062 100644 --- a/artifacts/ts/contracts.ts +++ b/artifacts/ts/contracts.ts @@ -4,30 +4,30 @@ import { Contract, ContractFactory } from "@alephium/web3"; import { - Router, - TokenPair, - TokenPairFactory, ExampleOracleSimple, FeeCollectorFactoryImpl, FeeCollectorPerTokenPairImpl, FullMathTest, MathTest, + Router, TestToken, + TokenPair, + TokenPairFactory, } from "."; let contracts: ContractFactory[] | undefined = undefined; export function getContractByCodeHash(codeHash: string): Contract { if (contracts === undefined) { contracts = [ - Router, - TokenPair, - TokenPairFactory, ExampleOracleSimple, FeeCollectorFactoryImpl, FeeCollectorPerTokenPairImpl, FullMathTest, MathTest, + Router, TestToken, + TokenPair, + TokenPairFactory, ]; } const c = contracts.find( diff --git a/artifacts/ts/index.ts b/artifacts/ts/index.ts index b7d1c29..9d8e45f 100644 --- a/artifacts/ts/index.ts +++ b/artifacts/ts/index.ts @@ -2,13 +2,13 @@ /* tslint:disable */ /* eslint-disable */ -export * from "./Router"; -export * from "./TokenPair"; -export * from "./TokenPairFactory"; export * from "./ExampleOracleSimple"; export * from "./FeeCollectorFactoryImpl"; export * from "./FeeCollectorPerTokenPairImpl"; export * from "./FullMathTest"; export * from "./MathTest"; +export * from "./Router"; export * from "./TestToken"; +export * from "./TokenPair"; +export * from "./TokenPairFactory"; export * from "./scripts"; diff --git a/artifacts/ts/scripts.ts b/artifacts/ts/scripts.ts index 47244d1..880bd2e 100644 --- a/artifacts/ts/scripts.ts +++ b/artifacts/ts/scripts.ts @@ -16,13 +16,13 @@ import { default as BurnScriptJson } from "../scripts/Burn.ral.json"; import { default as CollectFeeScriptJson } from "../scripts/CollectFee.ral.json"; import { default as CreatePairScriptJson } from "../scripts/CreatePair.ral.json"; import { default as EnableFeeCollectorScriptJson } from "../scripts/EnableFeeCollector.ral.json"; +import { default as GetTokenScriptJson } from "../test/GetToken.ral.json"; import { default as MintScriptJson } from "../scripts/Mint.ral.json"; import { default as RemoveLiquidityScriptJson } from "../scripts/RemoveLiquidity.ral.json"; import { default as SetFeeCollectorFactoryScriptJson } from "../scripts/SetFeeCollectorFactory.ral.json"; import { default as SwapScriptJson } from "../scripts/Swap.ral.json"; import { default as SwapMaxInScriptJson } from "../scripts/SwapMaxIn.ral.json"; import { default as SwapMinOutScriptJson } from "../scripts/SwapMinOut.ral.json"; -import { default as GetTokenScriptJson } from "../test/GetToken.ral.json"; export const AddLiquidity = new ExecutableScript<{ sender: Address; @@ -53,6 +53,11 @@ export const EnableFeeCollector = new ExecutableScript<{ tokenPairFactory: HexString; tokenPair: HexString; }>(Script.fromJson(EnableFeeCollectorScriptJson)); +export const GetToken = new ExecutableScript<{ + token: HexString; + sender: Address; + amount: bigint; +}>(Script.fromJson(GetTokenScriptJson)); export const Mint = new ExecutableScript<{ tokenPair: HexString; sender: Address; @@ -99,8 +104,3 @@ export const SwapMinOut = new ExecutableScript<{ amountOutMin: bigint; deadline: bigint; }>(Script.fromJson(SwapMinOutScriptJson)); -export const GetToken = new ExecutableScript<{ - token: HexString; - sender: Address; - amount: bigint; -}>(Script.fromJson(GetTokenScriptJson));