Skip to content

Commit

Permalink
fix: fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed May 15, 2024
2 parents 3cc3fe2 + 7fa77e1 commit db02592
Show file tree
Hide file tree
Showing 60 changed files with 7,897 additions and 3,564 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Repo Setup

```
git clone https://github.com/ethereum-push-notification-service/push-sdk.git
git clone https://github.com/push-protocol/push-sdk.git
cd sdk
```
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ node main
- **[Docs](https://docs.push.org/developers/)** For comprehensive documentation.
- **[Blog](https://medium.com/push-protocol)** To learn more about our partners, new launches, etc.
- **[Discord](https://discord.com/invite/pushprotocol)** for support and discussions with the community and the team.
- **[GitHub](https://github.com/ethereum-push-notification-service)** for source code, project board, issues, and pull requests.
- **[GitHub](https://github.com/push-protocol)** for source code, project board, issues, and pull requests.
- **[Twitter](https://twitter.com/pushprotocol)** for the latest updates on the product and published blogs.


Expand All @@ -191,7 +191,7 @@ Push Protocol is an open source Project. We firmly believe in a completely trans
- Documentation Request: If you're reading the Push documentation and believe that we're missing something, please create a docs request.


Read how you can contribute <a href="https://github.com/ethereum-push-notification-service/push-sdk/blob/main/CONTRIBUTING.md
Read how you can contribute <a href="https://github.com/push-protocol/push-sdk/blob/main/CONTRIBUTING.md
">HERE</a>

Not sure where to start? Join our discord and we will help you get started!
Expand All @@ -200,6 +200,6 @@ Not sure where to start? Join our discord and we will help you get started!
<a href="https://discord.com/invite/pushprotocol" title="Join Our Community"><img src="https://www.freepnglogos.com/uploads/discord-logo-png/playerunknown-battlegrounds-bgparty-15.png" width="200" alt="Discord" /></a>

## License
Check out our License <a href='https://github.com/ethereum-push-notification-service/push-sdk/blob/main/license-v1.md'>HERE </a>
Check out our License <a href='https://github.com/push-protocol/push-sdk/blob/main/license-v1.md'>HERE </a>


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sdk",
"version": "0.0.0",
"version": "1.3.0",
"license": "MIT",
"scripts": {
"prepare": "husky install",
Expand Down
14 changes: 9 additions & 5 deletions packages/examples/boilerplate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ import { ethers } from 'ethers';
const signerAlice = ethers.Wallet.createRandom();

// Initialize wallet user, pass 'prod' instead of 'staging' for mainnet apps
const userAlice = await PushAPI.initialize(signerAlice, { env: CONSTANTS.ENV.PROD });
const userBobAddress = '0x8D4625b4e04d7dE7F158df470a71C5FC4D4d5F4B';
const userAlice = await PushAPI.initialize(signerAlice, {
env: CONSTANTS.ENV.PROD,
});
const userBobAddress = '0x60cD05eb31cc16cC37163D514bEF162406d482e1';

const generateRandomWordsWithTimestamp = () => {
return `${Math.random().toString(36).substring(2)} - ${new Date().toISOString()}`;
}
return `${Math.random()
.toString(36)
.substring(2)} - ${new Date().toISOString()}`;
};

userAlice.chat.send(userBobAddress, {
content: "Gm gm! It's a me... Alice! - " + generateRandomWordsWithTimestamp(),
});

console.log('Message sent from Alice to ', userBobAddress);
console.log('Message sent from Alice to ', userBobAddress);
2 changes: 1 addition & 1 deletion packages/examples/sdk-backend-node/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Through these examples, you'll see how these features can be successfully implem
Embark on your journey with this project by cloning the repository and installing the dependencies:

```bash
git clone https://github.com/ethereum-push-notification-service/push-sdk.git
git clone https://github.com/push-protocol/push-sdk.git
cd push-sdk
yarn install
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const runNotificaitonsLowLevelUseCases = async (): Promise<void> => {
await PushAPI_channels_unsubscribe();

// IMPORTANT: VARIOUS OTHER NOTIFICATIONS FORMAT SUPPORTED
// EXAMPLES HERE: https://github.com/ethereum-push-notification-service/push-sdk/blob/main/packages/restapi/README.md
// EXAMPLES HERE: https://github.com/push-protocol/push-sdk/blob/main/packages/restapi/README.md
console.log(
'PushAPI.payloads.sendNotification() [Direct Payload, Single Recipient]'
);
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-frontend-react/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Through these examples, you'll see how these features can be successfully implem
Embark on your journey with this project by cloning the repository and installing the dependencies:

```bash
git clone https://github.com/ethereum-push-notification-service/push-sdk.git
git clone https://github.com/push-protocol/push-sdk.git
cd push-sdk
yarn install
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { ChatProfile } from "@pushprotocol/uiweb";
import { ChatProfile } from '@pushprotocol/uiweb';

export const ChatProfileTest = () => {

return (
<div>
<ChatProfile
chatProfileLeftHelperComponent={<div>left component</div>}
chatProfileRightHelperComponent={<div>right component</div>}
chatId='monalisha.wallet'
// chatId='36baf37e441fdd94e23406c6c716fc4e91a93a9ee68e070cd5b054534dbe09a6'
/>
</div>
)
}
return (
<div>
<ChatProfile
chatProfileLeftHelperComponent={<div>left component</div>}
chatProfileRightHelperComponent={<div>right component</div>}
chatId="monalisha.wallet"
// chatId='36baf37e441fdd94e23406c6c716fc4e91a93a9ee68e070cd5b054534dbe09a6'
/>
</div>
);
};
11 changes: 10 additions & 1 deletion packages/reactnative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ const spam = await alice.notification.list('SPAM', {
page: 1,
});

```

## Other Features

All the remaining features of the `restapi` SDK are available in a similar manner to the `restapi` package. You can read more about them <a href="https://github.com/push-protocol/push-sdk/blob/main/packages/restapi/README.md">HERE</a>


console.log('SPAM NOTIFICATIONS', spam);
```
Expand All @@ -149,7 +156,9 @@ Push Protocol is an open source Project. We firmly believe in a completely trans
- Feature Request: Please submit a feature request if you have an idea or discover a capability that would make development simpler and more reliable.
- Documentation Request: If you're reading the Push documentation and believe that we're missing something, please create a docs request.
Read how you can contribute <a href="https://github.com/push-protocol/push-sdk/blob/main/CONTRIBUTING.md">HERE</a>
Read how you can contribute <a href="https://github.com/push-protocol/push-sdk/blob/main/contributing.md">HERE</a>
Not sure where to start? Join our discord and we will help you get started!
Expand Down
2 changes: 1 addition & 1 deletion packages/reactnative/push-react-native-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.authors = package["author"]

s.platforms = { :ios => "11.0" }
s.source = { :git => "https://github.com/ethereum-push-notification-service/push-sdk.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/push-protocol/push-sdk.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm}"

Expand Down
Loading

0 comments on commit db02592

Please sign in to comment.