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

Test ci #281

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub const APTOS_SIGNATURE_SCHEME_ID: u8 = 0;
/**
* An arbitrary signed message used in Aptos.
* Only the message payload is stored in this struct.
* The message signed for Aptos is the payload prefixed with APTOS_PREFIX and suffixed with APTOS_SUFFIX.
* For Aptos, the message signed is the payload prefixed with APTOS_PREFIX and suffixed with APTOS_SUFFIX.
*/

#[derive(AnchorDeserialize, AnchorSerialize, Clone)]
Expand Down
Loading