@solana-name-service/sns-sdk-kit 0.9.4-beta → 0.10.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/address/getDomainsForAddress.cjs.map +1 -1
- package/dist/cjs/address/getNftsForAddress.cjs.map +1 -1
- package/dist/cjs/bindings/burnDomain.cjs.map +1 -1
- package/dist/cjs/bindings/createNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/createRecord.cjs.map +1 -1
- package/dist/cjs/bindings/createReverse.cjs.map +1 -1
- package/dist/cjs/bindings/createSubdomain.cjs.map +1 -1
- package/dist/cjs/bindings/deleteNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/deleteRecord.cjs.map +1 -1
- package/dist/cjs/bindings/registerDomain.cjs.map +1 -1
- package/dist/cjs/bindings/registerWithNft.cjs.map +1 -1
- package/dist/cjs/bindings/setPrimaryDomain.cjs.map +1 -1
- package/dist/cjs/bindings/transferDomain.cjs.map +1 -1
- package/dist/cjs/bindings/transferSubdomain.cjs.map +1 -1
- package/dist/cjs/bindings/updateNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/updateRecord.cjs.map +1 -1
- package/dist/cjs/bindings/validateRoa.cjs.map +1 -1
- package/dist/cjs/bindings/validateRoaEthereum.cjs.map +1 -1
- package/dist/cjs/bindings/writeRoa.cjs.map +1 -1
- package/dist/cjs/constants/addresses.cjs +1 -1
- package/dist/cjs/constants/addresses.cjs.map +1 -1
- package/dist/cjs/constants/records.cjs +1 -1
- package/dist/cjs/constants/records.cjs.map +1 -1
- package/dist/cjs/domain/getAllDomains.cjs.map +1 -1
- package/dist/cjs/domain/getSubdomains.cjs +1 -1
- package/dist/cjs/domain/getSubdomains.cjs.map +1 -1
- package/dist/cjs/instructions/allocateAndPostRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/burnDomainInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createAtaInstruction.cjs +1 -1
- package/dist/cjs/instructions/createAtaInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createInstructionV3.cjs.map +1 -1
- package/dist/cjs/instructions/createNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createReverseInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createSplitV2Instruction.cjs.map +1 -1
- package/dist/cjs/instructions/createV2Instruction.cjs.map +1 -1
- package/dist/cjs/instructions/createWithNftInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/deleteNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/deleteRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/reallocInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/registerFavoriteInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/transferInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/updateNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/updateRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/validateRoaEthereumInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/validateRoaInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/writeRoaInstruction.cjs.map +1 -1
- package/dist/cjs/states/nft.cjs.map +1 -1
- package/dist/cjs/types/record.cjs +1 -1
- package/dist/cjs/types/record.cjs.map +1 -1
- package/dist/esm/address/getDomainsForAddress.mjs.map +1 -1
- package/dist/esm/address/getNftsForAddress.mjs.map +1 -1
- package/dist/esm/bindings/burnDomain.mjs.map +1 -1
- package/dist/esm/bindings/createNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/createRecord.mjs.map +1 -1
- package/dist/esm/bindings/createReverse.mjs.map +1 -1
- package/dist/esm/bindings/createSubdomain.mjs.map +1 -1
- package/dist/esm/bindings/deleteNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/deleteRecord.mjs.map +1 -1
- package/dist/esm/bindings/registerDomain.mjs.map +1 -1
- package/dist/esm/bindings/registerWithNft.mjs.map +1 -1
- package/dist/esm/bindings/setPrimaryDomain.mjs.map +1 -1
- package/dist/esm/bindings/transferDomain.mjs.map +1 -1
- package/dist/esm/bindings/transferSubdomain.mjs.map +1 -1
- package/dist/esm/bindings/updateNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/updateRecord.mjs.map +1 -1
- package/dist/esm/bindings/validateRoa.mjs.map +1 -1
- package/dist/esm/bindings/validateRoaEthereum.mjs.map +1 -1
- package/dist/esm/bindings/writeRoa.mjs.map +1 -1
- package/dist/esm/constants/addresses.mjs +1 -1
- package/dist/esm/constants/addresses.mjs.map +1 -1
- package/dist/esm/constants/records.mjs +1 -1
- package/dist/esm/constants/records.mjs.map +1 -1
- package/dist/esm/domain/getAllDomains.mjs.map +1 -1
- package/dist/esm/domain/getSubdomains.mjs +1 -1
- package/dist/esm/domain/getSubdomains.mjs.map +1 -1
- package/dist/esm/instructions/allocateAndPostRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/burnDomainInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createAtaInstruction.mjs +1 -1
- package/dist/esm/instructions/createAtaInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createInstructionV3.mjs.map +1 -1
- package/dist/esm/instructions/createNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createReverseInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createSplitV2Instruction.mjs.map +1 -1
- package/dist/esm/instructions/createV2Instruction.mjs.map +1 -1
- package/dist/esm/instructions/createWithNftInstruction.mjs.map +1 -1
- package/dist/esm/instructions/deleteNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/deleteRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/reallocInstruction.mjs.map +1 -1
- package/dist/esm/instructions/registerFavoriteInstruction.mjs.map +1 -1
- package/dist/esm/instructions/transferInstruction.mjs.map +1 -1
- package/dist/esm/instructions/updateNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/updateRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/validateRoaEthereumInstruction.mjs.map +1 -1
- package/dist/esm/instructions/validateRoaInstruction.mjs.map +1 -1
- package/dist/esm/instructions/writeRoaInstruction.mjs.map +1 -1
- package/dist/esm/node_modules/@solana-program/token/dist/src/index.mjs +1 -1
- package/dist/esm/states/nft.mjs.map +1 -1
- package/dist/esm/types/record.mjs +1 -1
- package/dist/esm/types/record.mjs.map +1 -1
- package/dist/types/bindings/burnDomain.d.ts +2 -2
- package/dist/types/bindings/createNameRegistry.d.ts +2 -2
- package/dist/types/bindings/createRecord.d.ts +2 -2
- package/dist/types/bindings/createReverse.d.ts +2 -2
- package/dist/types/bindings/createSubdomain.d.ts +2 -2
- package/dist/types/bindings/deleteNameRegistry.d.ts +2 -2
- package/dist/types/bindings/deleteRecord.d.ts +2 -2
- package/dist/types/bindings/registerDomain.d.ts +2 -2
- package/dist/types/bindings/registerWithNft.d.ts +2 -2
- package/dist/types/bindings/setPrimaryDomain.d.ts +2 -2
- package/dist/types/bindings/transferDomain.d.ts +2 -2
- package/dist/types/bindings/transferSubdomain.d.ts +2 -2
- package/dist/types/bindings/updateNameRegistry.d.ts +2 -2
- package/dist/types/bindings/updateRecord.d.ts +2 -2
- package/dist/types/bindings/validateRoa.d.ts +2 -2
- package/dist/types/bindings/validateRoaEthereum.d.ts +2 -2
- package/dist/types/bindings/writeRoa.d.ts +2 -2
- package/dist/types/codecs.d.ts +1 -1
- package/dist/types/instructions/allocateAndPostRecordInstruction.d.ts +2 -2
- package/dist/types/instructions/burnDomainInstruction.d.ts +2 -2
- package/dist/types/instructions/createAtaInstruction.d.ts +2 -2
- package/dist/types/instructions/createInstructionV3.d.ts +2 -2
- package/dist/types/instructions/createNameRegistryInstruction.d.ts +2 -2
- package/dist/types/instructions/createReverseInstruction.d.ts +2 -2
- package/dist/types/instructions/createSplitV2Instruction.d.ts +2 -2
- package/dist/types/instructions/createV2Instruction.d.ts +2 -2
- package/dist/types/instructions/createWithNftInstruction.d.ts +2 -2
- package/dist/types/instructions/deleteNameRegistryInstruction.d.ts +2 -2
- package/dist/types/instructions/deleteRecordInstruction.d.ts +2 -2
- package/dist/types/instructions/reallocInstruction.d.ts +2 -2
- package/dist/types/instructions/registerFavoriteInstruction.d.ts +2 -2
- package/dist/types/instructions/transferInstruction.d.ts +2 -2
- package/dist/types/instructions/updateNameRegistryInstruction.d.ts +2 -2
- package/dist/types/instructions/updateRecordInstruction.d.ts +2 -2
- package/dist/types/instructions/validateRoaEthereumInstruction.d.ts +2 -2
- package/dist/types/instructions/validateRoaInstruction.d.ts +2 -2
- package/dist/types/instructions/writeRoaInstruction.d.ts +2 -2
- package/dist/types/record/verifyRecordRightOfAssociation.d.ts +1 -1
- package/dist/types/types/record.d.ts +2 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWithNftInstruction.mjs","sources":["../../../src/instructions/createWithNftInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"createWithNftInstruction.mjs","sources":["../../../src/instructions/createWithNftInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class createWithNftInstruction {\r\n tag: number;\r\n name: string;\r\n space: number;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n name: \"string\",\r\n space: \"u32\",\r\n },\r\n };\r\n\r\n constructor(obj: { name: string; space: number }) {\r\n this.tag = 17;\r\n this.name = obj.name;\r\n this.space = obj.space;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(createWithNftInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n namingServiceProgram: Address,\r\n rootDomain: Address,\r\n name: Address,\r\n reverseLookup: Address,\r\n systemProgram: Address,\r\n centralState: Address,\r\n buyer: Address,\r\n nftSource: Address,\r\n nftMetadata: Address,\r\n nftMint: Address,\r\n masterEdition: Address,\r\n collection: Address,\r\n splTokenProgram: Address,\r\n rentSysvar: Address,\r\n state: Address,\r\n mplTokenMetadata: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: namingServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: rootDomain,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: name,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: reverseLookup,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: buyer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: nftSource,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: nftMetadata,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: nftMint,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: masterEdition,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: collection,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: splTokenProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: rentSysvar,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: state,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: mplTokenMetadata,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["createWithNftInstruction","tag","name","space","static","struct","constructor","obj","this","serialize","schema","getInstruction","programAddress","namingServiceProgram","rootDomain","reverseLookup","systemProgram","centralState","buyer","nftSource","nftMetadata","nftMint","masterEdition","collection","splTokenProgram","rentSysvar","state","mplTokenMetadata","data","accounts","address","role","AccountRole","READONLY","WRITABLE","WRITABLE_SIGNER"],"mappings":"oHAGaA,EACXC,IACAC,KACAC,MAEAC,cAAgB,CACdC,OAAQ,CACNJ,IAAK,KACLC,KAAM,SACNC,MAAO,QAIX,WAAAG,CAAYC,GACVC,KAAKP,IAAM,GACXO,KAAKN,KAAOK,EAAIL,KAChBM,KAAKL,MAAQI,EAAIJ,MAGnB,SAAAM,GACE,OAAOA,EAAUT,EAAyBU,OAAQF,MAGpD,cAAAG,CACEC,EACAC,EACAC,EACAZ,EACAa,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOpB,KAAKC,YAqElB,MAAO,CACLG,iBACAiB,SArE8B,CAC9B,CACEC,QAASjB,EACTkB,KAAMC,EAAYC,UAEpB,CACEH,QAAShB,EACTiB,KAAMC,EAAYC,UAEpB,CACEH,QAAS5B,EACT6B,KAAMC,EAAYE,UAEpB,CACEJ,QAASf,EACTgB,KAAMC,EAAYE,UAEpB,CACEJ,QAASd,EACTe,KAAMC,EAAYC,UAEpB,CACEH,QAASb,EACTc,KAAMC,EAAYC,UAEpB,CACEH,QAASZ,EACTa,KAAMC,EAAYG,iBAEpB,CACEL,QAASX,EACTY,KAAMC,EAAYE,UAEpB,CACEJ,QAASV,EACTW,KAAMC,EAAYE,UAEpB,CACEJ,QAAST,EACTU,KAAMC,EAAYE,UAEpB,CACEJ,QAASR,EACTS,KAAMC,EAAYE,UAEpB,CACEJ,QAASP,EACTQ,KAAMC,EAAYE,UAEpB,CACEJ,QAASN,EACTO,KAAMC,EAAYC,UAEpB,CACEH,QAASL,EACTM,KAAMC,EAAYC,UAEpB,CACEH,QAASJ,EACTK,KAAMC,EAAYC,UAEpB,CACEH,QAASH,EACTI,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteNameRegistryInstruction.mjs","sources":["../../../src/instructions/deleteNameRegistryInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"deleteNameRegistryInstruction.mjs","sources":["../../../src/instructions/deleteNameRegistryInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class DeleteNameRegistryInstruction {\r\n tag: number;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n },\r\n };\r\n\r\n constructor() {\r\n this.tag = 3;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(DeleteNameRegistryInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n domainAddress: Address,\r\n refundTarget: Address,\r\n owner: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: domainAddress,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: owner,\r\n role: AccountRole.READONLY_SIGNER,\r\n },\r\n {\r\n address: refundTarget,\r\n role: AccountRole.WRITABLE,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["DeleteNameRegistryInstruction","tag","static","struct","constructor","this","serialize","schema","getInstruction","programAddress","domainAddress","refundTarget","owner","data","accounts","address","role","AccountRole","WRITABLE","READONLY_SIGNER"],"mappings":"oHAGaA,EACXC,IAEAC,cAAgB,CACdC,OAAQ,CACNF,IAAK,OAIT,WAAAG,GACEC,KAAKJ,IAAM,EAGb,SAAAK,GACE,OAAOA,EAAUN,EAA8BO,OAAQF,MAGzD,cAAAG,CACEC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOR,KAAKC,YAiBlB,MAAO,CACLG,iBACAK,SAjB8B,CAC9B,CACEC,QAASL,EACTM,KAAMC,EAAYC,UAEpB,CACEH,QAASH,EACTI,KAAMC,EAAYE,iBAEpB,CACEJ,QAASJ,EACTK,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteRecordInstruction.mjs","sources":["../../../src/instructions/deleteRecordInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"deleteRecordInstruction.mjs","sources":["../../../src/instructions/deleteRecordInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class deleteRecordInstruction {\r\n tag: number;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n },\r\n };\r\n\r\n constructor() {\r\n this.tag = 5;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(deleteRecordInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgram: Address,\r\n splNameServiceProgram: Address,\r\n payer: Address,\r\n record: Address,\r\n domainAddress: Address,\r\n domainOwner: Address,\r\n centralState: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: splNameServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: payer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: record,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainAddress,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainOwner,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["deleteRecordInstruction","tag","static","struct","constructor","this","serialize","schema","getInstruction","programAddress","systemProgram","splNameServiceProgram","payer","record","domainAddress","domainOwner","centralState","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE"],"mappings":"oHAGaA,EACXC,IAEAC,cAAgB,CACdC,OAAQ,CACNF,IAAK,OAIT,WAAAG,GACEC,KAAKJ,IAAM,EAGb,SAAAK,GACE,OAAOA,EAAUN,EAAwBO,OAAQF,MAGnD,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOZ,KAAKC,YAiClB,MAAO,CACLG,iBACAS,SAjC8B,CAC9B,CACEC,QAAST,EACTU,KAAMC,EAAYC,UAEpB,CACEH,QAASR,EACTS,KAAMC,EAAYC,UAEpB,CACEH,QAASP,EACTQ,KAAMC,EAAYE,iBAEpB,CACEJ,QAASN,EACTO,KAAMC,EAAYG,UAEpB,CACEL,QAASL,EACTM,KAAMC,EAAYG,UAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYE,iBAEpB,CACEJ,QAASH,EACTI,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reallocInstruction.mjs","sources":["../../../src/instructions/reallocInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"reallocInstruction.mjs","sources":["../../../src/instructions/reallocInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class ReallocInstruction {\r\n tag: number;\r\n space: number;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n space: \"u32\",\r\n },\r\n };\r\n\r\n constructor(obj: { space: number }) {\r\n this.tag = 4;\r\n this.space = obj.space;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(ReallocInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgramId: Address,\r\n payerKey: Address,\r\n nameAccountKey: Address,\r\n nameOwnerKey: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgramId,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: payerKey,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: nameAccountKey,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: nameOwnerKey,\r\n role: AccountRole.READONLY_SIGNER,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["ReallocInstruction","tag","space","static","struct","constructor","obj","this","serialize","schema","getInstruction","programAddress","systemProgramId","payerKey","nameAccountKey","nameOwnerKey","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE","READONLY_SIGNER"],"mappings":"oHAGaA,EACXC,IACAC,MAEAC,cAAgB,CACdC,OAAQ,CACNH,IAAK,KACLC,MAAO,QAIX,WAAAG,CAAYC,GACVC,KAAKN,IAAM,EACXM,KAAKL,MAAQI,EAAIJ,MAGnB,SAAAM,GACE,OAAOA,EAAUR,EAAmBS,OAAQF,MAG9C,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOT,KAAKC,YAqBlB,MAAO,CACLG,iBACAM,SArB8B,CAC9B,CACEC,QAASN,EACTO,KAAMC,EAAYC,UAEpB,CACEH,QAASL,EACTM,KAAMC,EAAYE,iBAEpB,CACEJ,QAASJ,EACTK,KAAMC,EAAYG,UAEpB,CACEL,QAASH,EACTI,KAAMC,EAAYI,kBAOpBR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerFavoriteInstruction.mjs","sources":["../../../src/instructions/registerFavoriteInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"registerFavoriteInstruction.mjs","sources":["../../../src/instructions/registerFavoriteInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class registerFavoriteInstruction {\r\n tag: number;\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n },\r\n };\r\n\r\n constructor() {\r\n this.tag = 6;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(registerFavoriteInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n nameAccount: Address,\r\n favouriteAccount: Address,\r\n owner: Address,\r\n systemProgram: Address,\r\n optParent?: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: nameAccount,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: favouriteAccount,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: owner,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n if (optParent) {\r\n accounts.push({\r\n address: optParent,\r\n role: AccountRole.READONLY,\r\n });\r\n }\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["registerFavoriteInstruction","tag","static","struct","constructor","this","serialize","schema","getInstruction","programAddress","nameAccount","favouriteAccount","owner","systemProgram","optParent","data","accounts","address","role","AccountRole","READONLY","WRITABLE","WRITABLE_SIGNER","push"],"mappings":"oHAGaA,EACXC,IACAC,cAAgB,CACdC,OAAQ,CACNF,IAAK,OAIT,WAAAG,GACEC,KAAKJ,IAAM,EAGb,SAAAK,GACE,OAAOA,EAAUN,EAA4BO,OAAQF,MAGvD,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOV,KAAKC,YACZU,EAA0B,CAC9B,CACEC,QAASP,EACTQ,KAAMC,EAAYC,UAEpB,CACEH,QAASN,EACTO,KAAMC,EAAYE,UAEpB,CACEJ,QAASL,EACTM,KAAMC,EAAYG,iBAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYC,WAWtB,OAPIN,GACFE,EAASO,KAAK,CACZN,QAASH,EACTI,KAAMC,EAAYC,WAIf,CACLX,iBACAO,WACAD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferInstruction.mjs","sources":["../../../src/instructions/transferInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n
|
|
1
|
+
{"version":3,"file":"transferInstruction.mjs","sources":["../../../src/instructions/transferInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n AccountMeta,\r\n Instruction,\r\n ReadonlyUint8Array,\r\n} from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nimport { addressCodec } from \"../codecs\";\r\nimport { DEFAULT_ADDRESS } from \"../constants/addresses\";\r\n\r\nexport class TransferInstruction {\r\n tag: number;\r\n encodedNewOwnerAddress: ReadonlyUint8Array;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n encodedNewOwnerAddress: { array: { type: \"u8\", len: 32 } },\r\n },\r\n };\r\n\r\n constructor(obj: { newOwner: Address }) {\r\n this.tag = 2;\r\n this.encodedNewOwnerAddress = addressCodec.encode(obj.newOwner);\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(TransferInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n domainAddress: Address,\r\n currentOwner: Address,\r\n classAddress?: Address,\r\n parentAddress?: Address,\r\n parentOwner?: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: domainAddress,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: parentOwner ? parentOwner : currentOwner,\r\n role: AccountRole.READONLY_SIGNER,\r\n },\r\n ];\r\n\r\n if (classAddress) {\r\n accounts.push({\r\n address: classAddress,\r\n role: AccountRole.READONLY_SIGNER,\r\n });\r\n }\r\n\r\n if (parentOwner && parentAddress) {\r\n if (!classAddress) {\r\n accounts.push({\r\n address: DEFAULT_ADDRESS,\r\n role: AccountRole.READONLY,\r\n });\r\n }\r\n\r\n accounts.push({\r\n address: parentAddress,\r\n role: AccountRole.READONLY,\r\n });\r\n }\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["TransferInstruction","tag","encodedNewOwnerAddress","static","struct","array","type","len","constructor","obj","this","addressCodec","encode","newOwner","serialize","schema","getInstruction","programAddress","domainAddress","currentOwner","classAddress","parentAddress","parentOwner","data","accounts","address","role","AccountRole","WRITABLE","READONLY_SIGNER","push","DEFAULT_ADDRESS","READONLY"],"mappings":"8NAYaA,EACXC,IACAC,uBAEAC,cAAgB,CACdC,OAAQ,CACNH,IAAK,KACLC,uBAAwB,CAAEG,MAAO,CAAEC,KAAM,KAAMC,IAAK,OAIxD,WAAAC,CAAYC,GACVC,KAAKT,IAAM,EACXS,KAAKR,uBAAyBS,EAAaC,OAAOH,EAAII,UAGxD,SAAAC,GACE,OAAOA,EAAUd,EAAoBe,OAAQL,MAG/C,cAAAM,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOb,KAAKI,YAEZU,EAA0B,CAC9B,CACEC,QAASP,EACTQ,KAAMC,EAAYC,UAEpB,CACEH,QAASH,GAA4BH,EACrCO,KAAMC,EAAYE,kBAyBtB,OArBIT,GACFI,EAASM,KAAK,CACZL,QAASL,EACTM,KAAMC,EAAYE,kBAIlBP,GAAeD,IACZD,GACHI,EAASM,KAAK,CACZL,QAASM,EACTL,KAAMC,EAAYK,WAItBR,EAASM,KAAK,CACZL,QAASJ,EACTK,KAAMC,EAAYK,YAIf,CACLf,iBACAO,WACAD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateNameRegistryInstruction.mjs","sources":["../../../src/instructions/updateNameRegistryInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"updateNameRegistryInstruction.mjs","sources":["../../../src/instructions/updateNameRegistryInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class UpdateNameRegistryInstruction {\r\n tag: number;\r\n offset: number;\r\n inputData: Uint8Array;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n offset: \"u32\",\r\n inputData: { array: { type: \"u8\" } },\r\n },\r\n };\r\n\r\n constructor(obj: { offset: number; inputDat: Uint8Array }) {\r\n this.tag = 1;\r\n this.offset = obj.offset;\r\n this.inputData = obj.inputDat;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(UpdateNameRegistryInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n domainAddress: Address,\r\n signer: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: domainAddress,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: signer,\r\n role: AccountRole.READONLY_SIGNER,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["UpdateNameRegistryInstruction","tag","offset","inputData","static","struct","array","type","constructor","obj","this","inputDat","serialize","schema","getInstruction","programAddress","domainAddress","signer","data","accounts","address","role","AccountRole","WRITABLE","READONLY_SIGNER"],"mappings":"oHAGaA,EACXC,IACAC,OACAC,UAEAC,cAAgB,CACdC,OAAQ,CACNJ,IAAK,KACLC,OAAQ,MACRC,UAAW,CAAEG,MAAO,CAAEC,KAAM,SAIhC,WAAAC,CAAYC,GACVC,KAAKT,IAAM,EACXS,KAAKR,OAASO,EAAIP,OAClBQ,KAAKP,UAAYM,EAAIE,SAGvB,SAAAC,GACE,OAAOA,EAAUZ,EAA8Ba,OAAQH,MAGzD,cAAAI,CACEC,EACAC,EACAC,GAEA,MAAMC,EAAOR,KAAKE,YAalB,MAAO,CACLG,iBACAI,SAb8B,CAC9B,CACEC,QAASJ,EACTK,KAAMC,EAAYC,UAEpB,CACEH,QAASH,EACTI,KAAMC,EAAYE,kBAOpBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateRecordInstruction.mjs","sources":["../../../src/instructions/updateRecordInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n
|
|
1
|
+
{"version":3,"file":"updateRecordInstruction.mjs","sources":["../../../src/instructions/updateRecordInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n AccountMeta,\r\n Instruction,\r\n ReadonlyUint8Array,\r\n} from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class updateRecordInstruction {\r\n tag: number;\r\n record: string;\r\n content: ReadonlyUint8Array;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n record: \"string\",\r\n content: { array: { type: \"u8\" } },\r\n },\r\n };\r\n\r\n constructor(obj: { record: string; content: ReadonlyUint8Array }) {\r\n this.tag = 2;\r\n this.record = obj.record;\r\n this.content = obj.content;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(updateRecordInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgram: Address,\r\n splNameServiceProgram: Address,\r\n feePayer: Address,\r\n record: Address,\r\n domain: Address,\r\n domainOwner: Address,\r\n centralState: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: splNameServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: feePayer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: record,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domain,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainOwner,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["updateRecordInstruction","tag","record","content","static","struct","array","type","constructor","obj","this","serialize","schema","getInstruction","programAddress","systemProgram","splNameServiceProgram","feePayer","domain","domainOwner","centralState","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE"],"mappings":"oHASaA,EACXC,IACAC,OACAC,QAEAC,cAAgB,CACdC,OAAQ,CACNJ,IAAK,KACLC,OAAQ,SACRC,QAAS,CAAEG,MAAO,CAAEC,KAAM,SAI9B,WAAAC,CAAYC,GACVC,KAAKT,IAAM,EACXS,KAAKR,OAASO,EAAIP,OAClBQ,KAAKP,QAAUM,EAAIN,QAGrB,SAAAQ,GACE,OAAOA,EAAUX,EAAwBY,OAAQF,MAGnD,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAf,EACAgB,EACAC,EACAC,GAEA,MAAMC,EAAOX,KAAKC,YAiClB,MAAO,CACLG,iBACAQ,SAjC8B,CAC9B,CACEC,QAASR,EACTS,KAAMC,EAAYC,UAEpB,CACEH,QAASP,EACTQ,KAAMC,EAAYC,UAEpB,CACEH,QAASN,EACTO,KAAMC,EAAYE,iBAEpB,CACEJ,QAASrB,EACTsB,KAAMC,EAAYG,UAEpB,CACEL,QAASL,EACTM,KAAMC,EAAYG,UAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYE,iBAEpB,CACEJ,QAASH,EACTI,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateRoaEthereumInstruction.mjs","sources":["../../../src/instructions/validateRoaEthereumInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n
|
|
1
|
+
{"version":3,"file":"validateRoaEthereumInstruction.mjs","sources":["../../../src/instructions/validateRoaEthereumInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n AccountMeta,\r\n Instruction,\r\n ReadonlyUint8Array,\r\n} from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class validateRoaEthereumInstruction {\r\n tag: number;\r\n validation: number;\r\n signature: ReadonlyUint8Array;\r\n expectedPubkey: ReadonlyUint8Array;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n validation: \"u8\",\r\n signature: { array: { type: \"u8\" } },\r\n expectedPubkey: { array: { type: \"u8\" } },\r\n },\r\n };\r\n\r\n constructor(obj: {\r\n validation: number;\r\n signature: ReadonlyUint8Array;\r\n expectedPubkey: ReadonlyUint8Array;\r\n }) {\r\n this.tag = 4;\r\n this.validation = obj.validation;\r\n this.signature = obj.signature;\r\n this.expectedPubkey = obj.expectedPubkey;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(validateRoaEthereumInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgram: Address,\r\n splNameServiceProgram: Address,\r\n feePayer: Address,\r\n record: Address,\r\n domain: Address,\r\n domainOwner: Address,\r\n centralState: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: splNameServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: feePayer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: record,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domain,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainOwner,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["validateRoaEthereumInstruction","tag","validation","signature","expectedPubkey","static","struct","array","type","constructor","obj","this","serialize","schema","getInstruction","programAddress","systemProgram","splNameServiceProgram","feePayer","record","domain","domainOwner","centralState","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE"],"mappings":"oHASaA,EACXC,IACAC,WACAC,UACAC,eAEAC,cAAgB,CACdC,OAAQ,CACNL,IAAK,KACLC,WAAY,KACZC,UAAW,CAAEI,MAAO,CAAEC,KAAM,OAC5BJ,eAAgB,CAAEG,MAAO,CAAEC,KAAM,SAIrC,WAAAC,CAAYC,GAKVC,KAAKV,IAAM,EACXU,KAAKT,WAAaQ,EAAIR,WACtBS,KAAKR,UAAYO,EAAIP,UACrBQ,KAAKP,eAAiBM,EAAIN,eAG5B,SAAAQ,GACE,OAAOA,EAAUZ,EAA+Ba,OAAQF,MAG1D,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOZ,KAAKC,YAiClB,MAAO,CACLG,iBACAS,SAjC8B,CAC9B,CACEC,QAAST,EACTU,KAAMC,EAAYC,UAEpB,CACEH,QAASR,EACTS,KAAMC,EAAYC,UAEpB,CACEH,QAASP,EACTQ,KAAMC,EAAYE,iBAEpB,CACEJ,QAASN,EACTO,KAAMC,EAAYG,UAEpB,CACEL,QAASL,EACTM,KAAMC,EAAYG,UAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYE,iBAEpB,CACEJ,QAASH,EACTI,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateRoaInstruction.mjs","sources":["../../../src/instructions/validateRoaInstruction.ts"],"sourcesContent":["import { AccountRole, Address,
|
|
1
|
+
{"version":3,"file":"validateRoaInstruction.mjs","sources":["../../../src/instructions/validateRoaInstruction.ts"],"sourcesContent":["import { AccountRole, Address, AccountMeta, Instruction } from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nexport class validateRoaInstruction {\r\n tag: number;\r\n staleness: boolean;\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n staleness: \"bool\",\r\n },\r\n };\r\n\r\n constructor(obj: { staleness: boolean }) {\r\n this.tag = 3;\r\n this.staleness = obj.staleness;\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(validateRoaInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgram: Address,\r\n splNameServiceProgram: Address,\r\n feePayer: Address,\r\n record: Address,\r\n domain: Address,\r\n domainOwner: Address,\r\n centralState: Address,\r\n verifier: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: splNameServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: feePayer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: record,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domain,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainOwner,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: verifier,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["validateRoaInstruction","tag","staleness","static","struct","constructor","obj","this","serialize","schema","getInstruction","programAddress","systemProgram","splNameServiceProgram","feePayer","record","domain","domainOwner","centralState","verifier","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE"],"mappings":"oHAGaA,EACXC,IACAC,UACAC,cAAgB,CACdC,OAAQ,CACNH,IAAK,KACLC,UAAW,SAIf,WAAAG,CAAYC,GACVC,KAAKN,IAAM,EACXM,KAAKL,UAAYI,EAAIJ,UAGvB,SAAAM,GACE,OAAOA,EAAUR,EAAuBS,OAAQF,MAGlD,cAAAG,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOb,KAAKC,YAqClB,MAAO,CACLG,iBACAU,SArC8B,CAC9B,CACEC,QAASV,EACTW,KAAMC,EAAYC,UAEpB,CACEH,QAAST,EACTU,KAAMC,EAAYC,UAEpB,CACEH,QAASR,EACTS,KAAMC,EAAYE,iBAEpB,CACEJ,QAASP,EACTQ,KAAMC,EAAYG,UAEpB,CACEL,QAASN,EACTO,KAAMC,EAAYG,UAEpB,CACEL,QAASL,EACTM,KAAMC,EAAYG,UAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYC,UAEpB,CACEH,QAASH,EACTI,KAAMC,EAAYE,kBAOpBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeRoaInstruction.mjs","sources":["../../../src/instructions/writeRoaInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n
|
|
1
|
+
{"version":3,"file":"writeRoaInstruction.mjs","sources":["../../../src/instructions/writeRoaInstruction.ts"],"sourcesContent":["import {\r\n AccountRole,\r\n Address,\r\n AccountMeta,\r\n Instruction,\r\n ReadonlyUint8Array,\r\n} from \"@solana/kit\";\r\nimport { serialize } from \"borsh\";\r\n\r\nimport { addressCodec } from \"../codecs\";\r\n\r\nexport class writeRoaInstruction {\r\n tag: number;\r\n roaId: ReadonlyUint8Array;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n roaId: { array: { type: \"u8\" } },\r\n },\r\n };\r\n\r\n constructor(obj: { roaId: Address }) {\r\n this.tag = 6;\r\n this.roaId = addressCodec.encode(obj.roaId);\r\n }\r\n\r\n serialize(): Uint8Array {\r\n return serialize(writeRoaInstruction.schema, this);\r\n }\r\n\r\n getInstruction(\r\n programAddress: Address,\r\n systemProgram: Address,\r\n splNameServiceProgram: Address,\r\n feePayer: Address,\r\n record: Address,\r\n domain: Address,\r\n domainOwner: Address,\r\n centralState: Address\r\n ): Instruction {\r\n const data = this.serialize();\r\n\r\n const accounts: AccountMeta[] = [\r\n {\r\n address: systemProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: splNameServiceProgram,\r\n role: AccountRole.READONLY,\r\n },\r\n {\r\n address: feePayer,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: record,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domain,\r\n role: AccountRole.WRITABLE,\r\n },\r\n {\r\n address: domainOwner,\r\n role: AccountRole.WRITABLE_SIGNER,\r\n },\r\n {\r\n address: centralState,\r\n role: AccountRole.READONLY,\r\n },\r\n ];\r\n\r\n return {\r\n programAddress,\r\n accounts,\r\n data,\r\n };\r\n }\r\n}\r\n"],"names":["writeRoaInstruction","tag","roaId","static","struct","array","type","constructor","obj","this","addressCodec","encode","serialize","schema","getInstruction","programAddress","systemProgram","splNameServiceProgram","feePayer","record","domain","domainOwner","centralState","data","accounts","address","role","AccountRole","READONLY","WRITABLE_SIGNER","WRITABLE"],"mappings":"iKAWaA,EACXC,IACAC,MAEAC,cAAgB,CACdC,OAAQ,CACNH,IAAK,KACLC,MAAO,CAAEG,MAAO,CAAEC,KAAM,SAI5B,WAAAC,CAAYC,GACVC,KAAKR,IAAM,EACXQ,KAAKP,MAAQQ,EAAaC,OAAOH,EAAIN,OAGvC,SAAAU,GACE,OAAOA,EAAUZ,EAAoBa,OAAQJ,MAG/C,cAAAK,CACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOd,KAAKG,YAiClB,MAAO,CACLG,iBACAS,SAjC8B,CAC9B,CACEC,QAAST,EACTU,KAAMC,EAAYC,UAEpB,CACEH,QAASR,EACTS,KAAMC,EAAYC,UAEpB,CACEH,QAASP,EACTQ,KAAMC,EAAYE,iBAEpB,CACEJ,QAASN,EACTO,KAAMC,EAAYG,UAEpB,CACEL,QAASL,EACTM,KAAMC,EAAYG,UAEpB,CACEL,QAASJ,EACTK,KAAMC,EAAYE,iBAEpB,CACEJ,QAASH,EACTI,KAAMC,EAAYC,WAOpBL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{combineCodec as e,getProgramDerivedAddress as n,getAddressEncoder as r,getStructEncoder as o,getU64Encoder as i,getOptionEncoder as t,getU32Encoder as a,getStructDecoder as s,getAddressDecoder as u,getU64Decoder as d,getOptionDecoder as l,getU32Decoder as c,transformEncoder as f,getU8Encoder as m,getEnumEncoder as z,getEnumDecoder as x}from"@solana/kit";var p=(e=>(e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen",e))(p||{});function A(){return z(p)}function v(){return x(p)}function V(){return o([["mint",r()],["owner",r()],["amount",i()],["delegate",t(r(),{prefix:a(),noneValue:"zeroes"})],["state",A()],["isNative",t(i(),{prefix:a(),noneValue:"zeroes"})],["delegatedAmount",i()],["closeAuthority",t(r(),{prefix:a(),noneValue:"zeroes"})]])}function g(){return s([["mint",u()],["owner",u()],["amount",d()],["delegate",l(u(),{prefix:c(),noneValue:"zeroes"})],["state",v()],["isNative",l(d(),{prefix:c(),noneValue:"zeroes"})],["delegatedAmount",d()],["closeAuthority",l(u(),{prefix:c(),noneValue:"zeroes"})]])}function b(){return e(V(),g())}
|
|
1
|
+
import{combineCodec as e,getProgramDerivedAddress as n,getAddressEncoder as r,getStructEncoder as o,getU64Encoder as i,getOptionEncoder as t,getU32Encoder as a,getStructDecoder as s,getAddressDecoder as u,getU64Decoder as d,getOptionDecoder as l,getU32Decoder as c,transformEncoder as f,getU8Encoder as m,getEnumEncoder as z,getEnumDecoder as x}from"@solana/kit";var p=(e=>(e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen",e))(p||{});function A(){return z(p)}function v(){return x(p)}function V(){return o([["mint",r()],["owner",r()],["amount",i()],["delegate",t(r(),{prefix:a(),noneValue:"zeroes"})],["state",A()],["isNative",t(i(),{prefix:a(),noneValue:"zeroes"})],["delegatedAmount",i()],["closeAuthority",t(r(),{prefix:a(),noneValue:"zeroes"})]])}function g(){return s([["mint",u()],["owner",u()],["amount",d()],["delegate",l(u(),{prefix:c(),noneValue:"zeroes"})],["state",v()],["isNative",l(d(),{prefix:c(),noneValue:"zeroes"})],["delegatedAmount",d()],["closeAuthority",l(u(),{prefix:c(),noneValue:"zeroes"})]])}function b(){return e(V(),g())}async function k(e,o={}){const{programAddress:i="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"}=o;return await n({programAddress:i,seeds:[r().encode(e.owner),r().encode(e.tokenProgram),r().encode(e.mint)]})}var h=1;function w(){return f(o([["discriminator",m()]]),(e=>({...e,discriminator:1})))}var G="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";export{G as ASSOCIATED_TOKEN_PROGRAM_ADDRESS,p as AccountState,h as CREATE_ASSOCIATED_TOKEN_IDEMPOTENT_DISCRIMINATOR,k as findAssociatedTokenPda,v as getAccountStateDecoder,A as getAccountStateEncoder,w as getCreateAssociatedTokenIdempotentInstructionDataEncoder,b as getTokenCodec,g as getTokenDecoder,V as getTokenEncoder};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nft.mjs","sources":["../../../src/states/nft.ts"],"sourcesContent":["import {\r\n Address,\r\n GetAccountInfoApi,\r\n GetProgramAccountsApi,\r\n Rpc,\r\n fetchEncodedAccount,\r\n getProgramDerivedAddress,\r\n} from \"@solana/kit\";\r\nimport { deserialize } from \"borsh\";\r\n\r\nimport { addressCodec, base64Codec, utf8Codec } from \"../codecs\";\r\nimport { NAME_TOKENIZER_ADDRESS } from \"../constants/addresses\";\r\nimport { InvalidSerializedDataError, NftAccountNotFoundError } from \"../errors\";\r\n\r\nexport enum NftTag {\r\n Uninitialized = 0,\r\n CentralState = 1,\r\n ActiveRecord = 2,\r\n InactiveRecord = 3,\r\n}\r\n\r\nexport class NftState {\r\n tag: NftTag;\r\n nonce: number;\r\n nameAccount: Address;\r\n owner: Address;\r\n nftMint: Address;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n nonce: \"u8\",\r\n nameAccount: { array: { type: \"u8\", len: 32 } },\r\n owner: { array: { type: \"u8\", len: 32 } },\r\n nftMint: { array: { type: \"u8\", len: 32 } },\r\n },\r\n };\r\n\r\n // The total length of the struct is calculated as the sum of:\r\n // - `tag`: 1 byte (`u8`)\r\n // - `nonce`: 1 byte (`u8`)\r\n // - `nameAccount`: 32 bytes (array of `u8` with length 32)\r\n // - `owner`: 32 bytes (array of `u8` with length 32)\r\n // - `nftMint`: 32 bytes (array of `u8` with length 32)\r\n static LEN = 1 + 1 + 32 + 32 + 32;\r\n\r\n constructor(obj: {\r\n tag: number;\r\n nonce: number;\r\n nameAccount: Uint8Array;\r\n owner: Uint8Array;\r\n nftMint: Uint8Array;\r\n }) {\r\n this.tag = obj.tag as NftTag;\r\n this.nonce = obj.nonce;\r\n this.nameAccount = addressCodec.decode(obj.nameAccount);\r\n this.owner = addressCodec.decode(obj.owner);\r\n this.nftMint = addressCodec.decode(obj.nftMint);\r\n }\r\n\r\n static deserialize(data: Uint8Array): NftState {\r\n try {\r\n return new NftState(deserialize(this.schema, data) as any);\r\n } catch {\r\n throw new InvalidSerializedDataError(\r\n \"Failed to deserialize NftState data\"\r\n );\r\n }\r\n }\r\n\r\n static async retrieve(\r\n rpc: Rpc<GetAccountInfoApi>,\r\n address: Address\r\n ): Promise<NftState> {\r\n const nftAccount = await fetchEncodedAccount(rpc, address);\r\n if (!nftAccount.exists) {\r\n throw new NftAccountNotFoundError(`NFT not found: ${address}`);\r\n }\r\n return this.deserialize(nftAccount.data);\r\n }\r\n\r\n static async retrieveFromMint(\r\n rpc: Rpc<GetProgramAccountsApi>,\r\n mint: Address\r\n ): Promise<NftState> {\r\n const data = await rpc\r\n .getProgramAccounts(NAME_TOKENIZER_ADDRESS, {\r\n encoding: \"base64\",\r\n filters: [\r\n { dataSize: BigInt(NftState.LEN) },\r\n {\r\n memcmp: {\r\n offset: BigInt(0),\r\n bytes: \"3\",\r\n encoding: \"base58\",\r\n },\r\n },\r\n {\r\n memcmp: {\r\n offset: BigInt(1 + 1 + 32 + 32),\r\n bytes: mint,\r\n encoding: \"base58\",\r\n },\r\n },\r\n ],\r\n })\r\n .send();\r\n\r\n if (data.length !== 1) {\r\n throw new NftAccountNotFoundError(`NFT not found: ${mint}`);\r\n }\r\n\r\n return this.deserialize(\r\n base64Codec.encode(data[0].account.data[0]) as Uint8Array\r\n );\r\n }\r\n\r\n static async getAddress(domainAddress: Address): Promise<Address> {\r\n const [address] = await getProgramDerivedAddress({\r\n programAddress: NAME_TOKENIZER_ADDRESS,\r\n seeds: [\r\n utf8Codec.encode(\"nft_record\"),\r\n addressCodec.encode(domainAddress),\r\n ],\r\n });\r\n\r\n return address;\r\n }\r\n}\r\n"],"names":["NftTag","NftState","tag","nonce","nameAccount","owner","nftMint","static","struct","array","type","len","constructor","obj","this","addressCodec","decode","deserialize","data","schema","InvalidSerializedDataError","retrieve","rpc","address","nftAccount","fetchEncodedAccount","exists","NftAccountNotFoundError","retrieveFromMint","mint","getProgramAccounts","NAME_TOKENIZER_ADDRESS","encoding","filters","dataSize","BigInt","LEN","memcmp","offset","bytes","send","length","base64Codec","encode","account","getAddress","domainAddress","getProgramDerivedAddress","programAddress","seeds","utf8Codec"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nft.mjs","sources":["../../../src/states/nft.ts"],"sourcesContent":["import {\r\n Address,\r\n Base58EncodedBytes,\r\n GetAccountInfoApi,\r\n GetProgramAccountsApi,\r\n Rpc,\r\n fetchEncodedAccount,\r\n getProgramDerivedAddress,\r\n} from \"@solana/kit\";\r\nimport { deserialize } from \"borsh\";\r\n\r\nimport { addressCodec, base64Codec, utf8Codec } from \"../codecs\";\r\nimport { NAME_TOKENIZER_ADDRESS } from \"../constants/addresses\";\r\nimport { InvalidSerializedDataError, NftAccountNotFoundError } from \"../errors\";\r\n\r\nexport enum NftTag {\r\n Uninitialized = 0,\r\n CentralState = 1,\r\n ActiveRecord = 2,\r\n InactiveRecord = 3,\r\n}\r\n\r\nexport class NftState {\r\n tag: NftTag;\r\n nonce: number;\r\n nameAccount: Address;\r\n owner: Address;\r\n nftMint: Address;\r\n\r\n static schema = {\r\n struct: {\r\n tag: \"u8\",\r\n nonce: \"u8\",\r\n nameAccount: { array: { type: \"u8\", len: 32 } },\r\n owner: { array: { type: \"u8\", len: 32 } },\r\n nftMint: { array: { type: \"u8\", len: 32 } },\r\n },\r\n };\r\n\r\n // The total length of the struct is calculated as the sum of:\r\n // - `tag`: 1 byte (`u8`)\r\n // - `nonce`: 1 byte (`u8`)\r\n // - `nameAccount`: 32 bytes (array of `u8` with length 32)\r\n // - `owner`: 32 bytes (array of `u8` with length 32)\r\n // - `nftMint`: 32 bytes (array of `u8` with length 32)\r\n static LEN = 1 + 1 + 32 + 32 + 32;\r\n\r\n constructor(obj: {\r\n tag: number;\r\n nonce: number;\r\n nameAccount: Uint8Array;\r\n owner: Uint8Array;\r\n nftMint: Uint8Array;\r\n }) {\r\n this.tag = obj.tag as NftTag;\r\n this.nonce = obj.nonce;\r\n this.nameAccount = addressCodec.decode(obj.nameAccount);\r\n this.owner = addressCodec.decode(obj.owner);\r\n this.nftMint = addressCodec.decode(obj.nftMint);\r\n }\r\n\r\n static deserialize(data: Uint8Array): NftState {\r\n try {\r\n return new NftState(deserialize(this.schema, data) as any);\r\n } catch {\r\n throw new InvalidSerializedDataError(\r\n \"Failed to deserialize NftState data\"\r\n );\r\n }\r\n }\r\n\r\n static async retrieve(\r\n rpc: Rpc<GetAccountInfoApi>,\r\n address: Address\r\n ): Promise<NftState> {\r\n const nftAccount = await fetchEncodedAccount(rpc, address);\r\n if (!nftAccount.exists) {\r\n throw new NftAccountNotFoundError(`NFT not found: ${address}`);\r\n }\r\n return this.deserialize(nftAccount.data);\r\n }\r\n\r\n static async retrieveFromMint(\r\n rpc: Rpc<GetProgramAccountsApi>,\r\n mint: Address\r\n ): Promise<NftState> {\r\n const data = await rpc\r\n .getProgramAccounts(NAME_TOKENIZER_ADDRESS, {\r\n encoding: \"base64\",\r\n filters: [\r\n { dataSize: BigInt(NftState.LEN) },\r\n {\r\n memcmp: {\r\n offset: BigInt(0),\r\n bytes: \"3\" as Base58EncodedBytes,\r\n encoding: \"base58\",\r\n },\r\n },\r\n {\r\n memcmp: {\r\n offset: BigInt(1 + 1 + 32 + 32),\r\n bytes: mint as string as Base58EncodedBytes,\r\n encoding: \"base58\",\r\n },\r\n },\r\n ],\r\n })\r\n .send();\r\n\r\n if (data.length !== 1) {\r\n throw new NftAccountNotFoundError(`NFT not found: ${mint}`);\r\n }\r\n\r\n return this.deserialize(\r\n base64Codec.encode(data[0].account.data[0]) as Uint8Array\r\n );\r\n }\r\n\r\n static async getAddress(domainAddress: Address): Promise<Address> {\r\n const [address] = await getProgramDerivedAddress({\r\n programAddress: NAME_TOKENIZER_ADDRESS,\r\n seeds: [\r\n utf8Codec.encode(\"nft_record\"),\r\n addressCodec.encode(domainAddress),\r\n ],\r\n });\r\n\r\n return address;\r\n }\r\n}\r\n"],"names":["NftTag","NftState","tag","nonce","nameAccount","owner","nftMint","static","struct","array","type","len","constructor","obj","this","addressCodec","decode","deserialize","data","schema","InvalidSerializedDataError","retrieve","rpc","address","nftAccount","fetchEncodedAccount","exists","NftAccountNotFoundError","retrieveFromMint","mint","getProgramAccounts","NAME_TOKENIZER_ADDRESS","encoding","filters","dataSize","BigInt","LEN","memcmp","offset","bytes","send","length","base64Codec","encode","account","getAddress","domainAddress","getProgramDerivedAddress","programAddress","seeds","utf8Codec"],"mappings":"mYAeYA,GAAZ,SAAYA,GACVA,EAAAA,EAAA,cAAA,GAAA,gBACAA,EAAAA,EAAA,aAAA,GAAA,eACAA,EAAAA,EAAA,aAAA,GAAA,eACAA,EAAAA,EAAA,eAAA,GAAA,gBACD,CALD,CAAYA,IAAAA,EAKX,CAAA,UAEYC,EACXC,IACAC,MACAC,YACAC,MACAC,QAEAC,cAAgB,CACdC,OAAQ,CACNN,IAAK,KACLC,MAAO,KACPC,YAAa,CAAEK,MAAO,CAAEC,KAAM,KAAMC,IAAK,KACzCN,MAAO,CAAEI,MAAO,CAAEC,KAAM,KAAMC,IAAK,KACnCL,QAAS,CAAEG,MAAO,CAAEC,KAAM,KAAMC,IAAK,OAUzCJ,WAAa,GAEb,WAAAK,CAAYC,GAOVC,KAAKZ,IAAMW,EAAIX,IACfY,KAAKX,MAAQU,EAAIV,MACjBW,KAAKV,YAAcW,EAAaC,OAAOH,EAAIT,aAC3CU,KAAKT,MAAQU,EAAaC,OAAOH,EAAIR,OACrCS,KAAKR,QAAUS,EAAaC,OAAOH,EAAIP,SAGzC,kBAAOW,CAAYC,GACjB,IACE,OAAO,IAAIjB,EAASgB,EAAYH,KAAKK,OAAQD,IAC7C,MACA,MAAM,IAAIE,EACR,wCAKN,qBAAaC,CACXC,EACAC,GAEA,MAAMC,QAAmBC,EAAoBH,EAAKC,GAClD,IAAKC,EAAWE,OACd,MAAM,IAAIC,EAAwB,kBAAkBJ,KAEtD,OAAOT,KAAKG,YAAYO,EAAWN,MAGrC,6BAAaU,CACXN,EACAO,GAEA,MAAMX,QAAaI,EAChBQ,mBAAmBC,EAAwB,CAC1CC,SAAU,SACVC,QAAS,CACP,CAAEC,SAAUC,OAAOlC,EAASmC,MAC5B,CACEC,OAAQ,CACNC,OAAQH,OAAO,GACfI,MAAO,IACPP,SAAU,WAGd,CACEK,OAAQ,CACNC,OAAQH,OAAO,IACfI,MAAOV,EACPG,SAAU,cAKjBQ,OAEH,GAAoB,IAAhBtB,EAAKuB,OACP,MAAM,IAAId,EAAwB,kBAAkBE,KAGtD,OAAOf,KAAKG,YACVyB,EAAYC,OAAOzB,EAAK,GAAG0B,QAAQ1B,KAAK,KAI5C,uBAAa2B,CAAWC,GACtB,MAAOvB,SAAiBwB,EAAyB,CAC/CC,eAAgBjB,EAChBkB,MAAO,CACLC,EAAUP,OAAO,cACjB5B,EAAa4B,OAAOG,MAIxB,OAAOvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var A;!function(A){A.IPFS="IPFS",A.ARWV="ARWV",A.SOL="SOL",A.ETH="ETH",A.BTC="BTC",A.LTC="LTC",A.DOGE="DOGE",A.Email="email",A.Url="url",A.Discord="discord",A.Github="github",A.Reddit="reddit",A.Twitter="twitter",A.Telegram="telegram",A.Pic="pic",A.SHDW="SHDW",A.POINT="POINT",A.BSC="BSC",A.Injective="INJ",A.Backpack="backpack",A.A="A",A.AAAA="AAAA",A.CNAME="CNAME",A.TXT="TXT",A.Background="background",A.BASE="BASE",A.IPNS="IPNS"}(A||(A={}));const
|
|
1
|
+
var A;!function(A){A.IPFS="IPFS",A.ARWV="ARWV",A.SOL="SOL",A.ETH="ETH",A.BTC="BTC",A.LTC="LTC",A.DOGE="DOGE",A.Email="email",A.Url="url",A.Discord="discord",A.Github="github",A.Reddit="reddit",A.Twitter="twitter",A.Telegram="telegram",A.Pic="pic",A.SHDW="SHDW",A.POINT="POINT",A.BSC="BSC",A.Injective="INJ",A.Backpack="backpack",A.A="A",A.AAAA="AAAA",A.CNAME="CNAME",A.TXT="TXT",A.Background="background",A.BASE="BASE",A.IPNS="IPNS",A.Bio="bio"}(A||(A={}));const i=new Map([[A.SOL,96],[A.ETH,20],[A.BSC,20],[A.Injective,20],[A.A,4],[A.AAAA,16],[A.Background,32]]);var c;!function(A){A[A.V1=1]="V1",A[A.V2=2]="V2"}(c||(c={}));export{i as RECORD_V1_SIZE,A as Record,c as RecordVersion};
|
|
2
2
|
//# sourceMappingURL=record.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.mjs","sources":["../../../src/types/record.ts"],"sourcesContent":["/**\r\n * List of SNS Records\r\n */\r\nexport enum Record {\r\n IPFS = \"IPFS\",\r\n ARWV = \"ARWV\",\r\n SOL = \"SOL\",\r\n ETH = \"ETH\",\r\n BTC = \"BTC\",\r\n LTC = \"LTC\",\r\n DOGE = \"DOGE\",\r\n Email = \"email\",\r\n Url = \"url\",\r\n Discord = \"discord\",\r\n Github = \"github\",\r\n Reddit = \"reddit\",\r\n Twitter = \"twitter\",\r\n Telegram = \"telegram\",\r\n Pic = \"pic\",\r\n SHDW = \"SHDW\",\r\n POINT = \"POINT\",\r\n BSC = \"BSC\",\r\n Injective = \"INJ\",\r\n Backpack = \"backpack\",\r\n A = \"A\",\r\n AAAA = \"AAAA\",\r\n CNAME = \"CNAME\",\r\n TXT = \"TXT\",\r\n Background = \"background\",\r\n BASE = \"BASE\",\r\n IPNS = \"IPNS\",\r\n}\r\n\r\nexport const RECORD_V1_SIZE: Map<Record, number> = new Map([\r\n [Record.SOL, 96],\r\n [Record.ETH, 20],\r\n [Record.BSC, 20],\r\n [Record.Injective, 20],\r\n [Record.A, 4],\r\n [Record.AAAA, 16],\r\n [Record.Background, 32],\r\n]);\r\n\r\nexport enum RecordVersion {\r\n V1 = 1,\r\n V2 = 2,\r\n}\r\n"],"names":["Record","RECORD_V1_SIZE","Map","SOL","ETH","BSC","Injective","A","AAAA","Background","RecordVersion"],"mappings":"IAGYA,GAAZ,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,IAAA,MACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,UAAA,MACAA,EAAA,SAAA,WACAA,EAAA,EAAA,IACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,KAAA,
|
|
1
|
+
{"version":3,"file":"record.mjs","sources":["../../../src/types/record.ts"],"sourcesContent":["/**\r\n * List of SNS Records\r\n */\r\nexport enum Record {\r\n IPFS = \"IPFS\",\r\n ARWV = \"ARWV\",\r\n SOL = \"SOL\",\r\n ETH = \"ETH\",\r\n BTC = \"BTC\",\r\n LTC = \"LTC\",\r\n DOGE = \"DOGE\",\r\n Email = \"email\",\r\n Url = \"url\",\r\n Discord = \"discord\",\r\n Github = \"github\",\r\n Reddit = \"reddit\",\r\n Twitter = \"twitter\",\r\n Telegram = \"telegram\",\r\n Pic = \"pic\",\r\n SHDW = \"SHDW\",\r\n POINT = \"POINT\",\r\n BSC = \"BSC\",\r\n Injective = \"INJ\",\r\n Backpack = \"backpack\",\r\n A = \"A\",\r\n AAAA = \"AAAA\",\r\n CNAME = \"CNAME\",\r\n TXT = \"TXT\",\r\n Background = \"background\",\r\n BASE = \"BASE\",\r\n IPNS = \"IPNS\",\r\n Bio = \"bio\",\r\n}\r\n\r\nexport const RECORD_V1_SIZE: Map<Record, number> = new Map([\r\n [Record.SOL, 96],\r\n [Record.ETH, 20],\r\n [Record.BSC, 20],\r\n [Record.Injective, 20],\r\n [Record.A, 4],\r\n [Record.AAAA, 16],\r\n [Record.Background, 32],\r\n]);\r\n\r\nexport enum RecordVersion {\r\n V1 = 1,\r\n V2 = 2,\r\n}\r\n"],"names":["Record","RECORD_V1_SIZE","Map","SOL","ETH","BSC","Injective","A","AAAA","Background","RecordVersion"],"mappings":"IAGYA,GAAZ,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,IAAA,MACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,IAAA,MACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,UAAA,MACAA,EAAA,SAAA,WACAA,EAAA,EAAA,IACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACD,CA7BD,CAAYA,IAAAA,EA6BX,CAAA,IAEY,MAAAC,EAAsC,IAAIC,IAAI,CACzD,CAACF,EAAOG,IAAK,IACb,CAACH,EAAOI,IAAK,IACb,CAACJ,EAAOK,IAAK,IACb,CAACL,EAAOM,UAAW,IACnB,CAACN,EAAOO,EAAG,GACX,CAACP,EAAOQ,KAAM,IACd,CAACR,EAAOS,WAAY,UAGVC,GAAZ,SAAYA,GACVA,EAAAA,EAAA,GAAA,GAAA,KACAA,EAAAA,EAAA,GAAA,GAAA,IACD,CAHD,CAAYA,IAAAA,EAGX,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
interface BurnDomainParams {
|
|
3
3
|
domain: string;
|
|
4
4
|
owner: Address;
|
|
@@ -13,5 +13,5 @@ interface BurnDomainParams {
|
|
|
13
13
|
* - `refundAddress`: The address to which rent will be refunded.
|
|
14
14
|
* @returns A promise which resolves to the burn domain instruction.
|
|
15
15
|
*/
|
|
16
|
-
export declare const burnDomain: ({ domain, owner, refundAddress, }: BurnDomainParams) => Promise<
|
|
16
|
+
export declare const burnDomain: ({ domain, owner, refundAddress, }: BurnDomainParams) => Promise<Instruction>;
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface CreateNameRegistryParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi & GetMinimumBalanceForRentExemptionApi>;
|
|
4
4
|
name: string;
|
|
@@ -24,5 +24,5 @@ interface CreateNameRegistryParams {
|
|
|
24
24
|
* - `parentAddress`: (Optional) The address of the parent registry.
|
|
25
25
|
* @returns A promise which resolves to the create name registry instruction.
|
|
26
26
|
*/
|
|
27
|
-
export declare const createNameRegistry: ({ rpc, name, space, payer, owner, lamports, classAddress, parentAddress, }: CreateNameRegistryParams) => Promise<
|
|
27
|
+
export declare const createNameRegistry: ({ rpc, name, space, payer, owner, lamports, classAddress, parentAddress, }: CreateNameRegistryParams) => Promise<Instruction>;
|
|
28
28
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface CreateRecordParams {
|
|
4
4
|
domain: string;
|
|
@@ -19,5 +19,5 @@ interface CreateRecordParams {
|
|
|
19
19
|
* - `payer`: The address funding the record creation.
|
|
20
20
|
* @returns A promise which resolves to the create record instruction.
|
|
21
21
|
*/
|
|
22
|
-
export declare const createRecord: ({ domain, record, content, owner, payer, }: CreateRecordParams) => Promise<
|
|
22
|
+
export declare const createRecord: ({ domain, record, content, owner, payer, }: CreateRecordParams) => Promise<Instruction>;
|
|
23
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
interface CreateReverseParams {
|
|
3
3
|
domainAddress: Address;
|
|
4
4
|
domain: string;
|
|
@@ -17,5 +17,5 @@ interface CreateReverseParams {
|
|
|
17
17
|
* - `parentOwner`: (Optional) The address of the parent domain owner, if applicable.
|
|
18
18
|
* @returns A promise which resolves to the create reverse lookup instruction.
|
|
19
19
|
*/
|
|
20
|
-
export declare const createReverse: ({ domainAddress, domain, payer, parentAddress, parentOwner, }: CreateReverseParams) => Promise<
|
|
20
|
+
export declare const createReverse: ({ domainAddress, domain, payer, parentAddress, parentOwner, }: CreateReverseParams) => Promise<Instruction>;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, GetMinimumBalanceForRentExemptionApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface CreateSubdomainParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi & GetMinimumBalanceForRentExemptionApi>;
|
|
4
4
|
subdomain: string;
|
|
@@ -19,5 +19,5 @@ interface CreateSubdomainParams {
|
|
|
19
19
|
* @returns A promise that resolves to an array of instructions required to create the subdomain
|
|
20
20
|
* and its reverse lookup record.
|
|
21
21
|
*/
|
|
22
|
-
export declare const createSubdomain: ({ rpc, subdomain, owner, space, feePayer, }: CreateSubdomainParams) => Promise<
|
|
22
|
+
export declare const createSubdomain: ({ rpc, subdomain, owner, space, feePayer, }: CreateSubdomainParams) => Promise<Instruction[]>;
|
|
23
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface DeleteNameRegistryParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
name: string;
|
|
@@ -17,5 +17,5 @@ interface DeleteNameRegistryParams {
|
|
|
17
17
|
* - `parentAddress`: (Optional) The address of the parent registry.
|
|
18
18
|
* @returns A promise which resolves to the delete name registry instruction.
|
|
19
19
|
*/
|
|
20
|
-
export declare const deleteNameRegistry: ({ rpc, name, refundAddress, classAddress, parentAddress, }: DeleteNameRegistryParams) => Promise<
|
|
20
|
+
export declare const deleteNameRegistry: ({ rpc, name, refundAddress, classAddress, parentAddress, }: DeleteNameRegistryParams) => Promise<Instruction>;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface DeleteRecordParams {
|
|
4
4
|
domain: string;
|
|
@@ -16,5 +16,5 @@ interface DeleteRecordParams {
|
|
|
16
16
|
* - `payer`: The address funding the record deletion.
|
|
17
17
|
* @returns A promise which resolves to the delete record instruction.
|
|
18
18
|
*/
|
|
19
|
-
export declare const deleteRecord: ({ domain, record, owner, payer, }: DeleteRecordParams) => Promise<
|
|
19
|
+
export declare const deleteRecord: ({ domain, record, owner, payer, }: DeleteRecordParams) => Promise<Instruction>;
|
|
20
20
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface RegisterDomainParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
domain: string;
|
|
@@ -21,5 +21,5 @@ interface RegisterDomainParams {
|
|
|
21
21
|
* - `referrer`: (Optional) The address of the referrer.
|
|
22
22
|
* @returns A promise which resolves to an array of instructions required for domain registration.
|
|
23
23
|
*/
|
|
24
|
-
export declare const registerDomain: ({ rpc, domain, space, buyer, buyerTokenAccount, mint, referrer, }: RegisterDomainParams) => Promise<
|
|
24
|
+
export declare const registerDomain: ({ rpc, domain, space, buyer, buyerTokenAccount, mint, referrer, }: RegisterDomainParams) => Promise<Instruction[]>;
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
interface RegisterWithNftParams {
|
|
3
3
|
domain: string;
|
|
4
4
|
space: number;
|
|
@@ -17,5 +17,5 @@ interface RegisterWithNftParams {
|
|
|
17
17
|
* - `nftMint`: The mint address of the NFT used for registration.
|
|
18
18
|
* @returns A promise which resolves to the register with NFT instruction.
|
|
19
19
|
*/
|
|
20
|
-
export declare const registerWithNft: ({ domain, space, buyer, nftSource, nftMint, }: RegisterWithNftParams) => Promise<
|
|
20
|
+
export declare const registerWithNft: ({ domain, space, buyer, nftSource, nftMint, }: RegisterWithNftParams) => Promise<Instruction>;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
export interface SetPrimaryDomainParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
domainAddress: Address;
|
|
@@ -13,4 +13,4 @@ export interface SetPrimaryDomainParams {
|
|
|
13
13
|
* - `owner`: The address of the domain owner.
|
|
14
14
|
* @returns A promise which resolves to the set primary domain instruction.
|
|
15
15
|
*/
|
|
16
|
-
export declare const setPrimaryDomain: ({ rpc, domainAddress, owner, }: SetPrimaryDomainParams) => Promise<
|
|
16
|
+
export declare const setPrimaryDomain: ({ rpc, domainAddress, owner, }: SetPrimaryDomainParams) => Promise<Instruction>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface TransferDomainParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
domain: string;
|
|
@@ -19,5 +19,5 @@ interface TransferDomainParams {
|
|
|
19
19
|
* - `parentOwner`: (Optional) The address of the parent domain owner.
|
|
20
20
|
* @returns A promise that resolves to the transfer domain instruction.
|
|
21
21
|
*/
|
|
22
|
-
export declare const transferDomain: ({ rpc, domain, newOwner, classAddress, parentAddress, parentOwner, }: TransferDomainParams) => Promise<
|
|
22
|
+
export declare const transferDomain: ({ rpc, domain, newOwner, classAddress, parentAddress, parentOwner, }: TransferDomainParams) => Promise<Instruction>;
|
|
23
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
interface TransferSubdomainParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
subdomain: string;
|
|
@@ -21,5 +21,5 @@ interface TransferSubdomainParams {
|
|
|
21
21
|
* does not yet exist.
|
|
22
22
|
* @returns A promise that resolves to the transfer subdomain instruction.
|
|
23
23
|
*/
|
|
24
|
-
export declare const transferSubdomain: ({ rpc, subdomain, newOwner, isParentOwnerSigner, currentOwner, }: TransferSubdomainParams) => Promise<
|
|
24
|
+
export declare const transferSubdomain: ({ rpc, subdomain, newOwner, isParentOwnerSigner, currentOwner, }: TransferSubdomainParams) => Promise<Instruction>;
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi,
|
|
1
|
+
import { Address, GetAccountInfoApi, Instruction, Rpc } from "@solana/kit";
|
|
2
2
|
export interface UpdateNameRegistryParams {
|
|
3
3
|
rpc: Rpc<GetAccountInfoApi>;
|
|
4
4
|
domain: string;
|
|
@@ -19,4 +19,4 @@ export interface UpdateNameRegistryParams {
|
|
|
19
19
|
* - `parentAddress`: (Optional) The address of the parent registry.
|
|
20
20
|
* @returns A promise that resolves to the update name registry instruction.
|
|
21
21
|
*/
|
|
22
|
-
export declare function updateNameRegistry({ rpc, domain, offset, data, classAddress, parentAddress, }: UpdateNameRegistryParams): Promise<
|
|
22
|
+
export declare function updateNameRegistry({ rpc, domain, offset, data, classAddress, parentAddress, }: UpdateNameRegistryParams): Promise<Instruction>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface UpdateRecordParams {
|
|
4
4
|
domain: string;
|
|
@@ -18,5 +18,5 @@ interface UpdateRecordParams {
|
|
|
18
18
|
* - `payer`: The address funding the record update.
|
|
19
19
|
* @returns A promise that resolves to the update record instruction.
|
|
20
20
|
*/
|
|
21
|
-
export declare const updateRecord: ({ domain, record, content, owner, payer, }: UpdateRecordParams) => Promise<
|
|
21
|
+
export declare const updateRecord: ({ domain, record, content, owner, payer, }: UpdateRecordParams) => Promise<Instruction>;
|
|
22
22
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface ValidateRoaParams {
|
|
4
4
|
staleness: boolean;
|
|
@@ -20,5 +20,5 @@ interface ValidateRoaParams {
|
|
|
20
20
|
* - `verifier`: The address responsible for verifying the record.
|
|
21
21
|
* @returns A promise that resolves to the validate ROA instruction.
|
|
22
22
|
*/
|
|
23
|
-
export declare const validateRoa: ({ staleness, domain, record, owner, payer, verifier, }: ValidateRoaParams) => Promise<
|
|
23
|
+
export declare const validateRoa: ({ staleness, domain, record, owner, payer, verifier, }: ValidateRoaParams) => Promise<Instruction>;
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface ValidateRoaEthereumParams {
|
|
4
4
|
domain: string;
|
|
@@ -20,5 +20,5 @@ interface ValidateRoaEthereumParams {
|
|
|
20
20
|
* - `expectedPubkey`: The expected public key associated with the validation.
|
|
21
21
|
* @returns A promise that resolves to the validate ROA Ethereum instruction.
|
|
22
22
|
*/
|
|
23
|
-
export declare const validateRoaEthereum: ({ domain, record, owner, payer, signature, expectedPubkey, }: ValidateRoaEthereumParams) => Promise<
|
|
23
|
+
export declare const validateRoaEthereum: ({ domain, record, owner, payer, signature, expectedPubkey, }: ValidateRoaEthereumParams) => Promise<Instruction>;
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
import { Record } from "../types/record";
|
|
3
3
|
interface WriteRoaParams {
|
|
4
4
|
domain: string;
|
|
@@ -18,5 +18,5 @@ interface WriteRoaParams {
|
|
|
18
18
|
* - `roaId`: The identifier for the ROA.
|
|
19
19
|
* @returns A promise that resolves to the write ROA instruction.
|
|
20
20
|
*/
|
|
21
|
-
export declare const writeRoa: ({ domain, record, owner, payer, roaId, }: WriteRoaParams) => Promise<
|
|
21
|
+
export declare const writeRoa: ({ domain, record, owner, payer, roaId, }: WriteRoaParams) => Promise<Instruction>;
|
|
22
22
|
export {};
|
package/dist/types/codecs.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export declare const addressCodec: import("@solana/codecs-core").FixedSizeCodec<
|
|
|
2
2
|
export declare const base58Codec: import("@solana/codecs-core").VariableSizeCodec<string, string>;
|
|
3
3
|
export declare const base64Codec: import("@solana/codecs-core").VariableSizeCodec<string>;
|
|
4
4
|
export declare const utf8Codec: import("@solana/codecs-core").VariableSizeCodec<string>;
|
|
5
|
-
export declare const tokenCodec: import("@solana/codecs-core").
|
|
5
|
+
export declare const tokenCodec: import("@solana/codecs-core").FixedSizeCodec<import("@solana-program/token").TokenArgs, import("@solana-program/token").Token>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
2
|
export declare class allocateAndPostRecordInstruction {
|
|
3
3
|
tag: number;
|
|
4
4
|
record: string;
|
|
@@ -19,5 +19,5 @@ export declare class allocateAndPostRecordInstruction {
|
|
|
19
19
|
content: ReadonlyUint8Array;
|
|
20
20
|
});
|
|
21
21
|
serialize(): Uint8Array;
|
|
22
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, payer: Address, record: Address, domainAddress: Address, domainOwner: Address, centralState: Address):
|
|
22
|
+
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, payer: Address, record: Address, domainAddress: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
export declare class burnDomainInstruction {
|
|
3
3
|
tag: number;
|
|
4
4
|
static schema: {
|
|
@@ -8,5 +8,5 @@ export declare class burnDomainInstruction {
|
|
|
8
8
|
};
|
|
9
9
|
constructor();
|
|
10
10
|
serialize(): Uint8Array;
|
|
11
|
-
getInstruction(programAddress: Address, nameServiceId: Address, systemProgram: Address, domainAddress: Address, reverse: Address, resellingState: Address, state: Address, centralState: Address, owner: Address, target: Address):
|
|
11
|
+
getInstruction(programAddress: Address, nameServiceId: Address, systemProgram: Address, domainAddress: Address, reverse: Address, resellingState: Address, state: Address, centralState: Address, owner: Address, target: Address): Instruction;
|
|
12
12
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address,
|
|
2
|
-
export declare const _createAtaInstruction: (programAddress: Address, payer: Address, ata: Address, owner: Address, mint: Address, systemProgram: Address, splTokenProgram: Address) =>
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
|
+
export declare const _createAtaInstruction: (programAddress: Address, payer: Address, ata: Address, owner: Address, mint: Address, systemProgram: Address, splTokenProgram: Address) => Instruction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
export declare class createInstructionV3 {
|
|
3
3
|
tag: number;
|
|
4
4
|
name: string;
|
|
@@ -20,5 +20,5 @@ export declare class createInstructionV3 {
|
|
|
20
20
|
referrerIdxOpt: number | null;
|
|
21
21
|
});
|
|
22
22
|
serialize(): Uint8Array;
|
|
23
|
-
getInstruction(programAddress: Address, namingServiceProgram: Address, rootDomain: Address, name: Address, reverseLookup: Address, systemProgram: Address, centralState: Address, buyer: Address, buyerTokenSource: Address, pythMappingAcc: Address, pythProductAcc: Address, pythPriceAcc: Address, vault: Address, splTokenProgram: Address, rentSysvar: Address, state: Address, referrerAccountOpt?: Address):
|
|
23
|
+
getInstruction(programAddress: Address, namingServiceProgram: Address, rootDomain: Address, name: Address, reverseLookup: Address, systemProgram: Address, centralState: Address, buyer: Address, buyerTokenSource: Address, pythMappingAcc: Address, pythProductAcc: Address, pythPriceAcc: Address, vault: Address, splTokenProgram: Address, rentSysvar: Address, state: Address, referrerAccountOpt?: Address): Instruction;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, Instruction } from "@solana/kit";
|
|
2
2
|
export declare class createNameRegistryInstruction {
|
|
3
3
|
tag: number;
|
|
4
4
|
nameHash: Uint8Array;
|
|
@@ -22,5 +22,5 @@ export declare class createNameRegistryInstruction {
|
|
|
22
22
|
space: number;
|
|
23
23
|
});
|
|
24
24
|
serialize(): Uint8Array;
|
|
25
|
-
getInstruction(programAddress: Address, systemProgram: Address, domainAddress: Address, owner: Address, payer: Address, classAddress?: Address, parentAddress?: Address, parentOwner?: Address):
|
|
25
|
+
getInstruction(programAddress: Address, systemProgram: Address, domainAddress: Address, owner: Address, payer: Address, classAddress?: Address, parentAddress?: Address, parentOwner?: Address): Instruction;
|
|
26
26
|
}
|