@gearbox-protocol/airdrop
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -130,5 +130,11 @@ "use strict"; | ||
const cm = sdk_1.ICreditManagerV2__factory.connect(creditManager, provider); | ||
const cc = sdk_1.ICreditConfigurator__factory.connect(await cm.creditConfigurator(), provider); | ||
const creditFacadesEvents = await cc.queryFilter(cc.filters.CreditFacadeUpgraded(), 0, toBlock); | ||
const events = (await Promise.all(creditFacadesEvents.map(cfe => CreditRewards.query(cfe.args.newCreditFacade, provider, toBlock)))).flat(1); | ||
// get all historical creditConfigurators for this cm | ||
const ccAddrs = (await cm.queryFilter(cm.filters.NewConfigurator(), undefined, toBlock)).map(e => e.args.newConfigurator); | ||
// get all historical creditFacades for this cm | ||
const cfAddrs = (await Promise.all(ccAddrs.map(async (ccAddr) => { | ||
const cc = sdk_1.ICreditConfigurator__factory.connect(ccAddr, provider); | ||
const cfUpgradedEvents = await cc.queryFilter(cc.filters.CreditFacadeUpgraded(), undefined, toBlock); | ||
return cfUpgradedEvents.map(e => e.args.newCreditFacade); | ||
}))).flat(); | ||
const events = (await Promise.all(cfAddrs.map(addr => CreditRewards.query(addr, provider, toBlock)))).flat(1); | ||
return events; | ||
@@ -135,0 +141,0 @@ } |
{ | ||
"name": "@gearbox-protocol/airdrop", | ||
"description": "Airdrop center for Gearbox protocol", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"homepage": "https://gearbox.fi", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -22,1 +22,5 @@ # Gearbox Rewards | ||
3. Push new files into repository | ||
### Important information for contributors | ||
As a contributor to the Gearbox Protocol GitHub repository, your pull requests indicate acceptance of our Gearbox Contribution Agreement. This agreement outlines that you assign the Intellectual Property Rights of your contributions to the Gearbox Foundation. This helps safeguard the Gearbox protocol and ensure the accumulation of its intellectual property. Contributions become part of the repository and may be used for various purposes, including commercial. As recognition for your expertise and work, you receive the opportunity to participate in the protocol's development and the potential to see your work integrated within it. The full Gearbox Contribution Agreement is accessible within the [repository](/ContributionAgreement) for comprehensive understanding. [Let's innovate together!] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
53622
1127
26
0