cambiatus / contracts Goto Github PK
View Code? Open in Web Editor NEWCambiatus EOSIO Smart Contracts
License: GNU Affero General Public License v3.0
Cambiatus EOSIO Smart Contracts
License: GNU Affero General Public License v3.0
It should use the same structure for roles that we currently have, but on cambiatus.tk
contract
Describe the bug
Right now we require a minimum of 2 votes to create a new action. The problem is that this causes a scenario where claims that require two votes (actually all scenario with an even number of required votes) we may reach a scenario of having half of the required votes as "approved" and "disapproved". This will create limbo scenario of ever pending claims.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should be able to make sure the claim reaches the end of its cycle. To make sure it will happen we should make sure we only accept odd numbers (but bigger than 1)
While trying to update different actions, we allow our users to set a validator list -- a -
separated string with accounts.
Every time we are updating that list we first clear all elements from that action and recreate it with all the accounts sent on the validator_str
param.
A weird thing happens when we try to send an update sometimes, the contract deletes action validators from another action.
Maybe this can be fixed by adding a scope, but it should work with indexes (current implementation has an action_index). Needs more simulation and investigation
Used to fill in what features are enabled on a community
Add and migrate a new community settings table, allowing for those toggles. Make sure the other actions don't work if set
While trying to approve/disapprove actions the contract throws "Can't vote on already verified claim" error from the server. Only the first verifier can verify Claims, all others will get an error.
You can reproduce it in the "AMTB" community with the passphrase razor cable someone foster material say this decade rocket agree move segment on http://staging.cambiatus.io/dashboard
Describe the bug
During the tests of cambiatus/frontend#485, @heltonlr found a bug where an action that was completed was not being correctly updated by event-source
. We need to investigate further.
To Reproduce
We still don't have enough info to debug this
Expected behavior
As the action usages are completed, we need to make sure the action is correctly completed as well.
Screenshots
N/A
Cambiatus Env you are using
Staging
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Make sure expiration works for ticolones
Sentry Issue: FRONTEND-3RR
[EOS] assertion failure with message: Can't find any sale with given sale_id
we should update it to use require_auth2()
to use a new permission (we need to decide its name). This will avoid a malicious attack to change the contract's code
Following up cambiatus/frontend#450, we need to limit the max number of the units to be 9999
Need to add a rule during action creation that the list must always have at least two verifiers
Roles will allow us to further improve how we handle granular governance in Cambiatus, its the first step towards a more decentralized community
as part of our security routine, change up all the contracts keys
Is your feature request related to a problem? Please describe.
We had a few minor bugs after feature deployment that could be avoided
Describe the solution you'd like
We we had a test stack on the smart contract that would be helpful. We can make sure the contract behaves the way we intent it to!
Describe alternatives you've considered
Using the default eosio std lib test framework. Some people has been using other test issues such as RSpec for this but I think integration tests aren't what we need for now. Unit tests will allow us to test the contract and other test suits will allow us to test the deployment flow
Additional context
here is how block one does the contract testing for reference: https://github.com/EOSIO/eosio.contracts/tree/master/tests
Sometimes while validating a claim we get this error message, this is a performance problem under our contract that we should fix
Sentry Issue: FRONTEND-2KB
deadline exceeded 32720us
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.