Comparing version 0.0.0-alpha.0 to 0.0.0-alpha.1
@@ -36,3 +36,3 @@ import { Common } from "@ethereumjs/common"; | ||
nonce, | ||
gasLimit: 1000000, | ||
gasLimit: feeData.lastBaseFeePerGas?.toBigInt(), | ||
maxFeePerGas: feeData.maxFeePerGas?.toBigInt(), | ||
@@ -39,0 +39,0 @@ maxPriorityFeePerGas: feeData.maxPriorityFeePerGas?.toBigInt(), |
@@ -5,7 +5,7 @@ { | ||
"type": "module", | ||
"version": "0.0.0-alpha.0", | ||
"version": "0.0.0-alpha.1", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc" | ||
"build": "rm -rf ./dist && tsc" | ||
}, | ||
@@ -12,0 +12,0 @@ "devDependencies": { |
# NEAR Chain Abstraction Layer (NEAR-CA) | ||
NEAR-CA is a TypeScript library that provides an abstraction layer for interacting with the NEAR blockchain. It simplifies the process of performing transactions and managing accounts on NEAR and Ethereum chains. | ||
**DISCLAIMER: This should only be used for educational purposes.** | ||
NEAR-CA is a TypeScript library that provides an abstraction layer for interacting with the NEAR blockchain. It simplifies the process of performing transactions and managing accounts on NEAR and Ethereum chains. | ||
Intended to be used on server-side applications only. This works best with [Bun](https://bun.sh). | ||
## Features | ||
@@ -17,5 +21,15 @@ | ||
```bash | ||
npm i near-ca | ||
bun add near-ca | ||
``` | ||
Alternatively, | ||
```bash | ||
npm add near-ca | ||
``` | ||
```bash | ||
pnpm add near-ca | ||
``` | ||
## Usage | ||
@@ -51,2 +65,7 @@ | ||
## Examples | ||
1. [Mint NFT](./examples/mint-nft.ts) | ||
1. [Send ETH](./examples/send-eth.ts) | ||
## Configuration | ||
@@ -60,4 +79,2 @@ | ||
## Contributing | ||
Contributions are welcome! Please feel free to submit pull requests or open issues. | ||
Copy the `.env.example` file and place these values in `.env` |
@@ -61,3 +61,3 @@ import { Common } from "@ethereumjs/common"; | ||
nonce, | ||
gasLimit: 1000000, | ||
gasLimit: feeData.lastBaseFeePerGas?.toBigInt(), | ||
maxFeePerGas: feeData.maxFeePerGas?.toBigInt(), | ||
@@ -64,0 +64,0 @@ maxPriorityFeePerGas: feeData.maxPriorityFeePerGas?.toBigInt(), |
94308
19
478
77