Skip to content

Commit

Permalink
Update artificts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Dec 11, 2023
1 parent d7c6f6d commit 3dddc5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions artifacts/ts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>[] | 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(
Expand Down
6 changes: 3 additions & 3 deletions artifacts/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
12 changes: 6 additions & 6 deletions artifacts/ts/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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));

0 comments on commit 3dddc5e

Please sign in to comment.