{"version":"0.1.4","name":"bankman","instructions":[{"name":"newBank","accounts":[{"name":"bank","isMut":true,"isSigner":false},{"name":"crateMint","isMut":false,"isSigner":false},{"name":"crateToken","isMut":true,"isSigner":false},{"name":"brrrIssueAuthority","isMut":false,"isSigner":false},{"name":"burnWithdrawAuthority","isMut":false,"isSigner":false},{"name":"payer","isMut":true,"isSigner":true},{"name":"admin","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"crateTokenProgram","isMut":false,"isSigner":false}],"args":[{"name":"bankBump","type":"u8"},{"name":"crateBump","type":"u8"}]},{"name":"authorizeCollateral","accounts":[{"name":"bank","isMut":false,"isSigner":false},{"name":"collateral","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"curator","isMut":false,"isSigner":true},{"name":"payer","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"bump","type":"u8"}]},{"name":"setCollateralHardCap","accounts":[{"name":"bank","isMut":false,"isSigner":false},{"name":"collateral","isMut":true,"isSigner":false},{"name":"curator","isMut":false,"isSigner":true}],"args":[{"name":"hardCap","type":"u64"}]},{"name":"setCurator","accounts":[{"name":"bank","isMut":true,"isSigner":false},{"name":"bankman","isMut":false,"isSigner":true},{"name":"nextCurator","isMut":false,"isSigner":false}],"args":[]},{"name":"setBankman","accounts":[{"name":"bank","isMut":true,"isSigner":false},{"name":"bankman","isMut":false,"isSigner":true},{"name":"nextBankman","isMut":false,"isSigner":false}],"args":[]}],"accounts":[{"name":"Bank","type":{"kind":"struct","fields":[{"name":"crateToken","type":"publicKey"},{"name":"bump","type":"u8"},{"name":"crateMint","type":"publicKey"},{"name":"curator","type":"publicKey"},{"name":"bankman","type":"publicKey"}]}},{"name":"Collateral","type":{"kind":"struct","fields":[{"name":"bank","type":"publicKey"},{"name":"mint","type":"publicKey"},{"name":"bump","type":"u8"},{"name":"hardCap","type":"u64"}]}}],"events":[{"name":"NewBankEvent","fields":[{"name":"bank","type":"publicKey","index":false},{"name":"curator","type":"publicKey","index":false},{"name":"timestamp","type":"i64","index":false}]},{"name":"AddCollateralEvent","fields":[{"name":"bank","type":"publicKey","index":false},{"name":"collateral","type":"publicKey","index":false},{"name":"curator","type":"publicKey","index":false},{"name":"mint","type":"publicKey","index":false},{"name":"timestamp","type":"i64","index":false}]},{"name":"SetCuratorEvent","fields":[{"name":"bank","type":"publicKey","index":false},{"name":"curator","type":"publicKey","index":false},{"name":"previousCurator","type":"publicKey","index":false},{"name":"bankman","type":"publicKey","index":false},{"name":"timestamp","type":"i64","index":false}]},{"name":"SetBankmanEvent","fields":[{"name":"bank","type":"publicKey","index":false},{"name":"bankman","type":"publicKey","index":false},{"name":"previousBankman","type":"publicKey","index":false},{"name":"timestamp","type":"i64","index":false}]},{"name":"SetCollateralHardCapEvent","fields":[{"name":"bank","type":"publicKey","index":false},{"name":"collateral","type":"publicKey","index":false},{"name":"hardCap","type":"u64","index":false},{"name":"timestamp","type":"i64","index":false}]}],"errors":[{"code":6000,"name":"UnauthorizedNotCurator","msg":"Must be curator."},{"code":6001,"name":"UnauthorizedNotBankman","msg":"Must be the bankman."},{"code":6002,"name":"PoolNotFoundInSnapshot","msg":"Pool not found in snapshot."},{"code":6003,"name":"PoolAlreadyAdded","msg":"Cannot add a pool that has already been added."},{"code":6004,"name":"NewBankSupplyMustBeZero","msg":"new_bank: supply must be zero"},{"code":6005,"name":"NewBankWrongDecimals","msg":"new_bank: cash must have 6 decimals"},{"code":6006,"name":"NewBankAlreadyInitialized","msg":"new_bank: crate already initialized"}]}