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

feat: Solana Vault swaps (base PR) #5309

Merged
merged 25 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
21eec8c
chore: adding api call
albert-llimos Sep 30, 2024
532416f
chore: add swap endpoint accounts to solEnvApi
albert-llimos Oct 1, 2024
38b9307
chore: add swap endpoint contract
albert-llimos Oct 1, 2024
f21e379
chore: add swap endpoint initialization
albert-llimos Oct 1, 2024
9e0de52
chore: fix lint and initialization
albert-llimos Oct 1, 2024
8910e63
chore: update swap endpoint data account
albert-llimos Oct 1, 2024
be43033
chore: remove initialization as its already done in image
albert-llimos Oct 1, 2024
05bf121
chore: cleanup
albert-llimos Oct 1, 2024
903db1b
chore: restore ci
albert-llimos Oct 2, 2024
f4b573c
chore: remove unnecessary TODOs
albert-llimos Oct 8, 2024
833de64
Added storage migration for Environment pallet.
syan095 Oct 11, 2024
81558b0
chore: address comment
albert-llimos Oct 16, 2024
7b94578
chore: bouncer solana program swaps (#5318)
albert-llimos Oct 16, 2024
a6e2c9a
Moved Environment pallet's migration from Runtime into Pallet
syan095 Oct 28, 2024
af8b520
Merge remote-tracking branch 'origin/main' into feat/solana-program-s…
syan095 Oct 28, 2024
7136f6d
Fixed bouncer
syan095 Oct 29, 2024
f8d3821
Corrected placeholder migration version for the broadcaster pallet
syan095 Oct 29, 2024
f97fefb
chore: merge from main and fix conflicts
albert-llimos Oct 31, 2024
144852f
chore: fix lint
albert-llimos Oct 31, 2024
74b4b87
chore: merge from main, fix merge conflicts
albert-llimos Nov 11, 2024
d3f845c
chore: run upgrade test
albert-llimos Nov 11, 2024
87e8d80
chore: use Parity VersionedMigration
albert-llimos Nov 11, 2024
ef4eb94
chore: merge from main
albert-llimos Nov 11, 2024
b8c714d
Fixed try-runtime error
syan095 Nov 11, 2024
e3add5b
chore: not run upgrade test
albert-llimos Nov 12, 2024
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
2 changes: 1 addition & 1 deletion bouncer/commands/setup_vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function main(): Promise<void> {

// Confirmation
console.log('Waiting for new epoch...');
await observeEvent('validator:NewEpoch');
await observeEvent('validator:NewEpoch').event;

console.log('=== New Epoch ===');
console.log('=== Vault Setup completed ===');
Expand Down
3 changes: 3 additions & 0 deletions bouncer/shared/contract_interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ export const getSolanaVaultIdl = loadContractCached(
export const getCfTesterIdl = loadContractCached(
`../contract-interfaces/sol-program-idls/${CF_SOL_PROGRAM_IDL_TAG}/cf_tester.json`,
);
export const getSolanaSwapEndpointIdl = loadContractCached(
`../contract-interfaces/sol-program-idls/${CF_SOL_PROGRAM_IDL_TAG}/swap_endpoint.json`,
);
2 changes: 2 additions & 0 deletions bouncer/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export function getContractAddress(chain: Chain, contract: string): string {
return '8pBPaVfTAcjLeNfC187Fkvi9b1XEFhRNJ95BQXXVksmH';
case 'SWAP_ENDPOINT':
return '35uYgHdfZQT4kHkaaXQ6ZdCkK5LFrsk43btTLbGCRCNT';
case 'SWAP_ENDPOINT_DATA_ACCOUNT':
return '2tmtGLQcBd11BMiE9B1tAkQXwmPNgR79Meki2Eme4Ec9';
default:
throw new Error(`Unsupported contract: ${contract}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ gh release download \
unzip -u ${ZIP_FILE} \
'vault.json' \
'cf_tester.json' \
'swap_endpoint.json' \
-d $TARGET_DIR

rm ${ZIP_FILE}
Loading