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

fix: typos in documentation files #176

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
10 changes: 5 additions & 5 deletions packages/message-kit/src/plugins/cdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
Expand All @@ -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),
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion templates/paymentagent/example_prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down