Options for upgrading the bridge contract to a new WASM implementation via OnboardingBridgeSDK.upgrade.

Admin only. The new WASM hash must already be uploaded to the network with stellar contract install. All instance storage (admin, fees, etc.) is preserved across the upgrade.

await sdk.upgrade({ newWasmHash: 'abcdef0123456789...' }, adminKeypair);
interface UpgradeOptions {
    newWasmHash: string;
}

Properties

Properties

newWasmHash: string

32-byte WASM hash as a lowercase hex string (64 characters). Obtained from stellar contract install --network <net> ....