Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Implement wallet connection for Stellar #77

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .env.local.sample

This file was deleted.

4 changes: 3 additions & 1 deletion configs/chainAliasByNetwork.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"goerli": ["SN_GOERLI", "0x534e5f474f45524c49"],
"sepolia": ["SN_SEPOLIA", "0x534e5f5345504f4c4941"],
"mainnet": ["SN_MAIN", "0x534e5f4d41494e"]
"mainnet": ["SN_MAIN", "0x534e5f4d41494e"],
"stellar-mainnet": ["SN_STELLAR_MAIN", "0x534e5f53544c4c41524d41494e"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename ST_MAIN and ST_TEST instead of SN_xxx for Stellar

"stellar-testnet": ["SN_STELLAR_TEST", "0x534e5f53544c4c415254455354"]
}
20 changes: 17 additions & 3 deletions configs/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@
{
"name": "mainnet",
"url": "starknetid-mainnet.starknet.a5a.ch",
"indexer": true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don’t delete the indexer field

"indexer": true,
"chain": "starknet"
},
{
"name": "sepolia",
"url": "starknetid-sepolia.starknet.a5a.ch",
"indexer": true
"indexer": true,
"chain": "starknet"
},
{
"name": "stellar-mainnet",
"url": "stellar-mainnet-url",
"indexer": true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set indexer to false for stellar because we currently don't have one for these networks

"chain": "stellar"
},
{
"name": "stellar-testnet",
"url": "stellar-testnet-url",
"indexer": true,
"chain": "stellar"
}
]
]
7 changes: 6 additions & 1 deletion db/entity/DiscordServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ export class DiscordServerConfig {
discordServerId: string;

@Column()
starknetNetwork: "goerli" | "mainnet" | "sepolia";
starknetNetwork:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

| "goerli"
| "mainnet"
| "sepolia"
| "stellar-mainnet"
| "stellar-testnet";

@Column()
discordRoleId: string;
Expand Down
Loading