Skip to content

Commit 81e271c

Browse files
authored
Merge pull request #118 from SolanaNameService/feat/add-more-devnet-fx
Feat: Add more devnet functions, constants
2 parents ae24bd6 + 679fb2e commit 81e271c

11 files changed

Lines changed: 507 additions & 23 deletions

js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bonfida/spl-name-service",
3-
"version": "3.0.15",
3+
"version": "3.0.16",
44
"license": "MIT",
55
"files": [
66
"dist"

js/src/bindings/createRecordV2Instruction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { NAME_PROGRAM_ID } from "../constants";
44
import { getDomainKeySync } from "../utils/getDomainKeySync";
55
import { Record, RecordVersion } from "../types/record";
66
import { serializeRecordV2Content } from "../record_v2/serializeRecordV2Content";
7-
import { InvalidParrentError } from "../error";
7+
import { InvalidParentError } from "../error";
88

99
/**
1010
* This function can be used be create a record V2, it handles the serialization of the record data following SNS-IP 1 guidelines
@@ -32,7 +32,7 @@ export const createRecordV2Instruction = (
3232
}
3333

3434
if (!parent) {
35-
throw new InvalidParrentError("Parent could not be found");
35+
throw new InvalidParentError("Parent could not be found");
3636
}
3737

3838
const ix = allocateAndPostRecord(

js/src/bindings/deleteRecordV2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NAME_PROGRAM_ID } from "../constants";
33
import { getDomainKeySync } from "../utils/getDomainKeySync";
44
import { Record, RecordVersion } from "../types/record";
55
import { SNS_RECORDS_ID, deleteRecord } from "@bonfida/sns-records";
6-
import { InvalidParrentError } from "../error";
6+
import { InvalidParentError } from "../error";
77

88
/**
99
* This function deletes a record v2 and returns the rent to the fee payer
@@ -29,7 +29,7 @@ export const deleteRecordV2 = (
2929
}
3030

3131
if (!parent) {
32-
throw new InvalidParrentError("Parent could not be found");
32+
throw new InvalidParentError("Parent could not be found");
3333
}
3434

3535
const ix = deleteRecord(

js/src/bindings/ethValidateRecordV2Content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
validateEthSignature,
99
Validation,
1010
} from "@bonfida/sns-records";
11-
import { InvalidParrentError } from "../error";
11+
import { InvalidParentError } from "../error";
1212

1313
export const ethValidateRecordV2Content = (
1414
domain: string,
@@ -28,7 +28,7 @@ export const ethValidateRecordV2Content = (
2828
}
2929

3030
if (!parent) {
31-
throw new InvalidParrentError("Parent could not be found");
31+
throw new InvalidParentError("Parent could not be found");
3232
}
3333

3434
const ix = validateEthSignature(

js/src/bindings/updateRecordV2Instruction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getDomainKeySync } from "../utils/getDomainKeySync";
44
import { Record, RecordVersion } from "../types/record";
55
import { serializeRecordV2Content } from "../record_v2/serializeRecordV2Content";
66
import { editRecord, SNS_RECORDS_ID } from "@bonfida/sns-records";
7-
import { InvalidParrentError } from "../error";
7+
import { InvalidParentError } from "../error";
88

99
/**
1010
* This function updates the content of a record V2. The data serialization follows the SNS-IP 1 guidelines
@@ -33,7 +33,7 @@ export const updateRecordV2Instruction = (
3333
}
3434

3535
if (!parent) {
36-
throw new InvalidParrentError("Parent could not be found");
36+
throw new InvalidParentError("Parent could not be found");
3737
}
3838

3939
const ix = editRecord(

js/src/bindings/validateRecordV2Content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NAME_PROGRAM_ID } from "../constants";
33
import { getDomainKeySync } from "../utils/getDomainKeySync";
44
import { Record, RecordVersion } from "../types/record";
55
import { SNS_RECORDS_ID, validateSolanaSignature } from "@bonfida/sns-records";
6-
import { InvalidParrentError } from "../error";
6+
import { InvalidParentError } from "../error";
77

88
export const validateRecordV2Content = (
99
staleness: boolean,
@@ -23,7 +23,7 @@ export const validateRecordV2Content = (
2323
}
2424

2525
if (!parent) {
26-
throw new InvalidParrentError("Parent could not be found");
26+
throw new InvalidParentError("Parent could not be found");
2727
}
2828

2929
const ix = validateSolanaSignature(

js/src/bindings/writRoaRecordV2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NAME_PROGRAM_ID } from "../constants";
33
import { getDomainKeySync } from "../utils/getDomainKeySync";
44
import { Record, RecordVersion } from "../types/record";
55
import { SNS_RECORDS_ID, writeRoa } from "@bonfida/sns-records";
6-
import { InvalidParrentError } from "../error";
6+
import { InvalidParentError } from "../error";
77

88
export const writRoaRecordV2 = (
99
domain: string,
@@ -22,7 +22,7 @@ export const writRoaRecordV2 = (
2222
}
2323

2424
if (!parent) {
25-
throw new InvalidParrentError("Parent could not be found");
25+
throw new InvalidParentError("Parent could not be found");
2626
}
2727
const ix = writeRoa(
2828
payer,

0 commit comments

Comments
 (0)