Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@colony/colony-js-contract-loader
Advanced tools
This package exports an interface which is designed to be used for creating an Ethereum smart contract loading mechanism; for example, a contract loader might take a contract name as an argument, then look up some definition of the contract, and return the address of the deployed contract and its ABI definition.
yarn add @colony/colony-js-contract-loader
/* @flow */
import type { IContractLoader } from '@colony/colony-js-contract-loader';
This package is part of the colonyJS monorepo.
Please read our contributing guidelines.
v1.12.0
This release implements significant changes and additions that enables support for the colonyNetwork glider-rc.1 release. Please do not hesitate to reach out to us on Discourse or Gitter if you are having any issues updating to this release.
Also, please note that colonyJS is currently using ethers
version 3.0.27
.
New Features
goerli
as a getNetworkClient
option (@colony/colony-js-client
)goerli
to network loader (@colony/colony-js-contract-loader-network
)Types
[number]
param type (@colony/colony-js-contract-client
)tokenAddress
param type to anyAddress
to better reflect its uses (@colony/colony-js-contract-client
)Maintenance
Updated constants (@colony/colony-js-client
)
COLONY_ROLE_ADMINISTRATION
COLONY_ROLE_ARBITRATION
COLONY_ROLE_ARCHITECTURE
COLONY_ROLE_ARCHITECTURE_SUBDOMAIN
COLONY_ROLE_FUNDING
COLONY_ROLE_RECOVERY
COLONY_ROLE_ROOT
COLONY_ROLES
ETHER_ADDRESS
FUNDING_POT_TYPE_DOMAIN
FUNDING_POT_TYPE_PAYMENT
FUNDING_POT_TYPE_TASK
FUNDING_POT_TYPE_UNASSIGNED
FUNDING_POT_TYPES
TASK_RATING_NONE
TASK_RATING_UNSATISFACTORY
TASK_RATING_SATISFACTORY
TASK_RATING_EXCELLENT
TASK_RATINGS
TASK_ROLE_EVALUATOR
TASK_ROLE_MANAGER
TASK_ROLE_WORKER
TASK_ROLES
FOUNDER_ROLE
FOUNDER_ROLE
has been deprecated in favor of the new colony roles. When using the setFounderRole
method provided by the OldRoles.sol
extension contract, the following colony roles will be applied:
COLONY_ROLE_ROOT
COLONY_ROLE_ARCHITECTURE
COLONY_ROLE_FUNDING
COLONY_ROLE_ADMINISTRATION
ADMIN_ROLE
ADMIN_ROLE
has been deprecated in favor of the new colony roles. When using the setAdminRole
method provided by the OldRoles.sol
extension contract, the following colony roles will be applied:
COLONY_ROLE_ARCHITECTURE
COLONY_ROLE_FUNDING
COLONY_ROLE_ADMINISTRATION
AUTHORITY_ROLES
AUTHORITY_ROLES
has been replaced by COLONY_ROLES
MANAGER_ROLE
MANAGER_ROLE
has been replaced with TASK_ROLE_MANAGER
EVALUATOR_ROLE
EVALUATOR_ROLE
has been replaced with TASK_ROLE_EVALUATOR
WORKER_ROLE
WORKER_ROLE
has been replaced with TASK_ROLE_WORKER
ACTIVE_TASK_STATUS
ACTIVE_TASK_STATUS
has been replaced with TASK_STATUS_ACTIVE
CANCELLED_TASK_STATUS
CANCELLED_TASK_STATUS
has been replaced with TASK_STATUS_CANCELLED
FINALIZED_TASK_STATUS
FINALIZED_TASK_STATUS
has been replaced with TASK_STATUS_FINALIZED
TASK_ROLES
TASK_ROLES
has been updated to use the following reformatted constants:
TASK_ROLE_MANAGER
TASK_ROLE_EVALUATOR
TASK_ROLE_WORKER
Updated caller methods in ColonyClient
(@colony/colony-js-client
)
getAuthorityAddress
getColonyNetworkAddress
getExtensionAddress
getFundingPotPayout
getOwnerAddress
getPayment
getPaymentCount
getTaskWorkRatingSecretsInfo
getTokenAddress
hasColonyRole
verifyReputationProof
getAuthority
getAuthorityAddress
has replaced getAuthority
.getTaskWorkRatings
getTaskWorkRatingSecretsInfo
has replaced getTaskWorkRatings
.getToken
getTokenAddress
has replaced getToken
.getTotalTaskPayout
getFundingPotPayout
has replaced getTotalTaskPayout
.hasUserRole
hasColonyRole
has replaced hasUserRole
. hasColonyRole
uses address
instead of user
as an input parameter and adds domainId
.getDomain
localSkillId
output parameter to skillId
.getFundingPot
associatedType
output parameter to type
.associatedTypeId
output parameter to typeId
.payoutsWeCannotMake
output parameter.getRewardPayoutInfo
RewardPayoutCycle
struct.getTask
payoutsWeCannotMake
output parameter.Updated sender methods in ColonyClient
(@colony/colony-js-client
)
addExtension
addNetworkColonyVersion
(MetaColony)addPayment
addTask
claimPayment
claimTaskPayout
claimRewardPayout
deprecateGlobalSkill
(MetaColony)finalizePayment
removeExtension
setAdministrationRole
setArchitectureRole
setFundingRole
setPaymentDomain
setPaymentPayout
setPaymentRecipient
setPaymentSkill
setRootRole
claimPayout
claimPayment
and claimTaskPayout
for more information.createTask
addTask
has replaced createTask
for consistency.removeAdminRole
(See setAdminRole
)addGlobalSkill
parentSkillId
as an input parameter. Global skills no longer exist within a skills tree and always use 0
for the parentSkillId
.bootstrapColony
users
input parameter to addresses
.makePayment
worker
input parameter to recipient
.removeRecoveryRole
user
input parameter to address
.setRecoveryRole
user
input parameter to address
.setAdminRole
setAdminRole
is now connected to the OldRoles
extension contract.user
input parameter to address
.setTo
input parameter.setFounderRole
setAdminRole
is now connected to the OldRoles
extension contract.user
input parameter to address
.setTaskEvaluatorRole
user
input parameter to address
.setTaskManagerRole
user
input parameter to address
.setTaskWorkerRole
user
input parameter to address
.startNextRewardPayout
key
input parameter.value
input parameter.branchMask
input parameter.siblings
input parameter.Updated events in ColonyClient
(@colony/colony-js-client
)
ColonyAdministrationRoleSet
ColonyArchitectureRoleSet
ColonyFundingRoleSet
ColonyRootRoleSet
ColonyVersionAdded
PaymentAdded
PayoutClaimed
ColonyAdminRoleRemoved
ColonyAdministrationRoleSet
has replaced ColonyAdminRoleRemoved
.ColonyAdministrationRoleSet
changes user
parameter to address
.ColonyAdministrationRoleSet
adds setTo
parameter.ColonyAdminRoleSet
ColonyAdministrationRoleSet
has replaced ColonyAdminRoleRemoved
.ColonyAdministrationRoleSet
changes user
parameter to address
.ColonyAdministrationRoleSet
adds setTo
parameter.ColonyFounderRoleSet
ColonyRootRoleSet
has replaced ColonyFounderRoleSet
.ColonyRootRoleSet
changes user
parameter to address
.ColonyRootRoleSet
adds setTo
parameter.TaskPayoutClaimed
PayoutClaimed
has replaced TaskPayoutClaimed
.ColonyBootstrapped
users
parameter to addresses
.ColonyInitialised
token
parameter.Updated caller methods in ColonyNetworkClient
(@colony/colony-js-client
)
calculateMinerWeight
getENSRegistrarAddress
getMiningResolverAddress
getReplacementReputationUpdateLogEntry
getReputationMiningCycle
getReputationMiningSkillId
getReputationRootHash
getReputationRootHashNodeCount
getTokenLockingAddress
getRootGlobalSkillId
getReputationMiningSkillId
has replaced getRootGlobalSkillId
.getTokenLocking
getTokenLockingAddress
has replaced getTokenLocking
.getTokenLockingAddress
changes lockingAddress
parameter to address
.getSkill
parents
output parameter.children
output parameter.Updated sender methods in ColonyNetworkClient
(@colony/colony-js-client
)
appendReputationUpdateLog
deprecateSkill
initialiseReputationMining
registerColonyLabel
setMiningResolver
setReplacementReputationUpdateLogEntry
setReputationRootHash
startNextMiningCycle
addSkill
globalSkill
input parameter.removeRecoveryRole
user
input parameter to address
.setRecoveryRole
user
input parameter to address
.Updated events in ColonyNetworkClient
(@colony/colony-js-client
)
ColonyVersionAdded
Updated caller methods in TokenClient
(@colony/colony-js-client
)
isLocked
Updated sender methods in TokenClient
(@colony/colony-js-client
)
createTokenAuthority
unlock
createToken
name
and decimals
input parameters.FAQs
Contract loader interfaces
The npm package @colony/colony-js-contract-loader receives a total of 11 weekly downloads. As such, @colony/colony-js-contract-loader popularity was classified as not popular.
We found that @colony/colony-js-contract-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.