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

remove fusd #55

Merged
merged 3 commits into from
Feb 23, 2024
Merged
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: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ jobs:
NEXT_PUBLIC_TEST_NET_URL: "http://localhost:3000"
NEXT_PUBLIC_CRESCENDO_URL: "http://localhost:3000"
NEXT_PUBLIC_TOKEN_AMOUNT_FLOW: "1000.0"
NEXT_PUBLIC_TOKEN_AMOUNT_FUSD: "10.0"
NEXT_PUBLIC_CONTRACT_FUNGIBLE_TOKEN: "0xee82856bf20e2aa6"
NEXT_PUBLIC_CONTRACT_FLOW_TOKEN: "0x0ae53cb6e3f42a79"
NEXT_PUBLIC_CONTRACT_FUSD: "0xf8d6e0586b0a20c7"
NEXT_PUBLIC_NETWORK: "testnet"

strategy:
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ npm run db-seed
npm run dev-deploy-contracts
```

### Run initial transactions to initialize the FUSD minter

```sh
npm run initial-transactions
```

### Run the Next.js app

```sh
Expand Down
207 changes: 0 additions & 207 deletions cadence/contracts/FUSD.cdc

This file was deleted.

54 changes: 0 additions & 54 deletions cadence/transactions/deposit_fusd_minter.cdc

This file was deleted.

25 changes: 0 additions & 25 deletions cadence/transactions/setup_fusd_minter.cdc

This file was deleted.

24 changes: 2 additions & 22 deletions components/FundAccountFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,13 @@ import Button from "components/Button"
import Captcha from "components/Captcha"
import FormErrors from "components/FormErrors"
import {Field, useFormikContext} from "formik"
import {
FLOW_TYPE,
FUSD_TYPE,
MISSING_FUSD_VAULT_ERROR,
paths,
} from "lib/constants"
import {FLOW_TYPE, paths} from "lib/constants"
import {NETWORK_DISPLAY_NAME} from "lib/network"
import {Box, Link, Themed} from "theme-ui"
import {CustomInputComponent, CustomSelectComponent} from "./inputs"

const FUSD_VAULT_DOCS_LINK = {
url: "https://docs.onflow.org/fusd/#how-do-i-get-an-fusd-enabled-wallet",
name: "How do I get an FUSD-enabled wallet?",
}

export const TOKEN_OPTIONS = [
{value: FLOW_TYPE, label: `${NETWORK_DISPLAY_NAME} FLOW`},
{value: FUSD_TYPE, label: `${NETWORK_DISPLAY_NAME} FUSD`},
]

export default function FundAccountFields({
Expand Down Expand Up @@ -77,16 +66,7 @@ export default function FundAccountFields({
>
Fund Your Account
</Button>
{errors.length > 0 && (
<FormErrors
errors={errors}
link={
errors.some(e => e === MISSING_FUSD_VAULT_ERROR)
? FUSD_VAULT_DOCS_LINK
: undefined
}
/>
)}
{errors.length > 0 && <FormErrors errors={errors} />}
</Box>
<Box mb={5}>
<Themed.p sx={{textAlign: "center"}}>
Expand Down
2 changes: 0 additions & 2 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ NEXT_PUBLIC_TEST_NET_URL=http://localhost:3000
NEXT_PUBLIC_CRESCENDO_URL=http://localhost:3000
NEXT_PUBLIC_MIXPANEL_TOKEN="dev"
NEXT_PUBLIC_TOKEN_AMOUNT_FLOW=1000.0
NEXT_PUBLIC_TOKEN_AMOUNT_FUSD=10.0
NEXT_PUBLIC_SIGNER_ADDRESS=0xf8d6e0586b0a20c7
NEXT_PUBLIC_ACCESS_API_HOST=http://localhost:8888
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001
NEXT_PUBLIC_IS_LOCAL=true
NEXT_PUBLIC_CONTRACT_FUNGIBLE_TOKEN=0xee82856bf20e2aa6
NEXT_PUBLIC_CONTRACT_FLOW_TOKEN=0x0ae53cb6e3f42a79
NEXT_PUBLIC_CONTRACT_FUSD=0xf8d6e0586b0a20c7
NEXT_PUBLIC_GA_MEASUREMENT_ID=

SIGNER_HASH_ALGO=SHA2_256
Expand Down
8 changes: 1 addition & 7 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
}
},
"contracts": {
"FUSD": {
"source": "./cadence/contracts/FUSD.cdc",
"aliases": {
"testnet": "0xe223d8a629e49c68"
}
},
"FungibleToken": {
"source": "./cadence/contracts/FungibleToken.cdc",
"aliases": {
Expand Down Expand Up @@ -41,7 +35,7 @@
},
"deployments": {
"emulator": {
"emulator-account": ["FUSD"]
"emulator-account": []
}
}
}
Loading
Loading