diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be0f488d1..c79c559f6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,4 +2,4 @@ Welcome to the MessageKit community! -- See contibuting in [Docs](https://message-kit.org/contribute) +- See contributing in [Docs](https://message-kit.org/contribute) diff --git a/packages/message-kit/src/plugins/cdp.ts b/packages/message-kit/src/plugins/cdp.ts index fe5b3a192..68a675d19 100644 --- a/packages/message-kit/src/plugins/cdp.ts +++ b/packages/message-kit/src/plugins/cdp.ts @@ -59,17 +59,17 @@ export interface AgentWallet { export class WalletService implements AgentWallet { private walletStorage: LocalStorage; - private cdpEncriptionKey: string; + private cdpEncryptionKey: string; private senderAddress: string; constructor(sender: string) { this.walletStorage = new LocalStorage(".data/wallets"); - this.cdpEncriptionKey = (process.env.KEY as string).toLowerCase(); + this.cdpEncryptionKey = (process.env.KEY as string).toLowerCase(); this.senderAddress = sender.toLowerCase(); console.log( "WalletService initialized with sender", this.walletStorage, - this.cdpEncriptionKey, + this.cdpEncryptionKey, this.senderAddress, ); } @@ -79,7 +79,7 @@ export class WalletService implements AgentWallet { data = data.toLowerCase(); } const dataString = JSON.stringify(data); - const key = keccak256(toHex(this.cdpEncriptionKey)); + const key = keccak256(toHex(this.cdpEncryptionKey)); // Simple XOR encryption with the key const encrypted = Buffer.from(dataString).map( (byte, i) => byte ^ parseInt(key.slice(2 + (i % 64), 4 + (i % 64)), 16), @@ -91,7 +91,7 @@ export class WalletService implements AgentWallet { if (typeof data === "string") { data = data.toLowerCase(); } - const key = keccak256(toHex(this.cdpEncriptionKey)); + const key = keccak256(toHex(this.cdpEncryptionKey)); const encrypted = toBytes(data); const decrypted = encrypted.map( (byte, i) => byte ^ parseInt(key.slice(2 + (i % 64), 4 + (i % 64)), 16), diff --git a/templates/paymentagent/example_prompt.md b/templates/paymentagent/example_prompt.md index b3dae9990..c0198e2be 100644 --- a/templates/paymentagent/example_prompt.md +++ b/templates/paymentagent/example_prompt.md @@ -26,7 +26,7 @@ Vibe: A high-energy, risk-embracing personality from the crypto trading world. T - Converse username is: ArizonaOregon ## Commands -/fund [amount] - Fund your agent wallet. Asume its always usdc. There is no minum to fund the account. Max to top the account is 10 usdc +/fund [amount] - Fund your agent wallet. Asume its always usdc. There is no minimum to fund the account. Max to top the account is 10 usdc /transfer [recipient] [amount] - Transfer USDC to another user. /balance - Check your USDC wallet balance. /address - Check your agent wallet address/status/balance. Always assume the user is talking about its agent wallet.