Skip to content

Feature/update payment#17

Merged
99Kies merged 15 commits into
mainfrom
feature/update-payment
Apr 30, 2026
Merged

Feature/update payment#17
99Kies merged 15 commits into
mainfrom
feature/update-payment

Conversation

@99Kies
Copy link
Copy Markdown
Collaborator

@99Kies 99Kies commented Apr 10, 2026

No description provided.

99Kies added 5 commits April 8, 2026 18:17
…from create_round API

- Replace dynamic circuit selection with a single fixed circuit (9-4-3-125 prod,
  2-1-1-5 for test-circuit feature); circuit params now returned by get_maci_parameters()
- Remove max_voter from ExecuteMsg::CreateRound (registry) and CreateAmaciRound (api-saas);
  capacity enforcement is delegated to the amaci contract at signup/add_new_key time
- Add fee and delay query endpoints to amaci contract (get_message_fee, get_signup_fee,
  get_deactivate_fee, get_base_delay, get_message_delay, get_signup_delay, get_deactivate_delay)
- Add registry migrate_v0_1_6 and api-saas migration; update state and schema accordingly
- Sync TypeScript SDK clients and types to reflect API changes
- Remove stale circuit progress/fix markdown files from packages/circuits
…tibility

Introduce ROUND_FEE_CONFIG (Map<round_addr, RoundFeeConfig>) to capture
signup/message/deactivate fees at round creation time via registry events.
All proxy operations now look up the fee from this map instead of the
global SAAS_FEE_CONFIG, ensuring correct fee accounting across rounds
created under different fee regimes.

Backward compatibility: rounds with no entry fall back to legacy defaults
(signup_fee=0, message_fee=0.06 DORA, deactivate_fee=10 DORA).

SaasFeeConfig is simplified to base_fee only, as the other three fees
are now managed per-round.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maci Ready Ready Preview, Comment Apr 26, 2026 5:41am

Request Review

…key_unauthorized test_saas_full_round_signup_addnewkey_tally
…nsactions

- Replace single rpcEndpoint/restEndpoint with rpcEndpoints[]/restEndpoints[] arrays
- Wrap every contract write method in withRetry (primary-first rotation, fixed 200ms delay, 5 retries)
- Decouple broadcast from confirmation: use signAndBroadcastSync + waitForTransaction
- Add direct-path methods to Contract class (signup, addNewKey, publishMessage, publishDeactivateMessage, preAddNewKey, claim, executeWithRetry) to ensure retry coverage on all non-SAAS code paths
- Unify all maci.ts raw*/high-level methods to route through contract.ts retry wrappers
- Fast-fail on BroadcastTxError (mempool rejection); fast-fail on 4xx HTTP errors in fetchRest
- Add per-retry console.warn logs for both RPC and REST failures
- Add path-selection logs ([rawSignup], [rawDeactivate], etc.) to trace SAAS vs direct routing
…oint defaults

- Migrate default apiEndpoint to maci-graphql.dorafactory.org (mainnet) and maci-testnet-graphql.dorafactory.org (testnet)
- Replace NetworkConfig.rpcEndpoint/restEndpoint with rpcEndpoints[]/restEndpoints[] arrays; mainnet defaults to primary + archive endpoints
- Update RoundType: operator(string) → operatorAddress, identity → operator{identity}
- Update OperatorDelayType: remove nodeId, roundAddress → contractAddress
- Update DeactivateMessage: maciContractAddress → contractAddress, maciOperator → operatorAddress
- Update all GraphQL queries in round.ts / operator.ts / event.ts to match new schema
- Add test framework: unit tests (http/retry), integration tests (all 22 query methods, fully automated)
- Add sdk-tests job to CI workflow
@99Kies 99Kies merged commit 8cd6d18 into main Apr 30, 2026
7 checks passed
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.

1 participant