8000 added API function aliases (chainConfig, chainConfigAt) by kjeom · Pull Request #1731 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

added API function aliases (chainConfig, chainConfigAt) #1731

Merged
merged 5 commits into from
Dec 2, 2022

Conversation

kjeom
Copy link
@kjeom kjeom commented Nov 29, 2022

Proposed changes

  • The API function (chainConfig, chainConfigAt) from governance namespace have been copied to klay namespace for aliases.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

…e have been moved to klay namespace as well
new web3._extend.Method({
name: 'chainConfig',
call: 'klay_chainConfig',
params: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since governance.chainConfig is a property, not a function, I think we should implement this as a property.

Copy link
Author

Choose a reason for hiding this comment

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

Right Thanks!

ian0371
ian0371 previously approved these changes Nov 29, 2022
@blukat29
Copy link
Contributor
blukat29 commented Nov 29, 2022

@kjeom @ian0371 Let's provide more governance APIs in klay_ namespace.
Please tick the checkboxes below if you think it should be aliased in klay_ namespace.

  • governance_vote
  • governance_showTally
  • governance_totalVotingPower
  • governance_myVotingPower
  • governance_myVotes
  • governance_chainConfig = klay_chainConfig
  • governance_chainConfigAt = klay_chainConfigAt
  • governance_nodeAddress = klay_nodeAddress
  • governance_itemsAt = klay_govParamsAt
  • governance_pendingChanges
  • governance_votes
  • governance_idxCache
  • governance_idxCacheFromDb
  • governance_itemCacheFromDb
  • governance_getStakingInfo = klay_getStakingInfo

@kjeom kjeom merged commit 214abfc into klaytn:dev Dec 2, 2022
@blukat29 blukat29 added this to the v1.10 (Kore) milestone Dec 6, 2022
@blukat29 blukat29 mentioned this pull request Dec 15, 2022
31 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0