UNPKG

@wuwei-labs/srsly

Version:
27 lines 1.32 kB
/** * @purpose Utility functions and helpers * @module utils */ // Configuration export { setSdkConfig, getSdkConfig, clearSdkConfig, mergeConfig, getAddresses, getAffiliateConfig, getRpcUrl, detectProgramSet, } from './config'; // Network Addresses export { getProgramAddresses, getNetworkAddresses, isValidProgramSet, isValidNetwork, resolveGenesisHash, MAINNET_GENESIS, DEVNET_GENESIS, ATLASNET_GENESIS, MAINNET_ADDRESSES, ATLASNET_ADDRESSES, } from './addresses'; // Signer Utilities export { toTransactionSigner, validateAddress, isWeb3jsSigner, isKitSigner, isAddressString, } from './signer'; // Web3.js Compatibility export { toWeb3Instruction, toAddress, } from './web3js'; // Instruction Utilities export { prepareInstructions } from './instructions'; // Instruction Result export { InstructionResult } from './instructionResult'; // RPC Utilities export { createRpc, setRpcDebug, isRpcDebugEnabled } from './rpc'; // Address Lookup Table Utilities export { fetchLookupTable, getLookupTableAddress, } from './lookupTable'; // Rental Utilities export { hasActiveRental, hasQueuedRental } from './rental'; // Bid Math export { computeMinimumBid, getMinimumBid } from './bidMath'; // Discount Authorization export { createDiscount, deserializeDiscountAuth, } from './discountAuth'; //# sourceMappingURL=index.js.map