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 ScheduleUpgradeOptions {
    newWasmHash: string;
    nonce?: string | number | bigint;
}

Hierarchy (view full)

Properties

Properties

newWasmHash: string

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

nonce?: string | number | bigint

Optional admin nonce consumed by the contract.