-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added updates for linkdrop-sdk => linkdrop-batch-sdk
- Loading branch information
Showing
18 changed files
with
14,614 additions
and
2,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,21 +24,21 @@ Create a campaign using Linkdrop Dashboard. When creating a campaign you will ne | |
|
||
First, import SDK into your code: | ||
```ts | ||
import LinkdropSDK from 'linkdrop-sdk' | ||
import LinkdropBatchSDK from 'linkdrop-batch-sdk' | ||
// or | ||
// const LinkdropSDK = require('linkdrop-sdk').default | ||
// const LinkdropBatchSDK = require('linkdrop-batch-sdk').default | ||
``` | ||
To use SDK on a tesnet: | ||
```ts | ||
// initializing Linkdrop SDK on a testnet (Goerli or Mumbai) | ||
const apiKey = /* to request an API key, please contact us at [email protected] */ | ||
const sdk = new LinkdropSDK({ mode: 'testnets', apiKey }); | ||
const sdk = new LinkdropBatchSDK({ mode: 'testnets', apiKey }); | ||
``` | ||
To use SDK on a production network (Ethereum Mainnet or Polygon): | ||
```ts | ||
// initializing Linkdrop SDK on a production network | ||
const apiKey = /* to request an API key, please contact us at [email protected] */ | ||
const sdk = new LinkdropSDK({ apiKey }); | ||
const sdk = new LinkdropBatchSDK({ apiKey }); | ||
``` | ||
|
||
## Claim methods (Can be used on Front-end & Back-end) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import LinkdropSDK from './modules/linkdrop-sdk' | ||
import LinkdropBatchSDK from './modules/linkdrop-batch-sdk' | ||
|
||
export default LinkdropSDK | ||
export default LinkdropBatchSDK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nkdrop-sdk/utils/compute-proxy-address.ts → ...-batch-sdk/utils/compute-proxy-address.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...modules/linkdrop-sdk/utils/create-link.ts → ...s/linkdrop-batch-sdk/utils/create-link.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import ICampaign from "./campaign" | ||
import ILinkdropSDK from "./linkdrop-sdk" | ||
import ILinkdropBatchSDK from "./linkdrop-batch-sdk" | ||
import IBatch from "./batch" | ||
|
||
export { | ||
ICampaign, | ||
ILinkdropSDK, | ||
ILinkdropBatchSDK, | ||
IBatch | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.