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: ui integration #48

Merged
merged 25 commits into from
Aug 20, 2024
Merged

feat: ui integration #48

merged 25 commits into from
Aug 20, 2024

Conversation

0xkenj1
Copy link
Collaborator

@0xkenj1 0xkenj1 commented Aug 16, 2024

🤖 Linear

Closes ZKS-165 ZKS-170 ZKS-162 ZKS-168

Description

  • Implemented Metrics controller
  • refactor on API dto's
  • unit tests for controller
  • zkchains registry updated

Copy link

linear bot commented Aug 16, 2024

ZKS-165 Implement interceptor to serialize `bigint` as `string`

ZKS-170 Add a zkchains registry

ZKS-162 Rename gasInfo interface

Currently we have:

export type GasInfo = {
  gasPrice: bigint; // wei

  ethPrice?: number; // USD

  ethTransferGas: bigint; // units of gas

  erc20TransferGas: bigint; // units of gas
};

Suggested :

export type GasInfo = {
  gasPrice: bigint; // wei

  ethPrice?: number; // USD

  ethTransfer: bigint; // units of gas

  erc20Transfer: bigint; // units of gas
};

ZKS-168 Implement `ecosystem` and `zkchain` controllers

@0xkenj1 0xkenj1 requested a review from 0xnigir1 August 16, 2024 18:43
Comment on lines -1 to -24
/**
* RPC class representing the RPC information.
*/
export class RPC {
/**
* The URL of the RPC.
* @type {string}
* @memberof RPC
*/
url: string;

/**
* The status of the RPC (optional).
* @type {boolean}
* @memberof RPC
*/
status?: boolean;

constructor(data: RPC) {
this.url = data.url;
this.status = data.status;
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this fine to delete? Not being used, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not being used, is just string[]

Copy link
Collaborator

Choose a reason for hiding this comment

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

we could just delete this file right wdyt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lets keep it, since it has the e2e testing setup :)

@@ -13,30 +14,26 @@ export class ZKChainInfo {
* @type {ChainType}
* @memberof ZKChainInfo
*/
@ApiProperty({ enum: Chains, enumName: "ChainType" })
Copy link
Collaborator

Choose a reason for hiding this comment

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

aren't we going to leave field response example for the swagger?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i want to review swagger examples on a different pr sir

});
}
const { chainId: _metadataChainId, ...metadataRest } = metadata;
void _metadataChainId;
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can delete this line and add the eslint rule to not flag the unused var on rest params:

.eslintrc.js

        "@typescript-eslint/no-unused-vars": [
            "error",
            { argsIgnorePattern: "_+", ignoreRestSiblings: true },
        ],

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

have you tried this ? is it working, i don't see any issues with void. Actually i think is better to understand what is happening

Copy link
Collaborator

Choose a reason for hiding this comment

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

yep it works, i have to say i've never seen this void trick jajaj

0xyaco
0xyaco previously approved these changes Aug 16, 2024
0xnigir1
0xnigir1 previously approved these changes Aug 16, 2024
Copy link
Collaborator

@0xnigir1 0xnigir1 left a comment

Choose a reason for hiding this comment

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

approved ser, remember to merge first the #49 docs pr when approving it

@0xnigir1 0xnigir1 dismissed stale reviews from 0xyaco and themself via 3f1b6dd August 19, 2024 19:48
## Description

Update README

---------

Co-authored-by: 0xkenj1 <[email protected]>
@0xkenj1 0xkenj1 requested review from 0xnigir1 and 0xyaco August 20, 2024 16:33
Copy link
Collaborator

@0xyaco 0xyaco left a comment

Choose a reason for hiding this comment

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

Let's gooooo!

Copy link
Collaborator

@0xnigir1 0xnigir1 left a comment

Choose a reason for hiding this comment

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

go go go

@0xkenj1 0xkenj1 merged commit 01eba7d into dev Aug 20, 2024
6 checks passed
@0xkenj1 0xkenj1 deleted the feat/ui-integration branch August 20, 2024 18:35
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