@polkadot/types
Version:
Implementation of the Parity codec
91 lines (90 loc) • 2.49 kB
JavaScript
export default {
rpc: {},
types: {
EvmAccount: {
nonce: 'u256',
balance: 'u256'
},
EvmCallInfo: {
exitReason: 'ExitReason',
value: 'Bytes',
usedGas: 'U256',
logs: 'Vec<EvmLog>'
},
EvmCreateInfo: {
exitReason: 'ExitReason',
value: 'H160',
usedGas: 'U256',
logs: 'Vec<EvmLog>'
},
EvmCallInfoV2: {
exitReason: 'ExitReason',
value: 'Bytes',
usedGas: 'U256',
weightInfo: 'Option<EvmWeightInfo>',
logs: 'Vec<EvmLog>'
},
EvmCreateInfoV2: {
exitReason: 'ExitReason',
value: 'H160',
usedGas: 'U256',
weightInfo: 'Option<EvmWeightInfo>',
logs: 'Vec<EvmLog>'
},
EvmLog: {
address: 'H160',
topics: 'Vec<H256>',
data: 'Bytes'
},
EvmVicinity: {
gasPrice: 'u256',
origin: 'H160'
},
EvmWeightInfo: {
refTimeLimit: 'Option<u64>',
proofSizeLimit: 'Option<u64>',
refTimeUsage: 'Option<u64>',
proofSizeUsage: 'Option<u64>'
},
ExitError: {
_enum: {
StackUnderflow: 'Null',
StackOverflow: 'Null',
InvalidJump: 'Null',
InvalidRange: 'Null',
DesignatedInvalid: 'Null',
CallTooDeep: 'Null',
CreateCollision: 'Null',
CreateContractLimit: 'Null',
OutOfOffset: 'Null',
OutOfGas: 'Null',
OutOfFund: 'Null',
PCUnderflow: 'Null',
CreateEmpty: 'Null',
Other: 'Text'
}
},
ExitFatal: {
_enum: {
NotSupported: 'Null',
UnhandledInterrupt: 'Null',
CallErrorAsFatal: 'ExitError',
Other: 'Text'
}
},
ExitReason: {
_enum: {
Succeed: 'ExitSucceed',
Error: 'ExitError',
Revert: 'ExitRevert',
Fatal: 'ExitFatal'
}
},
ExitRevert: {
_enum: ['Reverted']
},
ExitSucceed: {
_enum: ['Stopped', 'Returned', 'Suicided']
}
}
};