Protected_cfgProtected_clientProtected_ctxProtected_nodeProtected_vetoProtected_voteGet metadata of specific Respect award NTT. Throws if token is not found or is burned.
id of a token.
Get metadata of Respect award NTTs, sorted from latest to oldest.
Optionalspec: { 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.list 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).
Get a proposal by id or by OffchainPropId.
Behavior:
id is a PropId (bytes32), this returns the earliest-created instance for that id
to preserve legacy links that referenced only the on-chain id.id is an OffchainPropId ({ id, createTxHash }), this returns the exact instance
created by the given transaction.PropId or { id, createTxHash }
Get proposals ordered from latest to oldest.
Optionalspec: { Query specification:
before - newest allowed creation timestamp; only proposals created up to this time are returned.limit - maximum number of proposals to return.execStatFilter - filter by execution status (includes "Canceled"). If undefined, no exec-status filtering.voteStatFilter - filter by vote status. If undefined, no vote-status filtering.stageFilter - filter by stage. If undefined, no stage filtering.idFilter - filter by a specific PropId when supported by the server.Proposals sorted from latest to oldest.
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.
Optionalspec: { 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.Optionalbefore?: DateOptionallimit?: numberOptionalminOptionalpropOptionalvoterOptionalvoteOptionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"Create 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.
OptionalmeetingOptionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"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 award respect game participants of a single breakout room, based on results of that breakout room. Double respect distribution from the standard one.
breakout room results, plus optional metadata.
OptionalmeetingOptionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"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" }.
Create a proposal to burn a single Respect award.
specification for the award to burn, plus optional metadata.
Optionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Create a proposal to burn multiple Respect awards at once.
specification with a list of tokenIds to burn plus optional metadata and reason.
Optionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Create a proposal to cancel a live proposal on OREC by its id.
Optionalmetadata?: { OptionalpropOptionalpropOptionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"Create a proposal to an EVM call to some contract.
specification for the EVM message to send.
OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Create a proposal to issue a custom signal event from OREC contract.
Optionallink?: stringOptionalmetadata?: { OptionalpropOptionalpropOptionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"Propose to mint multiple Respect awards at once.
Optionalmetadata?: { OptionalpropOptionalpropOptionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"Propose to mint a single Respect award to a single account.
specification for the Respect award, plus optional metadata.
OptionalgroupOptionalmeetingOptionalmetadata?: { OptionalpropOptionalpropOptionalmintvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Propose to set the maximum number of simultaneous live "Yes" votes a voter can have.
new max live yes votes (0-255)
Optionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"Propose to set new minimum passing weight (minWeight) on OREC.
new minimum weight
Optionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Propose to set new vote and veto period lengths.
new period lengths
Optionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"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
Optionaldata?: stringOptionallink?: stringOptionalmetadata?: { OptionalpropOptionalpropvote to submit with the result. Default: { vote: "Yes" }.
Optionalmemo?: stringOptionalvote?: "None" | "Yes" | "No"resulting proposal and its status.
Vote on a proposal.
id of a proposal to vote on.
what to vote for.
Optionalmemo: stringmemo text string to submit with proposal.
Vote on a proposal.
parameters for a vote as an object. See ORClient#vote.
Optionalmemo?: stringhash of submitted transaction
Client for ORDAO system.