Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chain] Remove execute success #894

Merged
merged 21 commits into from
May 20, 2024
Merged

Conversation

wlawt
Copy link
Contributor

@wlawt wlawt commented May 9, 2024

When an Action returns an err, it is considered unsuccessful (not fatal).

@patrick-ogrady patrick-ogrady changed the title [chain] remove action err [chain] Remove execute success May 20, 2024
@patrick-ogrady patrick-ogrady merged commit b67c5f0 into multi-action-support May 20, 2024
23 of 24 checks passed
@patrick-ogrady patrick-ogrady deleted the remove-action-err branch May 20, 2024 23:07
patrick-ogrady added a commit that referenced this pull request May 22, 2024
* add generic

* emap passes

* eheap passes

* fix tokenvm orderbook

* intro ActionID

* intro max actions

* enforce max actions + loop thru statekeys

* fix some tx errors

* fix builder errors

* fix processor errors

* fix more tx errors

* fix client rpc error

* fix morpheus transfer action

* fix more morpheus

* morpheusVM compiles

* fix mock gen

* fix morpheus static lint

* fix lint and function signatures

* fix rpc GenerateTx

* import chain into morpheus actions

* more lints

* marhsal unmarshal Actions

* totalUnits fees.Add

* fix invalid signature

* fix some tx fees and packing bytes

* check maxActions earlier

* morpheus integration passes

* make action.Execute use actionID

* intro codec.ActionID

* fix tokenvm

* tokevnm integration errors

* fix tokenvm integration error

* tokenvm integration passes

* create long ID

* fix token-cli lint

* fix token fauct and feed lint

* introduce multiple result.Outputs and morpheus integration passes

* tokenvm integration passes using multiple result.Outputs

* increase maxActions for tokenvm to 2

* add multiple transfers in 1 tx

* add create and mint multiple assets

* add multiple trades

* add failed fill order

* address lints

* add hrp param to LIDFromString

* fix x/programs lint

* getmaxactionspertx should be uint8

* update readme

* self review

* fix rust ci

* make get action id a helper

* move GetMaxActionsPerTx

* add MaxOutputsPerAction

* actions instead of action

* do sponsorkeys after action iteration

* add action idx and type to ErrActionNotActivated

* dont override prev outputs in handleRevert

* skip all if one action is failed, do fee comp at the end, refund once

* introduce LIDLen

* fix type alias

* use PackLID

* use codec.LIDLen

* EstimateMaxUnits over all actions

* revert is populated in last output of last action

* fix action Size

* fix LID to and from String

* make EmptyAddress const more generic

* if not successful error is last output in last action

* add comments in transaction

* fix mock gen

* fix rust ci

* [chain] fix result size (#889)

* include r.Outputs size in calculation above

* fix packing of Outputs for each Action

* [chain] Remove execute success (#894)

* remove err from Action

* mock gen

* add more TODOs

* add context on why revert is better

* add back error

* cleanup interface

* cleanup tx loop

* update error marshaling

* update transfer op

* cleaning up access

* finish tokenvm

* update mocks

* fix programs

* update create order

* cleanup cmd program

* backend.go compiles

* more cleanup

* morpheusvm integration passing

* fix tokenvm integration

* add nolint

* require lint

---------

Co-authored-by: Patrick O'Grady <prohb125@gmail.com>

* remove trailing enter

* revert `codec.LID` (#920)

* remove LID definition

* remove optional packer

* update cli

* update heap

* eheap + emap

* making progress on morpheusvm

* cleanup load test error

* tokenvm actions

* update token-cli

* update token-feed + token-faucet

* update token-wallet

* more progress in tokenvm

* update token storage

* use id const

* update programs

* unit tests passing

* remove consts form simulator

* fix lint

* pass integration tests

* integration test passing

* reduce size of digest

* fix load test

* e2e lint

* reuse nodes

* reuse nodes

* fix lint

* run gci

* multi-action nits (#922)

* add key validity check to Keys set

* cleanup state key validity checking

* reviewed chain/transaction

* cli changes

* add multi-send example to morpheus

* cleanup tokenvm

* remove heap casting

* fix program execute

* fix return

* cleanup var names

* unify error

* update fetcher tests

* remove unnecessary conversion

* update programs code

* update action batches section

---------

Co-authored-by: Patrick O'Grady <prohb125@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants