writeBizProposal(proposer, startTime, url, hash, options)
Feature
This is the 'proposal form' for making a proposal for the 'biz option'.
Note : proposal review period start from the start time. The startTime
is in UTC timestamp format and follows the time of the Mitum network. Currently, Mitum does not verify whether the time is valid.
Parameters
string
proposer,
string
| int
startTime, // UTC timestamp
string
url,
string
hash,
string
| int
voteOptions // it must be non-zero.
Return Value
object
bizProposal
example
const proposer = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
const startTime = 1697521509;
const url = "www.myproposal.com";
const hash = "381yXYxtWCavzPxeUXRewT412gbLt2hx7VanKazkBrsnyfPPBdXfoG52Yb2wkF8vC3KJyoWgETpsN6k97mQ8tUXr1CmTedcj";
const options = 2;
const bizProposal = mitum.dao.writeBizProposal(proposer, startTime, url, hash, options)
console.log(bizProposal);
// output
BizProposal {
hint: Hint { s: 'mitum-dao-biz-proposal' },
proposer: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
startTime: Big { big: 1697521509n },
url: LongString { s: 'www.myproposal.com' },
hash: LongString {
s: '381yXYxtWCavzPxeUXRewT412gbLt2hx7VanKazkBrsnyfPPBdXfoG52Yb2wkF8vC3KJyoWgETpsN6k97mQ8tUXr1CmTedcj'
},
options: Big { big: 2n }
}
Last updated