Tags: arkade-os/arkd
Tags
Admin fee apis & persist fee programs (#868) * add intent fees to dbs, ports, application, interface * linting fixes * intent fees added to permissions * change default intent fees program to empty string * default intent fees program to 0.0 * remove env vars for intent fees * remove now unused function runCommandWithEnv * arkFeeManager takes fee repo * uuid for id in intent_fees table, basic unit tests for fee repo * initialze badger intent fee repo with zero values, test partial updates * rename from UpsertIntentFees to UpdateIntentFees * test against setting no intent fees * intent_fees table index on created_at, badger set defaults on startup if none exist already * context for GetIntentFees in appService, db error handling for no intent fees found * consistent arkFeeManager receiver type, clean up arkFeeManager.GetIntentFees * remove intentFees from NewService * rename GetFeesFromIntent to ComputeIntentFees, remove SelectIntentFees queries * remove intent fee endpoints from permissions, intent fee partial update test after cleared values arkfee fxn removals * arkfee return -1 on ComputeIntentFees eval error * remove IntentFeeInfo from types.go * default created_at for intent_fees tables in sqlite and postgres * default sqlite/postgres intent_fees rows creation, badger to make new intent_fee entries and not upsert * badger keys to contain date to prevent upserts * validate CEL program when updating intent fees from admin endpoint * check for modified intent fees before running Parse * proto fix * move program Parse checks from admin.go to the 3 intet_fees_repo.go files * fix in badger which fieldo to run Parse on * badger query for CreatedAt, no empty fee updates allowed, removal of ClearIntentFees from sql, auto incrementing id in dbs, AddIntentFees supports in query lastest row lookup * linter fix * modify intent_fees queries syntax * move fee program validation out of repos, allow empty values in intent_fees tables * go.mod indirect change * cleanup erroneous log * validate only set fields in admin UpdateIntentFees * Dedicated clear intent fee query, add feeManager to adminService * go.mod fix * postgres intent_fees_repo.go Close() function, explainer comment for AddIntentFees query * Clean migrations * Fix * Add cli commads * Add `fees clear` command * Lint --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
Fix and improve batch sweeping logic (#816) * handle db update without sweep tx * sweeper improvements * fix * fixes * remove unused query * fix restore watcher * several fixes * fix after reviews * fix buf.Dockerfile * revert * revert Makefile * do not stop watching scripts after sweep events * faster test * reorder tests
Split verify and combine tx in SignCommitmentTx (#803) * Improve SignCommitmentTx * renaming * fix * reuse GetPrevOutputFetcher in proof.go * Update pkg/ark-lib/txutils/utils.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: louisinger <41042567+louisinger@users.noreply.github.com> * Update pkg/ark-lib/txutils/utils.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: louisinger <41042567+louisinger@users.noreply.github.com> * fix error messages * fix --------- Signed-off-by: louisinger <41042567+louisinger@users.noreply.github.com> Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
PreviousNext