Get metadata of specific Respect award NTT.
id of a token.
Get metadata of Respect award NTTs, sorted from latest to oldest.
Optional
spec: { specification for a query
before
- newest mint date for a token. If specified, only tokens which were created up to this date will be returned;limit
- maximum number of tokens to return. If not specified, it's up to ornode implementation.recipient
- recipient of the awards. If specified only awards which belong to this account are returned.burned
- whether to return burned tokens or not. Default: false.Optional
before?: DateOptional
burned?: booleanOptional
limit?: numberOptional
recipient?: stringlist of token metadata objects sorted by mint datetime from latest to oldest.
burned
in the spec to true to change this behaviour.await c.getAwards() // Return latest awards unfiltered
await c.getAwards({ before: new Date("2024-08-30T11:42:59.000Z"), limit: 50 }) // Return up to 50 awards that happened before the specified date
await c.getAwards({ recipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" }) // Get latest awards belonging to specified accounts
Get period number (incremented using ticks see ORClient#proposeTick).
Returns proposal by its id.
proposal id
Returns a list of proposals ordered from latest to oldest
Optional
spec: { specification for query:
before
- newest possible creation date for proposal. If specified, only proposals which were created up to this date will be returned;limit
- maximum number of proposals to return. If not specified, it's up to ornode implementation.execStatFilter
- list of ExecutionStatus values. Proposals which have execution status other than any of values in this list, will be filtered out. If undefined, then no filtering based on execution status is done.voteStatFilter
- list of VoteStatus values. Proposals which have vote status other than any of values specified in the list will be filtered out (not returned). If undefined - no filtering based on vote status is done.stageFilter
- list of Stage values. Proposals which are in stage other than any of stages specified in this list will be filtered out. If undefined - no filtering based on proposal stage is done.Optional
before?: DateOptional
execOptional
limit?: numberOptional
stageOptional
voteList of proposals
Get metadata of specific token. The token can be fungible Respect token or Respect award token (NTT).
id of a token.
Get information on votes submitted on proposals. Votes returned are sorted from newest to oldest.
Optional
spec: { specification for a query
before
- newest possible date of a vote. If specified, only votes made up to this date will be returned.limit
- maximum number of objects to return. If not specified it is up to implementation of ornode.propFilter
- list of proposal ids. If specified, then only votes on proposals in this list are returned.voterFilter
- list of ethereum addresses. If specified, only votes from this list of accounts are returned.minWeight
- minimum vote weight. If specified, only votes which have equal or greater weight are returned.voteType
- Yes / No. If specified only votes of specified type are returned.Optional
before?: DateOptional
limit?: numberOptional
minOptional
propOptional
voterOptional
voteCreate a proposal to award respect game participants of a single breakout room, based on results of that breakout room.
breakout room results, plus optional metadata.
Optional
meetingOptional
metadata?: { Optional
propOptional
propvote to submit with the result. Default: { vote: "Yes" }
.
Optional
memo?: stringOptional
vote?: "Yes" | "No" | "None"resulting proposal and its status.
The respect amounts to award are calculated automatically based on rankings:
The actual onchain proposal is just for minting Respect according to distribution above.
If vote
parameter is not specified "Yes" vote is submitted.
If you want to make this proposal but don't want to vote for it, specify { vote: "None" }
.
await c.proposeBreakoutResult(
{
meetingNum: 1,
groupNum: 1,
rankings: [
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",
"0x90F79bf6EB2c4f870365E785982E1f101E93b906"
]
},
{
memo: "Some memo",
vote: "Yes"
}
)
Create a proposal to burn a single Respect award.
specification for the award to burn, plus optional metadata.
Optional
metadata?: { Optional
propOptional
propvote to submit with the result. Default: { vote: "Yes" }
.
Optional
memo?: stringOptional
vote?: "Yes" | "No" | "None"resulting proposal and its status.
Create a proposal to an EVM call to some contract.
specification for the EVM message to send.
Optional
propOptional
propvote to submit with the result. Default: { vote: "Yes" }
.
Optional
memo?: stringOptional
vote?: "Yes" | "No" | "None"resulting proposal and its status.
Create a proposal to issue a custom signal event from OREC contract.
Optional
link?: stringOptional
metadata?: { Optional
propOptional
propOptional
memo?: stringOptional
vote?: "Yes" | "No" | "None"Propose to mint a single Respect award to a single account.
specification for the Respect award, plus optional metadata.
Optional
groupOptional
meetingOptional
metadata?: { Optional
propOptional
propOptional
mintvote to submit with the result. Default: { vote: "Yes" }
.
Optional
memo?: stringOptional
vote?: "Yes" | "No" | "None"resulting proposal and its status.
Create a proposal to issue a tick signal. Tick signals increment the period / meeting number returned by orclient (see ORClient#getPeriodNum).
optional metadata to submit with a tick signal
Optional
data?: stringOptional
link?: stringOptional
metadata?: { Optional
propOptional
propvote to submit with the result. Default: { vote: "Yes" }
.
Optional
memo?: stringOptional
vote?: "Yes" | "No" | "None"resulting proposal and its status.
Vote on a proposal.
id of a proposal to vote on.
what to vote for.
Optional
memo: stringmemo text string to submit with proposal.
Vote on a proposal.
parameters for a vote as an object. See ORClient#vote.
Optional
memo?: stringhash of submitted transaction
Client for ORDAO system.