Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sdk to 0.25 #25

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions artifacts/.deployments.devnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion artifacts/dex/Router.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "Router",
"bytecode": "0007405240a840df4109415741a341ec0000060802402f16000c2f16010c2f1a4c031602160302160216012c16002d170616061603324c081606160534130e7b1602160602160316002c16012d1707160716043416071602321a130d7b16071603020103071603402e16065634130c7b0c0e16000107170817070c0e16000108170a17091609160a16021603160416050000170c170b16017a1607160ba31608160ca31601160b160c0f0d1600010e170d160b160c160d0201030608021e16055634130c7b160116001602a3160116020e0e1600010f170717061606160334130d7b1607160434130e7b16061607020000020502160c0e16000108170317020c0e1600010718170416011604414c03160216030216031602020103070b00402816065634130c7b160016020003170817071343e516032c1709160916082c16091343e816072c2a2d170a160a16043413097b160116021603a316001601160516021603160a00060103070a00402816065634130c7b16001602000317081707160716042c1343e82c160816042b1343e52c2d0d2a17091609160332130a7b160116021609a316001601160516021609160400060003061c0040270c0e1600010718170616031606414c0f160116031604a31601160216040c0c160513060c160001104a0e160116031604a3160116020c160416050c13060c16000110",
"codeHash": "5b325453e5506a90851742af5f7797303703acecb523830220a105a88273b1b0",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/dex/TokenPair.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "TokenPair",
"bytecode": "0c13114022402b40344046407c408d409840a340ac40b540be41244182422f42a24355437a439b0100000001021408414c50482d444558020100000001021408414c50482d44455802010000000102131202010000000102a0050201000202010816000d1340703b2c16012d0201000103011f16000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02010001010007b3ce004113107b1600a107010000000203ce01ce0202010000000203a000a00102010000000102a00202010000000102a00302010000000102a004020000020500403b0d1340703b1702160016023116011602311a0c7b561343e82d0d13203b2e17031603a0022b170416040c33a0000c331aa0010c331a4c10a003a001a000000416042c35a103a004a000a001000416042c35a1041600a1001601a1011603a102000002080240320c1702a007140042170316034c4025a0060c304c4020160016012c00051704a0060005170516041605334c14a005160416052b2c17061604112c16052a1707160616072d1702a00516022aa1054a020ca106160316020201010311014062a000a001000d170417030c1705a0050c2f4c17160116022c0005170616061343e8330d7b16061343e82b1705a0051343e82aa105b2b11343e8bd4a141601a0052ca0002d17071602a0052ca0012d170816071608334c0216084a011607170516050c330e7b1600b11605ab1600ce011601ac1600ce021602aca00516052aa105a00016012aa00116022a000c16034c06b2b11604a3160400120516001601160216056116050201010206024042a000a001000d170317021601a0002ca0052d17041601a0012ca0052d170516040c3316050c331a0f7b1600b11601ac1600ce011604ab1600ce021605aba00516012ba105a00016042ba00116052b000c16024c06b2b11603a3160300120616001604160516016116041605020101060b00406a160048107b16040c3316050c331b13097b1604a000311605a001311a117ba00016022a16042b1706a00116032a16052b170716061343e82c16020f2c2b170816071343e82c16030f2c2b1709a000a0012c13800f42402c170a160816092c160a3413087b16020c334c041600ce011602ac16030c334c041600ce021603ac16040c334c041601ce011604ab16050c334c041601ce021605ab16061607000c0716001602160316041605160174010200020013b3a0074113107ba000a001000d17011700160013117bb2b11601a31601001200030101001216000c334c0ab2b11600a3b216000e0ca0070100a000a0012ca106",
"codeHash": "4a98763809adb6e899e3e7864e6d5dcb60c6fd0806f1264c3596b482021035f2",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/dex/TokenPairFactory.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "TokenPairFactory",
"bytecode": "0407114022402b4057406c408d4100010001010007b4a0014513107b1600a102010001010007b4a0014513107b1600a101010000000102a00102010302040017b417021602a0014513107b16021601a21602160116000f0da0020100170316030d0c1600010601000202000ab4a0014513107b16010d0c160001060000020402101600711702160171170316021603314c03160016010216011600020103040900404116001602a50c3316001603a50c331a130f7b1602160342130b7b16021603000517051704b1160416051406414c504800011304640c0c0c0c0c0c0c14001308641707170616001601a21604160544ce00160616070d1340ff3bc2170805160416051608a00061a0000d2aa100",
"codeHash": "44144899a2b71465a80654889afa8a2bf4a8f3cd0f30ad1880d2ffc7c12ad18b",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/examples/ExampleOracleSimple.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "ExampleOracleSimple",
"bytecode": "0606403040f9413d419041dc420e01000205021a160016010c0d36871702160016013717031602160336170416021603314c0416040d36170416031604020100030801407e16020c300d7b1600160100001704170316040c2f4c04160316022d0216021604330c7b16001601160287170516051603334c0416040d361704160316053617030c1602361602381706160216062d1702160316062d17030c16063616062d0d351706160316041606373917030f1602370e3a170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e1602160737363717071603160737020100020301402716010c300d7b16000c2f4c020c0216000d1340903b314c0616001340703b16012d4a0616000d1340703b16010001170216020d1340e03b310e7b1602020000010602402e0c0dce00010a17010c0dce00010b17020c0ece0001081704170316000c0dce0001092b170516050c304c10160116041603000216052c351701160216031604000216052c351702160116020201000004004027561343e82d0d13203b2e17001600a0022b170116011380015180340f7b16000003170317021602a0003616012da1031603a0013616012da1041602a1001603a1011600a10201000204011b0c0ece0001071703170216001602414c06a00316012c1340703c021600160341107ba00416012c1340703c02",
"codeHash": "77c214087d18764740b2479fc13342959a21a02a36977c0d998667644200071a",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/examples/FeeCollectorFactoryImpl.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "FeeCollectorFactoryImpl",
"bytecode": "0201402a010303050116b3ce014113107bce0116021302641300641704170316001601a21602ce0016031604c102",
"codeHash": "966f75cddefe774a87dbf778012f4f3f494b3a860f4c975d0c5262a1be185d49",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/examples/FeeCollectorPerTokenPairImpl.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "FeeCollectorPerTokenPairImpl",
"bytecode": "020415402d4041405801010202000ab3ce014113107b1600b2ce011601aa01020202000cb40c0dce0001024513107b1600ce011601ab01020101000ab40c0dce0001024513107b1600b001000000000cb40c0dce0001024513107b0c0cce010111",
"codeHash": "393eee49cd23c00d61848a8b2272e848f5278cc17f8c0b2333e2ed744edf5b79",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/examples/FullMathTest.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "FullMathTest",
"bytecode": "0003403040f9413d01000205021a160016010c0d36871702160016013717031602160336170416021603314c0416040d36170416031604020100030801407e16020c300d7b1600160100001704170316040c2f4c04160316022d0216021604330c7b16001601160287170516051603334c0416040d361704160316053617030c1602361602381706160216062d1702160316062d17030c16063616062d0d351706160316041606373917030f1602370e3a170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e16021607373637170716070e1602160737363717071603160737020100020301402716010c300d7b16000c2f4c020c0216000d1340903b314c0616001340703b16012d4a0616000d1340703b16010001170216020d1340e03b310e7b160202",
"codeHash": "d6834220b59d306adb6cd548433f9e1ab4f20c155cad9c80ef89be27cb82a286",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/AddLiquidity.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "AddLiquidity",
"bytecodeTemplate": "0101030002001c0c0e{2}010717011700{0}7a1600{3}a31601{4}a3{2}{0}{3}{4}{5}{6}{7}13070f{1}0101181818",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/Burn.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "Burn",
"bytecodeTemplate": "0101030000000c{1}{0}{2}a3{1}{2}0e0e{0}010f1818",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/CollectFee.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "CollectFee",
"bytecodeTemplate": "010100000000040c0c{0}0103",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/CreatePair.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "CreatePair",
"bytecodeTemplate": "01010300000013{0}7a7a{2}a2{3}0da3{4}0da3{0}{2}{3}{4}100c{1}0106",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/EnableFeeCollector.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "EnableFeeCollector",
"bytecodeTemplate": "01010300000009b413c40de0b6b3a7640000a2{1}13c40de0b6b3a76400000e0c{0}0103",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/Mint.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "Mint",
"bytecodeTemplate": "010103000200160c0e{0}010717011700{1}7a1600{2}a31601{3}a3{1}{2}{3}0f0d{0}010e18",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/RemoveLiquidity.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "RemoveLiquidity",
"bytecodeTemplate": "01010300000010{0}{2}{3}a3{2}{0}{3}{4}{5}{6}13060e{1}01021818",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/SetFeeCollectorFactory.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "SetFeeCollectorFactory",
"bytecodeTemplate": "01010300000005{1}0d0c{0}0100",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/Swap.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "Swap",
"bytecodeTemplate": "01010300020040460c0e{0}010717011700{1}{2}464c04{1}{2}13c3038d7ea4c68000a7{3}0c2f4c0f{1}1601{4}a3{1}{2}{3}{4}{5}{6}13060c{0}01104a4025{4}0c2f4c0f{1}1600{3}a3{1}{2}{3}{4}{5}{6}13060c{0}01104a12{1}7a1600{3}a31601{4}a3{1}{2}{3}{4}{5}{6}13060c{0}0110",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/SwapMaxIn.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "SwapMaxIn",
"bytecodeTemplate": "0101030000000f{0}{3}{4}a3{2}{0}{3}{4}{5}{0}{6}13070c{1}0105",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scripts/SwapMinOut.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "SwapMinOut",
"bytecodeTemplate": "0101030000000f{0}{3}{4}a3{2}{0}{3}{4}{5}{0}{6}13070c{1}0104",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/test/GetToken.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "GetToken",
"bytecodeTemplate": "01010300000006{1}{2}0e0c{0}0104",
"fieldsSig": {
Expand Down
2 changes: 1 addition & 1 deletion artifacts/test/MathTest.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "MathTest",
"bytecode": "000212404801000202010816000d1340703b2c16012d0201000103011f16000f334c191600170116000e2d0d2a170216021601314c0b16021701160016022d16022a0e2d17024a311601020d02",
"codeHash": "085c8183210ec7296681e12ab74e37bebee9d495e78e24cc9b3cd1b110d6df2a",
Expand Down
2 changes: 1 addition & 1 deletion artifacts/test/TestToken.ral.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.5.0",
"version": "v2.5.3",
"name": "TestToken",
"bytecode": "050509121b40244030010000000102ce0002010000000102ce0102010000000102ce0202010000000102ce03020102020200041600b11601ab",
"codeHash": "0831d766037e7873066276e891997881e8787f4fb4bd9d154925d80869efa129",
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/ExampleOracleSimple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class Factory extends ContractFactory<
ExampleOracleSimpleInstance,
ExampleOracleSimpleTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as ExampleOracleSimpleTypes.Fields;
}

