Skip to content

Commit 88ac61e

Browse files
initial
0 parents  commit 88ac61e

24 files changed

+16251
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sol linguist-language=Solidity

.github/workflows/CI.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
node: ['10.x', '12.x']
14+
os: [ubuntu-latest]
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node }}
23+
24+
- run: npm install -g yarn
25+
26+
- id: yarn-cache
27+
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
- uses: actions/cache@v1
29+
with:
30+
path: ${{ steps.yarn-cache.outputs.dir }}
31+
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
restore-keys: |
33+
${{ matrix.os }}-yarn-
34+
35+
- run: yarn
36+
37+
- run: yarn lint
38+
- run: yarn test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/
2+
node_modules/
3+
migrations/
4+
.env

.mocharc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extension": ["ts"],
3+
"spec": "./test/**/*.spec.ts",
4+
"require": "ts-node/register",
5+
"timeout": 12000
6+
}

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 120
5+
}

.waffle.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerVersion": "./node_modules/solc",
3+
"outputType": "all",
4+
"compilerOptions": {
5+
"outputSelection": {
6+
"*": {
7+
"*": [
8+
"evm.bytecode.object",
9+
"evm.deployedBytecode.object",
10+
"abi",
11+
"evm.bytecode.sourceMap",
12+
"evm.deployedBytecode.sourceMap",
13+
"metadata"
14+
],
15+
"": ["ast"]
16+
}
17+
},
18+
"evmVersion": "istanbul",
19+
"optimizer": {
20+
"enabled": true,
21+
"runs": 999999
22+
}
23+
}
24+
}

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts true

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Pancake Router
2+
3+
### Bsc-Test
4+
5+
The following assumes the use of `node@>=10`.
6+
7+
## Install Dependencies
8+
9+
`yarn`
10+
11+
## Compile Contracts
12+
13+
`yarn compile`
14+
15+
## Run Tests
16+
17+
`yarn test`

contracts/Migrations.sol

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity >=0.4.25 <0.7.0;
3+
4+
contract Migrations {
5+
address public owner;
6+
uint public last_completed_migration;
7+
8+
modifier restricted() {
9+
if (msg.sender == owner) _;
10+
}
11+
12+
constructor() public {
13+
owner = msg.sender;
14+
}
15+
16+
function setCompleted(uint completed) public restricted {
17+
last_completed_migration = completed;
18+
}
19+
}

0 commit comments

Comments
 (0)