-
Notifications
You must be signed in to change notification settings - Fork 332
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/dsdk 284 create CAL service loaders #6790
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
4 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, just 1 minor comment open to debate I guess, other than that π
libs/ledgerjs/packages/context-module/src/loaders/TokenLoader.ts
Outdated
Show resolved
Hide resolved
libs/ledgerjs/packages/context-module/src/loaders/TokenLoader.ts
Outdated
Show resolved
Hide resolved
a0a7bc9
to
5fe1e51
Compare
8261cc8
to
c23a6a8
Compare
5fe1e51
to
0938823
Compare
c23a6a8
to
df2bf9a
Compare
0938823
to
ecaf487
Compare
df2bf9a
to
a06bb82
Compare
a06bb82
to
2a17653
Compare
2a17653
to
9b07f9b
Compare
9b07f9b
to
e037b6a
Compare
libs/ledgerjs/packages/context-module/src/external-plugin/data/DappResponse.ts
Outdated
Show resolved
Hide resolved
libs/ledgerjs/packages/context-module/src/external-plugin/data/HttpExternalPluginDataSource.ts
Show resolved
Hide resolved
e037b6a
to
a4a577f
Compare
a4a577f
to
897203b
Compare
897203b
to
b2068c6
Compare
b2068c6
to
e546470
Compare
e546470
to
47ec609
Compare
47ec609
to
cb53f9f
Compare
ecaf487
to
550ff5f
Compare
cb53f9f
to
0bde643
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
if (!erc20OfInterest || !method || !plugin || !signature || !serializedData) { | ||
return; | ||
} | ||
|
||
const abi = dappInfos.data[0].abis?.[address]; | ||
|
||
if (!abi) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important for step 1, but I just hear from Alexis that "some contracts could not have an ABI in CAL", which would technically be possible I guess if we don't need to be looking for ERC20 addresses in the calldata π€
Just to keep in mind while we test the module if there is cases of plugin where only serializedData
& signature
would be provided π€·ββοΈ
// In Solidity, a struct cannot begin with a number | ||
// Additionally, when we use -1, it signifies the last element of the array. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
* feat(context-module): add token loader * feat(context-module): add external plugin loader
* feat(context-module): add token loader * feat(context-module): add external plugin loader
β Checklist
npx changeset
was attached.π Description
Create the
TokenLoader
andExternalPluginLoader
that will get all the metadatas used to cleasign, from the CAL backendThis ticket is for:
β Context
π§ Checklist for the PR Reviewers