Skip to content
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
191 changes: 172 additions & 19 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bonfida/spl-name-service",
"version": "3.0.18",
"version": "3.0.19",
"license": "MIT",
"files": [
"dist"
Expand Down Expand Up @@ -28,7 +28,7 @@
"homepage": "https://sns.guide",
"scripts": {
"dev": "tsc && node --trace-warnings dist/test.js",
"build": "rm -rf dist && rollup -c && tsc --emitDeclarationOnly --declarationDir dist/cjs && tsc --emitDeclarationOnly --declarationDir dist/esm && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build": "rimraf dist && rollup -c && tsc --emitDeclarationOnly --declarationDir dist/cjs && tsc --emitDeclarationOnly --declarationDir dist/esm && node -p \"JSON.stringify({type: 'commonjs'})\" > ./dist/cjs/package.json",
"prepublish": "npm run build",
"prepack": "npm run build",
"lint": "npm run pretty && eslint .",
Expand Down Expand Up @@ -61,6 +61,7 @@
"jest": "^29.7.0",
"mathjs": "^12.4.3",
"prettier": "^3.5.3",
"rimraf": "^6.1.2",
"rollup": "^4.41.1",
"rollup-plugin-multi-input": "^1.5.0",
"rollup-plugin-visualizer": "^5.14.0",
Expand Down
10 changes: 5 additions & 5 deletions js/tests/registration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Metaplex } from "@metaplex-foundation/js";

jest.setTimeout(20_000);
jest.retryTimes(3);
const FIDA_MINT = new PublicKey("EchesyfXePKdLtoiZSL8pBe8Myagyy8ZRqsACNCFGnvp");
const USDC_MINT = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
const PYTH_MINT = new PublicKey("HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3");

const connection = new Connection(process.env.RPC_URL!);
Expand Down Expand Up @@ -81,8 +81,8 @@ test("Register V2", async () => {
randomBytes(10).toString("hex"),
1_000,
VAULT_OWNER,
getAssociatedTokenAddressSync(FIDA_MINT, VAULT_OWNER, true),
FIDA_MINT,
getAssociatedTokenAddressSync(USDC_MINT, VAULT_OWNER, true),
USDC_MINT,
REFERRERS[1],
);
tx.add(...ix);
Expand All @@ -100,8 +100,8 @@ test("Registration V2 with ref", async () => {
randomBytes(10).toString("hex"),
1_000,
VAULT_OWNER,
getAssociatedTokenAddressSync(FIDA_MINT, VAULT_OWNER, true),
FIDA_MINT,
getAssociatedTokenAddressSync(USDC_MINT, VAULT_OWNER, true),
USDC_MINT,
REFERRERS[1],
);
tx.add(...ix);
Expand Down
Loading