Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@polymarket/distributor-sdk
Advanced tools
SDK to simplify common interactions with the Polymarket Merkle Distributors
This repo contains an SDK that helps interact with our Merkle Distributor contracts for claiming rewards.
const sdk = new DistributorSdk(
yourSigner, // signer from ethers or web3, etc.
137, // this is the chainId for Polygon
"usdc", // can be "usdc" or "uma"
);
Note: Contract addresses and supported chains can be found in
.src/networks
The information about the amounts, claim index and merkle proofs for each account is stored in ../snapshots/snapshots/
You may claim to the proxy address associated with your Polymarket account by using...
await sdk.claim(
claimIndex,
address,
amount,
proof
)
You may claim and transfer from your proxy address to the recipient address of your choice using...
await sdk.claimAndTransfer(
claimIndex,
amount,
proof,
proxyAddress,
recipientAddress,
)
You may also populate these transactions and sign them yourself by calling these methods. Note, these will also return a typeCode: "1"
property as well as to
, data
and value
properties.
const sdk = new DistributorSdk(
yourSigner, // signer from ethers or web3, etc.
137, // this is the chainId for Polygon
"usdc", // can be "usdc" or "uma"
);
const claimTx = sdk.populateClaimTx(
claimIndex,
address,
amount,
proof
);
const claimAndTransferTx = sdk.populateClaimAndTransferTx(
claimIndex,
amount,
proof,
proxyAddress,
recipientAddress,
);
Tests with more information about how to interact with this SDK can be found in ../merkle-distributor/test/DistributorSdk.spec.ts
FAQs
SDK to simplify common interactions with the Polymarket Merkle Distributors
The npm package @polymarket/distributor-sdk receives a total of 392 weekly downloads. As such, @polymarket/distributor-sdk popularity was classified as not popular.
We found that @polymarket/distributor-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.