Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@web3-onboard/cede-store
Advanced tools
cede.store SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic mod
CEX Wallet module for connecting cede.store to web3-onboard. Check out the cede.store Wallet Developer Docs cede.store Wallet Developer Docs for more information.
As cede.store is not a traditional 1193 wallet behavior is a little different from other wallets that connect through web3-onboard in that there is no on-chain user address to interact with and there isn't a specific chain associated. With this behavior dapp devs will need to handle accordingly and differently from traditional 1193 wallets. The dapp dev can expect the connect account to not be shown as a hex value (or at all) and the chain to always be 0x0
when a user connects with cede.store for that specific wallet account.
npm i @web3-onboard/cede-store
import Onboard from '@web3-onboard/core'
import cedeStoreWalletModule from '@web3-onboard/cede-store'
const cedeStoreWallet = cedeStoreWalletModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
cedeStoreWallet
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
Vaults allow creating bundles of CEX accounts. The extension connects with CEX through CEX API keys and everything is stored in the Local Storage of the browser, on a mobile or on a Ledger (more coming soon...). We can compare Vaults with the Keyring concept of Metamask.
A user can have multiple vaults with different CEX accounts inside. This system allows the user to give a dApp custom access to his accounts depending on the degree of trust he has in the dApp in question.
Let's say the user has three vaults: a main one with full access (track, trade, withdraw) to all his CEX, one just for tracking and one just for trading. If the user does not know the reputation of the dApp he is using, the most logical solution would be to give access only to the tracking vault so the dApp will not be able to initiate trade requests.
All requests are divided into two categories:
All public data, such as prices, volumes, historical data are collected from different exchanges and provided with our API.
All private requests, such as user balances, trades, open positions are coming from cede.store (from the user's machine).
You can access both public and private data through the extension's API. cede.store handles all exchanges requests, as well as API keys secure storage.
// get available vaults and accounts
const { vaultPreview } = provider.getVaultPreviews()
console.log(vaultPreview)
// Fetch user's balances from Binance and Coinbase
const vaultId = vaultPreview[0].id
await provider.request({
method: 'balances',
params: {
vaultId,
accountNames: ['Binance 1', 'Coinbase 1']
}
})
// Fetch user's transactions
await provider.request({
method: 'transactions',
params: {
vaultId
}
})
FAQs
cede.store SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic mod
The npm package @web3-onboard/cede-store receives a total of 162 weekly downloads. As such, @web3-onboard/cede-store popularity was classified as not popular.
We found that @web3-onboard/cede-store demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.