@wkalidev/trivia-quest-sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Celo's mission is financial inclusion for the unbanked. With 57% of African adul
|
|
|
49
49
|
|
|
50
50
|
| Network | Address |
|
|
51
51
|
|---|---|
|
|
52
|
-
| Celo Mainnet | `
|
|
52
|
+
| Celo Mainnet v4 | `0xe7faded5157341911a99cae5c49ad4c1eeb1116a` |
|
|
53
53
|
| Celo Sepolia (testnet) | `0x50b20728ba0ad803679b5428f267c89aede9a378` |
|
|
54
54
|
|
|
55
55
|
## 📱 MiniPay Compatible
|
|
@@ -68,6 +68,14 @@ Trivia Q detects MiniPay automatically and connects the wallet without any popup
|
|
|
68
68
|
|
|
69
69
|
Le leaderboard est stocké directement sur la blockchain Celo. Chaque joueur accumule des points, et les 10 meilleurs sont affichés en temps réel.
|
|
70
70
|
|
|
71
|
+
## 🏆 Prize Distribution (Multi-Winner)
|
|
72
|
+
|
|
73
|
+
| Position | Share |
|
|
74
|
+
|---|---|
|
|
75
|
+
| 🥇 1st place | 50% |
|
|
76
|
+
| 🥈 2nd place | 30% |
|
|
77
|
+
| 🥉 3rd place | 20% |
|
|
78
|
+
|
|
71
79
|
## 🌍 Multi-Language Support
|
|
72
80
|
|
|
73
81
|
| Language | Code |
|
package/package.json
CHANGED
package/sdk/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CONTRACT_ADDRESS_MAINNET: "
|
|
1
|
+
export declare const CONTRACT_ADDRESS_MAINNET: "0xe7faded5157341911a99cae5c49ad4c1eeb1116a";
|
|
2
2
|
export declare const CONTRACT_ADDRESS_TESTNET: "0x50b20728ba0ad803679b5428f267c89aede9a378";
|
|
3
3
|
export declare const CONTRACT_ABI: readonly [{
|
|
4
4
|
readonly name: "joinRound";
|
|
@@ -148,7 +148,7 @@ export declare const CELO_MAINNET: {
|
|
|
148
148
|
name: string;
|
|
149
149
|
rpcUrl: string;
|
|
150
150
|
explorerUrl: string;
|
|
151
|
-
contractAddress: "
|
|
151
|
+
contractAddress: "0xe7faded5157341911a99cae5c49ad4c1eeb1116a";
|
|
152
152
|
};
|
|
153
153
|
export declare const CELO_TESTNET: {
|
|
154
154
|
id: number;
|
package/sdk/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.getMiniPayAccount = getMiniPayAccount;
|
|
|
8
8
|
exports.getMultiplier = getMultiplier;
|
|
9
9
|
exports.calculatePoints = calculatePoints;
|
|
10
10
|
exports.getStreakLabel = getStreakLabel;
|
|
11
|
-
exports.CONTRACT_ADDRESS_MAINNET = "
|
|
11
|
+
exports.CONTRACT_ADDRESS_MAINNET = "0xe7faded5157341911a99cae5c49ad4c1eeb1116a";
|
|
12
12
|
exports.CONTRACT_ADDRESS_TESTNET = "0x50b20728ba0ad803679b5428f267c89aede9a378";
|
|
13
13
|
exports.CONTRACT_ABI = [
|
|
14
14
|
{
|