@colony/colony-js-contract-loader
Advanced tools
Changelog
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.Changelog
v1.8.1
Bug fixes
ColonyClient.addDomain
as a MultisigSender
(@colony/colony-js-client
)ColonyClient.cancelTask
as a MultisigSender
(@colony/colony-js-client
)Maintenance
engines -> yarn
requirementChangelog
v1.8.0
Maintenance
ColonyClient
events:
ColonyAdminRoleRemoved
ColonyAdminRoleSet
ColonyFounderRoleSet
ColonyFundsClaimed
ColonyFundsMovedBetweenFundingPots
ColonyInitialised
ColonyRewardInverseSet
ColonyUpgraded
RewardPayoutClaimed
ColonyNetworkClient
events:
ColonyNetworkInitialised
ColonyVersionAdded
MetaColonyCreated
MiningCycleResolverSet
NetworkFeeInverseSet
ReputationMiningCycleComplete
ReputationMiningInitialised
ReputationRootHashSet
TokenLockingAddressSet
ColonyNetworkClient
/ColonyClient
:
approveExitRecovery
enterRecoveryMode
exitRecoveryMode
getRecoveryRolesCount
isInRecoveryMode
removeRecoveryRole
setRecoveryRole
setStorageSlotRecovery
hasUserRole
caller to ColonyClient
AuthorityClient
as it is no longer needed.OWNER
role to FOUNDER
.Bug fixes
Changelog
v1.6.2
Bug fixes
contractAddress
passed as a query to .load()
(@colony/colony-js-contract-loader-http
)@colony/colony-js-contract-loader-http
)New features
getReputation
methods to ColonyClient
and ColonyNetworkClient
(currently only availble for Rinkeby) (@colony/colony-js-client
)Changelog
v1.5.4
Released Thu, 05 Jul 2018 13:07:42 GMT
Features
Adapter.getTransactionReceipt
now waits for an in-progress transaction to be mined before attempting to get the receipt (@colony/colony-js-adapter-ethers
, @colony/colony-js-client
)Adapter.getTransactionReceipt
and Adapter.waitForTransaction
now accept a timeout argument (default: 5 minutes) (@colony/colony-js-adapter-ethers
)Bug fixes
0x0
) are now padded to full-length, which resolves an issue with EthersAdapter
(@colony/colony-js-contract-client
)isEmptyHexString
utility function now evaluates the input type (@colony/colony-js-utils
)Maintenance
ColonyClient.createTask
; the given domain ID for the task is now confirmed to exist before proceeding (@colony/colony-js-client
)@colony/colony-js-contract-client
)DomainAdded
event, which is emitted when calling ColonyClient.addDomain
(@colony/colony-js-client
)PotAdded
event, which is emitted when calling ColonyClient.addDomain
and ColonyClient.createTask
(@colony/colony-js-client
)TaskDeliverableSubmitted
and TaskWorkRatingRevealed
events, which are available to listen on via ColonyClient.events
(@colony/colony-js-client
)Changelog
v1.4.1
Bug fixes
networkId
to be passed from the contract loading query through to the loader transform function; reintroduced support for specifying the networkId
in truffleTransform
(@colony/colony-js-contract-loader
)Changelog
v1.4.0
New features
ContractEvent
events subscription to ContractClient
, allowing for simple events subscription (@colony/colony-js-contract-client
)ColonyClient
, using new event subscriptions (@colony/colony-js-contract-client
)@colony/colony-js-client
)@colony/colony-js-client
)TokenClient
, a means of interacting with a colony's token contract (@colony/colony-js-client
)AuthorityClient
, a means of interacting with a colony's authority contract (@colony/colony-js-client
)token
and authority
when initializing a ColonyClient
(@colony/colony-js-client
)Enhancements
@colony/colony-js-contract-client
)EthersContract
to allow for events subscription with optional transaction hashes (@colony/colony-js-adapter
, @colony/colony-js-adapter-ethers
)@colony/colony-js-contract-client
)Documentation
addGlobalSkill
, addDomain
, setTaskRoleUser
, setTaskDomain
and setTaskSkill
(@colony/colony-js-client
)Changelog
v1.3.0
New features
Added colony-js-contract-loader-fs
: load contracts from the local file-system in node.
Changelog
v1.2.1
Documentation
Enhancements
@colony/colony-js-contract-client
)release
command for the project, streamlined prepublish hooks, simplified and improved babel configBug fixes
@colony/colony-js-contract-client
)@colony/colony-js-contract-client
)