consts = {
Resolution: BigInt(112),
Period: BigInt(86400),
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/FeeCollectorFactoryImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class Factory extends ContractFactory<
FeeCollectorFactoryImplInstance,
FeeCollectorFactoryImplTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorFactoryImplTypes.Fields;
}

consts = {
ErrorCodes: {
ReserveOverflow: BigInt(0),
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/FeeCollectorPerTokenPairImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class Factory extends ContractFactory<
FeeCollectorPerTokenPairImplInstance,
FeeCollectorPerTokenPairImplTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as FeeCollectorPerTokenPairImplTypes.Fields;
}

consts = {
ErrorCodes: {
ReserveOverflow: BigInt(0),
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/TestToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ class Factory extends ContractFactory<
TestTokenInstance,
TestTokenTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as TestTokenTypes.Fields;
}

at(address: string): TestTokenInstance {
return new TestTokenInstance(address);
}
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/TokenPair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class Factory extends ContractFactory<
TokenPairInstance,
TokenPairTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as TokenPairTypes.Fields;
}

eventIndex = { Mint: 0, Burn: 1, Swap: 2 };
consts = {
MINIMUM_LIQUIDITY: BigInt(1000),
Expand Down
4 changes: 4 additions & 0 deletions artifacts/ts/TokenPairFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class Factory extends ContractFactory<
TokenPairFactoryInstance,
TokenPairFactoryTypes.Fields
> {
getInitialFieldsWithDefaultValues() {
return this.contract.getInitialFieldsWithDefaultValues() as TokenPairFactoryTypes.Fields;
}

eventIndex = { PairCreated: 0 };
consts = {
ErrorCodes: {
Expand Down
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
20 changes: 10 additions & 10 deletions artifacts/ts/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,33 @@ export type Deployments = {
function toDeployments(json: any): Deployments {
const contracts = {
TokenPair: {
...json.contracts.TokenPair,
...json.contracts["TokenPair"],
contractInstance: TokenPair.at(
json.contracts.TokenPair.contractInstance.address
json.contracts["TokenPair"].contractInstance.address
),
},
TokenPairFactory: {
...json.contracts.TokenPairFactory,
...json.contracts["TokenPairFactory"],
contractInstance: TokenPairFactory.at(
json.contracts.TokenPairFactory.contractInstance.address
json.contracts["TokenPairFactory"].contractInstance.address
),
},
Router: {
...json.contracts.Router,
...json.contracts["Router"],
contractInstance: Router.at(
json.contracts.Router.contractInstance.address
json.contracts["Router"].contractInstance.address
),
},
FeeCollectorPerTokenPairImpl: {
...json.contracts.FeeCollectorPerTokenPairImpl,
...json.contracts["FeeCollectorPerTokenPairImpl"],
contractInstance: FeeCollectorPerTokenPairImpl.at(
json.contracts.FeeCollectorPerTokenPairImpl.contractInstance.address
json.contracts["FeeCollectorPerTokenPairImpl"].contractInstance.address
),
},
FeeCollectorFactoryImpl: {
...json.contracts.FeeCollectorFactoryImpl,
...json.contracts["FeeCollectorFactoryImpl"],
contractInstance: FeeCollectorFactoryImpl.at(
json.contracts.FeeCollectorFactoryImpl.contractInstance.address
json.contracts["FeeCollectorFactoryImpl"].contractInstance.address
),
},
};
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));
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.3"

services:
alephium:
image: alephium/alephium:v2.5.0
image: alephium/alephium:v2.5.3
restart: "no"
ports:
- 19973:19973/tcp
Expand Down
Loading
Loading