New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@coinbase/cdp-agentkit-core

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinbase/cdp-agentkit-core - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

dist/actions/cdp/data/pyth/fetch_price_feed_id.d.ts

4

dist/actions/cdp/defi/wow/actions/buy_token.js

@@ -67,3 +67,5 @@ "use strict";

const result = await invocation.wait();
return `Purchased WoW ERC20 memecoin with transaction hash: ${result.getTransaction().getTransactionHash()}`;
return `Purchased WoW ERC20 memecoin with transaction hash: ${result
.getTransaction()
.getTransactionHash()}`;
}

@@ -70,0 +72,0 @@ catch (error) {

@@ -59,3 +59,5 @@ "use strict";

const result = await invocation.wait();
return `Created WoW ERC20 memecoin ${args.name} with symbol ${args.symbol} on network ${wallet.getNetworkId()}.\nTransaction hash for the token creation: ${result.getTransaction().getTransactionHash()}`;
return `Created WoW ERC20 memecoin ${args.name} with symbol ${args.symbol} on network ${wallet.getNetworkId()}.\nTransaction hash for the token creation: ${result
.getTransaction()
.getTransactionHash()}`;
}

@@ -62,0 +64,0 @@ catch (error) {

@@ -68,3 +68,5 @@ "use strict";

const result = await invocation.wait();
return `Sold WoW ERC20 memecoin with transaction hash: ${result.getTransaction().getTransactionHash()}`;
return `Sold WoW ERC20 memecoin with transaction hash: ${result
.getTransaction()
.getTransactionHash()}`;
}

@@ -71,0 +73,0 @@ catch (error) {

@@ -36,3 +36,7 @@ "use strict";

const result = await nftContract.wait();
return `Deployed NFT Collection ${args.name} to address ${result.getContractAddress()} on network ${wallet.getNetworkId()}.\nTransaction hash for the deployment: ${result.getTransaction().getTransactionHash()}\nTransaction link for the deployment: ${result.getTransaction().getTransactionLink()}`;
return `Deployed NFT Collection ${args.name} to address ${result.getContractAddress()} on network ${wallet.getNetworkId()}.\nTransaction hash for the deployment: ${result
.getTransaction()
.getTransactionHash()}\nTransaction link for the deployment: ${result
.getTransaction()
.getTransactionLink()}`;
}

@@ -39,0 +43,0 @@ catch (error) {

@@ -36,3 +36,5 @@ "use strict";

const result = await tokenContract.wait();
return `Deployed ERC20 token contract ${args.name} (${args.symbol}) with total supply of ${args.totalSupply} tokens at address ${result.getContractAddress()}. Transaction link: ${result.getTransaction().getTransactionLink()}`;
return `Deployed ERC20 token contract ${args.name} (${args.symbol}) with total supply of ${args.totalSupply} tokens at address ${result.getContractAddress()}. Transaction link: ${result
.getTransaction()
.getTransactionLink()}`;
}

