@snapshot-labs/snapshot.js 0.4.21 → 0.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.4.21",
3
+ "version": "0.4.22",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
package/src/networks.json CHANGED
@@ -594,6 +594,20 @@
594
594
  "explorer": "https://polygonscan.com",
595
595
  "start": 9834491,
596
596
  "logo": "ipfs://QmaGokGqgjknfa4xnXKnnwC5ZyXzUjQ7p6KEe4D8G5uFFE"
597
+ },
598
+ "188": {
599
+ "key": "188",
600
+ "name": "Bytom Sidechain",
601
+ "shortName": "BMC",
602
+ "chainId": 188,
603
+ "network": "mainnet",
604
+ "multicall": "0xDA09528B093246eC70139b657d3B7A3bd5F4C859",
605
+ "rpc": [
606
+ "https://mainnet.bmcchain.com/"
607
+ ],
608
+ "explorer": "https://bmc.blockmeta.com/",
609
+ "start": 4720651,
610
+ "logo": "ipfs://bafkreiabhsxuq35pp4kmrbptdeypd6clhcy3ue7ydpppo6onoo4igcjqia"
597
611
  },
598
612
  "246": {
599
613
  "key": "246",
package/src/sign/index.ts CHANGED
@@ -27,7 +27,9 @@ import {
27
27
  unfollowTypes,
28
28
  unsubscribeTypes,
29
29
  profileTypes,
30
- aliasTypes
30
+ aliasTypes,
31
+ deleteSpaceType,
32
+ DeleteSpace
31
33
  } from './types';
32
34
  import hubs from '../hubs.json';
33
35
 
@@ -163,4 +165,12 @@ export default class Client {
163
165
  async alias(web3: Web3Provider | Wallet, address: string, message: Alias) {
164
166
  return await this.sign(web3, address, message, aliasTypes);
165
167
  }
168
+
169
+ async deleteSpace(
170
+ web3: Web3Provider | Wallet,
171
+ address: string,
172
+ message: DeleteSpace
173
+ ) {
174
+ return await this.sign(web3, address, message, deleteSpaceType);
175
+ }
166
176
  }
@@ -30,5 +30,6 @@
30
30
  "e731b9f36a18d4ba17b453e27db4210d02a1433ae08c21f6b5ba57df6d4efcfe": "vote-string",
31
31
  "0982321a37996bab9519d2cbbed8625187ac39e6153bf5341dd66edfd25d28d4": "vote",
32
32
  "e557d7869559924326c5ab88fc19eca604694be2ff5df2e6b6443e1974b54525": "vote-array",
33
- "ed24a65f4e1c377d7d0176e51c4000506f04df0d07df7a229f9ed9e69aa0a2e0": "vote-string"
33
+ "ed24a65f4e1c377d7d0176e51c4000506f04df0d07df7a229f9ed9e69aa0a2e0": "vote-string",
34
+ "da065e5fda3eac64526deed9c44811814f470df09d3ee7037231a7249ccf2750": "delete-space"
34
35
  }
package/src/sign/types.ts CHANGED
@@ -83,6 +83,12 @@ export interface Alias {
83
83
  timestamp?: number;
84
84
  }
85
85
 
86
+ export interface DeleteSpace {
87
+ from?: string;
88
+ space: string;
89
+ timestamp?: number;
90
+ }
91
+
86
92
  export const spaceTypes = {
87
93
  Space: [
88
94
  { name: 'from', type: 'address' },
@@ -236,3 +242,10 @@ export const aliasTypes = {
236
242
  { name: 'alias', type: 'address' }
237
243
  ]
238
244
  };
245
+
246
+ export const deleteSpaceType = {
247
+ DeleteSpace: [
248
+ { name: 'from', type: 'address' },
249
+ { name: 'space', type: 'string' }
250
+ ]
251
+ };