Enumeration CompilerDefaults

Enumeration Members

defaultScenarioAddressIndex: 0

The addressIndex used by the default scenario data.

defaultScenarioBytecode: ""

The value used for ["slot"] and ["copy"] locking or unlocking bytecode when generating a scenario and no unlockingScriptId is provided.

defaultScenarioCurrentBlockHeight: 2

The value of currentBlockHeight in the default wallet template scenario. This is the height of the second mined block after the genesis block: 000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd.

This default value was chosen to be low enough to simplify the debugging of block height offsets while remaining differentiated from 0 and 1, which are used both as boolean return values and for control flow.

defaultScenarioCurrentBlockTime: 1231469665

The value of currentBlockTime in the default wallet template scenario. This is the Median Time-Past block time (BIP113) of block 2 (the block used in CompilerDefaults.defaultScenarioCurrentBlockHeight).

defaultScenarioInputOutpointTransactionHash: "0000000000000000000000000000000000000000000000000000000000000001"

The default outpointTransactionHash of inputs in scenarios.

defaultScenarioInputSequenceNumber: 0

The default sequenceNumber of inputs in scenarios.

defaultScenarioOutputLockingBytecode: "6a076c696261757468"

The default lockingBytecode value for scenario outputs, OP_RETURN <"libauth"> (hex: 6a076c696261757468).

defaultScenarioOutputTokenCategory: "0000000000000000000000000000000000000000000000000000000000000002"

The default category of tokens in scenarios.

defaultScenarioOutputValueSatoshis: 0

The default valueSatoshis of outputs in scenarios.

defaultScenarioTransactionLocktime: 0

The value of transaction.locktime in the default wallet template scenario.

defaultScenarioTransactionVersion: 2

The value of transaction.version in the default wallet template scenario. Transaction version 2 enables OP_CHECKSEQUENCEVERIFY as described in BIP68, BIP112, and BIP113.

hdKeyAddressOffset: 0

s If unset, each HdKey uses this addressOffset.

hdKeyHdPublicKeyDerivationPath: ""

If unset, each HdKey uses this hdPublicKeyDerivationPath.

hdKeyPrivateDerivationPath: "i"

If unset, each HdKey uses this privateDerivationPath.

scenarioBytecodeScriptPrefix: "_scenario."

The prefix used to refer to other scenario bytecode scripts from within a bytecode script. See WalletTemplateScenarioData.bytecode for details.

Generated using TypeDoc