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

feat: new event listener automation package #726

Merged
merged 48 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
327964e
feat: add automation package building blocks, including state machine…
FedericoAmura Nov 27, 2024
40bbafe
feat: add ids in state machines
FedericoAmura Nov 27, 2024
1f76cc6
feat: state machine creation using declarative config
FedericoAmura Nov 29, 2024
720cce3
feat: native and erc20 balances monitoring transitions declarative in…
FedericoAmura Dec 3, 2024
be62dbc
feat: add lit action run state machine capability as a state
FedericoAmura Dec 3, 2024
47cc68a
feat: give state machine ability to sign and send transactions and to…
FedericoAmura Dec 5, 2024
4b39424
feat: add machine PKP and private key handling and refactor LitAction…
FedericoAmura Dec 6, 2024
6a1b481
feat: include transitions definitions inside states definitions
FedericoAmura Dec 6, 2024
3e37a56
fix: missing change, transitions property in StateDefinition
FedericoAmura Dec 6, 2024
751b1dd
feat: refactor types
FedericoAmura Dec 6, 2024
dcf0f07
Merge branch 'refs/heads/master' into feature/lit-4031-new-listener-sdk
FedericoAmura Dec 9, 2024
06a6da5
feat: add state machine context to dynamically share information betw…
FedericoAmura Dec 11, 2024
3889f78
feat: generalize context usage to states variables
FedericoAmura Dec 12, 2024
c4786f9
feat: types improvement
FedericoAmura Dec 12, 2024
7598448
fix: queue events in transition to avoid multiple racing calls to che…
FedericoAmura Dec 12, 2024
3e12d72
fix: remove unnecessary context functions in machine
FedericoAmura Dec 12, 2024
2c26270
feat: error handling while in automation execution
FedericoAmura Dec 12, 2024
fbe2cce
feat:
FedericoAmura Dec 13, 2024
74d59c2
feat: remove unnecessary things and restore state machine context man…
FedericoAmura Dec 13, 2024
cdf0715
feat: update README.md
FedericoAmura Dec 13, 2024
a82feb2
Merge branch 'refs/heads/master' into feature/lit-4031-new-listener-sdk
FedericoAmura Dec 13, 2024
a829079
chore: fmt
FedericoAmura Dec 13, 2024
c554d2c
fix: readme timer example
FedericoAmura Dec 16, 2024
8ec1b83
feat: improve comments
FedericoAmura Dec 16, 2024
a677568
feat: improve state machine context methods types
FedericoAmura Dec 16, 2024
00435e9
fix: replace jsParams anys for unknowns
FedericoAmura Dec 16, 2024
2728414
feat: refactor state functions into Actions
FedericoAmura Dec 16, 2024
a9ee7ae
feat: update readme with new Actions concept, removed from State
FedericoAmura Dec 16, 2024
0b55dd4
fix: remove some anys in types
FedericoAmura Dec 16, 2024
0e6ac5c
feat: replace states function properties with a generic actions array
FedericoAmura Dec 17, 2024
ae7cade
feat: update readme with actions in states
FedericoAmura Dec 17, 2024
48e47e0
feat: improve types
FedericoAmura Dec 17, 2024
ddf1261
feat: improve types
FedericoAmura Dec 17, 2024
407c97e
feat: allow actions in transitions triggered when a match is found
FedericoAmura Dec 17, 2024
8cebae7
feat: readme descriptions update
FedericoAmura Dec 18, 2024
32ac3e9
Merge branch 'refs/heads/master' into feature/lit-4031-new-listener-sdk
FedericoAmura Dec 18, 2024
c4c8731
fix: log all context path check
FedericoAmura Dec 18, 2024
40f2600
fix: make contextUpdates optional
FedericoAmura Dec 18, 2024
fc570e3
feat: throw if lit action response is not successful
FedericoAmura Dec 18, 2024
c313106
feat: allow transaction definitions with data instead of populating a…
FedericoAmura Dec 18, 2024
0f4df3b
feat: increase support for evmChainIds in different types using ether…
FedericoAmura Dec 19, 2024
528bc01
feat: rename automation package to event-listener
FedericoAmura Dec 20, 2024
bc14aa5
Merge branch 'master' into feature/lit-4031-new-listener-sdk
Ansonhkg Dec 21, 2024
947367b
typo
zach-is-my-name Dec 22, 2024
026103a
feat: add machine drawings in README.md to clarify explanation
FedericoAmura Dec 23, 2024
331dc2d
feat: add reference to the open source machine running server
FedericoAmura Dec 23, 2024
8723f8b
Merge pull request #746 from zach-is-my-name/app/upstream/feature/lit…
Ansonhkg Dec 23, 2024
d4bf15a
fix: rename event-listener repo reference
FedericoAmura Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"@nx/web": "17.3.0",
"@solana/web3.js": "1.95.3",
"@types/depd": "^1.1.36",
"@types/events": "^3.0.3",
"@types/jest": "27.4.1",
"@types/node": "18.19.18",
"@types/secp256k1": "^4.0.6",
Expand Down
6 changes: 6 additions & 0 deletions packages/constants/src/lib/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ export const LIT_ERROR: Record<string, ErrorConfig> = {
code: 'transaction_error',
kind: LitErrorKind.Unexpected,
},
AUTOMATION_ERROR: {
name: 'AutomationError',
code: 'automation_error',
kind: LitErrorKind.Unexpected,
},
};

export const LIT_ERROR_CODE = {
Expand Down Expand Up @@ -292,6 +297,7 @@ const MultiError = VError.MultiError;
export { MultiError };

export const {
AutomationError,
InitError,
InvalidAccessControlConditions,
InvalidArgumentException,
Expand Down
10 changes: 10 additions & 0 deletions packages/event-listener/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"@nx/web/babel",
{
"useBuiltIns": "usage"
}
]
]
}
18 changes: 18 additions & 0 deletions packages/event-listener/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
Loading
Loading