@solana-name-service/sns-sdk-kit 0.10.0 → 1.0.0
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/README.md +322 -90
- package/dist/cjs/address/getPrimaryDomain.cjs +54 -1
- package/dist/cjs/address/getPrimaryDomain.cjs.map +1 -1
- package/dist/cjs/address/getPrimaryDomainsBatch.cjs +108 -1
- package/dist/cjs/address/getPrimaryDomainsBatch.cjs.map +1 -1
- package/dist/cjs/address/getSnsDomainsForAddress.cjs +65 -0
- package/dist/cjs/address/getSnsDomainsForAddress.cjs.map +1 -0
- package/dist/cjs/address/getSnsNftsForAddress.cjs +94 -0
- package/dist/cjs/address/getSnsNftsForAddress.cjs.map +1 -0
- package/dist/cjs/address/index.cjs +15 -1
- package/dist/cjs/address/index.cjs.map +1 -1
- package/dist/cjs/bindings/burnDomain.cjs +46 -1
- package/dist/cjs/bindings/burnDomain.cjs.map +1 -1
- package/dist/cjs/bindings/createNameRegistry.cjs +54 -1
- package/dist/cjs/bindings/createNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/createRecord.cjs +57 -1
- package/dist/cjs/bindings/createRecord.cjs.map +1 -1
- package/dist/cjs/bindings/createReverse.cjs +36 -1
- package/dist/cjs/bindings/createReverse.cjs.map +1 -1
- package/dist/cjs/bindings/createSubdomain.cjs +69 -1
- package/dist/cjs/bindings/createSubdomain.cjs.map +1 -1
- package/dist/cjs/bindings/deleteNameRegistry.cjs +37 -1
- package/dist/cjs/bindings/deleteNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/deleteRecord.cjs +49 -1
- package/dist/cjs/bindings/deleteRecord.cjs.map +1 -1
- package/dist/cjs/bindings/index.cjs +43 -1
- package/dist/cjs/bindings/index.cjs.map +1 -1
- package/dist/cjs/bindings/recordValidation.cjs +60 -0
- package/dist/cjs/bindings/recordValidation.cjs.map +1 -0
- package/dist/cjs/bindings/registerDomain.cjs +86 -1
- package/dist/cjs/bindings/registerDomain.cjs.map +1 -1
- package/dist/cjs/bindings/registerDomainWithNft.cjs +67 -0
- package/dist/cjs/bindings/registerDomainWithNft.cjs.map +1 -0
- package/dist/cjs/bindings/setPrimaryDomain.cjs +39 -1
- package/dist/cjs/bindings/setPrimaryDomain.cjs.map +1 -1
- package/dist/cjs/bindings/setRecordRoaVerifier.cjs +44 -0
- package/dist/cjs/bindings/setRecordRoaVerifier.cjs.map +1 -0
- package/dist/cjs/bindings/setRecordStalenessVerifier.cjs +32 -0
- package/dist/cjs/bindings/setRecordStalenessVerifier.cjs.map +1 -0
- package/dist/cjs/bindings/transferDomain.cjs +33 -1
- package/dist/cjs/bindings/transferDomain.cjs.map +1 -1
- package/dist/cjs/bindings/transferSubdomain.cjs +48 -1
- package/dist/cjs/bindings/transferSubdomain.cjs.map +1 -1
- package/dist/cjs/bindings/updateNameRegistry.cjs +45 -1
- package/dist/cjs/bindings/updateNameRegistry.cjs.map +1 -1
- package/dist/cjs/bindings/updateRecord.cjs +57 -1
- package/dist/cjs/bindings/updateRecord.cjs.map +1 -1
- package/dist/cjs/bindings/validateRecordRoa.cjs +32 -0
- package/dist/cjs/bindings/validateRecordRoa.cjs.map +1 -0
- package/dist/cjs/bindings/validateRecordRoaEthereum.cjs +49 -0
- package/dist/cjs/bindings/validateRecordRoaEthereum.cjs.map +1 -0
- package/dist/cjs/codecs.cjs +27 -1
- package/dist/cjs/codecs.cjs.map +1 -1
- package/dist/cjs/config.cjs +18 -0
- package/dist/cjs/config.cjs.map +1 -0
- package/dist/cjs/constants/addresses.cjs +124 -1
- package/dist/cjs/constants/addresses.cjs.map +1 -1
- package/dist/cjs/constants/index.cjs +40 -1
- package/dist/cjs/constants/index.cjs.map +1 -1
- package/dist/cjs/constants/pythFeeds.cjs +91 -1
- package/dist/cjs/constants/pythFeeds.cjs.map +1 -1
- package/dist/cjs/constants/records.cjs +71 -1
- package/dist/cjs/constants/records.cjs.map +1 -1
- package/dist/cjs/domain/getAllSnsDomains.cjs +43 -0
- package/dist/cjs/domain/getAllSnsDomains.cjs.map +1 -0
- package/dist/cjs/domain/getDomainOwner.cjs +27 -1
- package/dist/cjs/domain/getDomainOwner.cjs.map +1 -1
- package/dist/cjs/domain/getDomainRecord.cjs +54 -1
- package/dist/cjs/domain/getDomainRecord.cjs.map +1 -1
- package/dist/cjs/domain/getDomainRecords.cjs +64 -1
- package/dist/cjs/domain/getDomainRecords.cjs.map +1 -1
- package/dist/cjs/domain/getSnsDomainAddress.cjs +52 -0
- package/dist/cjs/domain/getSnsDomainAddress.cjs.map +1 -0
- package/dist/cjs/domain/getSnsDomainOwner.cjs +31 -0
- package/dist/cjs/domain/getSnsDomainOwner.cjs.map +1 -0
- package/dist/cjs/domain/getSrsDomainAddress.cjs +36 -0
- package/dist/cjs/domain/getSrsDomainAddress.cjs.map +1 -0
- package/dist/cjs/domain/getSubdomains.cjs +95 -1
- package/dist/cjs/domain/getSubdomains.cjs.map +1 -1
- package/dist/cjs/domain/index.cjs +24 -1
- package/dist/cjs/domain/index.cjs.map +1 -1
- package/dist/cjs/domain/resolve.cjs +67 -0
- package/dist/cjs/domain/resolve.cjs.map +1 -0
- package/dist/cjs/domain/resolveSns.cjs +113 -0
- package/dist/cjs/domain/resolveSns.cjs.map +1 -0
- package/dist/cjs/errors.cjs +250 -1
- package/dist/cjs/errors.cjs.map +1 -1
- package/dist/cjs/index.cjs +245 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/instructions/allocateAndPostRecordInstruction.cjs +71 -1
- package/dist/cjs/instructions/allocateAndPostRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/burnDomainInstruction.cjs +71 -1
- package/dist/cjs/instructions/burnDomainInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createAtaIdempotentInstruction.cjs +71 -0
- package/dist/cjs/instructions/createAtaIdempotentInstruction.cjs.map +1 -0
- package/dist/cjs/instructions/createNameRegistryInstruction.cjs +94 -1
- package/dist/cjs/instructions/createNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createReverseInstruction.cjs +79 -1
- package/dist/cjs/instructions/createReverseInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/createSplitV2Instruction.cjs +113 -1
- package/dist/cjs/instructions/createSplitV2Instruction.cjs.map +1 -1
- package/dist/cjs/instructions/createWithNftInstruction.cjs +107 -1
- package/dist/cjs/instructions/createWithNftInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/deleteNameRegistryInstruction.cjs +47 -1
- package/dist/cjs/instructions/deleteNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/deleteRecordInstruction.cjs +63 -1
- package/dist/cjs/instructions/deleteRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/index.cjs +41 -1
- package/dist/cjs/instructions/index.cjs.map +1 -1
- package/dist/cjs/instructions/reallocInstruction.cjs +55 -1
- package/dist/cjs/instructions/reallocInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/registerPrimaryInstruction.cjs +58 -0
- package/dist/cjs/instructions/registerPrimaryInstruction.cjs.map +1 -0
- package/dist/cjs/instructions/setRecordRoaVerifierInstruction.cjs +69 -0
- package/dist/cjs/instructions/setRecordRoaVerifierInstruction.cjs.map +1 -0
- package/dist/cjs/instructions/transferInstruction.cjs +67 -1
- package/dist/cjs/instructions/transferInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/updateNameRegistryInstruction.cjs +51 -1
- package/dist/cjs/instructions/updateNameRegistryInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/updateRecordInstruction.cjs +71 -1
- package/dist/cjs/instructions/updateRecordInstruction.cjs.map +1 -1
- package/dist/cjs/instructions/validateEthereumSignatureInstruction.cjs +76 -0
- package/dist/cjs/instructions/validateEthereumSignatureInstruction.cjs.map +1 -0
- package/dist/cjs/instructions/validateSolanaSignatureInstruction.cjs +72 -0
- package/dist/cjs/instructions/validateSolanaSignatureInstruction.cjs.map +1 -0
- package/dist/cjs/nft/getSnsNftMint.cjs +31 -0
- package/dist/cjs/nft/getSnsNftMint.cjs.map +1 -0
- package/dist/cjs/nft/getSnsNftOwner.cjs +48 -0
- package/dist/cjs/nft/getSnsNftOwner.cjs.map +1 -0
- package/dist/cjs/nft/index.cjs +11 -1
- package/dist/cjs/nft/index.cjs.map +1 -1
- package/dist/cjs/record/getRecordV1Address.cjs +31 -1
- package/dist/cjs/record/getRecordV1Address.cjs.map +1 -1
- package/dist/cjs/record/getRecordV2Address.cjs +27 -1
- package/dist/cjs/record/getRecordV2Address.cjs.map +1 -1
- package/dist/cjs/record/index.cjs +18 -1
- package/dist/cjs/record/index.cjs.map +1 -1
- package/dist/cjs/record/verifyRecordRightOfAssociation.cjs +95 -1
- package/dist/cjs/record/verifyRecordRightOfAssociation.cjs.map +1 -1
- package/dist/cjs/record/verifyRecordStaleness.cjs +55 -1
- package/dist/cjs/record/verifyRecordStaleness.cjs.map +1 -1
- package/dist/cjs/states/index.cjs +22 -1
- package/dist/cjs/states/index.cjs.map +1 -1
- package/dist/cjs/states/nft.cjs +109 -1
- package/dist/cjs/states/nft.cjs.map +1 -1
- package/dist/cjs/states/primaryDomain.cjs +65 -1
- package/dist/cjs/states/primaryDomain.cjs.map +1 -1
- package/dist/cjs/states/record.cjs +120 -1
- package/dist/cjs/states/record.cjs.map +1 -1
- package/dist/cjs/states/registry.cjs +68 -1
- package/dist/cjs/states/registry.cjs.map +1 -1
- package/dist/cjs/types/index.cjs +22 -1
- package/dist/cjs/types/index.cjs.map +1 -1
- package/dist/cjs/types/record.cjs +56 -1
- package/dist/cjs/types/record.cjs.map +1 -1
- package/dist/cjs/types/validation.cjs +12 -1
- package/dist/cjs/types/validation.cjs.map +1 -1
- package/dist/cjs/utils/assertTldSupported.cjs +28 -0
- package/dist/cjs/utils/assertTldSupported.cjs.map +1 -0
- package/dist/cjs/utils/check.cjs +20 -1
- package/dist/cjs/utils/check.cjs.map +1 -1
- package/dist/cjs/utils/checkAddressOnCurve/ed25519.cjs +81 -3
- package/dist/cjs/utils/checkAddressOnCurve/ed25519.cjs.map +1 -1
- package/dist/cjs/utils/checkAddressOnCurve/index.cjs +42 -1
- package/dist/cjs/utils/checkAddressOnCurve/index.cjs.map +1 -1
- package/dist/cjs/utils/deriveAddress.cjs +57 -1
- package/dist/cjs/utils/deriveAddress.cjs.map +1 -1
- package/dist/cjs/utils/deserializers/deserializeRecordContent.cjs +64 -1
- package/dist/cjs/utils/deserializers/deserializeRecordContent.cjs.map +1 -1
- package/dist/cjs/utils/deserializers/deserializeReverse.cjs +17 -1
- package/dist/cjs/utils/deserializers/deserializeReverse.cjs.map +1 -1
- package/dist/cjs/utils/getPythFeedAddress.cjs +32 -1
- package/dist/cjs/utils/getPythFeedAddress.cjs.map +1 -1
- package/dist/cjs/utils/getReverseAddress.cjs +29 -1
- package/dist/cjs/utils/getReverseAddress.cjs.map +1 -1
- package/dist/cjs/utils/getReverseAddressFromDomainAddress.cjs +25 -1
- package/dist/cjs/utils/getReverseAddressFromDomainAddress.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +32 -1
- package/dist/cjs/utils/index.cjs.map +1 -1
- package/dist/cjs/utils/parseSnsDomain.cjs +66 -0
- package/dist/cjs/utils/parseSnsDomain.cjs.map +1 -0
- package/dist/cjs/utils/reverseLookup.cjs +40 -1
- package/dist/cjs/utils/reverseLookup.cjs.map +1 -1
- package/dist/cjs/utils/reverseLookupBatch.cjs +30 -1
- package/dist/cjs/utils/reverseLookupBatch.cjs.map +1 -1
- package/dist/cjs/utils/serializers/serializeRecordContent.cjs +90 -1
- package/dist/cjs/utils/serializers/serializeRecordContent.cjs.map +1 -1
- package/dist/cjs/utils/tld.cjs +67 -0
- package/dist/cjs/utils/tld.cjs.map +1 -0
- package/dist/cjs/utils/uint8Array/uint8ArrayFromHex.cjs +20 -1
- package/dist/cjs/utils/uint8Array/uint8ArrayFromHex.cjs.map +1 -1
- package/dist/cjs/utils/uint8Array/uint8ArrayToHex.cjs +16 -1
- package/dist/cjs/utils/uint8Array/uint8ArrayToHex.cjs.map +1 -1
- package/dist/cjs/utils/uint8Array/uint8ArraysEqual.cjs +20 -1
- package/dist/cjs/utils/uint8Array/uint8ArraysEqual.cjs.map +1 -1
- package/dist/esm/address/getPrimaryDomain.mjs +50 -1
- package/dist/esm/address/getPrimaryDomain.mjs.map +1 -1
- package/dist/esm/address/getPrimaryDomainsBatch.mjs +104 -1
- package/dist/esm/address/getPrimaryDomainsBatch.mjs.map +1 -1
- package/dist/esm/address/getSnsDomainsForAddress.mjs +61 -0
- package/dist/esm/address/getSnsDomainsForAddress.mjs.map +1 -0
- package/dist/esm/address/getSnsNftsForAddress.mjs +90 -0
- package/dist/esm/address/getSnsNftsForAddress.mjs.map +1 -0
- package/dist/esm/address/index.mjs +4 -1
- package/dist/esm/address/index.mjs.map +1 -1
- package/dist/esm/bindings/burnDomain.mjs +42 -1
- package/dist/esm/bindings/burnDomain.mjs.map +1 -1
- package/dist/esm/bindings/createNameRegistry.mjs +50 -1
- package/dist/esm/bindings/createNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/createRecord.mjs +53 -1
- package/dist/esm/bindings/createRecord.mjs.map +1 -1
- package/dist/esm/bindings/createReverse.mjs +32 -1
- package/dist/esm/bindings/createReverse.mjs.map +1 -1
- package/dist/esm/bindings/createSubdomain.mjs +65 -1
- package/dist/esm/bindings/createSubdomain.mjs.map +1 -1
- package/dist/esm/bindings/deleteNameRegistry.mjs +33 -1
- package/dist/esm/bindings/deleteNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/deleteRecord.mjs +45 -1
- package/dist/esm/bindings/deleteRecord.mjs.map +1 -1
- package/dist/esm/bindings/index.mjs +18 -1
- package/dist/esm/bindings/index.mjs.map +1 -1
- package/dist/esm/bindings/recordValidation.mjs +55 -0
- package/dist/esm/bindings/recordValidation.mjs.map +1 -0
- package/dist/esm/bindings/registerDomain.mjs +82 -1
- package/dist/esm/bindings/registerDomain.mjs.map +1 -1
- package/dist/esm/bindings/registerDomainWithNft.mjs +63 -0
- package/dist/esm/bindings/registerDomainWithNft.mjs.map +1 -0
- package/dist/esm/bindings/setPrimaryDomain.mjs +35 -1
- package/dist/esm/bindings/setPrimaryDomain.mjs.map +1 -1
- package/dist/esm/bindings/setRecordRoaVerifier.mjs +40 -0
- package/dist/esm/bindings/setRecordRoaVerifier.mjs.map +1 -0
- package/dist/esm/bindings/setRecordStalenessVerifier.mjs +28 -0
- package/dist/esm/bindings/setRecordStalenessVerifier.mjs.map +1 -0
- package/dist/esm/bindings/transferDomain.mjs +29 -1
- package/dist/esm/bindings/transferDomain.mjs.map +1 -1
- package/dist/esm/bindings/transferSubdomain.mjs +44 -1
- package/dist/esm/bindings/transferSubdomain.mjs.map +1 -1
- package/dist/esm/bindings/updateNameRegistry.mjs +41 -1
- package/dist/esm/bindings/updateNameRegistry.mjs.map +1 -1
- package/dist/esm/bindings/updateRecord.mjs +53 -1
- package/dist/esm/bindings/updateRecord.mjs.map +1 -1
- package/dist/esm/bindings/validateRecordRoa.mjs +28 -0
- package/dist/esm/bindings/validateRecordRoa.mjs.map +1 -0
- package/dist/esm/bindings/validateRecordRoaEthereum.mjs +45 -0
- package/dist/esm/bindings/validateRecordRoaEthereum.mjs.map +1 -0
- package/dist/esm/codecs.mjs +19 -1
- package/dist/esm/codecs.mjs.map +1 -1
- package/dist/esm/config.mjs +11 -0
- package/dist/esm/config.mjs.map +1 -0
- package/dist/esm/constants/addresses.mjs +98 -1
- package/dist/esm/constants/addresses.mjs.map +1 -1
- package/dist/esm/constants/index.mjs +3 -1
- package/dist/esm/constants/index.mjs.map +1 -1
- package/dist/esm/constants/pythFeeds.mjs +86 -1
- package/dist/esm/constants/pythFeeds.mjs.map +1 -1
- package/dist/esm/constants/records.mjs +63 -1
- package/dist/esm/constants/records.mjs.map +1 -1
- package/dist/esm/domain/getAllSnsDomains.mjs +39 -0
- package/dist/esm/domain/getAllSnsDomains.mjs.map +1 -0
- package/dist/esm/domain/getDomainOwner.mjs +23 -1
- package/dist/esm/domain/getDomainOwner.mjs.map +1 -1
- package/dist/esm/domain/getDomainRecord.mjs +50 -1
- package/dist/esm/domain/getDomainRecord.mjs.map +1 -1
- package/dist/esm/domain/getDomainRecords.mjs +60 -1
- package/dist/esm/domain/getDomainRecords.mjs.map +1 -1
- package/dist/esm/domain/getSnsDomainAddress.mjs +48 -0
- package/dist/esm/domain/getSnsDomainAddress.mjs.map +1 -0
- package/dist/esm/domain/getSnsDomainOwner.mjs +27 -0
- package/dist/esm/domain/getSnsDomainOwner.mjs.map +1 -0
- package/dist/esm/domain/getSrsDomainAddress.mjs +32 -0
- package/dist/esm/domain/getSrsDomainAddress.mjs.map +1 -0
- package/dist/esm/domain/getSubdomains.mjs +91 -1
- package/dist/esm/domain/getSubdomains.mjs.map +1 -1
- package/dist/esm/domain/index.mjs +8 -1
- package/dist/esm/domain/index.mjs.map +1 -1
- package/dist/esm/domain/resolve.mjs +62 -0
- package/dist/esm/domain/resolve.mjs.map +1 -0
- package/dist/esm/domain/resolveSns.mjs +109 -0
- package/dist/esm/domain/resolveSns.mjs.map +1 -0
- package/dist/esm/errors.mjs +218 -1
- package/dist/esm/errors.mjs.map +1 -1
- package/dist/esm/index.mjs +74 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/instructions/allocateAndPostRecordInstruction.mjs +67 -1
- package/dist/esm/instructions/allocateAndPostRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/burnDomainInstruction.mjs +67 -1
- package/dist/esm/instructions/burnDomainInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createAtaIdempotentInstruction.mjs +67 -0
- package/dist/esm/instructions/createAtaIdempotentInstruction.mjs.map +1 -0
- package/dist/esm/instructions/createNameRegistryInstruction.mjs +90 -1
- package/dist/esm/instructions/createNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createReverseInstruction.mjs +75 -1
- package/dist/esm/instructions/createReverseInstruction.mjs.map +1 -1
- package/dist/esm/instructions/createSplitV2Instruction.mjs +109 -1
- package/dist/esm/instructions/createSplitV2Instruction.mjs.map +1 -1
- package/dist/esm/instructions/createWithNftInstruction.mjs +103 -1
- package/dist/esm/instructions/createWithNftInstruction.mjs.map +1 -1
- package/dist/esm/instructions/deleteNameRegistryInstruction.mjs +43 -1
- package/dist/esm/instructions/deleteNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/deleteRecordInstruction.mjs +59 -1
- package/dist/esm/instructions/deleteRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/index.mjs +17 -1
- package/dist/esm/instructions/index.mjs.map +1 -1
- package/dist/esm/instructions/reallocInstruction.mjs +51 -1
- package/dist/esm/instructions/reallocInstruction.mjs.map +1 -1
- package/dist/esm/instructions/registerPrimaryInstruction.mjs +54 -0
- package/dist/esm/instructions/registerPrimaryInstruction.mjs.map +1 -0
- package/dist/esm/instructions/setRecordRoaVerifierInstruction.mjs +65 -0
- package/dist/esm/instructions/setRecordRoaVerifierInstruction.mjs.map +1 -0
- package/dist/esm/instructions/transferInstruction.mjs +63 -1
- package/dist/esm/instructions/transferInstruction.mjs.map +1 -1
- package/dist/esm/instructions/updateNameRegistryInstruction.mjs +47 -1
- package/dist/esm/instructions/updateNameRegistryInstruction.mjs.map +1 -1
- package/dist/esm/instructions/updateRecordInstruction.mjs +67 -1
- package/dist/esm/instructions/updateRecordInstruction.mjs.map +1 -1
- package/dist/esm/instructions/validateEthereumSignatureInstruction.mjs +72 -0
- package/dist/esm/instructions/validateEthereumSignatureInstruction.mjs.map +1 -0
- package/dist/esm/instructions/validateSolanaSignatureInstruction.mjs +68 -0
- package/dist/esm/instructions/validateSolanaSignatureInstruction.mjs.map +1 -0
- package/dist/esm/nft/getSnsNftMint.mjs +27 -0
- package/dist/esm/nft/getSnsNftMint.mjs.map +1 -0
- package/dist/esm/nft/getSnsNftOwner.mjs +44 -0
- package/dist/esm/nft/getSnsNftOwner.mjs.map +1 -0
- package/dist/esm/nft/index.mjs +2 -1
- package/dist/esm/nft/index.mjs.map +1 -1
- package/dist/esm/record/getRecordV1Address.mjs +27 -1
- package/dist/esm/record/getRecordV1Address.mjs.map +1 -1
- package/dist/esm/record/getRecordV2Address.mjs +23 -1
- package/dist/esm/record/getRecordV2Address.mjs.map +1 -1
- package/dist/esm/record/index.mjs +4 -1
- package/dist/esm/record/index.mjs.map +1 -1
- package/dist/esm/record/verifyRecordRightOfAssociation.mjs +89 -1
- package/dist/esm/record/verifyRecordRightOfAssociation.mjs.map +1 -1
- package/dist/esm/record/verifyRecordStaleness.mjs +50 -1
- package/dist/esm/record/verifyRecordStaleness.mjs.map +1 -1
- package/dist/esm/states/index.mjs +4 -1
- package/dist/esm/states/index.mjs.map +1 -1
- package/dist/esm/states/nft.mjs +105 -1
- package/dist/esm/states/nft.mjs.map +1 -1
- package/dist/esm/states/primaryDomain.mjs +61 -1
- package/dist/esm/states/primaryDomain.mjs.map +1 -1
- package/dist/esm/states/record.mjs +113 -1
- package/dist/esm/states/record.mjs.map +1 -1
- package/dist/esm/states/registry.mjs +64 -1
- package/dist/esm/states/registry.mjs.map +1 -1
- package/dist/esm/types/index.mjs +2 -1
- package/dist/esm/types/index.mjs.map +1 -1
- package/dist/esm/types/record.mjs +52 -1
- package/dist/esm/types/record.mjs.map +1 -1
- package/dist/esm/types/validation.mjs +10 -1
- package/dist/esm/types/validation.mjs.map +1 -1
- package/dist/esm/utils/assertTldSupported.mjs +24 -0
- package/dist/esm/utils/assertTldSupported.mjs.map +1 -0
- package/dist/esm/utils/check.mjs +16 -1
- package/dist/esm/utils/check.mjs.map +1 -1
- package/dist/esm/utils/checkAddressOnCurve/ed25519.mjs +76 -2
- package/dist/esm/utils/checkAddressOnCurve/ed25519.mjs.map +1 -1
- package/dist/esm/utils/checkAddressOnCurve/index.mjs +38 -1
- package/dist/esm/utils/checkAddressOnCurve/index.mjs.map +1 -1
- package/dist/esm/utils/deriveAddress.mjs +51 -1
- package/dist/esm/utils/deriveAddress.mjs.map +1 -1
- package/dist/esm/utils/deserializers/deserializeRecordContent.mjs +60 -1
- package/dist/esm/utils/deserializers/deserializeRecordContent.mjs.map +1 -1
- package/dist/esm/utils/deserializers/deserializeReverse.mjs +13 -1
- package/dist/esm/utils/deserializers/deserializeReverse.mjs.map +1 -1
- package/dist/esm/utils/getPythFeedAddress.mjs +28 -1
- package/dist/esm/utils/getPythFeedAddress.mjs.map +1 -1
- package/dist/esm/utils/getReverseAddress.mjs +25 -1
- package/dist/esm/utils/getReverseAddress.mjs.map +1 -1
- package/dist/esm/utils/getReverseAddressFromDomainAddress.mjs +21 -1
- package/dist/esm/utils/getReverseAddressFromDomainAddress.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +10 -1
- package/dist/esm/utils/index.mjs.map +1 -1
- package/dist/esm/utils/parseSnsDomain.mjs +60 -0
- package/dist/esm/utils/parseSnsDomain.mjs.map +1 -0
- package/dist/esm/utils/reverseLookup.mjs +36 -1
- package/dist/esm/utils/reverseLookup.mjs.map +1 -1
- package/dist/esm/utils/reverseLookupBatch.mjs +26 -1
- package/dist/esm/utils/reverseLookupBatch.mjs.map +1 -1
- package/dist/esm/utils/serializers/serializeRecordContent.mjs +86 -1
- package/dist/esm/utils/serializers/serializeRecordContent.mjs.map +1 -1
- package/dist/esm/utils/tld.mjs +58 -0
- package/dist/esm/utils/tld.mjs.map +1 -0
- package/dist/esm/utils/uint8Array/uint8ArrayFromHex.mjs +16 -1
- package/dist/esm/utils/uint8Array/uint8ArrayFromHex.mjs.map +1 -1
- package/dist/esm/utils/uint8Array/uint8ArrayToHex.mjs +12 -1
- package/dist/esm/utils/uint8Array/uint8ArrayToHex.mjs.map +1 -1
- package/dist/esm/utils/uint8Array/uint8ArraysEqual.mjs +16 -1
- package/dist/esm/utils/uint8Array/uint8ArraysEqual.mjs.map +1 -1
- package/dist/types/address/index.d.ts +193 -4
- package/dist/types/bindings/index.d.ts +821 -17
- package/dist/types/codecs.d.ts +16 -5
- package/dist/types/constants/index.d.ts +141 -3
- package/dist/types/domain/index.d.ts +559 -7
- package/dist/types/errors.d.ts +73 -85
- package/dist/types/index.d.ts +3038 -74
- package/dist/types/instructions/index.d.ts +523 -19
- package/dist/types/nft/index.d.ts +59 -2
- package/dist/types/record/index.d.ts +254 -4
- package/dist/types/states/index.d.ts +235 -4
- package/dist/types/types/index.d.ts +50 -2
- package/dist/types/utils/index.d.ts +346 -10
- package/package.json +47 -41
- package/dist/cjs/_virtual/ipaddr.cjs +0 -2
- package/dist/cjs/_virtual/ipaddr.cjs.map +0 -1
- package/dist/cjs/_virtual/ipaddr2.cjs +0 -2
- package/dist/cjs/_virtual/ipaddr2.cjs.map +0 -1
- package/dist/cjs/address/getDomainsForAddress.cjs +0 -2
- package/dist/cjs/address/getDomainsForAddress.cjs.map +0 -1
- package/dist/cjs/address/getNftsForAddress.cjs +0 -2
- package/dist/cjs/address/getNftsForAddress.cjs.map +0 -1
- package/dist/cjs/bindings/registerWithNft.cjs +0 -2
- package/dist/cjs/bindings/registerWithNft.cjs.map +0 -1
- package/dist/cjs/bindings/validateRoa.cjs +0 -2
- package/dist/cjs/bindings/validateRoa.cjs.map +0 -1
- package/dist/cjs/bindings/validateRoaEthereum.cjs +0 -2
- package/dist/cjs/bindings/validateRoaEthereum.cjs.map +0 -1
- package/dist/cjs/bindings/writeRoa.cjs +0 -2
- package/dist/cjs/bindings/writeRoa.cjs.map +0 -1
- package/dist/cjs/domain/getAllDomains.cjs +0 -2
- package/dist/cjs/domain/getAllDomains.cjs.map +0 -1
- package/dist/cjs/domain/getDomainAddress.cjs +0 -2
- package/dist/cjs/domain/getDomainAddress.cjs.map +0 -1
- package/dist/cjs/domain/resolveDomain.cjs +0 -2
- package/dist/cjs/domain/resolveDomain.cjs.map +0 -1
- package/dist/cjs/instructions/createAtaInstruction.cjs +0 -2
- package/dist/cjs/instructions/createAtaInstruction.cjs.map +0 -1
- package/dist/cjs/instructions/createInstructionV3.cjs +0 -2
- package/dist/cjs/instructions/createInstructionV3.cjs.map +0 -1
- package/dist/cjs/instructions/createV2Instruction.cjs +0 -2
- package/dist/cjs/instructions/createV2Instruction.cjs.map +0 -1
- package/dist/cjs/instructions/registerFavoriteInstruction.cjs +0 -2
- package/dist/cjs/instructions/registerFavoriteInstruction.cjs.map +0 -1
- package/dist/cjs/instructions/validateRoaEthereumInstruction.cjs +0 -2
- package/dist/cjs/instructions/validateRoaEthereumInstruction.cjs.map +0 -1
- package/dist/cjs/instructions/validateRoaInstruction.cjs +0 -2
- package/dist/cjs/instructions/validateRoaInstruction.cjs.map +0 -1
- package/dist/cjs/instructions/writeRoaInstruction.cjs +0 -2
- package/dist/cjs/instructions/writeRoaInstruction.cjs.map +0 -1
- package/dist/cjs/nft/getNftMint.cjs +0 -2
- package/dist/cjs/nft/getNftMint.cjs.map +0 -1
- package/dist/cjs/nft/getNftOwner.cjs +0 -2
- package/dist/cjs/nft/getNftOwner.cjs.map +0 -1
- package/dist/cjs/node_modules/@scure/base/lib/esm/index.cjs +0 -3
- package/dist/cjs/node_modules/@scure/base/lib/esm/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@solana-program/token/dist/src/index.cjs +0 -2
- package/dist/cjs/node_modules/@solana-program/token/dist/src/index.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/buffer.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/buffer.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/deserialize.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/deserialize.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/index.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/index.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/serialize.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/serialize.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/types.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/types.cjs.map +0 -1
- package/dist/cjs/node_modules/borsh/lib/esm/utils.cjs +0 -2
- package/dist/cjs/node_modules/borsh/lib/esm/utils.cjs.map +0 -1
- package/dist/cjs/node_modules/ipaddr.js/lib/ipaddr.cjs +0 -2
- package/dist/cjs/node_modules/ipaddr.js/lib/ipaddr.cjs.map +0 -1
- package/dist/cjs/node_modules/punycode/punycode.es6.cjs +0 -2
- package/dist/cjs/node_modules/punycode/punycode.es6.cjs.map +0 -1
- package/dist/esm/_virtual/ipaddr.mjs +0 -2
- package/dist/esm/_virtual/ipaddr.mjs.map +0 -1
- package/dist/esm/_virtual/ipaddr2.mjs +0 -2
- package/dist/esm/_virtual/ipaddr2.mjs.map +0 -1
- package/dist/esm/address/getDomainsForAddress.mjs +0 -2
- package/dist/esm/address/getDomainsForAddress.mjs.map +0 -1
- package/dist/esm/address/getNftsForAddress.mjs +0 -2
- package/dist/esm/address/getNftsForAddress.mjs.map +0 -1
- package/dist/esm/bindings/registerWithNft.mjs +0 -2
- package/dist/esm/bindings/registerWithNft.mjs.map +0 -1
- package/dist/esm/bindings/validateRoa.mjs +0 -2
- package/dist/esm/bindings/validateRoa.mjs.map +0 -1
- package/dist/esm/bindings/validateRoaEthereum.mjs +0 -2
- package/dist/esm/bindings/validateRoaEthereum.mjs.map +0 -1
- package/dist/esm/bindings/writeRoa.mjs +0 -2
- package/dist/esm/bindings/writeRoa.mjs.map +0 -1
- package/dist/esm/domain/getAllDomains.mjs +0 -2
- package/dist/esm/domain/getAllDomains.mjs.map +0 -1
- package/dist/esm/domain/getDomainAddress.mjs +0 -2
- package/dist/esm/domain/getDomainAddress.mjs.map +0 -1
- package/dist/esm/domain/resolveDomain.mjs +0 -2
- package/dist/esm/domain/resolveDomain.mjs.map +0 -1
- package/dist/esm/instructions/createAtaInstruction.mjs +0 -2
- package/dist/esm/instructions/createAtaInstruction.mjs.map +0 -1
- package/dist/esm/instructions/createInstructionV3.mjs +0 -2
- package/dist/esm/instructions/createInstructionV3.mjs.map +0 -1
- package/dist/esm/instructions/createV2Instruction.mjs +0 -2
- package/dist/esm/instructions/createV2Instruction.mjs.map +0 -1
- package/dist/esm/instructions/registerFavoriteInstruction.mjs +0 -2
- package/dist/esm/instructions/registerFavoriteInstruction.mjs.map +0 -1
- package/dist/esm/instructions/validateRoaEthereumInstruction.mjs +0 -2
- package/dist/esm/instructions/validateRoaEthereumInstruction.mjs.map +0 -1
- package/dist/esm/instructions/validateRoaInstruction.mjs +0 -2
- package/dist/esm/instructions/validateRoaInstruction.mjs.map +0 -1
- package/dist/esm/instructions/writeRoaInstruction.mjs +0 -2
- package/dist/esm/instructions/writeRoaInstruction.mjs.map +0 -1
- package/dist/esm/nft/getNftMint.mjs +0 -2
- package/dist/esm/nft/getNftMint.mjs.map +0 -1
- package/dist/esm/nft/getNftOwner.mjs +0 -2
- package/dist/esm/nft/getNftOwner.mjs.map +0 -1
- package/dist/esm/node_modules/@scure/base/lib/esm/index.mjs +0 -3
- package/dist/esm/node_modules/@scure/base/lib/esm/index.mjs.map +0 -1
- package/dist/esm/node_modules/@solana-program/token/dist/src/index.mjs +0 -2
- package/dist/esm/node_modules/@solana-program/token/dist/src/index.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/buffer.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/buffer.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/deserialize.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/deserialize.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/index.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/index.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/serialize.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/serialize.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/types.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/types.mjs.map +0 -1
- package/dist/esm/node_modules/borsh/lib/esm/utils.mjs +0 -2
- package/dist/esm/node_modules/borsh/lib/esm/utils.mjs.map +0 -1
- package/dist/esm/node_modules/ipaddr.js/lib/ipaddr.mjs +0 -2
- package/dist/esm/node_modules/ipaddr.js/lib/ipaddr.mjs.map +0 -1
- package/dist/esm/node_modules/punycode/punycode.es6.mjs +0 -2
- package/dist/esm/node_modules/punycode/punycode.es6.mjs.map +0 -1
- package/dist/types/address/getDomainsForAddress.d.ts +0 -19
- package/dist/types/address/getNftsForAddress.d.ts +0 -20
- package/dist/types/address/getPrimaryDomain.d.ts +0 -22
- package/dist/types/address/getPrimaryDomainsBatch.d.ts +0 -16
- package/dist/types/bindings/burnDomain.d.ts +0 -17
- package/dist/types/bindings/createNameRegistry.d.ts +0 -28
- package/dist/types/bindings/createRecord.d.ts +0 -23
- package/dist/types/bindings/createReverse.d.ts +0 -21
- package/dist/types/bindings/createSubdomain.d.ts +0 -23
- package/dist/types/bindings/deleteNameRegistry.d.ts +0 -21
- package/dist/types/bindings/deleteRecord.d.ts +0 -20
- package/dist/types/bindings/registerDomain.d.ts +0 -25
- package/dist/types/bindings/registerWithNft.d.ts +0 -21
- package/dist/types/bindings/setPrimaryDomain.d.ts +0 -16
- package/dist/types/bindings/transferDomain.d.ts +0 -23
- package/dist/types/bindings/transferSubdomain.d.ts +0 -25
- package/dist/types/bindings/updateNameRegistry.d.ts +0 -22
- package/dist/types/bindings/updateRecord.d.ts +0 -22
- package/dist/types/bindings/validateRoa.d.ts +0 -24
- package/dist/types/bindings/validateRoaEthereum.d.ts +0 -24
- package/dist/types/bindings/writeRoa.d.ts +0 -22
- package/dist/types/constants/addresses.d.ts +0 -53
- package/dist/types/constants/pythFeeds.d.ts +0 -3
- package/dist/types/constants/records.d.ts +0 -23
- package/dist/types/domain/getAllDomains.d.ts +0 -16
- package/dist/types/domain/getDomainAddress.d.ts +0 -30
- package/dist/types/domain/getDomainOwner.d.ts +0 -16
- package/dist/types/domain/getDomainRecord.d.ts +0 -35
- package/dist/types/domain/getDomainRecords.d.ts +0 -39
- package/dist/types/domain/getSubdomains.d.ts +0 -19
- package/dist/types/domain/resolveDomain.d.ts +0 -26
- package/dist/types/instructions/allocateAndPostRecordInstruction.d.ts +0 -23
- package/dist/types/instructions/burnDomainInstruction.d.ts +0 -12
- package/dist/types/instructions/createAtaInstruction.d.ts +0 -2
- package/dist/types/instructions/createInstructionV3.d.ts +0 -24
- package/dist/types/instructions/createNameRegistryInstruction.d.ts +0 -26
- package/dist/types/instructions/createReverseInstruction.d.ts +0 -16
- package/dist/types/instructions/createSplitV2Instruction.d.ts +0 -24
- package/dist/types/instructions/createV2Instruction.d.ts +0 -19
- package/dist/types/instructions/createWithNftInstruction.d.ts +0 -19
- package/dist/types/instructions/deleteNameRegistryInstruction.d.ts +0 -12
- package/dist/types/instructions/deleteRecordInstruction.d.ts +0 -12
- package/dist/types/instructions/reallocInstruction.d.ts +0 -16
- package/dist/types/instructions/registerFavoriteInstruction.d.ts +0 -12
- package/dist/types/instructions/transferInstruction.d.ts +0 -21
- package/dist/types/instructions/updateNameRegistryInstruction.d.ts +0 -23
- package/dist/types/instructions/updateRecordInstruction.d.ts +0 -23
- package/dist/types/instructions/validateRoaEthereumInstruction.d.ts +0 -30
- package/dist/types/instructions/validateRoaInstruction.d.ts +0 -16
- package/dist/types/instructions/writeRoaInstruction.d.ts +0 -20
- package/dist/types/nft/getNftMint.d.ts +0 -13
- package/dist/types/nft/getNftOwner.d.ts +0 -15
- package/dist/types/record/getRecordV1Address.d.ts +0 -15
- package/dist/types/record/getRecordV2Address.d.ts +0 -16
- package/dist/types/record/verifyRecordRightOfAssociation.d.ts +0 -40
- package/dist/types/record/verifyRecordStaleness.d.ts +0 -31
- package/dist/types/states/nft.d.ts +0 -50
- package/dist/types/states/primaryDomain.d.ts +0 -25
- package/dist/types/states/record.d.ts +0 -30
- package/dist/types/states/registry.d.ts +0 -39
- package/dist/types/types/record.d.ts +0 -38
- package/dist/types/types/validation.d.ts +0 -6
- package/dist/types/utils/check.d.ts +0 -10
- package/dist/types/utils/checkAddressOnCurve/ed25519.d.ts +0 -1
- package/dist/types/utils/checkAddressOnCurve/index.d.ts +0 -2
- package/dist/types/utils/deriveAddress.d.ts +0 -28
- package/dist/types/utils/deserializers/deserializeRecordContent.d.ts +0 -17
- package/dist/types/utils/deserializers/deserializeReverse.d.ts +0 -16
- package/dist/types/utils/getPythFeedAddress.d.ts +0 -14
- package/dist/types/utils/getReverseAddress.d.ts +0 -1
- package/dist/types/utils/getReverseAddressFromDomainAddress.d.ts +0 -15
- package/dist/types/utils/reverseLookup.d.ts +0 -18
- package/dist/types/utils/reverseLookupBatch.d.ts +0 -16
- package/dist/types/utils/serializers/serializeRecordContent.d.ts +0 -16
- package/dist/types/utils/uint8Array/uint8ArrayFromHex.d.ts +0 -6
- package/dist/types/utils/uint8Array/uint8ArrayToHex.d.ts +0 -7
- package/dist/types/utils/uint8Array/uint8ArraysConcat.d.ts +0 -8
- package/dist/types/utils/uint8Array/uint8ArraysEqual.d.ts +0 -9
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
export declare class allocateAndPostRecordInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
record: string;
|
|
5
|
-
content: ReadonlyUint8Array;
|
|
6
|
-
static schema: {
|
|
7
|
-
struct: {
|
|
8
|
-
tag: string;
|
|
9
|
-
record: string;
|
|
10
|
-
content: {
|
|
11
|
-
array: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(obj: {
|
|
18
|
-
record: string;
|
|
19
|
-
content: ReadonlyUint8Array;
|
|
20
|
-
});
|
|
21
|
-
serialize(): Uint8Array;
|
|
22
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, payer: Address, record: Address, domainAddress: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
23
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class burnDomainInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
static schema: {
|
|
5
|
-
struct: {
|
|
6
|
-
tag: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
constructor();
|
|
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): Instruction;
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createInstructionV3 {
|
|
3
|
-
tag: number;
|
|
4
|
-
name: string;
|
|
5
|
-
space: number;
|
|
6
|
-
referrerIdxOpt: number | null;
|
|
7
|
-
static schema: {
|
|
8
|
-
struct: {
|
|
9
|
-
tag: string;
|
|
10
|
-
name: string;
|
|
11
|
-
space: string;
|
|
12
|
-
referrerIdxOpt: {
|
|
13
|
-
option: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(obj: {
|
|
18
|
-
name: string;
|
|
19
|
-
space: number;
|
|
20
|
-
referrerIdxOpt: number | null;
|
|
21
|
-
});
|
|
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): Instruction;
|
|
24
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createNameRegistryInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
nameHash: Uint8Array;
|
|
5
|
-
lamports: bigint;
|
|
6
|
-
space: number;
|
|
7
|
-
static schema: {
|
|
8
|
-
struct: {
|
|
9
|
-
tag: string;
|
|
10
|
-
nameHash: {
|
|
11
|
-
array: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
lamports: string;
|
|
16
|
-
space: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
constructor(obj: {
|
|
20
|
-
nameHash: Uint8Array;
|
|
21
|
-
lamports: bigint;
|
|
22
|
-
space: number;
|
|
23
|
-
});
|
|
24
|
-
serialize(): Uint8Array;
|
|
25
|
-
getInstruction(programAddress: Address, systemProgram: Address, domainAddress: Address, owner: Address, payer: Address, classAddress?: Address, parentAddress?: Address, parentOwner?: Address): Instruction;
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createReverseInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
domain: string;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
domain: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
constructor(obj: {
|
|
12
|
-
domain: string;
|
|
13
|
-
});
|
|
14
|
-
serialize(): Uint8Array;
|
|
15
|
-
getInstruction(programAddress: Address, namingServiceProgram: Address, rootDomain: Address, reverseLookup: Address, systemProgram: Address, centralState: Address, payer: Address, rentSysvar: Address, parentAddress?: Address, parentOwner?: Address): Instruction;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createSplitV2Instruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
name: string;
|
|
5
|
-
space: number;
|
|
6
|
-
referrerIdxOpt: number | null;
|
|
7
|
-
static schema: {
|
|
8
|
-
struct: {
|
|
9
|
-
tag: string;
|
|
10
|
-
name: string;
|
|
11
|
-
space: string;
|
|
12
|
-
referrerIdxOpt: {
|
|
13
|
-
option: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(obj: {
|
|
18
|
-
name: string;
|
|
19
|
-
space: number;
|
|
20
|
-
referrerIdxOpt: number | null;
|
|
21
|
-
});
|
|
22
|
-
serialize(): Uint8Array;
|
|
23
|
-
getInstruction(programAddress: Address, namingServiceProgram: Address, rootDomain: Address, name: Address, reverseLookup: Address, systemProgram: Address, centralState: Address, buyer: Address, domainOwner: Address, feePayer: Address, buyerTokenSource: Address, pythFeedAccount: Address, vault: Address, splTokenProgram: Address, rentSysvar: Address, state: Address, referrerAccountOpt?: Address): Instruction;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createV2Instruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
name: string;
|
|
5
|
-
space: number;
|
|
6
|
-
static schema: {
|
|
7
|
-
struct: {
|
|
8
|
-
tag: string;
|
|
9
|
-
name: string;
|
|
10
|
-
space: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
constructor(obj: {
|
|
14
|
-
name: string;
|
|
15
|
-
space: number;
|
|
16
|
-
});
|
|
17
|
-
serialize(): Uint8Array;
|
|
18
|
-
getInstruction(programAddress: Address, rentSysvarAccount: Address, nameProgramId: Address, rootDomain: Address, nameAccount: Address, reverseLookupAccount: Address, centralState: Address, buyer: Address, buyerTokenAccount: Address, usdcVault: Address, state: Address): Instruction;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class createWithNftInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
name: string;
|
|
5
|
-
space: number;
|
|
6
|
-
static schema: {
|
|
7
|
-
struct: {
|
|
8
|
-
tag: string;
|
|
9
|
-
name: string;
|
|
10
|
-
space: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
constructor(obj: {
|
|
14
|
-
name: string;
|
|
15
|
-
space: number;
|
|
16
|
-
});
|
|
17
|
-
serialize(): Uint8Array;
|
|
18
|
-
getInstruction(programAddress: Address, namingServiceProgram: Address, rootDomain: Address, name: Address, reverseLookup: Address, systemProgram: Address, centralState: Address, buyer: Address, nftSource: Address, nftMetadata: Address, nftMint: Address, masterEdition: Address, collection: Address, splTokenProgram: Address, rentSysvar: Address, state: Address, mplTokenMetadata: Address): Instruction;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class DeleteNameRegistryInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
static schema: {
|
|
5
|
-
struct: {
|
|
6
|
-
tag: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
constructor();
|
|
10
|
-
serialize(): Uint8Array;
|
|
11
|
-
getInstruction(programAddress: Address, domainAddress: Address, refundTarget: Address, owner: Address): Instruction;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class deleteRecordInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
static schema: {
|
|
5
|
-
struct: {
|
|
6
|
-
tag: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
constructor();
|
|
10
|
-
serialize(): Uint8Array;
|
|
11
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, payer: Address, record: Address, domainAddress: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class ReallocInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
space: number;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
space: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
constructor(obj: {
|
|
12
|
-
space: number;
|
|
13
|
-
});
|
|
14
|
-
serialize(): Uint8Array;
|
|
15
|
-
getInstruction(programAddress: Address, systemProgramId: Address, payerKey: Address, nameAccountKey: Address, nameOwnerKey: Address): Instruction;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class registerFavoriteInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
static schema: {
|
|
5
|
-
struct: {
|
|
6
|
-
tag: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
constructor();
|
|
10
|
-
serialize(): Uint8Array;
|
|
11
|
-
getInstruction(programAddress: Address, nameAccount: Address, favouriteAccount: Address, owner: Address, systemProgram: Address, optParent?: Address): Instruction;
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
export declare class TransferInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
encodedNewOwnerAddress: ReadonlyUint8Array;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
encodedNewOwnerAddress: {
|
|
9
|
-
array: {
|
|
10
|
-
type: string;
|
|
11
|
-
len: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
constructor(obj: {
|
|
17
|
-
newOwner: Address;
|
|
18
|
-
});
|
|
19
|
-
serialize(): Uint8Array;
|
|
20
|
-
getInstruction(programAddress: Address, domainAddress: Address, currentOwner: Address, classAddress?: Address, parentAddress?: Address, parentOwner?: Address): Instruction;
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class UpdateNameRegistryInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
offset: number;
|
|
5
|
-
inputData: Uint8Array;
|
|
6
|
-
static schema: {
|
|
7
|
-
struct: {
|
|
8
|
-
tag: string;
|
|
9
|
-
offset: string;
|
|
10
|
-
inputData: {
|
|
11
|
-
array: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(obj: {
|
|
18
|
-
offset: number;
|
|
19
|
-
inputDat: Uint8Array;
|
|
20
|
-
});
|
|
21
|
-
serialize(): Uint8Array;
|
|
22
|
-
getInstruction(programAddress: Address, domainAddress: Address, signer: Address): Instruction;
|
|
23
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
export declare class updateRecordInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
record: string;
|
|
5
|
-
content: ReadonlyUint8Array;
|
|
6
|
-
static schema: {
|
|
7
|
-
struct: {
|
|
8
|
-
tag: string;
|
|
9
|
-
record: string;
|
|
10
|
-
content: {
|
|
11
|
-
array: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(obj: {
|
|
18
|
-
record: string;
|
|
19
|
-
content: ReadonlyUint8Array;
|
|
20
|
-
});
|
|
21
|
-
serialize(): Uint8Array;
|
|
22
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, feePayer: Address, record: Address, domain: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
23
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
export declare class validateRoaEthereumInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
validation: number;
|
|
5
|
-
signature: ReadonlyUint8Array;
|
|
6
|
-
expectedPubkey: ReadonlyUint8Array;
|
|
7
|
-
static schema: {
|
|
8
|
-
struct: {
|
|
9
|
-
tag: string;
|
|
10
|
-
validation: string;
|
|
11
|
-
signature: {
|
|
12
|
-
array: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
expectedPubkey: {
|
|
17
|
-
array: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
constructor(obj: {
|
|
24
|
-
validation: number;
|
|
25
|
-
signature: ReadonlyUint8Array;
|
|
26
|
-
expectedPubkey: ReadonlyUint8Array;
|
|
27
|
-
});
|
|
28
|
-
serialize(): Uint8Array;
|
|
29
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, feePayer: Address, record: Address, domain: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
30
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction } from "@solana/kit";
|
|
2
|
-
export declare class validateRoaInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
staleness: boolean;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
staleness: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
constructor(obj: {
|
|
12
|
-
staleness: boolean;
|
|
13
|
-
});
|
|
14
|
-
serialize(): Uint8Array;
|
|
15
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, feePayer: Address, record: Address, domain: Address, domainOwner: Address, centralState: Address, verifier: Address): Instruction;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Address, Instruction, ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
export declare class writeRoaInstruction {
|
|
3
|
-
tag: number;
|
|
4
|
-
roaId: ReadonlyUint8Array;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
roaId: {
|
|
9
|
-
array: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
constructor(obj: {
|
|
16
|
-
roaId: Address;
|
|
17
|
-
});
|
|
18
|
-
serialize(): Uint8Array;
|
|
19
|
-
getInstruction(programAddress: Address, systemProgram: Address, splNameServiceProgram: Address, feePayer: Address, record: Address, domain: Address, domainOwner: Address, centralState: Address): Instruction;
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Address } from "@solana/kit";
|
|
2
|
-
interface GetNftMintParams {
|
|
3
|
-
domainAddress: Address;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves the mint address of a tokenized domain.
|
|
7
|
-
*
|
|
8
|
-
* @param params - An object containing the following properties:
|
|
9
|
-
* - `domainAddress`: The address of the domain to derive the NFT mint from.
|
|
10
|
-
* @returns A promise that resolves to the mint address of the NFT.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getNftMint: ({ domainAddress }: GetNftMintParams) => Promise<Address<string>>;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
interface GetNftOwnerParams {
|
|
3
|
-
rpc: Rpc<GetAccountInfoApi & GetTokenLargestAccountsApi>;
|
|
4
|
-
domainAddress: Address;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Retrieves the owner of a tokenized domain.
|
|
8
|
-
*
|
|
9
|
-
* @param params - An object containing the following properties:
|
|
10
|
-
* - `rpc`: An RPC interface implementing GetAccountInfoApi and GetTokenLargestAccountsApi.
|
|
11
|
-
* - `domainAddress`: The address of the domain whose owner is to be retrieved.
|
|
12
|
-
* @returns A promise that resolves to the NFT owner's address, or null if no owner is found.
|
|
13
|
-
*/
|
|
14
|
-
export declare const getNftOwner: ({ rpc, domainAddress, }: GetNftOwnerParams) => Promise<Address | null>;
|
|
15
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Record } from "../types/record";
|
|
2
|
-
interface GetRecordV1AddressParams {
|
|
3
|
-
domain: string;
|
|
4
|
-
record: Record;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Derives the address of a version 1 record.
|
|
8
|
-
*
|
|
9
|
-
* @param params - An object containing the following properties:
|
|
10
|
-
* - `domain`: The domain under which the record resides.
|
|
11
|
-
* - `record`: The type of record to derive the address for.
|
|
12
|
-
* @returns A promise that resolves to the derived record address.
|
|
13
|
-
*/
|
|
14
|
-
export declare const getRecordV1Address: ({ domain, record, }: GetRecordV1AddressParams) => Promise<import("@solana/addresses").Address>;
|
|
15
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Address } from "@solana/kit";
|
|
2
|
-
import { Record } from "../types/record";
|
|
3
|
-
interface GetRecordV2AddressParams {
|
|
4
|
-
domain: string;
|
|
5
|
-
record: Record;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Derives the address of a version 2 record.
|
|
9
|
-
*
|
|
10
|
-
* @param params - An object containing the following properties:
|
|
11
|
-
* - `domain`: The domain under which the record resides.
|
|
12
|
-
* - `record`: The type of record to derive the address for.
|
|
13
|
-
* @returns A promise that resolves to the derived record address.
|
|
14
|
-
*/
|
|
15
|
-
export declare const getRecordV2Address: ({ domain, record, }: GetRecordV2AddressParams) => Promise<Address>;
|
|
16
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { GetAccountInfoApi, GetTokenLargestAccountsApi, ReadonlyUint8Array, Rpc } from "@solana/kit";
|
|
2
|
-
import { RecordState } from "../states/record";
|
|
3
|
-
import { Record } from "../types/record";
|
|
4
|
-
/**
|
|
5
|
-
* Gets the default verifier for a given record and record state.
|
|
6
|
-
* This is an internal utility function.
|
|
7
|
-
*
|
|
8
|
-
* @param record - The record whose verifier is to be determined.
|
|
9
|
-
* @param state - The state of the record.
|
|
10
|
-
* @returns The default verifier as a ReadonlyUint8Array or undefined if no verifier is found.
|
|
11
|
-
*/
|
|
12
|
-
export declare const _getDefaultVerifier: ({ record, state, }: {
|
|
13
|
-
record: Record;
|
|
14
|
-
state: RecordState;
|
|
15
|
-
}) => Uint8Array<ArrayBufferLike> | ReadonlyUint8Array<ArrayBuffer> | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Verifies the right of association for a record synchronously.
|
|
18
|
-
* This function is intended for internal use only.
|
|
19
|
-
*
|
|
20
|
-
* @param record - The record to verify.
|
|
21
|
-
* @param state - The state of the record.
|
|
22
|
-
* @param verifier - The verifier for the record.
|
|
23
|
-
* @returns True if the association is valid, false otherwise.
|
|
24
|
-
*/
|
|
25
|
-
export declare const _verifyRoaSync: ({ record, state, verifier, }: {
|
|
26
|
-
record: Record;
|
|
27
|
-
state: RecordState;
|
|
28
|
-
verifier: ReadonlyUint8Array;
|
|
29
|
-
}) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Verifies the right of association for a record asynchronously.
|
|
32
|
-
*
|
|
33
|
-
* @param rpc - The RPC interface implementing GetAccountInfoApi and GetTokenLargestAccountsApi.
|
|
34
|
-
* @param domain - The domain under which the record resides.
|
|
35
|
-
* @param record - The record to verify.
|
|
36
|
-
* @param verifier - (Optional) The verifier for the record. If not specified, a default verifier is derived.
|
|
37
|
-
* @returns A promise that resolves to true if the association is valid, false otherwise.
|
|
38
|
-
* @throws MissingVerifierError - If no verifier is specified and no default verifier is found.
|
|
39
|
-
*/
|
|
40
|
-
export declare const verifyRecordRightOfAssociation: (rpc: Rpc<GetAccountInfoApi & GetTokenLargestAccountsApi>, domain: string, record: Record, verifier?: ReadonlyUint8Array) => Promise<boolean>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetTokenLargestAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
import { RecordState } from "../states/record";
|
|
3
|
-
import { Record } from "../types/record";
|
|
4
|
-
/**
|
|
5
|
-
* Verifies the staleness of a record synchronously.
|
|
6
|
-
* This is intended for internal use only.
|
|
7
|
-
*
|
|
8
|
-
* @param domainOwner - The address of the domain's owner.
|
|
9
|
-
* @param state - The state of the record to verify.
|
|
10
|
-
* @returns True if the record's staleness validation passes, false otherwise.
|
|
11
|
-
*/
|
|
12
|
-
export declare const _verifyStalenessSync: ({ domainOwner, state, }: {
|
|
13
|
-
domainOwner: Address;
|
|
14
|
-
state: RecordState;
|
|
15
|
-
}) => boolean;
|
|
16
|
-
interface VerifyRecordStalenessParams {
|
|
17
|
-
rpc: Rpc<GetAccountInfoApi & GetTokenLargestAccountsApi>;
|
|
18
|
-
domain: string;
|
|
19
|
-
record: Record;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Verifies the staleness of a record asynchronously.
|
|
23
|
-
*
|
|
24
|
-
* @param params - An object containing the following properties:
|
|
25
|
-
* - `rpc`: The RPC interface implementing GetAccountInfoApi and GetTokenLargestAccountsApi.
|
|
26
|
-
* - `domain`: The domain under which the record resides.
|
|
27
|
-
* - `record`: The record to verify.
|
|
28
|
-
* @returns A promise that resolves to true if the record is stale, false otherwise.
|
|
29
|
-
*/
|
|
30
|
-
export declare const verifyRecordStaleness: ({ rpc, domain, record, }: VerifyRecordStalenessParams) => Promise<boolean>;
|
|
31
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetProgramAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
export declare enum NftTag {
|
|
3
|
-
Uninitialized = 0,
|
|
4
|
-
CentralState = 1,
|
|
5
|
-
ActiveRecord = 2,
|
|
6
|
-
InactiveRecord = 3
|
|
7
|
-
}
|
|
8
|
-
export declare class NftState {
|
|
9
|
-
tag: NftTag;
|
|
10
|
-
nonce: number;
|
|
11
|
-
nameAccount: Address;
|
|
12
|
-
owner: Address;
|
|
13
|
-
nftMint: Address;
|
|
14
|
-
static schema: {
|
|
15
|
-
struct: {
|
|
16
|
-
tag: string;
|
|
17
|
-
nonce: string;
|
|
18
|
-
nameAccount: {
|
|
19
|
-
array: {
|
|
20
|
-
type: string;
|
|
21
|
-
len: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
owner: {
|
|
25
|
-
array: {
|
|
26
|
-
type: string;
|
|
27
|
-
len: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
nftMint: {
|
|
31
|
-
array: {
|
|
32
|
-
type: string;
|
|
33
|
-
len: number;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
static LEN: number;
|
|
39
|
-
constructor(obj: {
|
|
40
|
-
tag: number;
|
|
41
|
-
nonce: number;
|
|
42
|
-
nameAccount: Uint8Array;
|
|
43
|
-
owner: Uint8Array;
|
|
44
|
-
nftMint: Uint8Array;
|
|
45
|
-
});
|
|
46
|
-
static deserialize(data: Uint8Array): NftState;
|
|
47
|
-
static retrieve(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<NftState>;
|
|
48
|
-
static retrieveFromMint(rpc: Rpc<GetProgramAccountsApi>, mint: Address): Promise<NftState>;
|
|
49
|
-
static getAddress(domainAddress: Address): Promise<Address>;
|
|
50
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
export declare class PrimaryDomainState {
|
|
3
|
-
tag: number;
|
|
4
|
-
nameAccount: Address;
|
|
5
|
-
static schema: {
|
|
6
|
-
struct: {
|
|
7
|
-
tag: string;
|
|
8
|
-
nameAccount: {
|
|
9
|
-
array: {
|
|
10
|
-
type: string;
|
|
11
|
-
len: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
constructor(obj: {
|
|
17
|
-
tag: number;
|
|
18
|
-
nameAccount: Uint8Array;
|
|
19
|
-
});
|
|
20
|
-
static deserialize(data: Uint8Array): PrimaryDomainState;
|
|
21
|
-
static retrieve(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<PrimaryDomainState>;
|
|
22
|
-
static _retrieveBatch(rpc: Rpc<GetMultipleAccountsApi>, primaryAddresses: Address[]): Promise<(PrimaryDomainState | undefined)[]>;
|
|
23
|
-
static retrieveBatch(rpc: Rpc<GetMultipleAccountsApi>, primaryAddresses: Address[]): Promise<(PrimaryDomainState | undefined)[]>;
|
|
24
|
-
static getAddress(programAddress: Address, walletAddress: Address): Promise<Address<string>>;
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
import { Schema } from "borsh";
|
|
3
|
-
import { Validation } from "../types/validation";
|
|
4
|
-
export declare const NAME_REGISTRY_LEN = 96;
|
|
5
|
-
export declare const getValidationLength: (validation: Validation) => 32 | 0 | 20;
|
|
6
|
-
export declare class RecordHeaderState {
|
|
7
|
-
stalenessValidation: number;
|
|
8
|
-
rightOfAssociationValidation: number;
|
|
9
|
-
contentLength: number;
|
|
10
|
-
static schema: Schema;
|
|
11
|
-
static LEN: number;
|
|
12
|
-
constructor(obj: {
|
|
13
|
-
stalenessValidation: number;
|
|
14
|
-
rightOfAssociationValidation: number;
|
|
15
|
-
contentLength: number;
|
|
16
|
-
});
|
|
17
|
-
static deserialize(data: Uint8Array): RecordHeaderState;
|
|
18
|
-
static retrieve(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<RecordHeaderState>;
|
|
19
|
-
}
|
|
20
|
-
export declare class RecordState {
|
|
21
|
-
header: RecordHeaderState;
|
|
22
|
-
data: Uint8Array;
|
|
23
|
-
constructor(header: RecordHeaderState, data: Uint8Array);
|
|
24
|
-
static deserialize(data: Uint8Array): RecordState;
|
|
25
|
-
static retrieve(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<RecordState>;
|
|
26
|
-
static retrieveBatch(rpc: Rpc<GetMultipleAccountsApi>, addresses: Address[]): Promise<(RecordState | undefined)[]>;
|
|
27
|
-
getContent(): Uint8Array;
|
|
28
|
-
getStalenessId(): Uint8Array;
|
|
29
|
-
getRoAId(): Uint8Array;
|
|
30
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Address, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
-
export declare class RegistryState {
|
|
3
|
-
parentName: Address;
|
|
4
|
-
owner: Address;
|
|
5
|
-
class: Address;
|
|
6
|
-
data: Uint8Array | undefined;
|
|
7
|
-
static schema: {
|
|
8
|
-
struct: {
|
|
9
|
-
parentName: {
|
|
10
|
-
array: {
|
|
11
|
-
type: string;
|
|
12
|
-
len: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
owner: {
|
|
16
|
-
array: {
|
|
17
|
-
type: string;
|
|
18
|
-
len: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
class: {
|
|
22
|
-
array: {
|
|
23
|
-
type: string;
|
|
24
|
-
len: number;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
static HEADER_LEN: number;
|
|
30
|
-
constructor(obj: {
|
|
31
|
-
parentName: Uint8Array;
|
|
32
|
-
owner: Uint8Array;
|
|
33
|
-
class: Uint8Array;
|
|
34
|
-
});
|
|
35
|
-
static deserialize(data: Uint8Array): RegistryState;
|
|
36
|
-
static retrieve(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<RegistryState>;
|
|
37
|
-
static _retrieveBatch(rpc: Rpc<GetMultipleAccountsApi>, domainAddresses: Address[]): Promise<(RegistryState | undefined)[]>;
|
|
38
|
-
static retrieveBatch(rpc: Rpc<GetMultipleAccountsApi>, domainAddresses: Address[]): Promise<(RegistryState | undefined)[]>;
|
|
39
|
-
}
|