1 |
|
2 | import path from 'path';
|
3 |
|
4 | const postCreate = path.resolve(__dirname, 'bin', 'post-create');
|
5 |
|
6 | export default {
|
7 | contract: {
|
8 | targetDir: 'contracts',
|
9 | defaultLanguage: 'python',
|
10 | languages: {
|
11 | python: {
|
12 | rootDir: path.resolve(__dirname, '..', 'contracts', 'python'),
|
13 | contracts: [
|
14 | {
|
15 | file: 'hello_world.py',
|
16 | resourceName: 'hello_world',
|
17 | target: 'deploy',
|
18 | name: 'Hello World',
|
19 | codeVersion: '1.0.0',
|
20 | abi: {
|
21 | functions: [
|
22 | {
|
23 | name: 'hello',
|
24 | parameters: [
|
25 | {
|
26 | name: 'name',
|
27 | type: 'String',
|
28 | },
|
29 | ],
|
30 | returnType: { type: 'Boolean' },
|
31 | },
|
32 | ],
|
33 | events: [
|
34 | {
|
35 | name: 'hello',
|
36 | parameters: [
|
37 | {
|
38 | name: 'name',
|
39 | type: 'String',
|
40 | },
|
41 | ],
|
42 | },
|
43 | ],
|
44 | },
|
45 | },
|
46 | ],
|
47 | },
|
48 | },
|
49 | },
|
50 | hooks: {
|
51 | postCreate,
|
52 | },
|
53 | configPath: path.join('src', 'neo-one.json'),
|
54 | templateDir: path.resolve(__dirname, '..', 'template'),
|
55 | };
|