web4er / ubiquibot

Automating DevPool management.
https://github.com/marketplace/ubiquibot
MIT License
0 stars 0 forks source link

QA(post-merge): Add config param to enable/disable wallet signature #44

Open web4er opened 1 year ago

web4er commented 1 year ago

For testing, I will change the config option register-wallet-with-verification in file .github/ubiquibot-config.yml in this fork's development branch.

web4er commented 1 year ago

TEST

should accept wallet command without signature

CURRENT CONFIG

register-wallet-with-verification: false

web4er commented 1 year ago

/wallet 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2

web4er-ubiquibot[bot] commented 1 year ago

Updated the wallet address for @web4er successfully! Your new address: 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2

web4er commented 1 year ago

TEST

should print correct error with correct usage example for empty wallet command

CURRENT CONFIG

register-wallet-with-verification: false

web4er commented 1 year ago

/wallet

web4er-ubiquibot[bot] commented 1 year ago

Please include your wallet or ENS address. usage: /wallet 0x0000000000000000000000000000000000000000

web4er commented 1 year ago

setting register-wallet-with-verification: true

web4er commented 1 year ago

TEST

should not accept wallet without signature

CURRENT CONFIG

register-wallet-with-verification: true

web4er commented 1 year ago

/wallet 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2

web4er-ubiquibot[bot] commented 1 year ago

Skipping to register the wallet address because you have not provided a valid SIGNATURE_HASH. Use etherscan to sign the message DevPool and register your wallet by appending the signature hash.

Usage: /wallet <WALLET_ADDRESS | ENS_NAME>

Example: /wallet 0x0000000000000000000000000000000000000000 0x0830f316c982a7fd4ff050c8fdc1212a8fd92f6bb42b2337b839f2b4e156f05a359ef8f4acd0b57cdedec7874a865ee07076ab2c81dc9f9de28ced55228587f81c

web4er commented 1 year ago

TEST

should accept wallet with correct signature

CURRENT CONFIG

register-wallet-with-verification: true

web4er commented 1 year ago

/wallet 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2 0x02aa024ce04bfe53648d410cee03a046c54e6ec558b26e376b207cf36c8685404e00e7e2ccb0ba5114f1b890c90881f016f628efbb21c930db789c157690e58c1b

web4er-ubiquibot[bot] commented 1 year ago

Updated the wallet address for @web4er successfully! Your new address: 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2

web4er commented 1 year ago

TEST

should not accept wallet with incorrect signature

CURRENT CONFIG

register-wallet-with-verification: true

web4er commented 1 year ago

/wallet 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2 0xdcd592592ed6e964b13a5837b2f7eca6ca8265a1ac919cfc87495213165e1b5176274e09e69632a03f579ea25d8ded9b31c16d1a7ef94574d3b6a36e154bcc4f1b

web4er-ubiquibot[bot] commented 1 year ago

Skipping to register the wallet address because you have not provided a valid SIGNATURE_HASH. Use etherscan to sign the message DevPool and register your wallet by appending the signature hash.

Usage: /wallet <WALLET_ADDRESS | ENS_NAME>

Example: /wallet 0x0000000000000000000000000000000000000000 0x0830f316c982a7fd4ff050c8fdc1212a8fd92f6bb42b2337b839f2b4e156f05a359ef8f4acd0b57cdedec7874a865ee07076ab2c81dc9f9de28ced55228587f81c

web4er commented 1 year ago

TEST

should print correct error with correct usage example for empty wallet command

CURRENT CONFIG

register-wallet-with-verification: true

web4er commented 1 year ago

/wallet

web4er-ubiquibot[bot] commented 1 year ago

Please include your wallet or ENS address. usage: /wallet 0x0000000000000000000000000000000000000000 0x0830f316c982a7fd4ff050c8fdc1212a8fd92f6bb42b2337b839f2b4e156f05a359ef8f4acd0b57cdedec7874a865ee07076ab2c81dc9f9de28ced55228587f81c

web4er commented 1 year ago

TEST

should print correct help

CURRENT CONFIG

register-wallet-with-verification: true

web4er commented 1 year ago

/help

web4er-ubiquibot[bot] commented 1 year ago

Available commands


- /assign: Assign the origin sender to the issue automatically.
- /unassign: Unassign the origin sender from the issue automatically.
- /help: List all available commands.
- /multiplier: Set the bounty payout multiplier for a specific contributor, and provide the reason for why. 
  example usage: "/wallet @user 0.5 'Multiplier reason'"
- /allow: Set access control. (Admin Only)
- /wallet: <WALLET_ADDRESS | ENS_NAME> <SIGNATURE_HASH>: Register the hunter's wallet address. 
  Your message to sign is: DevPool
  You can generate SIGNATURE_HASH at https://etherscan.io/verifiedSignatures
  ex1: /wallet 0x0000000000000000000000000000000000000000 0xe2a3e34a63f3def2c29605de82225b79e1398190b542be917ef88a8e93ff9dc91bdc3ef9b12ed711550f6d2cbbb50671aa3f14a665b709ec391f3e603d0899a41b
  ex2: /wallet vitalik.eth 0x75329f883590507e581cd6dfca62680b6cd12e1f1665db8097f9e642ed70025146b5cf9f777dde90c4a9cbd41500a6bf76bc394fd0b0cae2aab09f7a6f30e3b31b
web4er commented 1 year ago

TEST

Running some other commands to make sure things are working smooth because merge conflicts were a bit extensive

web4er commented 1 year ago

/allow set-multiplier @web4er true

web4er-ubiquibot[bot] commented 1 year ago

Updated access for @web4er successfully! Access: multiplier for "web4er/ubiquibot"

web4er commented 1 year ago

/multiplier 0.7 @web4er "testing"

web4er-ubiquibot[bot] commented 1 year ago

Successfully changed the payout multiplier for @web4er to 0.7. The reason provided is "testing ".

web4er commented 1 year ago

/assign

web4er-ubiquibot[bot] commented 1 year ago

Deadline Fri, 28 Jul 2023 12:20:14 GMT
Registered Wallet Please set your wallet address to use `/wallet 0x4FDE...BA18`
Payment Multiplier 1.00
Multiplier Reason undefined
Total Bounty Permit generation skipped since price label is not set

Tips:

web4er commented 1 year ago

/unassign

web4er-ubiquibot[bot] commented 1 year ago

You have been unassigned from the bounty @web4er