diff --git a/forum-network/notes.md b/forum-network/notes/notes.md similarity index 57% rename from forum-network/notes.md rename to forum-network/notes/notes.md index 6975cb0..dd47ac0 100644 --- a/forum-network/notes.md +++ b/forum-network/notes/notes.md @@ -23,3 +23,31 @@ We're currently supporting anonymous voting. With anonymous voting, we need to wait until the end of the vote duration, and then have a separate interval in which voters reveal their identities. For now, we can let anonymous voters reveal their identities at any time + +--- + +Bench.totalReputation is a very important quantity, isn't it? Basically determines inflation for reputation. + +--- + +Should availability registration encumber reputation? + +--- + +- Is a particular availability stake amount required? + +Currently I support updating the staked amount. +Seems like a soft protocol thing. +A given DAO can have a formula for deciding appropriate amounts. + +--- + +# + +Implementing forum + +Does the following make sense? +We will link the forum to the bench +An author of a forum post /_ ? is always? can be? _/ a reputation holder. +This is what we call a member. Let's update that terminology to be `reputationHolder`. +That's too long, though. Let's rename it to `expert`. diff --git a/forum-network/public/classes/member.js b/forum-network/public/classes/expert.js similarity index 97% rename from forum-network/public/classes/member.js rename to forum-network/public/classes/expert.js index 271e5db..0b69740 100644 --- a/forum-network/public/classes/member.js +++ b/forum-network/public/classes/expert.js @@ -4,7 +4,7 @@ import { Action } from './action.js'; import { PostMessage } from './message.js'; import { CryptoUtil } from './crypto.js'; -export class Member extends Actor { +export class Expert extends Actor { constructor(name, scene) { super(name, scene); this.actions = { @@ -32,7 +32,6 @@ export class Member extends Actor { async submitPostViaNetwork(forumNode, post, stake) { // TODO: Include fee const postMessage = new PostMessage({ post, stake }); - console.log('submitPostViaNetwork', postMessage); await postMessage.sign(this.reputationKey); this.actions.submitPostViaNetwork.log(this, forumNode, null, { id: post.id }); // For now, directly call forumNode.receiveMessage(); diff --git a/forum-network/public/classes/validation-pool.js b/forum-network/public/classes/validation-pool.js index 53a97bc..28e9c9d 100644 --- a/forum-network/public/classes/validation-pool.js +++ b/forum-network/public/classes/validation-pool.js @@ -72,7 +72,6 @@ export class ValidationPool extends Actor { }; // tokens minted "for" the post go toward stake of author voting for their own post // also, author can provide additional stakes, e.g. availability stakes for work evidence post - console.log('initiateValidationPool casting vote', { signingPublicKey }); this.castVote(signingPublicKey, { position: true, stake: this.tokens.for + authorStake, @@ -83,9 +82,6 @@ export class ValidationPool extends Actor { async castVote(signingPublicKey, { position, stake, lockingTime = 0, anonymous = true, }) { - console.log('castVote', { - signingPublicKey, position, stake, anonymous, - }); const vote = new Vote(position, stake, lockingTime); if (this.state === ValidationPoolStates.CLOSED) { throw new Error(`Validation pool ${this.id} is closed`); diff --git a/forum-network/public/tests/availability.html b/forum-network/public/tests/availability.html index 8bc35fa..a2494ec 100644 --- a/forum-network/public/tests/availability.html +++ b/forum-network/public/tests/availability.html @@ -9,7 +9,7 @@