Skip to content

Conversation

@whoabuddy
Copy link
Contributor

@whoabuddy whoabuddy commented Apr 10, 2025

Updating tools based on changes in #128 and aibtcdev/aibtcdev-contracts#36

Quick list:

  • fixes a few copy-pasta errors across scripts
  • adds/fixes bond processing in create and conclude proposal calls
  • pass mission and description in DB call (same thing?)
  • accept optional memo for all propose-action-* scripts (action)
  • accept optional memo for create-proposal script (core)
  • payment processor: pay-invoice split into dao/sbtc/stx variants
  • payment processor: pay-invoice-by-resource-name split into dao/sbtc/stx variants
  • added optional skip logic to deployer code
  • updated delay from 1s to 2s between contracts to prevent timeout
  • added some helpers around payment processor fetching / info
  • added helper for fetching sbtc contract depending on network (for PC)

Added a bunch of missing read-only function scripts too, a lot of these will need testing once we get a few proposals online and we can use them as needed:

  • action/core proposals: get-proposal-bond
  • action/core proposals: get-total-proposals
  • action/core proposals: get-vote-record
  • action/core proposals: get-voting-power
  • payment processor: get-cotnract-data
  • payment processor: get-invoice
  • payment processor: get-payment-address
  • payment processor: get-recent-payment-data-by-address
  • payment processor: get-recent-payment-data
  • payment processor: get-recent-payment
  • payment processor: get-resource-by-name
  • payment processor: get-resource-index
  • payment processor: get-resource
  • payment processor: get-total-invoices
  • payment processor: get-total-resources
  • payment processor: get-total-revenue
  • payment processor: get-total-users
  • payment processor: get-user-data-by-address
  • payment processor: get-user-data
  • payment processor: get-user-index

@whoabuddy
Copy link
Contributor Author

Merging this now so we can continue on #132, let's bring proposal creation, voting, and conclusion online then we can finish updating the rest.

@whoabuddy whoabuddy merged commit 8e1ff70 into main Apr 11, 2025
@whoabuddy whoabuddy deleted the fix/update-contract-tooling branch April 11, 2025 23:42
whoabuddy added a commit to aibtcdev/aibtcdev-backend that referenced this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants