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 16 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
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": ["ST_MAIN", "0x534e5f53544c4c41524d41494e"],
"stellar-testnet": ["ST_TEST", "0x534e5f53544c4c415254455354"]
}
17 changes: 16 additions & 1 deletion configs/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,20 @@
"url": "starknetid-sepolia.starknet.a5a.ch",
"indexer": true,
"description": "The Starknet testnet"
},

{
"name": "stellar-mainnet",
"url": "stellar-mainnet-url",
"indexer": false,
"chain": "stellar",
"description": "The stellar mainnet"
},
{
"name": "stellar-testnet",
"url": "stellar-testnet-url",
"indexer": false,
"chain": "stellar",
"description": "The stellar testnet"
}
]
]
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