Skip to content

Commit

Permalink
ops: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Santos committed Jul 1, 2022
1 parent 5204c03 commit fc91ed0
Show file tree
Hide file tree
Showing 18 changed files with 211 additions and 499 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
README.md
*.md
*.mdx
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid"
}
4 changes: 2 additions & 2 deletions cmds/login.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fcl from "@onflow/fcl"
import {yup, nope, serviceOfType} from "../util"
import { yup, nope, serviceOfType } from "../util"

export const LABEL = "Log In"
export const CMD = async () => {
Expand All @@ -20,7 +20,7 @@ export const CMD = async () => {
const verified = await fcl.AppUtils.verifyAccountProof(
"Awesome App (v0.0)",
accountProofService.data,
{fclCryptoContract}
{ fclCryptoContract }
)
console.log("verified client:", verified)

Expand Down
2 changes: 1 addition & 1 deletion cmds/logout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {unauthenticate} from "@onflow/fcl"
import { unauthenticate } from "@onflow/fcl"

export const LABEL = "Log Out"
export const CMD = unauthenticate
4 changes: 2 additions & 2 deletions cmds/m1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mutate} from "@onflow/fcl"
import {yup, nope} from "../util"
import { mutate } from "@onflow/fcl"
import { yup, nope } from "../util"

export const LABEL = "Mutate 1 (no args)"
export const CMD = async () => {
Expand Down
4 changes: 2 additions & 2 deletions cmds/m2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mutate} from "@onflow/fcl"
import {yup, nope} from "../util"
import { mutate } from "@onflow/fcl"
import { yup, nope } from "../util"

export const LABEL = "Mutate 2 (args)"
export const CMD = async () => {
Expand Down
4 changes: 2 additions & 2 deletions cmds/q1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {query} from "@onflow/fcl"
import {yup, nope} from "../util"
import { query } from "@onflow/fcl"
import { yup, nope } from "../util"

export const LABEL = "Query 1 (no args)"
export const CMD = async () => {
Expand Down
4 changes: 2 additions & 2 deletions cmds/q2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {query} from "@onflow/fcl"
import {yup, nope} from "../util"
import { query } from "@onflow/fcl"
import { yup, nope } from "../util"

export const LABEL = "Query 2 (args)"
export const CMD = async () => {
Expand Down
6 changes: 3 additions & 3 deletions cmds/us1.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {currentUser} from "@onflow/fcl"
import {Buffer} from "buffer"
import {yup, nope} from "../util"
import { currentUser } from "@onflow/fcl"
import { Buffer } from "buffer"
import { yup, nope } from "../util"

export const LABEL = "User Sign 1 (No Verification)"
export const CMD = async () => {
Expand Down
2 changes: 1 addition & 1 deletion cmds/us2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fcl from "@onflow/fcl"
import {Buffer} from "buffer"
import { Buffer } from "buffer"

const toHexStr = str => {
return Buffer.from(str).toString("hex")
Expand Down
10 changes: 5 additions & 5 deletions flow/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as fcl from "@onflow/fcl"
import getConfig from "next/config"

const USE_LOCAL = true
const USE_LOCAL = false
const resolver = async () => ({
appIdentifier: "Awesome App (v0.0)",
nonce: "3037366134636339643564623330316636626239323161663465346131393662",
})
const {publicRuntimeConfig} = getConfig()
const { publicRuntimeConfig } = getConfig()

const FCL_CRYPTO_CONTRACT_ADDR =
process.env.NEXT_PUBLIC_FCL_CRYPTO_CONTRACT ||
Expand Down Expand Up @@ -43,15 +43,15 @@ if (USE_LOCAL) {
fcl
.config()
.put("logger.level", 2)
// testnet
// testnet
.put("flow.network", "testnet")
.put("accessNode.api", "https://rest-testnet.onflow.org")
// grpc: https://access-testnet.onflow.org
.put("discovery.wallet", "https://fcl-discovery.onflow.org/testnet/authn")
// mainnet
// .put("env", "mainnet")
// .put("flow.network", "mainnet")
// .put("discovery.wallet", "https://fcl-discovery.onflow.org/authn")
// .put("accessNode.api", "https://rest-mainnet.onflow.org")
// .put("discovery.wallet", "https://fcl-discovery.onflow.org/authn")
// Discovery API
// .put("discovery.authn.include", ["0x9d2e44203cb13051"])
// .put("discovery.authn.endpoint", "https://fcl-discovery.onflow.org/api/testnet/authn")
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useState, useEffect} from "react"
import { useState, useEffect } from "react"
import * as fcl from "@onflow/fcl"

export default function useConfig() {
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-current-user.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useState, useEffect} from "react"
import { useState, useEffect } from "react"
import * as fcl from "@onflow/fcl"

export default function useCurrentUser() {
Expand Down
Loading

0 comments on commit fc91ed0

Please sign in to comment.