We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--TESTS--
Trade:
{ "$class": "org.emission.network.Trade", "emission": 100, "buyer": "resource:org.emission.network.Company#b", "seller": "resource:org.emission.network.Company#A" }
--
Setup: ISSUE IDENTITY TO COMPANIES SO THEY ARE ADDED TO PARTICIPANT REGISTRY! Compan#A have 100 emissionLimit Ett#A have 0 emissionLimit
Sell:
{ "$class": "org.emission.network.Sell", "emission": 50, "sellerID": "1" }
Result: the Company#A should have 100 -> 50 emissionLimit and Ett#A should have 50 emission Market should be updated
Buy:
{ "$class": "org.emission.network.Buy", "emission": 100, "buyerID": "1" }
The text was updated successfully, but these errors were encountered:
Can you make it a bit more complex pls?
Sorry, something went wrong.
and unlock your branch!
+1 on Tamy
GabrielVilen
No branches or pull requests
--TESTS--
Trade:
{
"$class": "org.emission.network.Trade",
"emission": 100,
"buyer": "resource:org.emission.network.Company#b",
"seller": "resource:org.emission.network.Company#A"
}
--
Setup:
ISSUE IDENTITY TO COMPANIES SO THEY ARE ADDED TO PARTICIPANT REGISTRY!
Compan#A have 100 emissionLimit
Ett#A have 0 emissionLimit
Sell:
{
"$class": "org.emission.network.Sell",
"emission": 50,
"sellerID": "1"
}
Result:
the Company#A should have 100 -> 50 emissionLimit
and Ett#A should have 50 emission
Market should be updated
--
Buy:
{
"$class": "org.emission.network.Buy",
"emission": 100,
"buyerID": "1"
}
The text was updated successfully, but these errors were encountered: