
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@entangle_protocol/oracle-sdk
Advanced tools
The SDK for crosschain messaging
yarn add "@entangle_protocol/oracle-sdk"
All externalDevelopers must contact us
import { ProtocolBuilder, ProtocolParams, TransmittersParams } from "@entangle_protocol/oracle-sdk";
async function setupProtocol() {
const MANUAL_RECEIVERS = ["address1", "address2"];
const transmittersParams: TransmittersParams = {
maxTransmitters: 10,
minDelegateAmount: ethers.utils.parseUnits("100", "ether"),
minPersonalAmount: ethers.utils.parseUnits("10", "ether"),
}
const protocolParams: ProtocolParams = {
msgBetAmount: ethers.utils.parseUnits("0.001", "ether"),
dataBetAmount: ethers.utils.parseUnits("0.0001", "ether"),
msgBetReward: ethers.utils.parseUnits("0.002", "ether"),
dataBetReward: ethers.utils.parseUnits("0.0002", "ether"),
msgBetFirstReward: ethers.utils.parseUnits("0.004", "ether"),
dataBetFirstReward: ethers.utils.parseUnits("0.0004", "ether"),
consensusTargetRate: CONSENSUS_TARGET_RATE
};
const builder = new ProtocolBuilder(
PROTOCOL_ID,
MANUAL_RECEIVERS,
transmittersParams,
protocolParams
).withSigner(
externalDeveloper
);
const protocol: Protocol = await builder.build();
console.log("Init protocol");
await protocol.verifyOrCreate(await externalDeveloper.getAddress());
await protocol.verifyOrCreate(await admin.getAddress());
await protocol.addProtocolAddressEvm(CHAIN_ID, protocolContractAddress);
await protocol.addProposerAddressEvm(CHAIN_ID, proposerContractAddress);
await protocol.addExecutorEvm(CHAIN_ID, executorAddress);
// deposit distrib amount to start protocol working
await protocol.deposit(AMOUNT);
}
FAQs
The SDK for crosschain messaging
The npm package @entangle_protocol/oracle-sdk receives a total of 91 weekly downloads. As such, @entangle_protocol/oracle-sdk popularity was classified as not popular.
We found that @entangle_protocol/oracle-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.