
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
TODO
Build the package
yarn build
Creage new React app
cd examples
npx create-react-app test
cd ..
Copy lib directory to node_modules
mv lib detherweb3
mv detherweb3 examples/test/node_modules
Copy package json
cp package.json examples/test/node_modules/detherweb3
cd examples/test/node_modules/detherweb3
yarn
cd ../../../
Copy example.js to src
cp example.js test/src
Remove everything in src/index.js and paste this code
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './example';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
Run the app and watch the console on the browser
cd test/
yarn start
Update the Build
yarn build
cp -r lib/* examples/test/node_modules/detherweb3/
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const balances = await detherWeb3.getBalance();
console.log(balances);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const isSmsReg = await detherWeb3.isSmsReg();
console.log(isSmsReg);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const zoneId = 'GI'
const zonePrice = await detherWeb3.getZonePrice(zoneId);
console.log(zonePrice);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const hash = '' // ethereum transaction hash
const transactionStatus = await detherWeb3.getTransactionStatus(hash);
console.log(transactionStatus);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const zoneId = 'GI'
const open = await detherWeb3.isZoneOpen(zoneId);
console.log(open);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const shop = await detherWeb3.getShop();
console.log(shop);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const hash = await detherWeb3.deleteShop();
console.log(hash);
} catch (e) {
console.log(e)
}
import DetherWeb3 from 'detherweb3';
try {
const detherWeb3 = new DetherWeb3();
await detherWeb3.init()
const data = {
lat: 1.23,
lng: 12.324,
countryId: 'GI',
postalCode: '34584',
cat: 'catch',
name: 'name',
description: 'desc',
opening: '0000000',
};
const hash = await detherWeb3.addShop(data);
console.log(hash);
} catch (e) {
console.log(e)
}
const address = detherWeb3.ethAddress;
const networkId = detherWeb3.network;
const isWeb3 = detherWeb3.isWeb3;
const isConnected = detherWeb3.isConnected;
const isInit = detherWeb3.isInit;
FAQs
Dether SDK to easily call smart contract with web3js
We found that detherweb3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.