Skip to content

Commit fa4a248

Browse files
committed
add project files
1 parent 2c18c85 commit fa4a248

File tree

270 files changed

+14018
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+14018
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

projects/.DS_Store

0 Bytes
Binary file not shown.

projects/14/.DS_Store

6 KB
Binary file not shown.

projects/14/build/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

projects/14/build/asset-manifest.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"files": {
3+
"static/js/0.760f4f36.chunk.js": "/static/js/0.760f4f36.chunk.js",
4+
"static/js/0.760f4f36.chunk.js.map": "/static/js/0.760f4f36.chunk.js.map",
5+
"main.css": "/static/css/main.57001771.chunk.css",
6+
"main.js": "/static/js/main.b5c4d866.chunk.js",
7+
"main.js.map": "/static/js/main.b5c4d866.chunk.js.map",
8+
"runtime-main.js": "/static/js/runtime-main.75b54367.js",
9+
"runtime-main.js.map": "/static/js/runtime-main.75b54367.js.map",
10+
"static/css/3.486ebae0.chunk.css": "/static/css/3.486ebae0.chunk.css",
11+
"static/js/3.3be3f57a.chunk.js": "/static/js/3.3be3f57a.chunk.js",
12+
"static/js/3.3be3f57a.chunk.js.map": "/static/js/3.3be3f57a.chunk.js.map",
13+
"static/js/4.dc27d6c3.chunk.js": "/static/js/4.dc27d6c3.chunk.js",
14+
"static/js/4.dc27d6c3.chunk.js.map": "/static/js/4.dc27d6c3.chunk.js.map",
15+
"static/js/5.482822de.chunk.js": "/static/js/5.482822de.chunk.js",
16+
"static/js/5.482822de.chunk.js.map": "/static/js/5.482822de.chunk.js.map",
17+
"static/js/6.777aca26.chunk.js": "/static/js/6.777aca26.chunk.js",
18+
"static/js/6.777aca26.chunk.js.map": "/static/js/6.777aca26.chunk.js.map",
19+
"static/js/7.73cb38c7.chunk.js": "/static/js/7.73cb38c7.chunk.js",
20+
"static/js/7.73cb38c7.chunk.js.map": "/static/js/7.73cb38c7.chunk.js.map",
21+
"static/js/8.e8b2c431.chunk.js": "/static/js/8.e8b2c431.chunk.js",
22+
"static/js/8.e8b2c431.chunk.js.map": "/static/js/8.e8b2c431.chunk.js.map",
23+
"static/js/9.0ab56b92.chunk.js": "/static/js/9.0ab56b92.chunk.js",
24+
"static/js/9.0ab56b92.chunk.js.map": "/static/js/9.0ab56b92.chunk.js.map",
25+
"static/js/10.aad97638.chunk.js": "/static/js/10.aad97638.chunk.js",
26+
"static/js/10.aad97638.chunk.js.map": "/static/js/10.aad97638.chunk.js.map",
27+
"static/js/11.4ea4929e.chunk.js": "/static/js/11.4ea4929e.chunk.js",
28+
"static/js/11.4ea4929e.chunk.js.map": "/static/js/11.4ea4929e.chunk.js.map",
29+
"index.html": "/index.html",
30+
"precache-manifest.8b8a925b2ae01e85de2f9792ec511f4b.js": "/precache-manifest.8b8a925b2ae01e85de2f9792ec511f4b.js",
31+
"service-worker.js": "/service-worker.js",
32+
"static/css/3.486ebae0.chunk.css.map": "/static/css/3.486ebae0.chunk.css.map",
33+
"static/css/main.57001771.chunk.css.map": "/static/css/main.57001771.chunk.css.map",
34+
"static/js/3.3be3f57a.chunk.js.LICENSE.txt": "/static/js/3.3be3f57a.chunk.js.LICENSE.txt",
35+
"static/js/5.482822de.chunk.js.LICENSE.txt": "/static/js/5.482822de.chunk.js.LICENSE.txt",
36+
"static/js/6.777aca26.chunk.js.LICENSE.txt": "/static/js/6.777aca26.chunk.js.LICENSE.txt",
37+
"static/js/7.73cb38c7.chunk.js.LICENSE.txt": "/static/js/7.73cb38c7.chunk.js.LICENSE.txt",
38+
"static/js/8.e8b2c431.chunk.js.LICENSE.txt": "/static/js/8.e8b2c431.chunk.js.LICENSE.txt",
39+
"static/media/chef.png": "/static/media/chef.ec78e8e8.png",
40+
"static/media/getNFTs.png": "/static/media/getNFTs.1999fa62.png",
41+
"static/media/price.png": "/static/media/price.bea79034.png",
42+
"static/media/white_paper.pdf": "/static/media/white_paper.dfbdc33c.pdf",
43+
"static/media/works.png": "/static/media/works.0e8ce44d.png"
44+
},
45+
"entrypoints": [
46+
"static/js/runtime-main.75b54367.js",
47+
"static/css/3.486ebae0.chunk.css",
48+
"static/js/3.3be3f57a.chunk.js",
49+
"static/css/main.57001771.chunk.css",
50+
"static/js/main.b5c4d866.chunk.js"
51+
]
52+
}

