Skip to content

Commit

Permalink
feat: update beta-4 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizstacio authored Oct 5, 2023
1 parent 6b50156 commit 4e1a79a
Show file tree
Hide file tree
Showing 10 changed files with 222 additions and 100 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- "helm/fuel-explorer/Chart.yaml"
- 'helm/fuel-explorer/Chart.yaml'

permissions:
contents: read
Expand Down Expand Up @@ -33,4 +33,4 @@ jobs:
username: ${{ github.repository_owner }}
access-token: ${{ secrets.GITHUB_TOKEN }}
force: true
chart-folder: ./helm/fuel-explorer
chart-folder: ./helm/fuel-explorer
3 changes: 2 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- uses: FuelLabs/github-actions/setups/node@master

- name: Run Audit
run: pnpm audit --prod
# temporally avoid low severity vulnerabilities
run: pnpm audit --prod --audit-level high

lint-and-test:
name: Lint
Expand Down
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ storybook
**/storybook/**
storybook-static
**/storybook-static/**
**/public/ui/**
**/public/storybook/**
.turbo
pnpm-lock.yaml
.next
graphql.schema.json
heml
helm
packages/graphql/src/schemas/*.graphql
4 changes: 1 addition & 3 deletions packages/app/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
FUEL_PROVIDER_URL=http://beta-4.fuel.network/graphql


FUEL_PROVIDER_URL=https://beta-4.fuel.network/graphql
3 changes: 1 addition & 2 deletions packages/app/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
FUEL_PROVIDER_URL=http://beta-3.fuel.network/graphql

FUEL_PROVIDER_URL=https://beta-4.fuel.network/graphql
3 changes: 1 addition & 2 deletions packages/graphql/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
FUEL_PROVIDER_URL=http://beta-3.fuel.network/graphql

FUEL_PROVIDER_URL=https://beta-4.fuel.network/graphql
2 changes: 1 addition & 1 deletion packages/graphql/codegen.fuel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config: CodegenConfig = {
generates: {
'./src/schemas/fuelcore.graphql': {
schema:
process.env.FUEL_PROVIDER_URL || 'http://beta-3.fuel.network/graphql',
process.env.FUEL_PROVIDER_URL || 'http://beta-4.fuel.network/graphql',
plugins: ['schema-ast'],
config: {
includeDirectives: true,
Expand Down
12 changes: 0 additions & 12 deletions packages/graphql/src/domains/Output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
CoinOutput,
ContractCreated,
ContractOutput,
MessageOutput,
TransactionItemFragment,
VariableOutput,
} from '../generated/types';
Expand All @@ -20,7 +19,6 @@ export class OutputDomain {
return [
...this.coinOutputs,
...this.contractOutputs,
...this.messageOutputs,
...this.changeOutputs,
...this.variableOutputs,
...this.contractCreatedOutputs,
Expand All @@ -47,16 +45,6 @@ export class OutputDomain {
});
}

get messageOutputs() {
const outputs = this._filterByTypename<MessageOutput>('MessageOutput');
const entries = Object.entries(groupBy(outputs, (i) => i.recipient));
return entries.map(([recipient, outputs]) => {
const type = outputs[0].__typename;
const totalAmount = this._getTotalAmount(outputs);
return { recipient, type, outputs, totalAmount };
});
}

get changeOutputs() {
const outputs = this._filterByTypename<ChangeOutput>('ChangeOutput');
const entries = Object.entries(groupBy(outputs, (i) => i.assetId));
Expand Down
4 changes: 0 additions & 4 deletions packages/graphql/src/queries/tx-fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ fragment TransactionOutput on Output {
... on ContractOutput {
inputIndex
}
... on MessageOutput {
recipient
amount
}
... on ChangeOutput {
to
amount
Expand Down
Loading

0 comments on commit 4e1a79a

Please sign in to comment.