@mento-protocol/mento-sdk 0.2.0 → 0.2.1

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.
@@ -1,5 +1,5 @@
1
- import { PopulatedTransaction, ethers, providers } from "ethers";
2
- import { IChainClient } from "./types";
1
+ import { PopulatedTransaction, ethers, providers } from 'ethers';
2
+ import { IChainClient } from './types';
3
3
  export declare class ChainClient implements IChainClient {
4
4
  private readonly signerOrProvider;
5
5
  constructor(signerOrProvider: ethers.Signer | providers.Provider);
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "42220": {
3
+ "GovernanceFactory": "",
3
4
  "Airgrab": "",
4
5
  "Emission": "",
5
6
  "MentoGovernor": "",
@@ -8,6 +9,7 @@
8
9
  "Locking": ""
9
10
  },
10
11
  "62320": {
12
+ "GovernanceFactory": "0x77645271665AdDF195202dEf1ad3cA678B442411",
11
13
  "Airgrab": "0x349aa8910577A6fE16cA7b98b5A135d14CE4dF9f",
12
14
  "Emission": "0xcd427DDB27D835E5353312e7897bb9ad35F0E214",
13
15
  "MentoGovernor": "0x5dFE8CC7743C636a86bED8F8d0de982d502E22fC",
@@ -16,6 +18,7 @@
16
18
  "Locking": "0x831DAfC0912e1c2aBa2Da90668c0856d48a8C06b"
17
19
  },
18
20
  "44787": {
21
+ "GovernanceFactory": "0xD4079B322c392D6b196f90AA4c439fC2C16d6770",
19
22
  "Airgrab": "0x281fA47f59456fA04DF699539fA4b1F25e7769A3",
20
23
  "Emission": "0x8D1267bFf3f8166AEB2B58217b74188d1fe326f3",
21
24
  "MentoGovernor": "0x84382a356c1Dc6ada21997E64dc72e5a7AcF5826",
@@ -1,3 +1,4 @@
1
1
  export * from './mento';
2
2
  export * from './governance';
3
3
  export * from './utils';
4
+ export { ContractAddresses } from './types';
@@ -1,4 +1,4 @@
1
- import { ethers, providers } from "ethers";
1
+ import { ethers, providers } from 'ethers';
2
2
  export type Address = string;
3
3
  export interface TradingLimit {
4
4
  asset: Address;
@@ -25,6 +25,7 @@ export interface ContractAddressMap {
25
25
  [chainId: string]: ContractAddresses;
26
26
  }
27
27
  export interface ContractAddresses {
28
+ GovernanceFactory: string;
28
29
  Airgrab: string;
29
30
  Emission: string;
30
31
  MentoGovernor: string;
@@ -1,5 +1,5 @@
1
- import { PopulatedTransaction, ethers, providers } from "ethers";
2
- import { IChainClient } from "./types";
1
+ import { PopulatedTransaction, ethers, providers } from 'ethers';
2
+ import { IChainClient } from './types';
3
3
  export declare class ChainClient implements IChainClient {
4
4
  private readonly signerOrProvider;
5
5
  constructor(signerOrProvider: ethers.Signer | providers.Provider);
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Signer, providers } from "ethers";
11
- import { validateSignerOrProvider } from "./utils";
10
+ import { Signer, providers } from 'ethers';
11
+ import { validateSignerOrProvider } from './utils';
12
12
  export class ChainClient {
13
13
  constructor(signerOrProvider) {
14
14
  validateSignerOrProvider(signerOrProvider);
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "42220": {
3
+ "GovernanceFactory": "",
3
4
  "Airgrab": "",
4
5
  "Emission": "",
5
6
  "MentoGovernor": "",
@@ -8,6 +9,7 @@
8
9
  "Locking": ""
9
10
  },
10
11
  "62320": {
12
+ "GovernanceFactory": "0x77645271665AdDF195202dEf1ad3cA678B442411",
11
13
  "Airgrab": "0x349aa8910577A6fE16cA7b98b5A135d14CE4dF9f",
12
14
  "Emission": "0xcd427DDB27D835E5353312e7897bb9ad35F0E214",
13
15
  "MentoGovernor": "0x5dFE8CC7743C636a86bED8F8d0de982d502E22fC",
@@ -16,6 +18,7 @@
16
18
  "Locking": "0x831DAfC0912e1c2aBa2Da90668c0856d48a8C06b"
17
19
  },
18
20
  "44787": {
21
+ "GovernanceFactory": "0xD4079B322c392D6b196f90AA4c439fC2C16d6770",
19
22
  "Airgrab": "0x281fA47f59456fA04DF699539fA4b1F25e7769A3",
20
23
  "Emission": "0x8D1267bFf3f8166AEB2B58217b74188d1fe326f3",
21
24
  "MentoGovernor": "0x84382a356c1Dc6ada21997E64dc72e5a7AcF5826",
@@ -1,3 +1,4 @@
1
1
  export * from './mento';
2
2
  export * from './governance';
3
3
  export * from './utils';
4
+ export { ContractAddresses } from './types';
@@ -1,4 +1,4 @@
1
- import { ethers, providers } from "ethers";
1
+ import { ethers, providers } from 'ethers';
2
2
  export type Address = string;
3
3
  export interface TradingLimit {
4
4
  asset: Address;
@@ -25,6 +25,7 @@ export interface ContractAddressMap {
25
25
  [chainId: string]: ContractAddresses;
26
26
  }
27
27
  export interface ContractAddresses {
28
+ GovernanceFactory: string;
28
29
  Airgrab: string;
29
30
  Emission: string;
30
31
  MentoGovernor: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mento-protocol/mento-sdk",
3
3
  "description": "Official SDK for interacting with the Mento Protocol",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "license": "MIT",
6
6
  "author": "Mento Labs",
7
7
  "keywords": [