Comments (8)
The MockContract allows for all of that without having to write a separate test contract each time.
Maybe like this?
The MockContract facilitates these features without requiring any separate test contracts.
Should we also make the interface we expect to be implemented explicit?
done
from mock-contract.
The MockContract facilitates these features without requiring any separate test contracts.
Much better!
from mock-contract.
what is the value of making ANY also a constant?
ANY has to be defined somewhere, otherwise the code wouldn't compile. My suggestion would be to have it some magic value on the smart contract.
from mock-contract.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.5 ETH (106.07 USD @ $212.14/ETH) attached to it as part of the Gnosis fund.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $142,366.64 more funded OSS Work available on the Gitcoin Issue Explorer
from mock-contract.
Looks really good! A few small comments.
The MockContract allows for all of that without having to write a separate test contract each time.
This sentence could be slightly smoother, but I don't have a concrete suggestion either. Maybe @bh2smith ?
After the ANY
example, we might want to add that ANY can be a e.g. a constant defined on the smart contract.
Should we also make the interface we expect to be implemented explicit?
function givenPartialCalldataReturn(bytes calldata call, bytes calldata response) external;
...
from mock-contract.
After the ANY example, we might want to add that ANY can be a e.g. a constant defined on the smart contract.
what is the value of making ANY also a constant? Probably, I do not understand.
from mock-contract.
Issue Status: 1. Open 2. Cancelled
Workers have applied to start work.
These users each claimed they can complete the work by 2 years, 4 months ago.
Please review their action plans below:
1) mikehathaway has applied to start work (Funders only: approve worker | reject worker).
I will use Truffle Suite tools to run a local Eth node and rapidly prototype a smart contract that can be used for mocking Gnosis contract interactions. Following completion of a contract that meets basic specifications, I will seek to iteratively improve it.
Learn more on the Gitcoin Issue Details page.
from mock-contract.
Issue Status: 1. Open 2. Cancelled
The funding of 0.5 ETH (67.09 USD @ $134.18/ETH) attached to this issue has been cancelled by the bounty submitter
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $79,939.62 more funded OSS Work available on the Gitcoin Issue Explorer
from mock-contract.
Related Issues (13)
- Usage of .getData() no longer works HOT 2
- Calldata with predicates HOT 8
- Error: Could not find artifacts for .\MockContract.sol from any sources HOT 5
- Solidity 0.6 support
- Update NPM package HOT 1
- Returning array of values HOT 2
- Make it possible that the mock can call other contracts
- Mock return tuple with arrays HOT 1
- Publish latest version to NPM HOT 2
- Wierd behaviour with encodeABI
- View functions revert when mocked HOT 1
- Can't invoke mocked view functions more than 2 times in a single transaction HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mock-contract.