Contracts often act as a state machine, which means that they have certain stages in which they behave differently or in which different functions can be called. A function call often ends a stage and transitions the contract into the next stage (especially if the contract models interaction). It is also common that some stages are automatically reached at a certain point in time. Function modifiers can be used in this situation to model the states and guard against incorrect usage of the contract.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createInnerCallback = require("./createInnerCallback"); | |
const DescriptionFileUtils = require("./DescriptionFileUtils"); | |
class DescriptionFilePlugin { | |
constructor(source, filenames, target) { | |
this.source = source; | |
this.filenames = [].concat(filenames); | |
this.target = target; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS users; | |
CREATE TABLE users ( | |
id SERIAL PRIMARY KEY, | |
facebook_id BIGINT, | |
linkedin_id BIGINT, | |
profile_created BOOLEAN DEFAULT false, | |
created_at DATE DEFAULT CURRENT_TIMESTAMP, | |
access_token VARCHAR(255) | |
); |
This demo will allow you to complete an end-to-end conversation between an Archivist and Diviner to confirm a delivery and secure a payment.
- Use nvm to run node in 10 LTS (currently 10.15.0), this is because the node installs will fail if using the system node.
- ganache-ui
- sequel pro
- docker
- It would be wise before you start to develop your contracts in a local environment. We have some [resources] for you to get started.
- Don't rush to code, you have some time to think this problem through. In fact, it's far more effective to fully understand the challenge and whiteboarding/brainstorming through the problem before writing
pragma solidity...
- Have fun and ask questions!
- Web3 working knowledge
The XYO Bridge is the primary data relayer of the XYO Network. It signs off on collected data from nearby Sentinel X devices to add to the proof of origin chain.
- Bridge X device
- Google Chrome Browser or Firefox Browser
The following is a guide for all procedures, standards, and conduct while working on any developmnent projects at XYO.
While you own your assigned project, you do have decision making autonomy, however you should refer to this guide for key infrastructure so that your app is ready for the high standards here at XYO.
IMPORTANT