Forráskód Böngészése

Update Readme. Update log up to block #1853690

Oleksandr Korniienko 3 éve
szülő
commit
f2e8bdf006
2 módosított fájl, 28 hozzáadás és 10 törlés
  1. 12 10
      joystream-api/Readme.md
  2. 16 0
      joystream-api/report/mintingAndBurning.log

+ 12 - 10
joystream-api/Readme.md

@@ -7,7 +7,7 @@ Full report is `mintingAndBurning.log` which contains all the blocks, where mint
 ## Minting Sources:
 ### Event-based
 * `balances.BalanceSet` - when sudo account sets new balance, amount is taken from event data
-* `proposalsEngine.ProposalStatusUpdated` - when proposal has type **Spending** (`isSpending`) is approved and executed, amount is taken from proposal params
+* `proposalsEngine.ProposalStatusUpdated` - when proposal with type **Spending** (`isSpending`) is approved and executed, amount is taken from proposal params
 * `staking.Reward` - when validators and nominators are getting staking reward, amount is taken from event data
 ### Non-event-based
 * `Working groups workers recurring rewards` - to understand when reward increase issuance we check `next_payment_at_block` at the previous block hash, assuming next block worker will be paid out
@@ -16,19 +16,21 @@ Full report is `mintingAndBurning.log` which contains all the blocks, where mint
 * `proposalsEngine.ProposalStatusUpdated` - when proposal is rejected or expired, fee is burned (hardcoded value of 5000 JOY)
 ### Extrinsic-based
 * `balances.transfer` - transfer to burn address leads to burning, amount taken from extrinsics tip
-* `members.buyMembership` - when new member is regitered, fee amount is taken from `members.paidMembershipTermsById`
-* `proposalsEngine.cancelProposal` - when proposal is cancelled, cancellation fee is burned (Hardcoded value of 10000 JOY)
-* `utility.batch` - amount taken from extrinsics tip
-* `staking.bond` - amount taken from extrinsics tip
-* `session.setKeys` - amount taken from extrinsics tip
-* `staking.nominate` - amount taken from extrinsics tip
-* `members.buyMembership` - amount taken from extrinsics tip
+* `members.buyMembership` - when new member is registered, fee amount is taken from `members.paidMembershipTermsById`
+* `proposalsEngine.cancelProposal` - when proposal is cancelled, cancellation fee is burned (hardcoded value of 10000 JOY)
+* `utility.batch` - burned amount taken from extrinsics tip
+* `staking.bond` - burned amount taken from extrinsics tip
+* `session.setKeys` - burned amount taken from extrinsics tip
+* `staking.nominate` - burned amount taken from extrinsics tip
+* `members.buyMembership` - burned amount taken from extrinsics tip
 * `operationsWorkingGroup.updateRewardAmount` - when storage worker reward amount is updated, amount is added to `amount_per_payout` property of specific worker rewardRelationship
 * `contentDirectoryWorkingGroup.updateRewardAmount` - when storage worker reward amount is updated, amount is added to `amount_per_payout` property of specific worker rewardRelationship
 * `storageWorkingGroup.updateRewardAmount` - when storage worker reward amount is updated, amount is added to `amount_per_payout` property of specific worker rewardRelationship
 
 ## Running script
-`yarn start <startBlock> <endBlock>` - Generates two files in `report` folder:
+`yarn start <startBlock> <endBlock>` - Generates some files in `report` folder:
  - `mintingAndBurning.log`: every line is a block where totalIssuance has been changed, showing new issuance, previous issuance, tokens minted and burned. Every line is prefixed with `INFO` if minting and burning source is calculated, `WARN` if the source is unknown
 
- - `mintingAndBurning.json`: detailed report of what exactly changed the issuance in a specific block (e.g. Staking Reward, Cancelled Proposal, Spending Proposal, Set Sudo Balance, Recurring Rewards, Membership Creation, Transfer to Burn Address)
+ - `unknownSources.log`: every line is a block where totalIssuance has been changed, showing new issuance, previous issuance, tokens minted and burnedbut the source is **unknown**, meaning we only add `WARN` lines here
+
+ - `mintingAndBurning.json`: detailed report of what exactly changed the issuance in a specific block (e.g. Staking Reward, Cancelled Proposal, Spending Proposal, Set Sudo Balance, Recurring Rewards, Membership Creation, Transfer to Burn Address, Proposal Rejection, Proposal Expiration)

