Skip to content

Commit

Permalink
style: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Oct 12, 2023
1 parent 5d75e86 commit 2987697
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 24 deletions.
17 changes: 9 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ about: Create a bug report to help us
title: 'Bug: <add-text-here>'
labels: bug
assignees: ''

---

**Describe the bug**
A short summary of what the bug is. Please be clear and concise.

**To Reproduce (please complete the following information)**

- Config and flags: [e.g. variable="xyz"]
- Steps to reproduce the behavior:
1. node '...'
2. make request with '....'
3. '...'
4. See error
1. node '...'
2. make request with '....'
3. '...'
4. See error

**Current behavior**
In depth explanation, if required, or a clear and concise description of what actually happens.
Expand All @@ -25,9 +25,10 @@ In depth explanation, if required, or a clear and concise description of what ac
A clear and concise description of what you expected to happen.

**System (please complete the following information):**
- OS: [e.g. Fedora 35]
- Software version [e.g. Docker 8, Node 14.19.1]
- Commit hash [e.g. e84617d]

- OS: [e.g. Fedora 35]
- Software version [e.g. Docker 8, Node 14.19.1]
- Commit hash [e.g. e84617d]

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion contracts/test/plugin/membership/membership.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO
// TODO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO
// TODO
2 changes: 1 addition & 1 deletion contracts/test/plugin/proposal/proposal.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO
// TODO
2 changes: 1 addition & 1 deletion contracts/test/utils/bitmap.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO
// TODO
8 changes: 4 additions & 4 deletions subgraph/src/ids/pluginRepo.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {PERMISSION_OPERATIONS} from '../utils/constants';
import {
Address,
ByteArray,
Bytes,
crypto,
ethereum
ethereum,
} from '@graphprotocol/graph-ts';
import {PERMISSION_OPERATIONS} from '../utils/constants';

/**
* Generates the plugin repository's ID using its address in hexadecimal format.
Expand Down Expand Up @@ -102,7 +102,7 @@ export function getPluginVersionId(
const ids = [
getPluginRepoId(pluginRepo),
release.toString(),
build.toString()
build.toString(),
];
return ids.join('_');
}
Expand Down Expand Up @@ -130,7 +130,7 @@ export function getPluginPermissionId(
operationId,
where.toHexString(),
who.toHexString(),
permissionId.toHexString()
permissionId.toHexString(),
];

return ids.join('_');
Expand Down
6 changes: 3 additions & 3 deletions subgraph/tests/ids/dao.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {Address} from '@graphprotocol/graph-ts';
import {getDaoId} from '../../src';
import {ADDRESS_ONE} from '../constants';
import {Address} from '@graphprotocol/graph-ts';
import {
afterAll,
assert,
beforeAll,
describe,
test
test,
} from 'matchstick-as/assembly/index';
import {ADDRESS_ONE} from '../constants';

// Tests structure (matchstick-as >=0.5.0)
// https://thegraph.com/docs/en/developer/matchstick/#tests-structure-0-5-0
Expand Down
10 changes: 5 additions & 5 deletions subgraph/tests/ids/pluginRepo.test.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import {Address, Bytes, crypto} from '@graphprotocol/graph-ts';
import {assert, describe, log, test} from 'matchstick-as/assembly/index';
import {
getPluginRepoId,
getPluginSetupId,
getPluginInstallationId,
getPluginPreparationId,
getPluginReleaseId,
getPluginVersionId,
getPluginPermissionId
getPluginPermissionId,
} from '../../src';
import {PERMISSION_OPERATIONS} from '../../src/utils/constants';
import {
ADDRESS_ONE,
ADDRESS_TWO,
DUMMY_BYTES32_HEX,
DUMMY_INSTALLATION_ID
DUMMY_INSTALLATION_ID,
} from '../constants';
import {PERMISSION_OPERATIONS} from '../../src/utils/constants';
import {Address, Bytes, crypto} from '@graphprotocol/graph-ts';
import {assert, describe, log, test} from 'matchstick-as/assembly/index';

describe('PluginRepo ID generation', () => {
test('`getPluginRepoId` should return the hexadecimal representation of the provided address', () => {
Expand Down

0 comments on commit 2987697

Please sign in to comment.