diff --git a/package.json b/package.json index d253c5025..c3f4ab253 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.4.13", + "version": "1.0.0", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", diff --git a/src/index.ts b/src/index.ts index 4944237dc..10eb37842 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,10 +2,14 @@ import Client712 from './sign'; import Client from './client'; import schemas from './schemas'; import utils from './utils'; +import validations from './validations'; +import voting from './voting'; export default { Client, Client712, schemas, - utils + utils, + validations, + voting }; diff --git a/src/utils.ts b/src/utils.ts index 95b34740d..1a4bd611a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,12 +8,10 @@ import addFormats from 'ajv-formats'; import Multicaller from './utils/multicaller'; import { getSnapshots } from './utils/blockfinder'; import getProvider from './utils/provider'; -import validations from './validations'; import { signMessage, getBlockNumber } from './utils/web3'; import { getHash, verify } from './sign/utils'; import gateways from './gateways.json'; import networks from './networks.json'; -import voting from './voting'; interface Options { url?: string; @@ -350,13 +348,11 @@ export default { clone, sleep, getNumberWithOrdinal, - voting, getProvider, signMessage, getBlockNumber, Multicaller, getSnapshots, - validations, getHash, verify, SNAPSHOT_SUBGRAPH_URL