Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
327 changes: 327 additions & 0 deletions Class 1/梅子酒/erc20.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
module.exports = [
{
constant: true,
inputs: [],
name: 'name',
outputs: [{ name: '', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [],
name: 'stop',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'guy', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'approve',
outputs: [{ name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'owner_', type: 'address' }],
name: 'setOwner',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'src', type: 'address' },
{ name: 'dst', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'transferFrom',
outputs: [{ name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'decimals',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'guy', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'mint',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'wad', type: 'uint256' }],
name: 'burn',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'name_', type: 'bytes32' }],
name: 'setName',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [{ name: 'src', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'stopped',
outputs: [{ name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'authority_', type: 'address' }],
name: 'setAuthority',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [{ name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'symbol',
outputs: [ {"internalType": "string",
"name": "",
"type": "string"}],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'guy', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'burn',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'wad', type: 'uint256' }],
name: 'mint',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'dst', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'transfer',
outputs: [{ name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'dst', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'push',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'src', type: 'address' },
{ name: 'dst', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'move',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: false,
inputs: [],
name: 'start',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [],
name: 'authority',
outputs: [{ name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [{ name: 'guy', type: 'address' }],
name: 'approve',
outputs: [{ name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
constant: true,
inputs: [
{ name: 'src', type: 'address' },
{ name: 'guy', type: 'address' }
],
name: 'allowance',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function'
},
{
constant: false,
inputs: [
{ name: 'src', type: 'address' },
{ name: 'wad', type: 'uint256' }
],
name: 'pull',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ name: 'symbol_', type: 'bytes32' }],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor'
},
{
anonymous: false,
inputs: [
{ indexed: true, name: 'guy', type: 'address' },
{ indexed: false, name: 'wad', type: 'uint256' }
],
name: 'Mint',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, name: 'guy', type: 'address' },
{ indexed: false, name: 'wad', type: 'uint256' }
],
name: 'Burn',
type: 'event'
},
{
anonymous: false,
inputs: [{ indexed: true, name: 'authority', type: 'address' }],
name: 'LogSetAuthority',
type: 'event'
},
{
anonymous: false,
inputs: [{ indexed: true, name: 'owner', type: 'address' }],
name: 'LogSetOwner',
type: 'event'
},
{
anonymous: true,
inputs: [
{ indexed: true, name: 'sig', type: 'bytes4' },
{ indexed: true, name: 'guy', type: 'address' },
{ indexed: true, name: 'foo', type: 'bytes32' },
{ indexed: true, name: 'bar', type: 'bytes32' },
{ indexed: false, name: 'wad', type: 'uint256' },
{ indexed: false, name: 'fax', type: 'bytes' }
],
name: 'LogNote',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, name: 'src', type: 'address' },
{ indexed: true, name: 'guy', type: 'address' },
{ indexed: false, name: 'wad', type: 'uint256' }
],
name: 'Approval',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, name: 'src', type: 'address' },
{ indexed: true, name: 'dst', type: 'address' },
{ indexed: false, name: 'wad', type: 'uint256' }
],
name: 'Transfer',
type: 'event'
}
];
30 changes: 30 additions & 0 deletions Class 1/梅子酒/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "watch",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"chalk": "^4.1.2",
"ethereumjs-abi": "^0.6.8",
"ethereumjs-tx": "^1.3.7",
"ethjs-contract": "^0.2.3",
"ethjs-query": "^0.3.8",
"fs": "0.0.1-security",
"got": "^9.6.0",
"httpntlm": "^1.7.7",
"jsonobject": "^2.0.0",
"kafka-node": "^5.0.0",
"line-reader": "^0.4.0",
"moment": "^2.29.1",
"readline": "^1.3.0",
"silly-datetime": "^0.1.2",
"single-line-log": "^1.1.2",
"web3": "^1.3.4",
"web3-eth-abi": "^1.3.4"
}
}
Loading