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: update RPC abis and behavior #94

Merged
merged 16 commits into from
Nov 22, 2024

Conversation

jahabeebs
Copy link
Collaborator

@jahabeebs jahabeebs commented Nov 21, 2024

🤖 Linear

Closes GRT-230

Description

  • Updated oracle and eboRequestCreator ABIs and updated the affected functions accordingly
  • Wasn't sure what to use for data--should we just send the full prophetData obj?

@jahabeebs jahabeebs self-assigned this Nov 21, 2024
Copy link

linear bot commented Nov 21, 2024

@jahabeebs jahabeebs marked this pull request as ready for review November 22, 2024 02:03
@jahabeebs jahabeebs requested review from 0xyaco, 0xkenj1 and 0xnigir1 and removed request for 0xyaco November 22, 2024 02:04
0xyaco
0xyaco previously approved these changes Nov 22, 2024
* @throws Will throw an error if the chains array is empty or if the transaction fails.
* @returns A promise that resolves when the request is successfully created.
*/
createRequest(epoch: bigint, chains: Caip2ChainId): Promise<void>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops this was when I was using some old abi and refactoring 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this change from the protocolProvider itself too

@@ -152,13 +153,13 @@ export class ProtocolProvider implements IProtocolProvider {
address: contracts.oracle,
abi: oracleAbi,
client: this.l2WriteClient,
});
}) as GetContractReturnType<typeof oracleAbi, typeof this.l2WriteClient, Address>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this as for these contracts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, removed

private getDefaultAccessControl(): AccessControl {
return {
user: this.protocolProvider.getAccountAddress(),
data: "0x",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 0x is excellent, no need to add anything else to the data field

0xnigir1
0xnigir1 previously approved these changes Nov 22, 2024
Base automatically changed from feat/grt-229-add-service-prov-address-to-config to dev November 22, 2024 14:01
@jahabeebs jahabeebs dismissed stale reviews from 0xnigir1 and 0xyaco November 22, 2024 14:01

The base branch was changed.

@jahabeebs jahabeebs requested a review from 0xyaco November 22, 2024 17:44
@jahabeebs jahabeebs merged commit f687dc5 into dev Nov 22, 2024
6 checks passed
@jahabeebs jahabeebs deleted the feat/grt-230-update-rpc-abis-and-behavior branch November 22, 2024 17:58
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.

3 participants