web4er / ubiquibot

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

QA: change wallet verification config to org/repo config #25

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

Current value: register-wallet-with-verification: false

web4er commented 1 year ago

should accept wallet command 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

Logger config info:

{
  "price": {
    "baseMultiplier": 1500,
    "issueCreatorMultiplier": 2000,
    "timeLabels": [
      {
        "name": "Time: <1 Hour",
        "weight": 0.125,
        "value": 3600
      },
      {
        "name": "Time: <1 Day",
        "weight": 1,
        "value": 86400
      },
      {
        "name": "Time: <1 Week",
        "weight": 2,
        "value": 604800
      },
      {
        "name": "Time: <2 Weeks",
        "weight": 3,
        "value": 1209600
      },
      {
        "name": "Time: <1 Month",
        "weight": 4,
        "value": 2592000
      }
    ],
    "priorityLabels": [
      {
        "name": "Priority: 0 (Normal)",
        "weight": 1
      },
      {
        "name": "Priority: 1 (Medium)",
        "weight": 2
      },
      {
        "name": "Priority: 2 (High)",
        "weight": 3
      },
      {
        "name": "Priority: 3 (Urgent)",
        "weight": 4
      },
      {
        "name": "Priority: 4 (Emergency)",
        "weight": 5
      }
    ],
    "commentElementPricing": {
      "text": 0.1,
      "link": 0.5,
      "list": 0.5,
      "code": 5,
      "image": 5
    }
  },
  "unassign": {
    "followUpTime": 345600000,
    "disqualifyTime": 604800000
  },
  "mode": {
    "autoPayMode": false,
    "analyticsMode": true,
    "incentiveMode": false
  },
  "log": {
    "level": "debug",
    "ingestionKey": "bb22e6c5e729b72dfb08724d408e17ca"
  },
  "wallet": {
    "registerWalletWithVerification": false
  }
}
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

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

Logger config output:

{
  "price": {
    "baseMultiplier": 1500,
    "issueCreatorMultiplier": 2000,
    "timeLabels": [
      {
        "name": "Time: <1 Hour",
        "weight": 0.125,
        "value": 3600
      },
      {
        "name": "Time: <1 Day",
        "weight": 1,
        "value": 86400
      },
      {
        "name": "Time: <1 Week",
        "weight": 2,
        "value": 604800
      },
      {
        "name": "Time: <2 Weeks",
        "weight": 3,
        "value": 1209600
      },
      {
        "name": "Time: <1 Month",
        "weight": 4,
        "value": 2592000
      }
    ],
    "priorityLabels": [
      {
        "name": "Priority: 0 (Normal)",
        "weight": 1
      },
      {
        "name": "Priority: 1 (Medium)",
        "weight": 2
      },
      {
        "name": "Priority: 2 (High)",
        "weight": 3
      },
      {
        "name": "Priority: 3 (Urgent)",
        "weight": 4
      },
      {
        "name": "Priority: 4 (Emergency)",
        "weight": 5
      }
    ],
    "commentElementPricing": {
      "text": 0.1,
      "link": 0.5,
      "list": 0.5,
      "code": 5,
      "image": 5
    }
  },
  "unassign": {
    "followUpTime": 345600000,
    "disqualifyTime": 604800000
  },
  "mode": {
    "autoPayMode": false,
    "analyticsMode": true,
    "incentiveMode": false
  },
  "log": {
    "level": "debug",
    "ingestionKey": "bb22e6c5e729b72dfb08724d408e17ca"
  },
  "wallet": {
    "registerWalletWithVerification": true
  }
}
web4er commented 1 year ago

should accept wallet with correct signature

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

should not accept wallet with incorrect signature

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