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

chore: migrate basename action #176

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

0xRAG
Copy link
Contributor

@0xRAG 0xRAG commented Jan 29, 2025

What changed? Why?

Migrate basename action and unit tests

Ran unit tests locally with

npx jest src/action_providers/basename/basenameActionProvider.test.ts

Tested e2e with this script:

if (require.main === module) {
  (async () => {
    const privateKey = process.env.TEST_PRIVATE_KEY as Hex;
    const account = privateKeyToAccount(privateKey);

    console.log("account address", account.address);

    const walletClient = createWalletClient({
      account,
      chain: baseSepolia,
      transport: http(),
    });

    const wallet = new ViemWalletProvider(walletClient);

    const basename = basenameActionProvider();

    try {
      const result = await basename.register(wallet, {
        amount: "0.0001",
        basename: "test-basename",
      });

      console.log(result);
    } catch (error) {
      console.log("error", error);
    }
  })();
}

Ran:

npx ts-node src/action_providers/basename/basenameActionProvider.ts

Output:

account address 0x7413bF75e0f10d72d434A38eB47a5313Ca8b213a
Successfully registered basename test-basename.basetest.eth for address 0x7413bF75e0f10d72d434A38eB47a5313Ca8b213a

Tx: https://sepolia.basescan.org/tx/0x3191676c2b63215860933b7d53b94928380b1c3d43a87f50ae7a0269a56af41a

@0xRAG 0xRAG force-pushed the chore/migrate-basename branch 4 times, most recently from dfd5416 to 87663a0 Compare January 30, 2025 17:58
@0xRAG 0xRAG force-pushed the chore/migrate-basename branch from 87663a0 to 8c0f00f Compare January 30, 2025 19:03
@John-peterson-coinbase John-peterson-coinbase merged commit c1e700d into 0.1.0-release Jan 30, 2025
18 checks passed
@John-peterson-coinbase John-peterson-coinbase deleted the chore/migrate-basename branch January 30, 2025 19:07
0xRAG added a commit that referenced this pull request Jan 31, 2025
John-peterson-coinbase added a commit that referenced this pull request Feb 1, 2025
* 0.1.0 initial scaffolding (#175)

* chore: fix lint (#177)

* chore: migrate basename action (#176)

* chore: CDP, Farcaster, ERC721 action providers (#181)

* CDP, Farcaster, ERC721 ActionProvider

* README erc721

* chore: migrate erc20 action (#182)

* 0.1.0(ts): morpho actions (#184)

* chore: migrate erc20 getBalance (#186)

* chore: fix npm scripts, linting and bump lint packages (#179)

* chore: migrate erc721 getBalance (#188)

* chore: migrate wrap eth action (#189)

* chore: langchain helper to convert actions to tools (#190)

* 0.1.0(ts): wow actions (#191)

* chore: migrate get wallet details (#192)

* 0.1.0(ts): twitter actions (#193)

* chore: eslint import order (#194)

* chore: map chainId to networkId (#196)

* chore: fix typo (#197)

* chore: migrate deploy token (#198)

* 0.1.0(ts): deploy contract (#201)

* first pass adding deploy contract cdp action

* linting

* the lost file

* tests

* 0.1.0(ts): adding eth balance to wallet details (#199)

* feat: Client side metrics (#195)

* 0.1.0(ts): deploy nft (#200)

* chore: rename typescript files and folders (#203)

* chore: split out cdp wallet and cdp api actions (#204)

* chore: migrate trade action (#208)

* twitter chatbot example (#205)

* 0.1.0(ts): farcaster example (#206)

* chore: cdpApiActionProvider usage (#211)

* chore: prefix action name (#210)

* chore: set default action provider to wallet action provider (#212)

* 0.1.0(ts): wallet native token transfer (#213)

Co-authored-by: John Peterson <[email protected]>

* fix: use prefix notation that plays nicely with langchain (#217)

* feat: support custom action provider (#214)

* 0.1.0(ts): cdp wallet provider (#218)

Co-authored-by: John Peterson <[email protected]>

* feat: CdpWalletProvider sendTransaction

* fix cdp provider config fields

* docs + dir structure refactor

* add language level readmes

* release ready!

* fix agentkit-langchain unit tests

* fix python unit test GHA poetry relative paths

* update poetry lock files

---------

Co-authored-by: Ryan Gilbert <[email protected]>
Co-authored-by: Chris Gerber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants