From 049a64f911e763d5df8aca0f34b0072fd0fcf093 Mon Sep 17 00:00:00 2001 From: mktcode Date: Wed, 3 Aug 2022 10:33:00 +0200 Subject: [PATCH 1/3] moved voting from utils to top level --- src/index.ts | 4 +++- src/utils.ts | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4944237dc..b3567f1e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,10 +2,12 @@ import Client712 from './sign'; import Client from './client'; import schemas from './schemas'; import utils from './utils'; +import voting from './voting'; export default { Client, Client712, schemas, - utils + utils, + voting }; diff --git a/src/utils.ts b/src/utils.ts index 95b34740d..8ee46fefa 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -13,7 +13,6 @@ 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,7 +349,6 @@ export default { clone, sleep, getNumberWithOrdinal, - voting, getProvider, signMessage, getBlockNumber, From 2969e5e3da1c0a464052627c7054c98eda987482 Mon Sep 17 00:00:00 2001 From: mktcode Date: Wed, 3 Aug 2022 10:43:09 +0200 Subject: [PATCH 2/3] moved validations from utils to top level --- src/index.ts | 2 ++ src/utils.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index b3567f1e0..10eb37842 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ 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 { @@ -9,5 +10,6 @@ export default { Client712, schemas, utils, + validations, voting }; diff --git a/src/utils.ts b/src/utils.ts index 8ee46fefa..1a4bd611a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,7 +8,6 @@ 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'; @@ -354,7 +353,6 @@ export default { getBlockNumber, Multicaller, getSnapshots, - validations, getHash, verify, SNAPSHOT_SUBGRAPH_URL From 5806a97c804ce096f09facac36507c418865aece Mon Sep 17 00:00:00 2001 From: mktcode Date: Wed, 3 Aug 2022 11:34:38 +0200 Subject: [PATCH 3/3] bump version number to 1.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",