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 #42

Open web4er opened 1 year ago

web4er commented 1 year ago

Add config param to enable/disable wallet signature

web4er commented 1 year ago

Tests for /wallet with newly added config option REGISTER_WALLET_WITH_VERIFICATION

First, testing with default option:

web4er commented 1 year ago

should show correct /wallet help

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>: Register the hunter's wallet address. 
  ex1: /wallet 0x16ce4d863eD687455137576da2A0cbaf4f1E8f76
  ex2: /wallet vitalik.eth
web4er commented 1 year ago

should ignore wallet command because it doesn't contain wallet address

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

should accept wallet address

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

should accept wallet but ignore signed hash if any because signed hash is not needed

web4er commented 1 year ago

/wallet 0x1F9FCc0E84dc2094499b848AE37Cd6a51db03Ff2 0xe2a3e34a63f3def2c29605de82225b79e1398190b542be917ef88a8e93ff9dc91bdc3ef9b12ed711550f6d2cbbb50671aa3f14a665b709ec391f3e603d0899a41b

web4er-ubiquibot[bot] commented 1 year ago

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

web4er commented 1 year ago

setting register-wallet-with-verification: true

web4er commented 1 year ago

should not accept wallet without signature

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

/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

/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

/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 0x16ce4d863eD687455137576da2A0cbaf4f1E8f76 0x0830f316c982a7fd4ff050c8fdc1212a8fd92f6bb42b2337b839f2b4e156f05a359ef8f4acd0b57cdedec7874a865ee07076ab2c81dc9f9de28ced55228587f81c

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

/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.
- /query: Comments the users multiplier and address
- /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

/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

/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

/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

/assign

web4er-ubiquibot[bot] commented 1 year ago

Deadline Sun, 30 Jul 2023 21:57:36 UTC
Registered Wallet Please set your wallet address to use `/wallet 0x0000...0000`
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