projects/14/build/favicon.png

1.09 KB
Loading

projects/14/build/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Farm SUSHI with Uniswap LP Token"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Noto+Sans:wght@400;700&family=Reem+Kufi&family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet"/><meta name="twitter:image" content="http://sushiswap.org/hero.png"/><meta name="twitter:description" content="Farm SUSHI with Uniswap LP Token"/><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="🍣 SushiSwap - An Evolution over Uniswap with Yield Farming"/><title>TronMysteryBox</title><link href="/static/css/3.486ebae0.chunk.css" rel="stylesheet"><link href="/static/css/main.57001771.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],s=0,p=[];s<i.length;s++)u=i[s],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&p.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"760f4f36",4:"dc27d6c3",5:"482822de",6:"777aca26",7:"73cb38c7",8:"e8b2c431",9:"0ab56b92",10:"aad97638",11:"4ea4929e"}[e]+".chunk.js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpyam=this.webpackJsonpyam||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="/static/js/3.3be3f57a.chunk.js"></script><script src="/static/js/main.b5c4d866.chunk.js"></script></body></html>

projects/14/build/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "tronmysterybox",
3+
"name": "Farm tronmysterybox with Uniswap LP Tokens",
4+
"icons": [
5+
{
6+
"src": "favicon.png",
7+
"type": "image/png",
8+
"sizes": "240x240"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

projects/14/build/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

projects/14/build/service-worker.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* Welcome to your Workbox-powered service worker!
3+
*
4+
* You'll need to register this file in your web app and you should
5+
* disable HTTP caching for this file too.
6+
* See https://goo.gl/nhQhGp
7+
*
8+
* The rest of the code is auto-generated. Please don't update this file
9+
* directly; instead, make changes to your Workbox build configuration
10+
* and re-run your build process.
11+
* See https://goo.gl/2aRDsh
12+
*/
13+
14+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
15+
16+
importScripts(
17+
"/precache-manifest.8b8a925b2ae01e85de2f9792ec511f4b.js"
18+
);
19+
20+
self.addEventListener('message', (event) => {
21+
if (event.data && event.data.type === 'SKIP_WAITING') {
22+
self.skipWaiting();
23+
}
24+
});
25+
26+
workbox.core.clientsClaim();
27+
28+
/**
29+
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
30+
* requests for URLs in the manifest.
31+
* See https://goo.gl/S9QRab
32+
*/
33+
self.__precacheManifest = [].concat(self.__precacheManifest || []);
34+
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
35+
36+
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {
37+
38+
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
39+
});
Loading
Loading
Loading
Binary file not shown.
Loading

projects/14/contracts/BKEY/BoxKey.sol

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
pragma solidity ^0.5.0;
2+
3+
import "./Ownable.sol";
4+
import "./IERC20.sol";
5+
import "./SafeMath.sol";
6+
7+
8+
contract ERC20 is IERC20 {
9+
using SafeMath for uint256;
10+
11+
mapping (address => uint256) private _balances;
12+
13+
mapping (address => mapping (address => uint256)) private _allowances;
14+
15+
uint256 private _totalSupply;
16+
17+
function totalSupply() public view returns (uint256) {
18+
return _totalSupply;
19+
}
20+
21+
function balanceOf(address account) public view returns (uint256) {
22+
return _balances[account];
23+
}
24+
25+
function transfer(address recipient, uint256 amount) public returns (bool) {
26+
_transfer(msg.sender, recipient, amount);
27+
return true;
28+
}
29+
30+
function allowance(address owner, address spender) public view returns (uint256) {
31+
return _allowances[owner][spender];
32+
}
33+
34+
function approve(address spender, uint256 value) public returns (bool) {
35+
_approve(msg.sender, spender, value);
36+
return true;
37+
}
38+
39+
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
40+
_transfer(sender, recipient, amount);
41+
_approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount));
42+
return true;
43+
}
44+
45+
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
46+
_approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
47+
return true;
48+
}
49+
50+
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
51+
_approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue));
52+
return true;
53+
}
54+
55+
56+
function _transfer(address sender, address recipient, uint256 amount) internal {
57+
require(sender != address(0), "ERC20: transfer from the zero address");
58+
require(recipient != address(0), "ERC20: transfer to the zero address");
59+
60+
_balances[sender] = _balances[sender].sub(amount);
61+
_balances[recipient] = _balances[recipient].add(amount);
62+
emit Transfer(sender, recipient, amount);
63+
}
64+
65+
66+
function _mint(address account, uint256 amount) internal {
67+
require(account != address(0), "ERC20: mint to the zero address");
68+
69+
_totalSupply = _totalSupply.add(amount);
70+
_balances[account] = _balances[account].add(amount);
71+
emit Transfer(address(0), account, amount);
72+
}
73+
74+
75+
function _burn(address account, uint256 value) internal {
76+
require(account != address(0), "ERC20: burn from the zero address");
77+
78+
_totalSupply = _totalSupply.sub(value);
79+
_balances[account] = _balances[account].sub(value);
80+
emit Transfer(account, address(0), value);
81+
}
82+
83+
function _approve(address owner, address spender, uint256 value) internal {
84+
require(owner != address(0), "ERC20: approve from the zero address");
85+
require(spender != address(0), "ERC20: approve to the zero address");
86+
87+
_allowances[owner][spender] = value;
88+
emit Approval(owner, spender, value);
89+
}
90+
91+
92+
function _burnFrom(address account, uint256 amount) internal {
93+
_burn(account, amount);
94+
_approve(account, msg.sender, _allowances[account][msg.sender].sub(amount));
95+
}
96+
}
97+
98+
99+
contract ERC20Detailed is IERC20 {
100+
string private _name;
101+
string private _symbol;
102+
uint8 private _decimals;
103+
104+
constructor (string memory name, string memory symbol, uint8 decimals) public {
105+
_name = name;
106+
_symbol = symbol;
107+
_decimals = decimals;
108+
}
109+
110+
function name() public view returns (string memory) {
111+
return _name;
112+
}
113+
114+
function symbol() public view returns (string memory) {
115+
return _symbol;
116+
}
117+
118+
function decimals() public view returns (uint8) {
119+
return _decimals;
120+
}
121+
}
122+
123+
contract BoxKey is ERC20, ERC20Detailed, Ownable {
124+
125+
constructor () public ERC20Detailed("Box Key", "BKEY", 6) {
126+
_mint(msg.sender, 1500000 * (10 ** uint256(decimals())));
127+
}
128+
129+
function withdrawTRX(address payable toAddress, uint256 value) public onlyOwner {
130+
toAddress.transfer(value);
131+
}
132+
133+
/**
134+
* @dev Destroys `amount` tokens from the caller.
135+
* See {ERC20-_burn}.
136+
*/
137+
function burn(uint256 amount) public returns (bool) {
138+
_burn(msg.sender, amount);
139+
return true;
140+
}
141+
142+
/**
143+
* @dev See {ERC20-_burnFrom}.
144+
*/
145+
function burnFrom(address account, uint256 amount) public returns (bool) {
146+
_burnFrom(account, amount);
147+
return true;
148+
}
149+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
pragma solidity ^0.5.0;
2+
3+
/*
4+
* @dev Provides information about the current execution context, including the
5+
* sender of the transaction and its data. While these are generally available
6+
* via msg.sender and msg.data, they should not be accessed in such a direct
7+
* manner, since when dealing with GSN meta-transactions the account sending and
8+
* paying for execution may not be the actual sender (as far as an application
9+
* is concerned).
10+
*
11+
* This contract is only required for intermediate, library-like contracts.
12+
*/
13+
contract Context {
14+
// Empty internal constructor, to prevent people from mistakenly deploying
15+
// an instance of this contract, which should be used via inheritance.
16+
constructor () internal { }
17+
// solhint-disable-previous-line no-empty-blocks
18+
19+
function _msgSender() internal view returns (address payable) {
20+
return msg.sender;
21+
}
22+
23+
function _msgData() internal view returns (bytes memory) {
24+
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
25+
return msg.data;
26+
}
27+
}

projects/14/contracts/BKEY/IERC20.sol

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
pragma solidity ^0.5.0;
2+
3+
/**
4+
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
5+
* the optional functions; to access them see {ERC20Detailed}.
6+
*/
7+
interface IERC20 {
8+
/**
9+
* @dev Returns the amount of tokens in existence.
10+
*/
11+
function totalSupply() external view returns (uint256);
12+
13+
/**
14+
* @dev Returns the amount of tokens owned by `account`.
15+
*/
16+
function balanceOf(address account) external view returns (uint256);
17+
18+
/**
19+
* @dev Moves `amount` tokens from the caller's account to `recipient`.
20+
*
21+
* Returns a boolean value indicating whether the operation succeeded.
22+
*
23+
* Emits a {Transfer} event.
24+
*/
25+
function transfer(address recipient, uint256 amount) external returns (bool);
26+
27+
/**
28+
* @dev Returns the remaining number of tokens that `spender` will be
29+
* allowed to spend on behalf of `owner` through {transferFrom}. This is
30+
* zero by default.
31+
*
32+
* This value changes when {approve} or {transferFrom} are called.
33+
*/
34+
function allowance(address owner, address spender) external view returns (uint256);
35+
36+
/**
37+
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
38+
*
39+
* Returns a boolean value indicating whether the operation succeeded.
40+
*
41+
* IMPORTANT: Beware that changing an allowance with this method brings the risk
42+
* that someone may use both the old and the new allowance by unfortunate
43+
* transaction ordering. One possible solution to mitigate this race
44+
* condition is to first reduce the spender's allowance to 0 and set the
45+
* desired value afterwards:
46+
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
47+
*
48+
* Emits an {Approval} event.
49+
*/
50+
function approve(address spender, uint256 amount) external returns (bool);
51+
52+
/**
53+
* @dev Moves `amount` tokens from `sender` to `recipient` using the
54+
* allowance mechanism. `amount` is then deducted from the caller's
55+
* allowance.
56+
*
57+
* Returns a boolean value indicating whether the operation succeeded.
58+
*
59+
* Emits a {Transfer} event.
60+
*/
61+
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
62+
63+
/**
64+
* TODO: burn interface
65+
*/
66+
function burn(uint256 amount) external returns (bool);
67+
68+
/**
69+
* TODO: burnFrom interface
70+
*/
71+
function burnFrom(address account, uint256 amount) external returns (bool);
72+
73+
/**
74+
* @dev Emitted when `value` tokens are moved from one account (`from`) to
75+
* another (`to`).
76+
*
77+
* Note that `value` may be zero.
78+
*/
79+
event Transfer(address indexed from, address indexed to, uint256 value);
80+
81+
/**
82+
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
83+
* a call to {approve}. `value` is the new allowance.
84+
*/
85+
event Approval(address indexed owner, address indexed spender, uint256 value);
86+
}

0 commit comments

Comments
 (0)