titan-suite / bounties

Bug Bounties for the AION Bounties Program
2 stars 0 forks source link

User Advisory Board Request: Titan-Suite IDE & CLI #1

Closed kzeine closed 5 years ago

kzeine commented 6 years ago

Overview

Titan Suite is a set of full-stack developer tools built by Northern Block to enhance the user experience of developers building dApps on the Aion Network. The bounty detailed in this Github issue is the first bounty for the Aion User Advisory Board to test the Titan Suite by submitting responses and earning AION rewards. Details on eligibility, test requirements and acceptance criteria are described below.

General Rules & Guidelines

Eligibility Only users that have applied directly to the User Advisory Board and have been approved by the Aion Foundation can participate in this bounty.

Deadline Responses must be submitted within 96 hours of the official email request sent to the User Advisory Board members.

Rewards Rewards for this bounty is 50 AION for a successful submission that meets the general rules and acceptance criteria. Rewards will be disbursed within a 2-week window from the day of the deadline. *We might also pay out bounties for UI/UX feedback depending on the severity.

Scenario Descriptions

As a user, I should be able to:

Test Scripts & Tasks

User Advisory Board members participating must complete the following tasks described below and record their answers as comments to this issue in accordance with the format specified in the "Acceptance Criteria" section:

  1. Titan IDE a. Setup the IDE server: follow the instructions in the README of the IDE’s repo b. Compile: after writing code in the editor, click the COMPILE button c. Deploy: after writing code in the editor, click the DEPLOY button d. Unlock: after entering their address and password, click the UNLOCK button e. Lint: while writing in the editor, errors and warnings should be displayed f. Interact with contract functions:
    1. A user can perform a GQL query on a function that returns a value
    2. A user can perform a GQL mutation on a function that doesn’t return a value
  2. CLI a. Setup: open a terminal and follow the instructions in the README of the CLI’s repo b. Compile: running titan compile ExampleContract.sol should return contract data c. Deploy: running titan deploy MyContract.sol should return deployment details and store data locally d. Lint: running titan lint MyContract.sol should give feedback on issues with the contract e. Init: running titan init should successfully create new files in the current directory f. Unpack: running titan unpack should give options of what kind of pack to install and then download them g. Console: running titan console should start a new session with a connection to a specified node h. Unlock: running titan unlock should prompt the user to enter their address and password i. Test: running titan test myTestFile.js should run all tests in the specified file

Required Skills

Experienced and familiar with:

Nice to have:

Click here if you need help with setting up your own AION node

Acceptance Criteria

Submitting a response User Advisory Board members must submit their official responses as a single comment on this issue to be eligible for an AION reward. This means that your answers must clearly label the task (i.e. 1a, 1b, 1c...2i) described in the "Test Scripts & Tasks" section above.

For each task, you must do the following: If your test passes successfully, you must record your answer as "Pass" - i.e. 1a: Pass If your test does not pass due to errors, you must produce the following in the sequence provided:

PLEASE NOTE: You must enter your email at the end of your submissions (use the same email you signed up with for the UAB)

Once you have completed all this for all the tasks, your response is considered complete and ready for review.

Guidance

For assistance on this issue, you may directly reach out to the Northern Block Team on Gitter or to bounty@aion.network.

satran004 commented 6 years ago

1a: Pass 1b: Pass 1c: Fail

screen shot 2018-08-25 at 4 39 43 pm

Steps to reproduce:

Erro log in Ide Server: Compiling... Unlocking... TypeError: Cannot read property 'info' of undefined at Object. (/Users/satya/work/crypto-dev/aion-dev/UAB/ide-0.0.1/server/src/services/aion.ts:115:37) at step (/Users/satya/work/crypto-dev/aion-dev/UAB/ide-0.0.1/server/src/services/aion.ts:32:23) at Object.next (/Users/satya/work/crypto-dev/aion-dev/UAB/ide-0.0.1/server/src/services/aion.ts:13:53) at fulfilled (/Users/satya/work/crypto-dev/aion-dev/UAB/ide-0.0.1/server/src/services/aion.ts:4:58) at at process._tickDomainCallback