@@ -39,0 +41,0 @@ catch (error) {

@@ -5,2 +5,3 @@ import { CdpAction, CdpActionSchemaAny } from "./cdp_action";

import { GetBalanceAction } from "./get_balance";
import { GetBalanceNftAction } from "./get_balance_nft";
import { GetWalletDetailsAction } from "./get_wallet_details";

@@ -12,2 +13,3 @@ import { MintNftAction } from "./mint_nft";

import { TransferAction } from "./transfer";
import { TransferNftAction } from "./transfer_nft";
import { WrapEthAction } from "./wrap_eth";

@@ -22,2 +24,2 @@ /**

export declare const CDP_ACTIONS: CdpAction<CdpActionSchemaAny>[];
export { CdpAction, CdpActionSchemaAny, GetWalletDetailsAction, DeployNftAction, DeployTokenAction, GetBalanceAction, MintNftAction, RegisterBasenameAction, RequestFaucetFundsAction, TradeAction, TransferAction, WrapEthAction, };
export { CdpAction, CdpActionSchemaAny, GetWalletDetailsAction, DeployNftAction, DeployTokenAction, GetBalanceAction, GetBalanceNftAction, MintNftAction, RegisterBasenameAction, RequestFaucetFundsAction, TradeAction, TransferAction, TransferNftAction, WrapEthAction, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WrapEthAction = exports.TransferAction = exports.TradeAction = exports.RequestFaucetFundsAction = exports.RegisterBasenameAction = exports.MintNftAction = exports.GetBalanceAction = exports.DeployTokenAction = exports.DeployNftAction = exports.GetWalletDetailsAction = exports.CDP_ACTIONS = void 0;
exports.WrapEthAction = exports.TransferNftAction = exports.TransferAction = exports.TradeAction = exports.RequestFaucetFundsAction = exports.RegisterBasenameAction = exports.MintNftAction = exports.GetBalanceNftAction = exports.GetBalanceAction = exports.DeployTokenAction = exports.DeployNftAction = exports.GetWalletDetailsAction = exports.CDP_ACTIONS = void 0;
exports.getAllCdpActions = getAllCdpActions;

@@ -11,2 +11,4 @@ const deploy_nft_1 = require("./deploy_nft");

Object.defineProperty(exports, "GetBalanceAction", { enumerable: true, get: function () { return get_balance_1.GetBalanceAction; } });
const get_balance_nft_1 = require("./get_balance_nft");
Object.defineProperty(exports, "GetBalanceNftAction", { enumerable: true, get: function () { return get_balance_nft_1.GetBalanceNftAction; } });
const get_wallet_details_1 = require("./get_wallet_details");

@@ -24,5 +26,8 @@ Object.defineProperty(exports, "GetWalletDetailsAction", { enumerable: true, get: function () { return get_wallet_details_1.GetWalletDetailsAction; } });

Object.defineProperty(exports, "TransferAction", { enumerable: true, get: function () { return transfer_1.TransferAction; } });
const transfer_nft_1 = require("./transfer_nft");
Object.defineProperty(exports, "TransferNftAction", { enumerable: true, get: function () { return transfer_nft_1.TransferNftAction; } });
const wrap_eth_1 = require("./wrap_eth");
Object.defineProperty(exports, "WrapEthAction", { enumerable: true, get: function () { return wrap_eth_1.WrapEthAction; } });
const wow_1 = require("./defi/wow");
const pyth_1 = require("./data/pyth");
/**

@@ -40,2 +45,3 @@ * Retrieves all CDP action instances.

new get_balance_1.GetBalanceAction(),
new get_balance_nft_1.GetBalanceNftAction(),
new mint_nft_1.MintNftAction(),

@@ -46,5 +52,6 @@ new register_basename_1.RegisterBasenameAction(),

new transfer_1.TransferAction(),
new transfer_nft_1.TransferNftAction(),
new wrap_eth_1.WrapEthAction(),
];
}
exports.CDP_ACTIONS = getAllCdpActions().concat(wow_1.WOW_ACTIONS);
exports.CDP_ACTIONS = getAllCdpActions().concat(wow_1.WOW_ACTIONS).concat(pyth_1.PYTH_ACTIONS);

@@ -40,3 +40,7 @@ "use strict";

const result = await mintInvocation.wait();
return `Minted NFT from contract ${args.contractAddress} to address ${args.destination} on network ${wallet.getNetworkId()}.\nTransaction hash for the mint: ${result.getTransaction().getTransactionHash()}\nTransaction link for the mint: ${result.getTransaction().getTransactionLink()}`;
return `Minted NFT from contract ${args.contractAddress} to address ${args.destination} on network ${wallet.getNetworkId()}.\nTransaction hash for the mint: ${result
.getTransaction()
.getTransactionHash()}\nTransaction link for the mint: ${result
.getTransaction()
.getTransactionLink()}`;
}

@@ -43,0 +47,0 @@ catch (error) {

@@ -45,3 +45,7 @@ "use strict";

const result = await tradeResult.wait();
return `Traded ${args.amount} of ${args.fromAssetId} for ${result.getToAmount()} of ${args.toAssetId}.\nTransaction hash for the trade: ${result.getTransaction().getTransactionHash()}\nTransaction link for the trade: ${result.getTransaction().getTransactionLink()}`;
return `Traded ${args.amount} of ${args.fromAssetId} for ${result.getToAmount()} of ${args.toAssetId}.\nTransaction hash for the trade: ${result
.getTransaction()
.getTransactionHash()}\nTransaction link for the trade: ${result
.getTransaction()
.getTransactionLink()}`;
}

@@ -48,0 +52,0 @@ catch (error) {

@@ -51,3 +51,3 @@ "use strict";

else if (mnemonicPhrase) {
agentkit.wallet = await coinbase_sdk_1.Wallet.import({ mnemonicPhrase: mnemonicPhrase });
agentkit.wallet = await coinbase_sdk_1.Wallet.import({ mnemonicPhrase: mnemonicPhrase }, networkId);
}

@@ -54,0 +54,0 @@ else {

{
"name": "@coinbase/cdp-agentkit-core",
"description": "CDP Agentkit core primitives",
"repository": "https://github.com/coinbase/cdp-agentkit-nodejs",
"version": "0.0.11",
"repository": "https://github.com/coinbase/agentkit",
"version": "0.0.12",
"author": "Coinbase Inc.",

@@ -10,3 +10,5 @@ "license": "Apache-2.0",

"types": "dist/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {

@@ -41,3 +43,3 @@ "build": "tsc",

"dependencies": {
"@coinbase/coinbase-sdk": "^0.13.0",
"@coinbase/coinbase-sdk": "^0.14.1",
"twitter-api-v2": "^1.18.2",

@@ -44,0 +46,0 @@ "viem": "^2.21.51",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc