- azimuth
Azimuth API
- check
Contract checks, assertions, and verifications
- claims
Claims API
- contracts
Contracts API
- delegatedSending
Delegated Sending
- ecliptic
Ecliptic API
- index
azimuth-js
- polls
Polls API
- txn
Transaction handling
- utils
Utilities
- getCommitment ⇒
Promise.<Object>
Return the details of a commitment.
- getRemainingStars ⇒
Promise.<Array.<Number>>
Return the list of stars that have been deposited into, but not yet withdrawn from a commitment.
- getBatches ⇒
Promise.<Array.<Number>>
Return the configured sizes of the batches for the commitment.
- verifyBalance ⇒
Promise.<Bool>
Return whether the amount of stars deposited into the commitment checks out.
- getStartTime ⇒
Promise.<Number>
Return the timestamp at which the release was started.
- getWithdrawn ⇒
Promise.<Array.<Number>>
Return the amount of stars a participant has already withdrawn from each of their batches at the current time
- getWithdrawLimit ⇒
Promise.<Number>
Return the amount of stars a participant is allowed to withdraw from one of their batches at the current time.
- getApprovedTransfer ⇒
Promise.<String>
Return the address this commitment can be transferred to.
- getForfeited ⇒
Promise.<Array.<Bool>>
Return whether or not each of the batches have been forfeited at the current time.
- approveCommitmentTransfer ⇒
Promise.<Object>
Approve the transfer of a commitment to another address.
- transferCommitment ⇒
Object
Make an approved transfer of the specified commitment to the caller's address.
- withdraw ⇒
Object
Withdraw one star from a batch to the caller's address.
- withdrawTo ⇒
Object
Withdraw one star from a batch to the specified address.
- forfeit ⇒
Object
Forfeit stars contained in a batch with missed deadline, and all after it.
- analyzeCondition ⇒
Object
Analyze a condition for satisfaction.
- getBatch ⇒
Promise.<Object>
Return the details of a batch.
- getRemainingStars ⇒
Promise.<Array.<Number>>
Return the list of stars that have been deposited into, but not yet withdrawn from a batch.
- verifyBalance ⇒
Promise.<Bool>
Return whether the amount of stars deposited into the batch checks out.
- getStartTime ⇒
Promise.<Number>
Return the timestamp at which the release was started.
- getWithdrawLimit ⇒
Promise.<Number>
Return the amount of stars a participant is allowed to withdraw from their batch at the current time.
- getApprovedTransfer ⇒
Promise.<String>
Return the address this batch can be transferred to.
- approveBatchTransfer ⇒
Object
Approve the transfer of a batch to another address.
- transferBatch ⇒
Object
Make an approved transfer of the specified batch to the caller's address.
- withdraw ⇒
Object
Withdraw one star to the caller's address.
- withdrawTo ⇒
Object
Withdraw one star to the specified address.
- getConditionsState(contracts) ⇒
Promise.<Object>
Return conditions configuration and state data.
Azimuth API
- azimuth
- ~mainnet
- ~getSponsoring ⇒
Promise.<Array.<String>>
- ~getSponsoringCount ⇒
Promise.<Number>
- ~getEscapeRequests ⇒
Promise.<Array.<Number>>
- ~getEscapeRequestsCount ⇒
Promise.<Number>
- ~owner ⇒
Promise.<String>
- ~getOwnedPoints ⇒
Promise.<Array.<Number>>
- ~getOwnedPointCount ⇒
Promise.<Number>
- ~getOwnedPointAtIndex ⇒
Promise.<Number>
- ~canManage ⇒
Promise.<Bool>
- ~getManagerForCount ⇒
Promise.<Number>
- ~getManagerFor ⇒
Promise.<Array.<Number>>
- ~isVotingProxy ⇒
Promise.<Bool>
- ~canVoteAs ⇒
Promise.<Bool>
- ~getVotingForCount ⇒
Promise.<Number>
- ~getVotingFor ⇒
Promise.<Array.<Number>>
- ~getSpawningForCount ⇒
Promise.<Number>
- ~getSpawningFor ⇒
Promise.<Array.<Number>>
- ~getTransferringForCount ⇒
Promise.<Number>
- ~getTransferringFor ⇒
Promise.<Array.<Number>>
- ~isOperator ⇒
Promise.<Bool>
- ~isOwner(contracts, point, address) ⇒
Promise.<Bool>
- ~getOwner(contracts, point) ⇒
Promise.<Address>
- ~isActive(contracts, point) ⇒
Promise.<Bool>
- ~getKeys(contracts, point) ⇒
Promise.<Object>
- ~getKeyRevisionNumber(contracts, point) ⇒
Promise.<Number>
- ~hasBeenLinked(contracts, point) ⇒
Promise.<Bool>
- ~isLive(contracts, point) ⇒
Promise.<Bool>
- ~getContinuityNumber(contracts, point) ⇒
Promise.<Number>
- ~getSpawnCount(contracts, point) ⇒
Promise.<Number>
- ~getSpawned(contracts, point) ⇒
Promise.<Array.<Number>>
- ~getSponsor(contracts, point) ⇒
Promise.<Number>
- ~hasSponsor(contracts, point) ⇒
Promise.<Bool>
- ~isSponsor(contracts, point, sponsor) ⇒
Promise.<Bool>
- ~isEscaping(contracts, point) ⇒
Promise.<Bool>
- ~getEscapeRequest(contracts, point) ⇒
Promise.<Number>
- ~isRequestingEscapeTo(contracts, point, sponsor) ⇒
Promise.<Bool>
- ~isSpawnProxy(contracts, point, address) ⇒
Promise.<Bool>
- ~getSpawnProxy(contracts, point) ⇒
Promise.<String>
- ~isTransferProxy(contracts, point, address) ⇒
Promise.<Bool>
- ~getTransferProxy(contracts, point) ⇒
Promise.<String>
- ~getPrefix(point) ⇒
Number
- ~getPointSize(point) ⇒
Number
- ~getPoint(contracts, point, what) ⇒
Promise.<Object>
- ~getUnspawnedChildren(contracts, point) ⇒
Promise.<Array.<Number>>
- ~getActivationBlock(contracts, point, minBlock, maxBlock) ⇒
Promise.<Number>
- ~isManagementProxy(contracts, point, address) ⇒
Promise.<Bool>
- ~getManagementProxy(contracts, point) ⇒
Promise.<String>
The Azimuth contract's address on the Ethereum mainnet.
Unlike that of the Ecliptic, Polls, etc. contracts, the Azimuth contract's address never changes. It is also registered as 'azimuth.eth' on ENS.
Kind: inner constant of azimuth
Get an array of all points the target point is sponsoring.
Kind: inner constant of azimuth
Returns: Promise.<Array.<String>>
- The points being sponsored.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get the number of points the target point is sponsoring.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The amount of points being sponsored.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get a list of points that are requesting escape to a sponsor.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- An array of points requesting escape
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get the number of points that are requesting escape to a sponsor.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The number of points requesting escape
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get the azimuth contract owner.
Kind: inner constant of azimuth
Returns: Promise.<String>
- The contract owner's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
Get the points that an address owns.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- An array of owned azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get a count of points owned by an address.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- Owned point count for the address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get the point at the given index of the array containing an owner's azimuth.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The point at the provided index.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
index | Number |
The index of the array. |
Check if an address can manage a point.
Kind: inner constant of azimuth
Returns: Promise.<Bool>
- True if the address can manage the point, false
otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
The manager's address. |
Get a count of the points an address is managing.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The count of points being managed.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get the points an account is managing.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- The points being managed.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Check if an address is a voting proxy for an owner.
Kind: inner constant of azimuth
Returns: Promise.<Bool>
- True is voting proxy, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The owner's address. |
address | String |
The voting proxy's address. |
Check if an address can vote for a point.
Kind: inner constant of azimuth
Returns: Promise.<Bool>
- True is the address can vote for the point, false
otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
The target address. |
Get a count of the points an address can vote for.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The count of points that can be voted for.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get the points an account is voting for.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- The points being voted for.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get a count of the points an address is a spawn proxy for.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The count of azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get the points an account is a spawn proxy for.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- The azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get a count of the points an address is a transfer proxy for.
Kind: inner constant of azimuth
Returns: Promise.<Number>
- The count of azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Get the points an account is a transfer proxy for.
Kind: inner constant of azimuth
Returns: Promise.<Array.<Number>>
- The azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The target address. |
Check if an address is an operator for another.
Kind: inner constant of azimuth
Returns: Promise.<Bool>
- True is operator, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The owner's address. |
address | String |
The operator's address. |
Check if an address is the owner of a point.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if owner of the point, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
address | Number |
Owner's address. |
Get the owner of a point.
Kind: inner method of azimuth
Returns: Promise.<Address>
- The point's owner.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point is active.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if the point is active, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Get the key configuration for a point.
Kind: inner method of azimuth
Returns: Promise.<Object>
- The point's key configuration.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Get the key revision number of a point.
Kind: inner method of azimuth
Returns: Promise.<Number>
- The point's key revision number.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point has been booted.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if it has been booted, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point is live.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if the point is live, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Get a point's continuity number.
Kind: inner method of azimuth
Returns: Promise.<Number>
- The point's continuity number.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Get a point's spawn count.
Kind: inner method of azimuth
Returns: Promise.<Number>
- The point's spawn count.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get an array of all child points the target point has spawned.
Kind: inner method of azimuth
Returns: Promise.<Array.<Number>>
- The spawned points.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get a point's sponsor.
Kind: inner method of azimuth
Returns: Promise.<Number>
- The point's sponsor.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point has a sponsor.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if the point has a sponsor, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point is the sponsor of another.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if a sponsor, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
sponsor | Number |
The sponsor's point number. |
Check if a point is requesting escape.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if requesting escape, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Get the sponsor that another point is requesting escape to.
Kind: inner method of azimuth
Returns: Promise.<Number>
- The sponsor point number.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if a point is requesting escape to another point.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if escape to sponsor requested, false
otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
sponsor | Number |
Sponsor's point number. |
Check if an address is a spawn proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if address is spawn proxy, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
address | String |
Target address. |
Get the spawn proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<String>
- The spawn proxy's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Check if an address is a transfer proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if the address is a transfer proxy, false
otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
address | String |
Target address. |
Get the transfer proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<String>
- The transfer proxy's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Calculate the prefix of a point.
Kind: inner method of azimuth
Returns: Number
- The point's prefix.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Calculate the size of a point.
Kind: inner method of azimuth
Returns: Number
- The point's size.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Get a point object, given its point id.
Kind: inner method of azimuth
Returns: Promise.<Object>
- A point object with the requested data.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
what | string |
'state', 'rights', defaults to 'both' |
Get a list of unspawned/spawnable points
Kind: inner method of azimuth
Returns: Promise.<Array.<Number>>
- - Unspawned children of point
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Get the block at which the point was activated. Returns zero if it hasn't been activated yet.
Kind: inner method of azimuth
Returns: Promise.<Number>
- - Block of activation.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
minBlock | Number |
(optional) Block to start search at. (Default 0.) |
maxBlock | Number |
(optional) Block to end search at. (Default latest.) |
Check if an address is a management proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<Bool>
- True if address is management proxy, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
address | String |
Target address. |
Get the management proxy for a point.
Kind: inner method of azimuth
Returns: Promise.<String>
- The management proxy's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number | Object |
Point number or point object. |
Contract checks, assertions, and verifications
- check
- ~isPoint(point) ⇒
Bool
- ~isGalaxy(point) ⇒
Bool
- ~isStar(point) ⇒
Bool
- ~isPlanet(point) ⇒
Bool
- ~isPrefix(point) ⇒
Bool
- ~isChild(point) ⇒
Bool
- ~pollIsActive(poll) ⇒
Bool
- ~canStartPoll(poll) ⇒
Bool
- ~hasOwner(contracts, pointId) ⇒
Promise.<Bool>
- ~isEclipticOwner(contracts, address) ⇒
Promise.<Bool>
- ~canCreateGalaxy(contracts, pointId, address) ⇒
Promise.<Object>
- ~canSpawn(contracts, pointId, address) ⇒
Promise.<Object>
- ~canSetSpawnProxy(contracts, pointId, address) ⇒
Promise.<Object>
- ~canTransferPoint(contracts, pointId, sender, target) ⇒
Promise.<Object>
- ~canSetTransferProxy(contracts, pointId, address) ⇒
Promise.<Object>
- ~canEscape(contracts, point, sponsor, address) ⇒
Promise.<Object>
- ~checkActivePointOwner(contracts, point, address) ⇒
Promise.<Object>
- ~checkActivePointManager(contracts, point, address) ⇒
Promise.<Object>
- ~canConfigureKeys(contracts, point, address) ⇒
Promise.<Object>
- ~canAdopt(contracts, escapee, address) ⇒
Promise.<Object>
- ~canReject(contracts, escapee, address) ⇒
Promise.<Object>
- ~canDetach(contracts, point, address) ⇒
Promise.<Object>
- ~checkActivePointVoter(contracts, point, voter) ⇒
Promise.<Object>
- ~canStartUpgradePoll(web3, contracts, galaxy, proposal, address) ⇒
Promise.<Object>
- ~canStartDocumentPoll(contracts, galaxy, proposal, address) ⇒
Promise.<Object>
- ~canCastUpgradeVote(contracts, galaxy, proposal, address) ⇒
Promise.<Object>
- ~canCastDocumentVote(contracts, galaxy, proposal, address) ⇒
Promise.<Object>
- ~canSetDnsDomains(contracts, address) ⇒
Promise.<Bool>
- ~lsrCanWithdraw(contracts, address) ⇒
Promise.<Object>
- ~lsrCanTransferBatch(contracts, from, to) ⇒
Promise.<Object>
- ~csrCanWithdraw(contracts, address) ⇒
Promise.<Object>
- ~csrCanTransferBatch(contracts, from, to) ⇒
Promise.<Object>
- ~csrCanForfeit(contracts, batch, address) ⇒
Promise.<Object>
- ~canSetPoolSize(point, address) ⇒
Promise.<Object>
- ~canSendInvitePoint(as, point, to, address) ⇒
Promise.<Object>
- ~isPoint(point) ⇒
Check if something is a point.
Kind: inner method of check
Returns: Bool
- True if a point, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if something is a galaxy.
Kind: inner method of check
Returns: Bool
- True if a galaxy, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if something is a star.
Kind: inner method of check
Returns: Bool
- True if a star, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if something is a planet.
Kind: inner method of check
Returns: Bool
- True if a planet, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if a point is a prefix of another point.
Kind: inner method of check
Returns: Bool
- True if a prefix, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if a point is a child of another point.
Kind: inner method of check
Returns: Bool
- True if a child, false otherwise.
Param | Type | Description |
---|---|---|
point | Number |
Point number. |
Check if a poll is active.
Kind: inner method of check
Returns: Bool
- True if active, false otherwise.
Param | Type | Description |
---|---|---|
poll | Object |
A poll object. |
Check if a poll can be started.
Kind: inner method of check
Returns: Bool
- True if so, false otherwise.
Param | Type | Description |
---|---|---|
poll | Object |
A poll object. |
Check if a point has an owner.
Kind: inner method of check
Returns: Promise.<Bool>
- True if so, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
Check if an address is the ecliptic owner.
Kind: inner method of check
Returns: Promise.<Bool>
- True if so, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
Owner's address. |
Check if an address can create the specified galaxy.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
address | String |
Target address. |
Check if an address can spawn the given point.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
address | String |
Target address. |
Check if an address can set a spawn proxy for the given point.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
address | String |
Target address. |
Check if the sender address can send the provided point to the target address.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
sender | String |
Sender's address. |
target | String |
Target address. |
Check if the address can set a transfer proxy for the point.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
address | String |
Target address. |
Check if the target address can make a point escape to the given sponsor.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
sponsor | Number |
Point number. |
address | String |
Target address. |
Check if a point is active and the target address is its owner.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
Target address. |
Check if a point is active and the target address can manage it.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
Target address. |
Check if an address can configure public keys for a point.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
Target address. |
Check if the target address can adopt the escapee as its new sponsor.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
escapee | Number |
Escapee's point number. |
address | String |
Target address. |
Check if the target address can reject the escapee's request to the given sponsor.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
escapee | Number |
Escapee's point number. |
address | String |
Target address. |
Check if the target address can detach a point from its sponsor.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
Target address. |
Check if a point is active and an address can vote for it.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
voter | String |
Target address. |
Check if a target address and point can initiate a upgrade poll at the given address.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
web3 | Object |
A web3 object. |
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal address. |
address | String |
Target address. |
Check if a target address and point can initiate the given proposal.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal address. |
address | String |
Target address. |
Check if a target address and point can vote on the proposal at the target address.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal address. |
address | String |
Target address. |
Check if a target address and point can vote on the proposal at the given address.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal address. |
address | String |
Target address. |
Check if the target address can set the DNS domains for the ecliptic.
Kind: inner method of check
Returns: Promise.<Bool>
- True if so, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
Target address. |
Check if the address can withdraw a star from their batch at this moment.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Check if the address can withdraw a star from their batch at this moment.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
from | String |
The participant/registered address for the batch. |
to | String |
The intended new address of the participant. |
Check if the address can withdraw a star from their commitment at this moment.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Check if the address can withdraw a star from their commitment at this moment.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
from | String |
The participant/registered address for the commitment. |
to | String |
The intended new address of the participant. |
Check if the address can forfeit their commitment starting at the batch.
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
batch | Number |
The batch they want to forfeit from. |
address | String |
The participant/registered address for the commitment. |
Check if the address can give invites to point
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair
Param | Type | Description |
---|---|---|
point | Number |
Point number to give invites to |
address | String |
The caller address |
Check if as can send point as an invite to to
Kind: inner method of check
Returns: Promise.<Object>
- A result and reason pair
Param | Type | Description |
---|---|---|
as | Number |
The point that would send the invite |
point | Number |
The point that would be sent as invite |
to | String |
The Ethereum address recipient of the invite |
address | String |
The caller address |
Claims API
Contracts API
- contracts
- ~initContracts(web3, addresses) ⇒
Object
- ~initContractsPartial(web3, azimuthAddress) ⇒
Object
- ~initContracts(web3, addresses) ⇒
Create a collection of Urbit contracts, given a web3 instance and their provided addresses.
Kind: inner method of contracts
Returns: Object
- The initialised contracts.
Param | Type | Description |
---|---|---|
web3 | Object |
A web3 instance. |
addresses | Object |
An addresses object. Must provide addresses for ecliptic, azimuth, and polls contracts, at those respective key names. |
Initialise as many Urbit contracts as possible, given a azimuth contract address.
Kind: inner method of contracts
Returns: Object
- The initialised contracts.
Param | Type | Description |
---|---|---|
web3 | Object |
A web3 instance. |
azimuthAddress | String |
An address to a azimuth contract. |
Delegated Sending
- delegatedSending
- .pools ⇒
Promise.<Number>
- .getInvited ⇒
Promise.<Array.<Number>>
- .invitedBy ⇒
Promise.<Number>
- .canSend ⇒
Promise.<Bool>
- .getPool ⇒
Promise.<Number>
- .getPoolStars ⇒
Promise.<Array.<Number>>
- .canReceive ⇒
Promise.<Bool>
- .setPoolSize ⇒
Object
- .sendPoint ⇒
Object
- .getTotalUsableInvites(point) ⇒
Promise.<Number>
- .getPlanetsToSend(as, amount) ⇒
Promise.<Array.<Number>>
- .pools ⇒
Return the amount of invites left in the pool
Kind: static property of delegatedSending
Returns: Promise.<Number>
- Number of invites remaining
Param | Type | Description |
---|---|---|
pool | Number |
Pool number |
prefix | Number |
Invites from this prefix |
Return the points invited by point
Kind: static property of delegatedSending
Returns: Promise.<Array.<Number>>
- Points invited by point
Param | Type | Description |
---|---|---|
point | Number |
Point number |
Return the point that point was invited by
Kind: static property of delegatedSending
Returns: Promise.<Number>
- The inviter point (0 if not invited)
Param | Type | Description |
---|---|---|
point | Number |
Point number |
Returns true if as can send point, false otherwise
Kind: static property of delegatedSending
Returns: Promise.<Bool>
- Whether as can send point
Param | Type | Description |
---|---|---|
as | Number |
The inviter |
point | Number |
The point to send |
Get the invite pool point belongs to
Kind: static property of delegatedSending
Returns: Promise.<Number>
- Pool number
Param | Type | Description |
---|---|---|
point | Number |
Point number |
Get the stars that have put invites into the pool
Kind: static property of delegatedSending
Returns: Promise.<Array.<Number>>
- Stars that touched the pool
Param | Type | Description |
---|---|---|
pool | Number |
Pool number |
Returns true if receipients is eligible to receive a point, false otherwise
Kind: static property of delegatedSending
Returns: Promise.<Bool>
- Whether recipient can receive a point
Param | Type | Description |
---|---|---|
recipient | String |
Ethereum address |
Give for (and their invite tree) access to size invites
Kind: static property of delegatedSending
Returns: Object
- An unsigned transaction object
Param | Type | Description |
---|---|---|
as | Number |
prefix to give invites as |
for | Number |
point to give invites to |
size | Number |
amount of invites to give |
As as, send the point to to
Kind: static property of delegatedSending
Returns: Object
- An unsigned transaction object
Param | Type | Description |
---|---|---|
as | Number |
point to send the invite as |
point | Number |
the point to send as an invite |
to | String |
target Ethereum address |
Returns the total amount of usable invites available to point. Invites are usable if the star they're associated with has its spawn proxy set to the Delegated Sending contract, and is still under its spawn limit.
Kind: static method of delegatedSending
Returns: Promise.<Number>
- Total amount of invites
Param | Type | Description |
---|---|---|
point | Number |
The point whose invites to count |
Generate a list of planets for as to send as invites NOTE that the returned list isn't guaranteed to contain exactly amount items, it may return fewer in cases where not enough invites are available, usable, or spawn limits are being hit
Kind: static method of delegatedSending
Returns: Promise.<Array.<Number>>
- Pseudo-random list of planets that as can send
Param | Type | Description |
---|---|---|
as | Number |
point to send the planets with |
amount | Number |
amount of planets to generate |
Ecliptic API
- ecliptic
- .owner ⇒
Promise.<String>
- .balanceOf ⇒
Promise.<Number>
- .ownerOf ⇒
Promise.<String>
- .exists ⇒
Promise.<Bool>
- .getApproved ⇒
Promise.<String>
- .isApprovedForAll ⇒
Promise.<Bool>
- .getSpawnLimit ⇒
Promise.<Number>
- .canEscapeTo ⇒
Promise.<Bool>
- .safeTransferFrom ⇒
Object
- .transferFrom ⇒
Object
- .approve ⇒
Object
- .setApprovalForAll ⇒
Object
- .setManagementProxy ⇒
Object
- .configureKeys ⇒
Object
- .spawn ⇒
Object
- .setSpawnProxy ⇒
Object
- .transferPoint ⇒
Object
- .setTransferProxy ⇒
Object
- .escape ⇒
Object
- .cancelEscape ⇒
Object
- .adopt ⇒
Object
- .reject ⇒
Object
- .detach ⇒
Object
- .setVotingProxy ⇒
Object
- .startUpgradePoll ⇒
Object
- .startDocumentPoll ⇒
Object
- .castUpgradeVote ⇒
Object
- .castDocumentVote ⇒
Object
- .updateUpgradePoll ⇒
Object
- .updateDocumentPoll ⇒
Object
- .createGalaxy ⇒
Object
- .setDnsDomains ⇒
Object
- .getSpawnsRemaining(contracts, point) ⇒
Promise.<Number>
- .owner ⇒
Get ecliptic contract owner.
Kind: static property of ecliptic
Returns: Promise.<String>
- The owner address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
Get the amount of points owned by an address.
Kind: static property of ecliptic
Returns: Promise.<Number>
- Number of azimuth.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
Owner's address. |
Get the current owner of a point.
Kind: static property of ecliptic
Returns: Promise.<String>
- Owner's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
Check if a point is active.
Kind: static property of ecliptic
Returns: Promise.<Bool>
- true if point is active, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
Get the transfer proxy for a point.
Kind: static property of ecliptic
Returns: Promise.<String>
- The transfer proxy's address.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
pointId | Number |
Point number. |
Check if an address is an operator for an owner.
Kind: static property of ecliptic
Returns: Promise.<Bool>
- true if 'operator' is an operator for 'owner'.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
owner | String |
The owner's address. |
operator | String |
The operator's address. |
Return the total number of children a point is allowed to spawn at some time.
Kind: static property of ecliptic
Returns: Promise.<Number>
- The spawn limit.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
time | Number |
Time (uint256). |
Check if a point can escape to a sponsor.
Kind: static property of ecliptic
Returns: Promise.<Bool>
- True if point can escape, false otherwise.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
sponsor | Number |
Sponsor's point number. |
Safely transfer a point between addresses (call recipient if it's a contract).
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
from | String |
Sender's address. |
to | String |
Receiver's address. |
pointId | Number |
Point number. |
Transfer a point between addresses (without notifying recipient contract).
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
from | String |
Sender's address. |
to | String |
Receiver's address. |
pointId | Number |
Point number. |
Allow an address to transfer ownership of a point.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
approved | String |
The approved address. |
pointId | Number |
Point number. |
Allow or disallow an operator to transfer ownership of all points owned by the message sender.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
operator | Address |
The operator's address. |
approved | Bool |
Whether the operator is approved or not. |
Configure the management address for a point owned by the message sender.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
The point to manage. |
manager | String |
The management address. |
Configure a point with Urbit public keys, incrementing the point's continuity number if needed.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
encryptionKey | String |
The encryption key. |
authenticationKey | String |
The auth key. |
cryptoSuiteVersion | Number |
The crypto suite version. |
discontinuous | Bool |
True to increment the continuity number. |
Spawn a point, giving ownership of it to the target address.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
A point number. |
target | String |
The target address. |
Give an address the right to spawn points with the given prefix.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
prefix | Number |
A (prefix) point number. |
address | String |
The address to designate as a spawn proxy. |
Transfer a point to a target address, optionally clearing all permissions data and keys.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
address | String |
The target address. |
reset | Bool |
True to reset point's keys. |
Give an address the right to transfer the given point.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
prefix | Number |
Point number. |
address | String |
The address to designate as a transfer proxy. |
Request escape from 'point' to 'sponsor'.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Escapee's point number. |
sponsor | Number |
Sponsor's point number. |
Cancel the currently set escape for a point.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Escapee's point number. |
As the sponsor, accept the escapee.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
escapee | Number |
Escapee's point number. |
As the sponsor, reject the escapee's escape request.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
escapee | Number |
Escapee's point number. |
As the sponsor, stop sponsoring the point.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
Configure the voting proxy address for the galaxy.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
Point number. |
proxy | String |
The proxy's address. |
As a galaxy, start a poll for the ecliptic upgrade proposal.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | Object |
The ecliptic upgrade proposal. |
As a galaxy, start a poll for a proposal.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal document. |
As a galaxy, cast a vote on the ecliptic upgrade proposal.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | Object |
The upgrade proposal. |
vote | Bool |
True if yes, false otherwise. |
As a galaxy, cast a vote on the proposal.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
proposal | String |
The proposal document. |
vote | Bool |
True if yes, false otherwise. |
Check whether the proposal has achieved majority, upgrading to it if so.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
proposal | Object |
The upgrade proposal. |
Check whether the proposal has achieved majority.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
proposal | Object |
The proposal document. |
Grant the target address ownership of the galaxy and register it for voting.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
galaxy | Number |
A (galaxy) point number. |
target | String |
The target address. |
Set primary, secondary, adn tertiary DNS domains for the ecliptic.
Kind: static property of ecliptic
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
primary | String |
Primary DNS address. |
secondary | String |
Secondary DNS address. |
tertiary | String |
Tertiary DNS address. |
Get the amount of children point can still spawn before hitting the limit.
Kind: static method of ecliptic
Returns: Promise.<Number>
- The amount of children still spawnable from point.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
point | Number |
Point number. |
azimuth-js
Polls API
Transaction handling
- txn
- ~signTransaction(web3, tx, privateKey) ⇒
Promise.<Object>
- ~sendSignedTransaction(web3, signedTx) ⇒
Promise
- ~signTransaction(web3, tx, privateKey) ⇒
Sign an unsigned transaction with the provided private key.
If tx.gas
is undefined, it will be estimated. If tx.gasPrice
is
undefined, a default is used. If tx.nonce
is undefined, Web3 will
retrieve the next nonce. And if tx.chainId
is undefined, Web3 fills it
in.
Note that Web3 cannot fill in most of those blanks when not connected to a functioning node (i.e. "offline mode"), so those will have to be filled in by the UI or user prior to signing.
Kind: inner method of txn
Returns: Promise.<Object>
- A signed transaction object with messageHash
,
v
, r
, s
, and rawTransaction
fields.
Param | Type | Description |
---|---|---|
web3 | Web3 |
a web3 object. |
tx | Object |
an unsigned transaction. |
privateKey | Buffer |
a private key. |
Forward a signed transaction to the blockchain.
Kind: inner method of txn
Param | Type | Description |
---|---|---|
web3 | Web3 |
a web3 object. |
signedTx | Object |
a signed transaction. |
Utilities
Check if two addresses are equal.
Kind: inner method of utils
Returns: Bool
- True if the addresses are equal, false otherwise.
Param | Type | Description |
---|---|---|
a1 | String |
an Ethereum address. |
a2 | String |
an Ethereum address. |
Return the details of a commitment.
Kind: global variable
Returns: Promise.<Object>
- A commitment object, with windup, rate, rateUnit,
amount, withdrawn.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return the list of stars that have been deposited into, but not yet withdrawn from a commitment.
Kind: global variable
Returns: Promise.<Array.<Number>>
- The stars left in the commitment.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return the configured sizes of the batches for the commitment.
Kind: global variable
Returns: Promise.<Array.<Number>>
- The batch sizes for the commitment.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return whether the amount of stars deposited into the commitment checks out.
Kind: global variable
Returns: Promise.<Bool>
- true if sufficient stars have been deposited.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return the timestamp at which the release was started.
Kind: global variable
Returns: Promise.<Number>
- A timestamp.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
Return the amount of stars a participant has already withdrawn from each of their batches at the current time
Kind: global variable
Returns: Promise.<Array.<Number>>
- the number of stars already withdrawn for
each batch.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return the amount of stars a participant is allowed to withdraw from one of their batches at the current time.
Kind: global variable
Returns: Promise.<Number>
- the withdraw limit.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
batch | Number |
The batch number to look up |
Return the address this commitment can be transferred to.
Kind: global variable
Returns: Promise.<String>
- The approved transfer address, 0x0 for none.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Return whether or not each of the batches have been forfeited at the current time.
Kind: global variable
Returns: Promise.<Array.<Bool>>
- the number of stars already withdrawn for
each batch.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the commitment. |
Approve the transfer of a commitment to another address.
Kind: global variable
Returns: Promise.<Object>
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The address to transfer to. |
Make an approved transfer of the specified commitment to the caller's address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The address to transfer from. |
Withdraw one star from a batch to the caller's address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
batch | Number |
The batch number to withdraw from |
Withdraw one star from a batch to the specified address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
batch | Number |
The batch number |
address | String |
The address to withdraw to. |
Forfeit stars contained in a batch with missed deadline, and all after it.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
batch | Number |
The condition/batch to base forfeiture off. |
Analyze a condition for satisfaction.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
condition | String |
The condition (index) to analyze. |
Return the details of a batch.
Kind: global variable
Returns: Promise.<Object>
- A batch object, with windup, rate, rateUnit,
amount, withdrawn.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Return the list of stars that have been deposited into, but not yet withdrawn from a batch.
Kind: global variable
Returns: Promise.<Array.<Number>>
- The stars left in the batch.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Return whether the amount of stars deposited into the batch checks out.
Kind: global variable
Returns: Promise.<Bool>
- true if sufficient stars have been deposited.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Return the timestamp at which the release was started.
Kind: global variable
Returns: Promise.<Number>
- A timestamp.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
Return the amount of stars a participant is allowed to withdraw from their batch at the current time.
Kind: global variable
Returns: Promise.<Number>
- the withdraw limit.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Return the address this batch can be transferred to.
Kind: global variable
Returns: Promise.<String>
- The approved transfer address, 0x0 for none.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The participant/registered address for the batch. |
Approve the transfer of a batch to another address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The address to transfer to. |
Make an approved transfer of the specified batch to the caller's address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The address to transfer from. |
Withdraw one star to the caller's address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
Withdraw one star to the specified address.
Kind: global variable
Returns: Object
- An unsigned transaction object.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |
address | String |
The address to withdraw to. |
Return conditions configuration and state data.
Kind: global function
Returns: Promise.<Object>
- An object containing conditions state, with
{ conditions, livelines, deadlines, timestamps } arrays.
Param | Type | Description |
---|---|---|
contracts | Object |
An Urbit contracts object. |