Constructor AbiArgumentMapElement
AbiArgumentMapElement(SpecialArgumentKind, SpecialArgumentKind, int)
A mapping of a method argument from one MethodAbi to another.
public AbiArgumentMapElement(SpecialArgumentKind SourceArgument, SpecialArgumentKind TargetArgument, int TargetArgumentOffset)
Parameters
SourceArgumentSpecialArgumentKind- The source argument being mapped.
TargetArgumentSpecialArgumentKind- The destination argument to map to.
TargetArgumentOffsetint- The offset of the target argument, if
TargetArgumentis UserArguments.
Remarks
The following mappings are valid:
- Any
SourceArgumentexcept UserArguments to itself - Any
SourceArgumentexcept UserArguments toTargetArgument=UserArguments, in which case the the source argument is mapped to the user argument with indexTargetArgumentOffset SourceArgument=UserArguments toTargetArgument=UserArguments, in which case the source user arguments will be mapped to the target user arguments starting at the user argument with indexTargetArgumentOffset
In a full mapping, all of a method's target arguments must be bound to exactly one source argument.
In a full mapping, each source argument may be bound to at most one target argument.
In a full mapping, if a source argument is not mapped, that argument is mapped using the identity mapping, unless that mapping would conflict with an existing mapping, in which case it is dropped.
AbiArgumentMapElement(SpecialArgumentKind, SpecialArgumentKind)
Constructs an AbiArgumentMapElement with a zero TargetArgumentOffset.
public AbiArgumentMapElement(SpecialArgumentKind sourceArgument, SpecialArgumentKind targetArgument)
Parameters
sourceArgumentSpecialArgumentKind- The source argument kind.
targetArgumentSpecialArgumentKind- The target argument kind to map to.