
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@broxus/airdrop-ui
Advanced tools
The library provides the AirdropUI
utility for implementing an airdrop form, examples of usage.
To implement your own logic:
checkQueue
-- checks if the user has an airdrop and their position in the queue
import { checkQueue } from '@broxus/airdrop-ui'
const checkResult = await checkQueue(apiBaseUrl, workspaceId, userAddress)
checkResult
will have one of the following values:
noReward
-- no reward for the user.inQueue
-- a reward is available, and the user is in the queue. checkResult.place contains the user's current position in the queue. In this case, you need to repeat the checkQueue
operation every 30 seconds.signed
-- the user's turn has come, and you can proceed to the next step.buildTransaction
-- prepares the data for calling a transaction
import { buildTransaction } from '@broxus/airdrop-ui'
import { Clock, EverscaleStandaloneClient } from 'everscale-standalone-client'
import { CHAIN } from '@tonconnect/ui'
const clock = new Clock()
const providerRpcClient = new ProviderRpcClient({
fallback: () =>
EverscaleStandaloneClient.create({
clock,
connection: {
data: {
endpoint: 'https://jrpc-ton.broxus.com/rpc',
},
id: Number(CHAIN.MAINNET),
type: 'jrpc',
},
}),
forceUseFallback: true,
})
const trxData = await buildTransaction(claimData, providerRpcClient, clock)
Execute the transaction
import { TonConnectUI } from '@tonconnect/ui'
const tonConnectUI = new TonConnectUI()
tonConnectUI.sendTransaction(trxData)
FAQs
Ton aidrop ui utils
We found that @broxus/airdrop-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.