Skip to content

Commit 3cc5dee

Browse files
committed
update dependencies to coral
1 parent dd5611d commit 3cc5dee

File tree

8 files changed

+22
-25
lines changed

8 files changed

+22
-25
lines changed

tokens/token-swap/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
seeds = false
33
skip-lint = false
44
[programs.devnet]
5-
amm_tutorial = "C3ti6PFK6PoYShRFx1BNNTQU3qeY1iVwjwCA6SjJhiuW"
5+
swap_example = "C3ti6PFK6PoYShRFx1BNNTQU3qeY1iVwjwCA6SjJhiuW"
66

77
[registry]
88
url = "https://api.apr.dev"

tokens/token-swap/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
55
},
66
"dependencies": {
7-
"@project-serum/anchor": "^0.26.0",
7+
"@coral-xyz/anchor": "^0.27.0",
88
"@solana/spl-token": "^0.3.8"
99
},
1010
"devDependencies": {

tokens/token-swap/anchor/tests/create-amm.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as anchor from "@project-serum/anchor";
2-
import { Program } from "@project-serum/anchor";
3-
import { AmmTutorial } from "../target/types/amm_tutorial";
1+
import * as anchor from "@coral-xyz/anchor";
2+
import { Program } from "@coral-xyz/anchor";
3+
import { SwapExample } from "../target/types/swap_example";
44
import { expect } from "chai";
55
import { TestValues, createValues, expectRevert } from "./utils";
66

@@ -9,7 +9,7 @@ describe("Create AMM", () => {
99
const connection = provider.connection;
1010
anchor.setProvider(provider);
1111

12-
const program = anchor.workspace.AmmTutorial as Program<AmmTutorial>;
12+
const program = anchor.workspace.SwapExample as Program<SwapExample>;
1313

1414
let values: TestValues;
1515

tokens/token-swap/anchor/tests/create-pool.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
import * as anchor from "@project-serum/anchor";
2-
import { Program } from "@project-serum/anchor";
1+
import * as anchor from "@coral-xyz/anchor";
2+
import { Program } from "@coral-xyz/anchor";
33
import { PublicKey } from "@solana/web3.js";
4-
import { AmmTutorial } from "../target/types/amm_tutorial";
4+
import { SwapExample } from "../target/types/swap_example";
55
import { TestValues, createValues, expectRevert, mintingTokens } from "./utils";
66

77
describe("Create pool", () => {
88
const provider = anchor.AnchorProvider.env();
99
const connection = provider.connection;
1010
anchor.setProvider(provider);
1111

12-
const program = anchor.workspace.AmmTutorial as Program<AmmTutorial>;
12+
const program = anchor.workspace.SwapExample as Program<SwapExample>;
1313

1414
let values: TestValues;
1515

16-
17-
1816
beforeEach(async () => {
1917
values = createValues();
20-
console.log("values",values)
2118

2219
await program.methods
2320
.createAmm(values.id, values.fee)

tokens/token-swap/anchor/tests/deposit-liquidity.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as anchor from "@project-serum/anchor";
2-
import { Program } from "@project-serum/anchor";
3-
import { AmmTutorial } from "../target/types/amm_tutorial";
1+
import * as anchor from "@coral-xyz/anchor";
2+
import { Program } from "@coral-xyz/anchor";
3+
import { SwapExample } from "../target/types/swap_example";
44
import { expect } from "chai";
55
import { TestValues, createValues, mintingTokens } from "./utils";
66

@@ -9,7 +9,7 @@ describe("Deposit liquidity", () => {
99
const connection = provider.connection;
1010
anchor.setProvider(provider);
1111

12-
const program = anchor.workspace.AmmTutorial as Program<AmmTutorial>;
12+
const program = anchor.workspace.SwapExample as Program<SwapExample>;
1313

1414
let values: TestValues;
1515

tokens/token-swap/anchor/tests/swap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as anchor from "@project-serum/anchor";
2-
import { Program } from "@project-serum/anchor";
3-
import { AmmTutorial } from "../target/types/amm_tutorial";
1+
import * as anchor from "@coral-xyz/anchor";
2+
import { Program } from "@coral-xyz/anchor";
3+
import { SwapExample } from "../target/types/swap_example";
44
import { expect } from "chai";
55
import { TestValues, createValues, mintingTokens } from "./utils";
66
import { BN } from "bn.js";

tokens/token-swap/anchor/tests/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as anchor from "@project-serum/anchor";
1+
import * as anchor from "@coral-xyz/anchor";
22
import {
33
createMint,
44
getAssociatedTokenAddressSync,

tokens/token-swap/anchor/tests/withdraw-liquidity.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as anchor from "@project-serum/anchor";
2-
import { Program } from "@project-serum/anchor";
3-
import { AmmTutorial } from "../target/types/amm_tutorial";
1+
import * as anchor from "@coral-xyz/anchor";
2+
import { Program } from "@coral-xyz/anchor";
3+
import { SwapExample } from "../target/types/swap_example";
44
import { expect } from "chai";
55
import { TestValues, createValues, mintingTokens } from "./utils";
66

@@ -9,7 +9,7 @@ describe("Withdraw liquidity", () => {
99
const connection = provider.connection;
1010
anchor.setProvider(provider);
1111

12-
const program = anchor.workspace.AmmTutorial as Program<AmmTutorial>;
12+
const program = anchor.workspace.SwapExample as Program<SwapExample>;
1313

1414
let values: TestValues;
1515

0 commit comments

Comments
 (0)