Skip to content

Commit

Permalink
Fix: Add missing exports (#35)
Browse files Browse the repository at this point in the history
* fix exports

* update changelog

* fix lint

* fix tests
  • Loading branch information
josemarinas authored Dec 20, 2023
1 parent ab16b7e commit e27f775
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
6 changes: 6 additions & 0 deletions subgraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.0.2

### Fixes

- Add missing exports

## v0.0.1

### Changed
Expand Down
5 changes: 3 additions & 2 deletions subgraph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aragon/osx-commons-subgraph",
"version": "0.0.1",
"version": "0.0.2",
"description": "The Aragon OSx subgraph package containing common utilities",
"module": "index.ts",
"types": "index.ts",
Expand All @@ -16,7 +16,8 @@
},
"files": [
"/src",
"tsconfig.json"
"tsconfig.json",
"index.ts"
],
"homepage": "https://github.com/aragon/osx-commons#readme",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions subgraph/src/ids/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export * from './balance';
export * from './callbacks';
export * from './dao';
export * from './permissions';
export * from './plugin';
export * from './proposal';
export * from './transfer';
6 changes: 3 additions & 3 deletions subgraph/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './ids/dao';
export * from './ids/plugin';
export * from './ids/permissions';
export * from './ids';
export * from './mocks';
export * from './utils';
3 changes: 3 additions & 0 deletions subgraph/src/mocks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './actions';
export * from './token';
export * from './utils';
4 changes: 2 additions & 2 deletions subgraph/src/mocks/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function createTokenCalls(
tokenAddress: string,
name: string = 'Mock Token',
symbol: string = 'MT'
) {
): void {
createMockGetter(tokenAddress, 'name', 'name():(string)', [
ethereum.Value.fromString(name),
]);
Expand All @@ -40,7 +40,7 @@ export function createERC20TokenCalls(
name: string = 'Mock Token',
symbol: string = 'MT',
decimals: string = '18'
) {
): void {
createTokenCalls(tokenAddress, name, symbol);
createMockGetter(tokenAddress, 'decimals', 'decimals():(uint8)', [
ethereum.Value.fromUnsignedBigInt(BigInt.fromString(decimals)),
Expand Down
2 changes: 2 additions & 0 deletions subgraph/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './constants';
export * from './utils';

0 comments on commit e27f775

Please sign in to comment.