Skip to content

Commit

Permalink
feat: support greenfield chain in bnb plugin (#1)
Browse files Browse the repository at this point in the history
* feat: add plugin-bsc

* update action response

* add check of ERC20 token decimals

* add faucet action

* add staking action

* feat: Deploy ERC20 / ERC721 / ERC1155 contract

* chore: DeployAction

* chore: DeployAction

* fix review comments

* feat: Replace ethers with viem

* add support for web3 name service

* fix review comments

* remove testnet rpc env settings

* fix getBalance action

* feat: Using openzeppelin contract template

* chore: Rename variable name

* update README.md

* feat: init plugin-bsc (#2)

* chore: Add gnfd js sdk package

* fix address issue

* add validateAndNormalizeParams

* fix some errors and add debug logs

* update action examples

* fix action examples

* fix bridge action

* feat: Greenfield action

* feat: Greenfield action

* update bridge action's example and template

* chore: Esm module using cjs

* feat: Add Bnb Transfer to gnfd action

* feat: Gnfd Env

* feat: Response friendly

* feat: Update transfer bnb to gnfd template

* feat: Template support cross chain transfer

---------

Co-authored-by: Roshan <[email protected]>
Co-authored-by: Keefe Liu <[email protected]>
Co-authored-by: keefel <[email protected]>
Co-authored-by: Roshan <[email protected]>
  • Loading branch information
5 people authored Feb 21, 2025
1 parent 6bc3d6e commit 029a163
Show file tree
Hide file tree
Showing 12 changed files with 2,224 additions and 135 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ BNB_PRIVATE_KEY= # BNB chain private key
BNB_PUBLIC_KEY= # BNB-smart-chain public key (address)
BSC_PROVIDER_URL= # BNB-smart-chain rpc url
OPBNB_PROVIDER_URL= # OPBNB rpc url
GREENFIELD_NETWORK= # Greenfield network: `MAINNET` or `TESTNET`

####################################
#### Misc Plugin Configurations ####
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-bnb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"type": "module",
"types": "dist/index.d.ts",
"dependencies": {
"@bnb-chain/greenfield-js-sdk": "^2.2.0",
"@elizaos/core": "workspace:*",
"@lifi/data-types": "5.15.5",
"@lifi/sdk": "3.4.1",
"@lifi/types": "16.3.0",
"@web3-name-sdk/core": "^0.3.2",
"@openzeppelin/contracts": "^5.1.0",
"@types/node": "^22.10.5",
"mime-types": "^2.1.35",
"solc": "^0.8.28",
"tsup": "8.3.5",
"viem": "2.21.53",
Expand All @@ -24,6 +26,7 @@
"lint": "eslint --fix --cache ."
},
"peerDependencies": {
"whatwg-url": "7.1.0"
"whatwg-url": "7.1.0",
"@types/mime-types": "^2.1.4"
}
}
Loading

0 comments on commit 029a163

Please sign in to comment.