diff --git a/.changeset/soft-onions-jog.md b/.changeset/soft-onions-jog.md new file mode 100644 index 00000000..d951ab0f --- /dev/null +++ b/.changeset/soft-onions-jog.md @@ -0,0 +1,5 @@ +--- +'@demo/wallet': patch +--- + +chore: Update deps diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index be694db8..8912fa97 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -11,6 +11,7 @@ "lint": "next lint" }, "dependencies": { + "@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.23", "@bnb-chain/greenfield-js-sdk": "workspace:*", "@bnb-chain/greenfiled-file-handle": "workspace:*", "@cosmjs/encoding": "^0.29.5", diff --git a/examples/nextjs/src/components/customtx/index.tsx b/examples/nextjs/src/components/customtx/index.tsx new file mode 100644 index 00000000..6417a914 --- /dev/null +++ b/examples/nextjs/src/components/customtx/index.tsx @@ -0,0 +1,90 @@ +import { client } from '@/client'; +import { useAccount } from 'wagmi'; +import { MsgSend } from '@bnb-chain/greenfield-cosmos-types/cosmos/bank/v1beta1/tx'; +import { parseEther } from 'viem'; + +export const CustomTx = () => { + const { address } = useAccount(); + + return ( + <> +

Custome Tx

+ +
+ + + ); +}; diff --git a/examples/nextjs/src/pages/tx.tsx b/examples/nextjs/src/pages/tx.tsx index 2567e73c..d4e8c6fa 100644 --- a/examples/nextjs/src/pages/tx.tsx +++ b/examples/nextjs/src/pages/tx.tsx @@ -16,6 +16,7 @@ import { Validator } from '@/components/validator'; import { Proposal } from '@/components/proposal'; import { Distribution } from '@/components/distribution'; import { VirtualGroup } from '@/components/vg'; +import { CustomTx } from '@/components/customtx'; export default function Tx() { const isMounted = useIsMounted(); @@ -60,6 +61,9 @@ export default function Tx() {
+
+ +
)} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34ba549f..ebb0a463 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,6 +98,9 @@ importers: examples/nextjs: dependencies: + '@bnb-chain/greenfield-cosmos-types': + specifier: 0.4.0-alpha.23 + version: 0.4.0-alpha.23 '@bnb-chain/greenfield-js-sdk': specifier: workspace:* version: link:../../packages/chain-sdk