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;
    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 nonce for replay protection. When provided, the contract verifies that this call has not been made before with the same nonce.