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§
- Create
Domain Cfg - Params to create instruction to register new SNS domain record.
- Create
Subdomain Cfg - 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.