Implement NTCALL
opcodes for NTs
#74
Labels
effort: epic
Multi-stage task that may require multiple PRs.
priority: 0
Do this first before everything else. This is critical and nothing works without this.
type: feature
New feature or request.
work: chaotic
Act-sense-respond. No clear relationship between cause and effect.
work: complex
Probe-sense-respond. The relationship between cause and effect can only be perceived in retrospect.
Milestone
Tasks
NTCALL
,NTCALLVALUE
, andNTDELEGATECALL
opcodes to take a variable number of token IDs and token amounts instead of a single ETH amount.CALL
,CALLCODE
,CALLVALUE
, andDELEGATECALL
opcodes to act as "stand-ins" to the new opcodes. Each existing opcode would fall back to its newer counterpart by passing a pair of(BASE_TOKEN_ID,value)
.Spec
The proposed spec for
NTCALL
(analogous logic applies to the other opcodes) expects the token IDs and values to be put on the stack:value
input at position 3(alternatively, turn this value into a no-op; more research required)tokensLength
, which signifies the number of token transferstokensLength == 0
, do nothing; this call does not transfer any tokenstokensLength
pairs of(token_id,value)
pairsNotes
tokensLength
to something like 512 to make it difficult for the callee to run afoul of the stack limitReferences
CALL
opcodes to support MNTs #22The text was updated successfully, but these errors were encountered: