Skip to content

Commit

Permalink
use treasury
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyangg committed Oct 16, 2024
1 parent c264873 commit 27cba29
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 52 deletions.
86 changes: 43 additions & 43 deletions web-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@burnt-labs/abstraxion": "^1.0.0-alpha.49",
"@burnt-labs/abstraxion": "^1.0.0-alpha.50",
"graphql": "^16.9.0",
"next": "14.2.13",
"react": "^18",
Expand Down
8 changes: 4 additions & 4 deletions web-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {AbstraxionProvider} from "@burnt-labs/abstraxion";

import "@burnt-labs/abstraxion/dist/index.css";
import "@burnt-labs/ui/dist/index.css";
// import { CONTRACTS_ARRAY, TREASURY } from '@/utils/constants';
import { CONTRACTS_ARRAY } from '@/utils/constants';
import { TREASURY } from '@/utils/constants';
// import { CONTRACTS_ARRAY } from '@/utils/constants';

const inter = Inter({ subsets: ['latin'] })

Expand All @@ -18,8 +18,8 @@ export default function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
{/* <AbstraxionProvider config={{ ...TREASURY }} > */}
<AbstraxionProvider config={{ contracts: CONTRACTS_ARRAY }} >
<AbstraxionProvider config={{ ...TREASURY }} >
{/* <AbstraxionProvider config={{ contracts: CONTRACTS_ARRAY }} > */}
{children}
</AbstraxionProvider>
</body>
Expand Down
5 changes: 3 additions & 2 deletions web-app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Button } from "@burnt-labs/ui";
import { useEffect, useState } from "react";
import type { ExecuteResult } from "@cosmjs/cosmwasm-stargate";
import { CONTRACTS, POTATO_ID } from "@/utils/constants";
import { CONTRACTS, POTATO_ID, TREASURY } from "@/utils/constants";
import type {GranteeSignerClient} from "@burnt-labs/abstraxion-core"

type ExecuteResultOrUndefined = ExecuteResult | string | undefined;
Expand All @@ -21,8 +21,9 @@ async function write(client: GranteeSignerClient | undefined, msg: unknown, send
contract,
msg,
{
amount: [{ amount: "0", denom: "uxion" }],
amount: [{ amount: "1", denom: "uxion" }],
gas: "500000",
granter: TREASURY.treasury
},
"",
[]
Expand Down
4 changes: 2 additions & 2 deletions web-app/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const CONTRACTS = {
}

export const TREASURY = {
treasury: 'xion1gqwtme9ekrrn3vqny352hs22vslx8ea7wuy557lwyjaallqeda9s5ld60e'
treasury: 'xion1j8mjkqff28eg8eyhut3yczyhhg4mzg6ss0e22mvpdamc4mmw4pmqtkufgu'
}

export const CONTRACTS_ARRAY = Object.values(CONTRACTS)
Expand All @@ -13,4 +13,4 @@ export const CHAIN_ID = 'xion-testnet-1'

export const EXPLORER = `https://explorer.burnt.com/${CHAIN_ID}`

export const POTATO_ID = 121212;
export const POTATO_ID = "11233";

0 comments on commit 27cba29

Please sign in to comment.