-
Notifications
You must be signed in to change notification settings - Fork 9
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
Signer :: Implement VET domains #839
Comments
@rodolfopietro97 I would be happy to help with the implementation. I would:
Would any of this be of any help? Btw.: Adding support in the accounts module would be the logical next step, making sure the passed account is either an address or name. |
Hi @ifavo yes good. You can add the resolution part into accounts module if you want and then call it into signer. |
@rodolfopietro97 what branch do you suggest to fork from? |
@ifavo I suggest main |
I have started a PR with this:
I have some trouble testing contract calls, I also don't see a similar test in the project, is there an alternative way to verify contract calls without executing the request? See this example: describe('resolveNames([name])', () => {
test('Should use the correct resolveUtils based on the passed thor client', async () => {
const name = 'test-sdk.vet';
jest.spyOn(thorClient.contracts, 'executeCall');
await vnsUtils.resolveName(thorClient, name);
expect(thorClient.contracts.executeCall).toHaveBeenCalledWith(
'0xc403b8EA53F707d7d4de095f0A20bC491Cf2bc94',
'function getAddresses(string[] names) returns (address[] addresses)',
[name]
);
});
}); |
After a quick chat with Rodolfo we decided to mirror ethers interfaces on Signer & Provider for the new resolveName & lookupAddress function:
|
@rodolfopietro97 I've made all changes and deployed a name service into the solo node to test vet.domains locally. I've cleaned up a few things and I believe the PR is ready, if you accept that contract interaction in detail is not tested (see comment above). The integration is still covered and secured by testing the results of the solo node interaction. To update your local solo container with the name service you'll need to run Would you approve the PR with the current changes? >> #867 |
* feat: init name lookup prototype using vet.domains * refactor: improve name resolving * test: improve test process * feat: add support for vet.domains names in clauses * refactor: improve name lookup on transaction clauses * refactor: simplify resolving process * feat: add support for vet.domains primary name lookups * refactor: improve ethers interface compatibility on provider & signer * refactor: remove duplicate definition * test: add vet.domains vns seeding to thor solo-node * test: improve testing process for vet.domains --------- Co-authored-by: Rodolfo Pietro Calabrò <[email protected]>
Implement
resolveName
function into signer and add support of end in populate call.This will. allow transaction like this:
signer.sendTransaction({ ... to: 'example.vet' })
The text was updated successfully, but these errors were encountered: