getDeployment function
Which deployment the ids on network came from — its name and the
deepbookv3 commit they were generated at. Useful when a bug report needs
to say which on-chain deployment an SDK build was pinned to.
Throws if the network has no deployment recorded, rather than returning placeholder ids.
Implementation
DeploymentInfo getDeployment(String network) {
if (network == 'testnet') return TESTNET_DEPLOYMENT;
if (network == 'mainnet') return MAINNET_DEPLOYMENT;
throw _unrecorded(network,
'read the deployment name and commit from your own deploy manifest.');
}