Skip to content

Commit

Permalink
Merge branch 'main' into test-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Mar 15, 2024
2 parents 7410a20 + 600215e commit 3fddafa
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
14 changes: 7 additions & 7 deletions frontend/claim_sdk/idl/token_dispenser.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
"type": "string"
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -494,7 +494,7 @@
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -515,7 +515,7 @@
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -533,7 +533,7 @@
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -542,7 +542,7 @@
"name": "Cosmwasm",
"fields": [
{
"name": "chain_id",
"name": "chainId",
"type": "string"
},
{
Expand All @@ -555,7 +555,7 @@
}
},
{
"name": "recovery_id",
"name": "recoveryId",
"type": "u8"
},
{
Expand Down Expand Up @@ -586,7 +586,7 @@
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand Down
28 changes: 14 additions & 14 deletions frontend/claim_sdk/idl/token_dispenser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export type TokenDispenser =
"type": "string"
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -495,7 +495,7 @@ export type TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -516,7 +516,7 @@ export type TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -534,7 +534,7 @@ export type TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -543,7 +543,7 @@ export type TokenDispenser =
"name": "Cosmwasm",
"fields": [
{
"name": "chain_id",
"name": "chainId",
"type": "string"
},
{
Expand All @@ -556,7 +556,7 @@ export type TokenDispenser =
}
},
{
"name": "recovery_id",
"name": "recoveryId",
"type": "u8"
},
{
Expand Down Expand Up @@ -587,7 +587,7 @@ export type TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand Down Expand Up @@ -1147,7 +1147,7 @@ export const IDL: TokenDispenser =
"type": "string"
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -1165,7 +1165,7 @@ export const IDL: TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -1186,7 +1186,7 @@ export const IDL: TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -1204,7 +1204,7 @@ export const IDL: TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand All @@ -1213,7 +1213,7 @@ export const IDL: TokenDispenser =
"name": "Cosmwasm",
"fields": [
{
"name": "chain_id",
"name": "chainId",
"type": "string"
},
{
Expand All @@ -1226,7 +1226,7 @@ export const IDL: TokenDispenser =
}
},
{
"name": "recovery_id",
"name": "recoveryId",
"type": "u8"
},
{
Expand Down Expand Up @@ -1257,7 +1257,7 @@ export const IDL: TokenDispenser =
}
},
{
"name": "verification_instruction_index",
"name": "verificationInstructionIndex",
"type": "u8"
}
]
Expand Down
1 change: 1 addition & 0 deletions frontend/claim_sdk/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export class TokenDispenserProvider {
// send the txns. Associated token account will be created if needed.
const sendTxs = txsSignedTwice.map(async (signedTx) => {
try {
console.log(Buffer.from(signedTx.serialize()).toString('hex'))
const signature = await this.connection.sendTransaction(signedTx, {
skipPreflight: true,
})
Expand Down
12 changes: 10 additions & 2 deletions frontend/middleware.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Limit middleware pathname config
export const config = {
matcher: '/',
matcher: '/(.*)',
}

export function middleware(req) {
Expand Down Expand Up @@ -30,11 +30,19 @@ export function middleware(req) {
color: #E6DAFE;
max-width: 900px;
}
a {
color: #C792EA; /* Light purple, for better visibility */
text-decoration: none; /* Optional: removes underline */
}
a:hover {
color: #FFCB6B; /* Changes color on hover for interactivity */
text-decoration: underline; /* Optional: adds underline on hover */
}
</style>
</head>
<body>
<h1>The airdrop claim period has ended</h1>
<p>To stay in touch with future Pyth community initiatives head over to our <a href="https://discord.gg/invite/PythNetwork">Discord</a> </p>
<p>To stay in touch with future Pyth community initiatives head over to our <a href="https://discord.gg/invite/PythNetwork">Discord</a></p>
</body>
</html>
`
Expand Down
7 changes: 7 additions & 0 deletions frontend/utils/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ export async function addTestWalletsToDatabase(
).flat(1)

const maxAmount = getMaxAmount(claimInfos)
claimInfos.push(
new ClaimInfo(
'solana',
'E5KR7yfb9UyVB6ZhmhQki1rM1eBcxHvyGKFZakAC5uc',
maxAmount
)
)

return [await addClaimInfosToDatabase(pool, claimInfos), maxAmount]
}
Expand Down

0 comments on commit 3fddafa

Please sign in to comment.