Skip to content

Commit

Permalink
Merge pull request #80 from GigaHierz/DVX-6/fix-type-export-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers authored Apr 25, 2023
2 parents cb3f207 + 7245663 commit 529c853
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ yarn add toucan-sdk
Instantiate the ToucanClient and set a signer & provider to interact with our infrastructure.

```typescript
import { ToucanClient } from "toucan-sdk";
import ToucanClient from "toucan-sdk";

const toucan = new ToucanClient("alfajores", provider, signer);
```

You could also set the signer/provider later if you prefer that. They are optional. But you will need to set them if you want to interact with contracts. The provider is read-only, while the signer allows both writing to and reading from the blockchain.

```typescript
import { ToucanClient } from "toucan-sdk";
import ToucanClient from "toucan-sdk";

const toucan = new ToucanClient("alfajores");
toucan.setProvider(provider);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toucan-sdk",
"version": "1.0.0-beta",
"version": "1.0.4-beta",
"description": "A JavaScript SDK for Toucan Protocol. Works in the web browser and Node.js.",
"main": "./dist/index.js",
"scripts": {
Expand Down
29 changes: 15 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
The OffsetHelper's purpose is to simplify the carbon offsetting process.
Copyright (C) 2022 Toucan Labs
The OffsetHelper's purpose is to simplify the carbon offsetting process.
Copyright (C) 2022 Toucan Labs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import "isomorphic-unfetch";

Expand Down Expand Up @@ -43,7 +43,6 @@ import {
UserRedeemsMethod,
UserRetirementsMethod,
} from "./types/methods";
export * from "./types/responses";

/**
*
Expand Down Expand Up @@ -763,3 +762,5 @@ export default class ToucanClient {
return this.contractInteractions.getOffsetHelperContract(signerOrProvider);
};
}

export * from "./types/responses";

0 comments on commit 529c853

Please sign in to comment.