-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[contract] contract release, first version
- Loading branch information
Showing
62 changed files
with
9,934 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/validator-bonds-sdk/__tests__/bankrun/solanaStake.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// import { Keypair } from '@solana/web3.js' | ||
// import { | ||
// ValidatorBondsProgram, | ||
// getConfig, | ||
// initConfigInstruction, | ||
// } from '../../src' | ||
// import { BankrunProvider } from 'anchor-bankrun' | ||
// import { | ||
// bankrunExecute, | ||
// bankrunTransaction, | ||
// initBankrunTest, | ||
// } from './utils/bankrun' | ||
|
||
describe('Solana stake account behavior verification', () => { | ||
// let provider: BankrunProvider | ||
// let program: ValidatorBondsProgram | ||
|
||
beforeAll(async () => { | ||
// eslint-disable-next-line @typescript-eslint/no-extra-semi | ||
// ;({ provider, program } = await initBankrunTest()) | ||
}) | ||
|
||
// TODO: #1 when stake account is created with lockup what happens when authority is changed? | ||
// will the lockup custodian stays the same as before? | ||
// can be lockup removed completely? | ||
// what the 'custodian' field on 'authorize' method has the significance for? | ||
// | ||
// TODO: #2 check what happens when lockup account is merged with non-lockup account? | ||
// TODO: #3 what happen after split of stake account with authorities, are they maintained as in the original one? | ||
it('', async () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.