+ 16 - 0
joystream-api/report/mintingAndBurning.log

@@ -475811,3 +475811,19 @@
 [INFO] Block: [1850170] Issuance: [1199425608] Previous issuance: [1199430608] Delta: [-5000] Calculated Delta: [-5000] Total Minted: [0] Total Burned: [5000]
 [INFO] Block: [1850226] Issuance: [1199426577] Previous issuance: [1199425608] Delta: [969] Calculated Delta: [969] Total Minted: [969] Total Burned: [0]
 [INFO] Block: [1850349] Issuance: [1199497777] Previous issuance: [1199426577] Delta: [71200] Calculated Delta: [71200] Total Minted: [71200] Total Burned: [0]
+[INFO] Block: [1850800] Issuance: [1199503877] Previous issuance: [1199497777] Delta: [6100] Calculated Delta: [6100] Total Minted: [6100] Total Burned: [0]
+[INFO] Block: [1850850] Issuance: [1199524909] Previous issuance: [1199503877] Delta: [21032] Calculated Delta: [21032] Total Minted: [21032] Total Burned: [0]
+[INFO] Block: [1851208] Issuance: [1193824909] Previous issuance: [1199524909] Delta: [-5700000] Calculated Delta: [-5700000] Total Minted: [0] Total Burned: [5700000]
+[INFO] Block: [1851283] Issuance: [1188124909] Previous issuance: [1193824909] Delta: [-5700000] Calculated Delta: [-5700000] Total Minted: [0] Total Burned: [5700000]
+[INFO] Block: [1851293] Issuance: [1185424909] Previous issuance: [1188124909] Delta: [-2700000] Calculated Delta: [-2700000] Total Minted: [0] Total Burned: [2700000]
+[INFO] Block: [1851337] Issuance: [1185454521] Previous issuance: [1185424909] Delta: [29612] Calculated Delta: [29612] Total Minted: [29612] Total Burned: [0]
+[INFO] Block: [1851339] Issuance: [1185465476] Previous issuance: [1185454521] Delta: [10955] Calculated Delta: [10955] Total Minted: [10955] Total Burned: [0]
+[INFO] Block: [1851508] Issuance: [1185557846] Previous issuance: [1185465476] Delta: [92370] Calculated Delta: [92370] Total Minted: [92370] Total Burned: [0]
+[INFO] Block: [1851600] Issuance: [1185588346] Previous issuance: [1185557846] Delta: [30500] Calculated Delta: [30500] Total Minted: [30500] Total Burned: [0]
+[INFO] Block: [1851730] Issuance: [1186788346] Previous issuance: [1185588346] Delta: [1200000] Calculated Delta: [1200000] Total Minted: [1200000] Total Burned: [0]
+[INFO] Block: [1851800] Issuance: [1186849346] Previous issuance: [1186788346] Delta: [61000] Calculated Delta: [61000] Total Minted: [61000] Total Burned: [0]
+[INFO] Block: [1852333] Issuance: [1186935553] Previous issuance: [1186849346] Delta: [86207] Calculated Delta: [86207] Total Minted: [86207] Total Burned: [0]
+[INFO] Block: [1852521] Issuance: [1186935453] Previous issuance: [1186935553] Delta: [-100] Calculated Delta: [-100] Total Minted: [0] Total Burned: [100]
+[INFO] Block: [1852800] Issuance: [1186985453] Previous issuance: [1186935453] Delta: [50000] Calculated Delta: [50000] Total Minted: [50000] Total Burned: [0]
+[INFO] Block: [1853010] Issuance: [1187279854] Previous issuance: [1186985453] Delta: [294401] Calculated Delta: [294401] Total Minted: [294401] Total Burned: [0]
+[INFO] Block: [1853600] Issuance: [1187386604] Previous issuance: [1187279854] Delta: [106750] Calculated Delta: [106750] Total Minted: [106750] Total Burned: [0]