@coinbase/cdp-agentkit-core
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -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", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
161378
69
4356
1
0
3
+ Added@coinbase/coinbase-sdk@0.14.1(transitive)
+ Addedtwitter-api-v2@1.19.1(transitive)
+ Addedviem@2.22.22(transitive)
- Removed@coinbase/coinbase-sdk@0.13.0(transitive)
- Removedtwitter-api-v2@1.19.0(transitive)
- Removedviem@2.22.17(transitive)