Environment: operating system : Mac OS 10.13.6 npm : v6.2.0 nodejs: v8.11.1 CLI version: Titan 0.0.10-alpha Browser: Chrome Version 68.0.3440.106 (Official Build) (64-bit)

1d: Pass 1e: Pass 1f: Can't do because of 1c

CLI 2a: pass 2b: Fail. Doesn't return the contract address

screen shot 2018-08-25 at 11 03 08 pm

2c: Fail

$> titan deploy -n Test contract/Example.sol is throwing following error.

screen shot 2018-08-25 at 11 15 30 pm

2d: Pass

2e: Pass

2f: Pass

2g: Pass 2h: Pass

2i: Fail

Email: satran004 at gmail.com

ghost commented 6 years ago

1a. Pass, setup successful in terminal

1b. Fail, titan ide website will only show will not recognize local host on Ubuntu 16.04 cloud instance. All commands work on CLI, wallet interactions, unlocks, get address info. The titan ide website shows only white screen on Mozilla Firefox Ubuntu

1c fail because of 1b 1d. Fail because of 1b 1e fail because of 1b 1f fail because of 1b

Environment: Ubuntu 16.04 Vultr cloud vps instance Npm v6.2.0 NodeJS v8.11.1 CLI version Titan 0.0.10-alpha Browser: Mozilla Firefox

CLI 1a. Pass 1b. Pass 1c. Pass 1d. Pass 1e. Pass 1f. Pass

Email: jwiand.3p@gmail.com

*also notice there is no documentation or tutorials on the azure AIONnode. I would be open to working with someone from the team to get this built out.

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 50.0 AION (83.5 USD @ $1.67/AION) attached to it.

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 3 years, 6 months ago. Please review their action plans below:

1) steampunk1453 has started work.

Hello, I have seen this issue in Github when I have received a email of Karim Zeine last Monday:

https://github.com/titan-suite/bounties/issues/1?utm_campaign=newsletter&utm_source=sendgrid&utm_medium=email

Thanks

Learn more on the Gitcoin Issue Details page.

Steampunk1453 commented 6 years ago

IDE 1a: Pass 1b: Pass 1c: Fail

1c

Write a smart program in the ide (https://ide.titan-suite.com) Unlock an account Compile Click deploy

Error log in browser IDE: Error:{"graphQLErrors":[{"message":"Cannot read property 'info' of undefined","locations":[{"line":2,"column":3}],"path":["deployContract"]}],"networkError":null,"message":"GraphQL error: Cannot read property 'info' of undefined"}

Error logs in the terminal output: Server ready!. Visit https://ide.titan-suite.com/ Compiling... Compiling... Unlocking... TypeError: Cannot read property 'info' of undefined at Object. (/home/ubuntu/ide-0.0.2/server/src/services/aion.ts:117:37) at Generator.next () at fulfilled (/home/ubuntu/ide-0.0.2/server/src/services/aion.ts:4:58) at at process._tickCallback (internal/process/next_tick.js:182:7)

Environment: Operating system : Ubuntu 17.10 Yarn version: 1.9.4 Nodejs version: 9.11.2 IDE version: 0.0.2 CLI version: Titan 0.0.10-alpha Browser: Brave version: 0.23.79

1d: Pass 1e: Pass 1f: Can't do because of error in deploy in 1c

CLI 2a: Pass 2b: Fail

2b

Go to cli project folder In the same root put the contract Example.sol Execute the command: titan compile contracts/Example.sol -d

titan compile Calculator.sol -d (node:10271) UnhandledPromiseRejectionWarning: Error: Internal error at Object.InvalidResponse (/usr/lib/node_modules/@titan-suite/cli/node_modules/aion-web3/lib/web3/errors.js:38:16) at /usr/lib/node_modules/@titan-suite/cli/node_modules/aion-web3/lib/web3/requestmanager.js:88:36 at XMLHttpRequest.request.onreadystatechange (/usr/lib/node_modules/@titan-suite/cli/node_modules/aion-web3/lib/web3/httpprovider.js:120:13) at XMLHttpRequestEventTarget.dispatchEvent (/usr/lib/node_modules/@titan-suite/cli/node_modules/xhr2/lib/xhr2.js:64:18) at XMLHttpRequest._setReadyState (/usr/lib/node_modules/@titan-suite/cli/node_modules/xhr2/lib/xhr2.js:354:12) at XMLHttpRequest._onHttpResponseEnd (/usr/lib/node_modules/@titan-suite/cli/node_modules/xhr2/lib/xhr2.js:509:12) at IncomingMessage. (/usr/lib/node_modules/@titan-suite/cli/node_modules/xhr2/lib/xhr2.js:469:24) at IncomingMessage.emit (events.js:185:15) at endReadableNT (_stream_readable.js:1106:12) at process._tickCallback (internal/process/next_tick.js:178:19) (node:10271) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:10271) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Environment: Operating system : Ubuntu 17.10 Yarn version: 1.9.4 Nodejs version: 9.11.2 CLI version: Titan 0.0.10-alpha

2c: Fail

2c

Go to cli project folder In the same root put the contract Example.sol Execute the command: titan deploy -n Test Example.sol

titan deploy Calculator.sol ? Choose a contract to deploy (node:10696) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined at ListPrompt.getCurrentValue (/usr/lib/node_modules/@titan-suite/cli/node_modules/inquirer/lib/prompts/list.js:121:53) at MapSubscriber._next (/usr/lib/node_modules/@titan-suite/cli/node_modules/rxjs/internal/operators/map.js:49:35) at MapSubscriber.Subscriber.next (/usr/lib/node_modules/@titan-suite/cli/node_modules/rxjs/internal/Subscriber.js:68:18) at TakeSubscriber._next (/usr/lib/node_modules/@titan-suite/cli/node_modules/rxjs/internal/operators/take.js:54:30) at TakeSubscriber.Subscriber.next (/usr/lib/node_modules/@titan-suite/cli/node_modules/rxjs/internal/Subscriber.js:68:18) at Interface.handler (/usr/lib/node_modules/@titan-suite/cli/node_modules/rxjs/internal/observable/fromEvent.js:22:28) at Interface.emit (events.js:185:15) at Interface._onLine (readline.js:285:10) at Interface._line (readline.js:638:8) at Interface._ttyWrite (readline.js:919:14) (node:10696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:10696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Environment: Operating system : Ubuntu 17.10 Yarn version: 1.9.4 Nodejs version: 9.11.2 CLI version: Titan 0.0.10-alpha

2d: Pass 2e: Pass 2f: Pass 2g: Pass 2h: Pass 2i: Fail

2i

Go to cli project folder Execute the command: titan test test/testExample.js

titan test testExample.js internal/modules/cjs/loader.js:550 throw err; ^

Error: Cannot find module 'babel-polyfill' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15) at Function.Module._load (internal/modules/cjs/loader.js:475:25) at Module.require (internal/modules/cjs/loader.js:598:17) at require (internal/modules/cjs/helpers.js:11:18) at requires.forEach.mod (/media/ubuntu/HDD/Ubuntu/titan-suite-cli/node_modules/mocha/bin/_mocha:511:3) at Array.forEach () at Object. (/media/ubuntu/HDD/Ubuntu/titan-suite-cli/node_modules/mocha/bin/_mocha:510:10) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) at Function.Module._load (internal/modules/cjs/loader.js:498:3) at Function.Module.runMain (internal/modules/cjs/loader.js:695:10) at startup (internal/bootstrap/node.js:201:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)

Environment: Operating system : Ubuntu 17.10 Yarn version: 1.9.4 Nodejs version: 9.11.2 CLI version: Titan 0.0.10-alpha

Email: dasies11@gmail.com

gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 50.0 AION (30.57 USD @ $0.61/AION) has been submitted by:

  1. @Steampunk1453
  2. @Steampunk1453
  3. @Steampunk1453
  4. @Steampunk1453

@kzeine please take a look at the submitted work:


gitcoinbot commented 6 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 50.0 AION (30.57 USD @ $0.61/AION) attached to this issue has been approved & issued to @Steampunk1453.