Skip to main content

Crate sns_wasm

Crate sns_wasm 

Source
Expand description

§SNS-WASM

Specs: https://sns.guide/introduction.html

Warning: This crate is experimental. Only one instruction is currently supported.
Client-side SNS-WASM SDK.

Re-exports§

pub use constants::HASH_PREFIX;
pub use constants::ROOT_TLD_ADDRESS;
pub use constants::SNS_PROGRAM_ID;
pub use constants::SOL_TLD_ADDRESS;
pub use constants::SOL_TLD_NAME_HASH;
pub use constants::SOL_TLD_OWNER_ADDRESS_MAINNET;
pub use instruction_builder::create::calculate_rent_exemption;
pub use name_record::Domain;
pub use name_record::Subdomain;
pub use name_record::TLDomain;
pub use pda::SNSNode;
pub use pda::derive_domain;
pub use pda::derive_subdomain;
pub use pda::derive_tld;
pub use pda::name_hash;

Modules§

constants
Solana public keys involved in SNS.
instruction_builder
Build instruction to interact with SNS Program.
name_record
SNS record types: TLD, domain and subdomain.
pda
Generate programmatically derived addresses (PDAs).

Structs§

CreateDomainCfg
Params to create instruction to register new SNS domain record.
CreateSubdomainCfg
Params to create instruction to register new SNS subdomain record.

Functions§

build_create_domain_instruction
Computes instruction to register new domain from given parameters.
build_create_subdomain_instruction
Computes instruction to register new subdomain from given parameters.