Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cnftevm", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -62,53 +62,2 @@ | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint16", | ||
"name": "amount", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "uint8", | ||
"name": "concurrentIndex", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "uint8", | ||
"name": "depth", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "minted", | ||
"type": "bool" | ||
} | ||
], | ||
"internalType": "struct cNFTData", | ||
"name": "contractData", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "nftIndex", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"internalType": "bytes20", | ||
"name": "expectedRoot", | ||
"type": "bytes20" | ||
} | ||
], | ||
"name": "_checkCurrentRoot", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
@@ -467,3 +416,3 @@ "name": "_contractData", | ||
], | ||
bytecode: "6080604052348015600e575f80fd5b50611c588061001c5f395ff3fe608060405234801561000f575f80fd5b50600436106100f0575f3560e01c80637e78367511610093578063b863b58c11610063578063b863b58c14610302578063de43e94e14610315578063e53b7fab14610328578063f8a9650a1461033b575f80fd5b80637e7836751461021757806394dc55761461022a578063a68b91ab1461023d578063a97aeabe146102ef575f80fd5b80633955f01e116100ce5780633955f01e146101875780633af1dcad146101aa5780636bf51d64146101bd57806378e83d99146101f6575f80fd5b80630370975b146100f457806306ccf7d314610112578063228910951461016f575b5f80fd5b6100fc610348565b60405161010991906112a0565b60405180910390f35b6003546101419061ffff81169060ff620100008204811691630100000081048216916401000000009091041684565b6040805161ffff95909516855260ff9384166020860152919092169083015215156060820152608001610109565b61018561017d366004611379565b505050505050565b005b61019a6101953660046114dd565b6103d7565b6040519015158152602001610109565b6101856101b836600461158d565b6105f5565b6101c5610677565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009091168152602001610109565b610209610204366004611606565b61069f565b604051908152602001610109565b61019a61022536600461161d565b6106b5565b61019a610238366004611694565b61079c565b6102ac604080516080810182525f808252602082018190529181018290526060810191909152506040805160808101825260035461ffff8116825260ff620100008204811660208401526301000000820481169383019390935264010000000090049091161515606082015290565b60405161010991905f60808201905061ffff835116825260ff602084015116602083015260ff604084015116604083015260608301511515606083015292915050565b6101856102fd3660046116be565b6108b2565b61018561031036600461161d565b6109d2565b610185610323366004611754565b610c9b565b61019a6103363660046117a1565b610da3565b6001546101c59060601b81565b60605f805461035690611875565b80601f016020809104026020016040519081016040528092919081815260200182805461038290611875565b80156103cd5780601f106103a4576101008083540402835291602001916103cd565b820191905f5260205f20905b8154815290600101906020018083116103b057829003601f168201915b5050505050905090565b60208301515f90815b60018110156105e8575f60028360ff1660018110610400576104006118c6565b015490507fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008086169082160361043c57600193505050506105ee565b8061ffff81168015801590610462575061ffff881661045c600183611920565b61ffff16145b15610474575f955050505050506105ee565b61ffff601083901c16801580159061049d575061ffff8916610497600183611920565b61ffff16145b156104b0575f96505050505050506105ee565b61ffff602084901c1680158015906104d9575061ffff8a166104d3600183611920565b61ffff16145b156104ed575f9750505050505050506105ee565b61ffff603085901c168015801590610516575061ffff8b16610510600183611920565b61ffff16145b1561052b575f985050505050505050506105ee565b61ffff604086901c168015801590610554575061ffff8c1661054e600183611920565b61ffff16145b1561056a575f99505050505050505050506105ee565b61ffff605087901c168015801590610593575061ffff8d1661058d600183611920565b61ffff16145b156105aa575f9a50505050505050505050506105ee565b8960ff165f036105c6576105bf600180611942565b99506105d4565b896105d08161195b565b9a50505b5050600190960195506103e0945050505050565b505f9150505b9392505050565b61ffff8461ffff1610610669576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f546f6b656e20616d6f756e7420746f6f2068696768210000000000000000000060448201526064015b60405180910390fd5b61017d868686868686610dc2565b6003545f9060029062010000900460ff1660018110610698576106986118c6565b0154905090565b600281600181106106ae575f80fd5b0154905081565b6040805160808101825260035461ffff80821680845260ff6201000084048116602086015263010000008404811695850195909552640100000000909204909316151560608301525f92871610610768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f546f6b656e20696e646578206f7574206f6620626f756e6473210000000000006044820152606401610660565b5f6107848660601b8861ffff168787866040015160ff16610fef565b90506107918288836103d7565b979650505050505050565b6040805160808101825260035461ffff80821680845260ff6201000084048116602086015263010000008404811695850195909552640100000000909204909316151560608301525f9287161061084f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f546f6b656e20696e646578206f7574206f6620626f756e6473210000000000006044820152606401610660565b60015f9054906101000a900460601b6bffffffffffffffffffffffff1916610885868861ffff168787866040015160ff16610fef565b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016149695505050505050565b333214610941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d6574686f642063616e206f6e6c792062652063616c6c65642064697265637460448201527f6c7920627920757365722e0000000000000000000000000000000000000000006064820152608401610660565b5f61094d6014846119c2565b905061ffff81106109ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f546f6b656e20616d6f756e7420746f6f206869676821000000000000000000006044820152606401610660565b6109c8888883898987610dc2565b5050505050505050565b6040805160808101825260035461ffff80821680845260ff6201000084048116602086015263010000008404811695850195909552640100000000909204909316151560608301529091861610610a85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f546f6b656e20696e646578206f7574206f6620626f756e6473210000000000006044820152606401610660565b5f80610aa63360601b8760601b8961ffff168888886040015160ff16611125565b91509150610ab58388846103d7565b610b1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d65726b6c6520726f6f7420646f65736e2774206d61746368210000000000006044820152606401610660565b600183602001516001610b2e91906119d5565b60ff16610b3b91906119ee565b60ff166020840152610b4e876001611a01565b61ffff16816bffffffffffffffffffffffff19165f1c175f1b6002846020015160ff1660018110610b8157610b816118c6565b0155825160038054602086015160408088015160608901511515640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff60ff928316630100000002167fffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffff9290941662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000090951661ffff978816179490941716919091179190911790915551908816907fe8e9fb7428a0a89e154d2b0c33dce8742ac123be19a728bf0a3650285001ac0690610c8a9033908a9073ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b60405180910390a250505050505050565b333214610d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d6574686f642063616e206f6e6c792062652063616c6c65642064697265637460448201527f6c7920627920757365722e0000000000000000000000000000000000000000006064820152608401610660565b5f610d366014846119c2565b905061ffff81106109c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f546f6b656e20616d6f756e7420746f6f206869676821000000000000000000006044820152606401610660565b825160208401205f90610db88682868661079c565b9695505050505050565b600354640100000000900460ff1615610e37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c7265616479206d696e7465642100000000000000000000000000000000006044820152606401610660565b61ffff8416610e47600183611942565b6001901b1015610eb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e76616c6964206465707468207370656369666965640000000000000000006044820152606401610660565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016606085901c1790557fffffffffffffffffffffffffffffffffffffffff000000000000000000000000821660025f01555f610f15868883611a68565b507f7938867e7542dc756a045d4cc8dabfe95149f78a1b0e519c63a5ffac653fc7c98484848989604051610f4d959493929190611b7e565b60405180910390a16040805160808101825261ffff959095168086525f602087015260ff929092169085018190526001606090950194909452600380546401000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009091169092176301000000909502949094177fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff161790925550505050565b5f6014610ffd600184611942565b6110079190611c0b565b831461106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f50726f6f6620696e636f72726563742073697a650000000000000000000000006044820152606401610660565b5f83900361107e57508461111c565b85905060148303848181015b808210156110e057602060018919160260148382376020039390935260405f2060019790971c967fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016926014919091019061108a565b50602060018819160291506014818337506020035260405f207fffffffffffffffffffffffffffffffffffffffff000000000000000000000000165b95945050505050565b5f806014611134600185611942565b61113e9190611c0b565b84146111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f50726f6f6620696e636f72726563742073697a650000000000000000000000006044820152606401610660565b5f8490036111b8575086905085611295565b60148403858993508892508181015b8082101561124a57602060018a19160260148382378060200390508581527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f20169550848152507fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f201693508860011c98506014820191506111c7565b506020600189191602915060148183375060200391825260405f818120929093529091207fffffffffffffffffffffffffffffffffffffffff00000000000000000000000091821691165b965096945050505050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b5f8083601f840112611303575f80fd5b50813567ffffffffffffffff81111561131a575f80fd5b6020830191508360208260051b8501011115611334575f80fd5b9250929050565b5f8083601f84011261134b575f80fd5b50813567ffffffffffffffff811115611362575f80fd5b602083019150836020828501011115611334575f80fd5b5f805f805f806060878903121561138e575f80fd5b863567ffffffffffffffff808211156113a5575f80fd5b6113b18a838b016112f3565b909850965060208901359150808211156113c9575f80fd5b6113d58a838b016112f3565b909650945060408901359150808211156113ed575f80fd5b506113fa89828a0161133b565b979a9699509497509295939492505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156114805761148061140c565b604052919050565b803561ffff81168114611499575f80fd5b919050565b803560ff81168114611499575f80fd5b80357fffffffffffffffffffffffffffffffffffffffff00000000000000000000000081168114611499575f80fd5b5f805f83850360c08112156114f0575f80fd5b60808112156114fd575f80fd5b506040516080810181811067ffffffffffffffff821117156115215761152161140c565b60405261152d85611488565b815261153b6020860161149e565b602082015261154c6040860161149e565b604082015260608501358015158114611563575f80fd5b6060820152925061157660808501611488565b915061158460a085016114ae565b90509250925092565b5f805f805f8060a087890312156115a2575f80fd5b863567ffffffffffffffff8111156115b8575f80fd5b6115c489828a0161133b565b90975095506115d7905060208801611488565b93506115e5604088016114ae565b92506115f3606088016114ae565b9150608087013590509295509295509295565b5f60208284031215611616575f80fd5b5035919050565b5f805f8060608587031215611630575f80fd5b61163985611488565b9350602085013573ffffffffffffffffffffffffffffffffffffffff81168114611661575f80fd5b9250604085013567ffffffffffffffff81111561167c575f80fd5b6116888782880161133b565b95989497509550505050565b5f805f80606085870312156116a7575f80fd5b6116b085611488565b9350611661602086016114ae565b5f805f805f805f60a0888a0312156116d4575f80fd5b873567ffffffffffffffff808211156116eb575f80fd5b6116f78b838c0161133b565b909950975087915061170b60208b016114ae565b965061171960408b016114ae565b955060608a013591508082111561172e575f80fd5b5061173b8a828b0161133b565b989b979a50959894979596608090950135949350505050565b5f805f805f805f60a0888a03121561176a575f80fd5b873567ffffffffffffffff80821115611781575f80fd5b61178d8b838c0161133b565b909950975087915061170b60208b01611488565b5f805f80606085870312156117b4575f80fd5b6117bd85611488565b935060208086013567ffffffffffffffff808211156117da575f80fd5b818801915088601f8301126117ed575f80fd5b8135818111156117ff576117ff61140c565b61182f847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611439565b8181528a85838601011115611842575f80fd5b81858501868301375f9181019094015291945060408701359180831115611867575f80fd5b50506116888782880161133b565b600181811c9082168061188957607f821691505b6020821081036118c0577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b61ffff82811682821603908082111561193b5761193b6118f3565b5092915050565b81810381811115611955576119556118f3565b92915050565b5f60ff82168061196d5761196d6118f3565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0192915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f826119d0576119d0611995565b500490565b60ff8181168382160190811115611955576119556118f3565b5f826119fc576119fc611995565b500690565b61ffff81811683821601908082111561193b5761193b6118f3565b601f821115611a6357805f5260205f20601f840160051c81016020851015611a415750805b601f840160051c820191505b81811015611a60575f8155600101611a4d565b50505b505050565b67ffffffffffffffff831115611a8057611a8061140c565b611a9483611a8e8354611875565b83611a1c565b5f601f841160018114611ae4575f8515611aae5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611a60565b5f838152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08716915b82811015611b315786850135825560209485019460019092019101611b11565b5086821015611b6c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b61ffff861681525f7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808716602084015280861660408401525060806060830152826080830152828460a08401375f60a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b8082028115828204841417611955576119556118f356fea264697066735822122056a9c2dc167ee6948588eaef10b64a2ccc72a8d11c22687861f3afe020c7496364736f6c63430008190033" | ||
bytecode: "6080604052348015600e575f80fd5b50612fdf8061001c5f395ff3fe608060405234801561000f575f80fd5b50600436106100e8575f3560e01c806394dc55761161008a578063b863b58c11610064578063b863b58c1461024b578063de43e94e14610267578063e53b7fab14610283578063f8a9650a146102b3576100e8565b806394dc5576146101e1578063a68b91ab14610211578063a97aeabe1461022f576100e8565b80633af1dcad116100c65780633af1dcad146101475780636bf51d641461016357806378e83d99146101815780637e783675146101b1576100e8565b80630370975b146100ec57806306ccf7d31461010a578063228910951461012b575b5f80fd5b6100f46102d1565b6040516101019190611b3c565b60405180910390f35b610112610360565b6040516101229493929190611bad565b60405180910390f35b61014560048036038101906101409190611d0c565b6103ae565b005b610161600480360381019061015c9190611ec3565b6109f7565b005b61016b610a55565b6040516101789190611f68565b60405180910390f35b61019b60048036038101906101969190611f81565b610a85565b6040516101a89190611fc4565b60405180910390f35b6101cb60048036038101906101c69190612037565b610a9e565b6040516101d891906120a8565b60405180910390f35b6101fb60048036038101906101f691906120c1565b610ba1565b60405161020891906120a8565b60405180910390f35b610219610cc0565b60405161022691906121b2565b60405180910390f35b610249600480360381019061024491906121cb565b610d4a565b005b61026560048036038101906102609190612037565b610e27565b005b610281600480360381019061027c9190612282565b6110a7565b005b61029d60048036038101906102989190612461565b611176565b6040516102aa91906120a8565b60405180910390f35b6102bb611199565b6040516102c89190611f68565b60405180910390f35b60605f80546102df9061251b565b80601f016020809104026020016040519081016040528092919081815260200182805461030b9061251b565b80156103565780601f1061032d57610100808354040283529160200191610356565b820191905f5260205f20905b81548152906001019060200180831161033957829003601f168201915b5050505050905090565b6005805f015f9054906101000a900461ffff1690805f0160029054906101000a900460ff1690805f0160039054906101000a900460ff1690805f0160049054906101000a900460ff16905084565b5f86869050116103f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ea90612595565b60405180910390fd5b83839050868690501461043b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610432906125fd565b60405180910390fd5b6006868690501115610482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047990612665565b60405180910390fd5b5f60056040518060800160405290815f82015f9054906101000a900461ffff1661ffff1661ffff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1660ff1660ff1681526020015f820160049054906101000a900460ff1615151515815250509050805f015161ffff1687875f81811061051d5761051c612683565b5b905060200201602081019061053291906126b0565b61ffff1610610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d90612725565b60405180910390fd5b5f806105e63360601b88885f81811061059257610591612683565b5b90506020020160208101906105a79190612743565b60601b8b8b5f8181106105bd576105bc612683565b5b90506020020160208101906105d291906126b0565b61ffff168888886040015160ff165f6111ab565b915091506105f6838a8a8561133a565b610635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062c906127b8565b60405180910390fd5b5f60018a8a5f81811061064b5761064a612683565b5b905060200201602081019061066091906126b0565b61066a9190612803565b61ffff16905089895f81811061068357610682612683565b5b905060200201602081019061069891906126b0565b61ffff167fe8e9fb7428a0a89e154d2b0c33dce8742ac123be19a728bf0a3650285001ac06338a8a5f8181106106d1576106d0612683565b5b90506020020160208101906106e69190612743565b6040516106f4929190612847565b60405180910390a25f601460018660400151610710919061286e565b60ff1661071d91906128a2565b90505f8390505f600190505b8c8c90508110156108fc576107ad3360601b8c8c8481811061074e5761074d612683565b5b90506020020160208101906107639190612743565b60601b8f8f8581811061077957610778612683565b5b905060200201602081019061078e91906126b0565b61ffff168c8c8c6040015160ff1689886107a891906128a2565b6111ab565b8096508197505050816bffffffffffffffffffffffff1916866bffffffffffffffffffffffff191614610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080c9061292d565b60405180910390fd5b84915080601061082591906128a2565b60018e8e8481811061083a57610839612683565b5b905060200201602081019061084f91906126b0565b6108599190612803565b61ffff16901b841793508c8c8281811061087657610875612683565b5b905060200201602081019061088b91906126b0565b61ffff167fe8e9fb7428a0a89e154d2b0c33dce8742ac123be19a728bf0a3650285001ac06338d8d858181106108c4576108c3612683565b5b90506020020160208101906108d99190612743565b6040516108e7929190612847565b60405180910390a28080600101915050610729565b50600360018760200151610910919061294b565b60ff1661091d91906129ac565b866020019060ff16908160ff168152505082846bffffffffffffffffffffffff19165f1c175f1b6002876020015160ff166003811061095f5761095e612683565b5b01819055508560055f820151815f015f6101000a81548161ffff021916908361ffff1602179055506020820151815f0160026101000a81548160ff021916908360ff1602179055506040820151815f0160036101000a81548160ff021916908360ff1602179055506060820151815f0160046101000a81548160ff021916908315150217905550905050505050505050505050505050565b61ffff8461ffff1610610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3690612a26565b60405180910390fd5b610a4d86868686868661154d565b505050505050565b5f600260055f0160029054906101000a900460ff1660ff1660038110610a7e57610a7d612683565b5b0154905090565b60028160038110610a94575f80fd5b015f915090505481565b5f8060056040518060800160405290815f82015f9054906101000a900461ffff1661ffff1661ffff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1660ff1660ff1681526020015f820160049054906101000a900460ff1615151515815250509050805f015161ffff168661ffff1610610b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6390612725565b60405180910390fd5b5f610b888660601b8861ffff168787866040015160ff166117b3565b9050610b958288836118d1565b92505050949350505050565b5f8060056040518060800160405290815f82015f9054906101000a900461ffff1661ffff1661ffff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1660ff1660ff1681526020015f820160049054906101000a900460ff1615151515815250509050805f015161ffff168661ffff1610610c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6690612725565b60405180910390fd5b60015f9054906101000a900460601b6bffffffffffffffffffffffff1916610ca5868861ffff168787866040015160ff166117b3565b6bffffffffffffffffffffffff191614915050949350505050565b610cc8611a9c565b60056040518060800160405290815f82015f9054906101000a900461ffff1661ffff1661ffff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1660ff1660ff1681526020015f820160049054906101000a900460ff161515151581525050905090565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daf90612ab4565b60405180910390fd5b5f601484849050610dc99190612ad2565b905061ffff8110610e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0690612a26565b60405180910390fd5b610e1d88888389898761154d565b5050505050505050565b5f60056040518060800160405290815f82015f9054906101000a900461ffff1661ffff1661ffff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1660ff1660ff1681526020015f820160049054906101000a900460ff1615151515815250509050805f015161ffff168561ffff1610610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90612725565b60405180910390fd5b5f80610f163360601b8760601b8961ffff168888886040015160ff165f6111ab565b91509150610f258388846118d1565b610f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5b906127b8565b60405180910390fd5b600360018460200151610f77919061294b565b60ff16610f8491906129ac565b836020019060ff16908160ff1681525050600187610fa29190612803565b61ffff16816bffffffffffffffffffffffff19165f1c175f1b6002846020015160ff1660038110610fd657610fd5612683565b5b01819055508260055f820151815f015f6101000a81548161ffff021916908361ffff1602179055506020820151815f0160026101000a81548160ff021916908360ff1602179055506040820151815f0160036101000a81548160ff021916908360ff1602179055506060820151815f0160046101000a81548160ff0219169083151502179055509050508661ffff167fe8e9fb7428a0a89e154d2b0c33dce8742ac123be19a728bf0a3650285001ac063388604051611096929190612847565b60405180910390a250505050505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90612ab4565b60405180910390fd5b5f6014848490506111269190612ad2565b905061ffff811061116c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116390612a26565b60405180910390fd5b5050505050505050565b5f808480519060200120905061118e86828686610ba1565b915050949350505050565b60015f9054906101000a900460601b81565b5f8060146001856111bc9190612b02565b6111c691906128a2565b83878790506111d59190612b02565b1015611216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120d90612b7f565b60405180910390fd5b5f868690500361122b5788889150915061132e565b601460028503028387018a93508992508181015b808210156112c157602060018b1916026014838237806020038681527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f201696508581527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f201695508b60011c9b50505060148201915061123f565b50602060018a1916026014828237806020038581527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f201695508481527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f20169450505050505b97509795505050505050565b5f80856020015190505f5b600381101561153f575f60028360ff166003811061136657611365612683565b5b01549050846bffffffffffffffffffffffff1916816bffffffffffffffffffffffff19160361139b5760019350505050611545565b5f815f1c90505f61ffff821690505f61ffff6010846bffffffffffffffffffffffff16901c1690505f61ffff6020856bffffffffffffffffffffffff16901c1690505f61ffff6030866bffffffffffffffffffffffff16901c1690505f61ffff6040876bffffffffffffffffffffffff16901c1690505f61ffff6050886bffffffffffffffffffffffff16901c1690505f60018f8f8c81811061144157611440612683565b5b905060200201602081019061145691906126b0565b6114609190612803565b90505f5b8f8f90508110156114fa578161ffff168861ffff16148061148c57508161ffff168761ffff16145b8061149e57508161ffff168661ffff16145b806114b057508161ffff168561ffff16145b806114c257508161ffff168461ffff16145b806114d457508161ffff168361ffff16145b156114ed575f9c50505050505050505050505050611545565b8080600101915050611464565b505f8b60ff160361151a57600160036115139190612b02565b9a50611529565b8a8061152590612b9d565b9b50505b5050505050505050508080600101915050611345565b505f9150505b949350505050565b60055f0160049054906101000a900460ff161561159f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159690612c0e565b60405180910390fd5b8361ffff166001826115b19190612b02565b6001901b10156115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed90612c76565b60405180910390fd5b8260015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908360601c0217905550816bffffffffffffffffffffffff191660025f6003811061164757611646612683565b5b01819055505f600190505b60038110156116a857600160f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166002826003811061169657611695612683565b5b01819055508080600101915050611652565b5085855f91826116b9929190612e3b565b507f7938867e7542dc756a045d4cc8dabfe95149f78a1b0e519c63a5ffac653fc7c984848489896040516116f1959493929190612f34565b60405180910390a160405180608001604052808561ffff1681526020015f60ff1681526020018260ff1681526020016001151581525060055f820151815f015f6101000a81548161ffff021916908361ffff1602179055506020820151815f0160026101000a81548160ff021916908360ff1602179055506040820151815f0160036101000a81548160ff021916908360ff1602179055506060820151815f0160046101000a81548160ff021916908315150217905550905050505050505050565b5f60146001836117c39190612b02565b6117cd91906128a2565b8484905014611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180890612b7f565b60405180910390fd5b5f8484905003611823578590506118c8565b85905060148303848181015b808210156118865760206001891916026014838237806020038581527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f201695508960011c9950505060148201915061182f565b5060206001881916026014828237806020038481527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060405f20169450505050505b95945050505050565b5f808460200151905083806118e590612f80565b9450505f5b6003811015611a8f575f60028360ff166003811061190b5761190a612683565b5b01549050846bffffffffffffffffffffffff1916816bffffffffffffffffffffffff1916036119405760019350505050611a95565b5f815f1c90505f61ffff821690505f61ffff6010846bffffffffffffffffffffffff16901c1690505f61ffff6020856bffffffffffffffffffffffff16901c1690505f61ffff6030866bffffffffffffffffffffffff16901c1690505f61ffff6040876bffffffffffffffffffffffff16901c1690505f61ffff6050886bffffffffffffffffffffffff16901c1690508c61ffff168161ffff1614806119ed57508c61ffff168261ffff16145b806119ff57508c61ffff168361ffff16145b80611a1157508c61ffff168461ffff16145b80611a2357508c61ffff168561ffff16145b80611a3557508c61ffff168661ffff16145b15611a4c575f9a5050505050505050505050611a95565b5f8a60ff1603611a6b5760016003611a649190612b02565b9950611a7a565b8980611a7690612b9d565b9a50505b505050505050505080806001019150506118ea565b505f9150505b9392505050565b60405180608001604052805f61ffff1681526020015f60ff1681526020015f60ff1681526020015f151581525090565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611b0e82611acc565b611b188185611ad6565b9350611b28818560208601611ae6565b611b3181611af4565b840191505092915050565b5f6020820190508181035f830152611b548184611b04565b905092915050565b5f61ffff82169050919050565b611b7281611b5c565b82525050565b5f60ff82169050919050565b611b8d81611b78565b82525050565b5f8115159050919050565b611ba781611b93565b82525050565b5f608082019050611bc05f830187611b69565b611bcd6020830186611b84565b611bda6040830185611b84565b611be76060830184611b9e565b95945050505050565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611c2257611c21611c01565b5b8235905067ffffffffffffffff811115611c3f57611c3e611c05565b5b602083019150836020820283011115611c5b57611c5a611c09565b5b9250929050565b5f8083601f840112611c7757611c76611c01565b5b8235905067ffffffffffffffff811115611c9457611c93611c05565b5b602083019150836020820283011115611cb057611caf611c09565b5b9250929050565b5f8083601f840112611ccc57611ccb611c01565b5b8235905067ffffffffffffffff811115611ce957611ce8611c05565b5b602083019150836001820283011115611d0557611d04611c09565b5b9250929050565b5f805f805f8060608789031215611d2657611d25611bf9565b5b5f87013567ffffffffffffffff811115611d4357611d42611bfd565b5b611d4f89828a01611c0d565b9650965050602087013567ffffffffffffffff811115611d7257611d71611bfd565b5b611d7e89828a01611c62565b9450945050604087013567ffffffffffffffff811115611da157611da0611bfd565b5b611dad89828a01611cb7565b92509250509295509295509295565b5f8083601f840112611dd157611dd0611c01565b5b8235905067ffffffffffffffff811115611dee57611ded611c05565b5b602083019150836001820283011115611e0a57611e09611c09565b5b9250929050565b611e1a81611b5c565b8114611e24575f80fd5b50565b5f81359050611e3581611e11565b92915050565b5f7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000082169050919050565b611e6f81611e3b565b8114611e79575f80fd5b50565b5f81359050611e8a81611e66565b92915050565b5f819050919050565b611ea281611e90565b8114611eac575f80fd5b50565b5f81359050611ebd81611e99565b92915050565b5f805f805f8060a08789031215611edd57611edc611bf9565b5b5f87013567ffffffffffffffff811115611efa57611ef9611bfd565b5b611f0689828a01611dbc565b96509650506020611f1989828a01611e27565b9450506040611f2a89828a01611e7c565b9350506060611f3b89828a01611e7c565b9250506080611f4c89828a01611eaf565b9150509295509295509295565b611f6281611e3b565b82525050565b5f602082019050611f7b5f830184611f59565b92915050565b5f60208284031215611f9657611f95611bf9565b5b5f611fa384828501611eaf565b91505092915050565b5f819050919050565b611fbe81611fac565b82525050565b5f602082019050611fd75f830184611fb5565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61200682611fdd565b9050919050565b61201681611ffc565b8114612020575f80fd5b50565b5f813590506120318161200d565b92915050565b5f805f806060858703121561204f5761204e611bf9565b5b5f61205c87828801611e27565b945050602061206d87828801612023565b935050604085013567ffffffffffffffff81111561208e5761208d611bfd565b5b61209a87828801611cb7565b925092505092959194509250565b5f6020820190506120bb5f830184611b9e565b92915050565b5f805f80606085870312156120d9576120d8611bf9565b5b5f6120e687828801611e27565b94505060206120f787828801611e7c565b935050604085013567ffffffffffffffff81111561211857612117611bfd565b5b61212487828801611cb7565b925092505092959194509250565b61213b81611b5c565b82525050565b61214a81611b78565b82525050565b61215981611b93565b82525050565b608082015f8201516121735f850182612132565b5060208201516121866020850182612141565b5060408201516121996040850182612141565b5060608201516121ac6060850182612150565b50505050565b5f6080820190506121c55f83018461215f565b92915050565b5f805f805f805f60a0888a0312156121e6576121e5611bf9565b5b5f88013567ffffffffffffffff81111561220357612202611bfd565b5b61220f8a828b01611dbc565b975097505060206122228a828b01611e7c565b95505060406122338a828b01611e7c565b945050606088013567ffffffffffffffff81111561225457612253611bfd565b5b6122608a828b01611cb7565b935093505060806122738a828b01611eaf565b91505092959891949750929550565b5f805f805f805f60a0888a03121561229d5761229c611bf9565b5b5f88013567ffffffffffffffff8111156122ba576122b9611bfd565b5b6122c68a828b01611dbc565b975097505060206122d98a828b01611e27565b95505060406122ea8a828b01611e7c565b945050606088013567ffffffffffffffff81111561230b5761230a611bfd565b5b6123178a828b01611cb7565b9350935050608061232a8a828b01611eaf565b91505092959891949750929550565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61237382611af4565b810181811067ffffffffffffffff821117156123925761239161233d565b5b80604052505050565b5f6123a4611bf0565b90506123b0828261236a565b919050565b5f67ffffffffffffffff8211156123cf576123ce61233d565b5b6123d882611af4565b9050602081019050919050565b828183375f83830152505050565b5f612405612400846123b5565b61239b565b90508281526020810184848401111561242157612420612339565b5b61242c8482856123e5565b509392505050565b5f82601f83011261244857612447611c01565b5b81356124588482602086016123f3565b91505092915050565b5f805f806060858703121561247957612478611bf9565b5b5f61248687828801611e27565b945050602085013567ffffffffffffffff8111156124a7576124a6611bfd565b5b6124b387828801612434565b935050604085013567ffffffffffffffff8111156124d4576124d3611bfd565b5b6124e087828801611cb7565b925092505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061253257607f821691505b602082108103612545576125446124ee565b5b50919050565b7f4c6973742063616e6e6f7420626520656d7074790000000000000000000000005f82015250565b5f61257f601483611ad6565b915061258a8261254b565b602082019050919050565b5f6020820190508181035f8301526125ac81612573565b9050919050565b7f4172726179206c656e67746873206d757374206d6174636800000000000000005f82015250565b5f6125e7601883611ad6565b91506125f2826125b3565b602082019050919050565b5f6020820190508181035f830152612614816125db565b9050919050565b7f4d61782036207472616e736665727320616c6c6f7765640000000000000000005f82015250565b5f61264f601783611ad6565b915061265a8261261b565b602082019050919050565b5f6020820190508181035f83015261267c81612643565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f602082840312156126c5576126c4611bf9565b5b5f6126d284828501611e27565b91505092915050565b7f546f6b656e20696e646578206f7574206f6620626f756e6473210000000000005f82015250565b5f61270f601a83611ad6565b915061271a826126db565b602082019050919050565b5f6020820190508181035f83015261273c81612703565b9050919050565b5f6020828403121561275857612757611bf9565b5b5f61276584828501612023565b91505092915050565b7f4d65726b6c6520726f6f7420646f65736e2774206d61746368210000000000005f82015250565b5f6127a2601a83611ad6565b91506127ad8261276e565b602082019050919050565b5f6020820190508181035f8301526127cf81612796565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61280d82611b5c565b915061281883611b5c565b9250828201905061ffff811115612832576128316127d6565b5b92915050565b61284181611ffc565b82525050565b5f60408201905061285a5f830185612838565b6128676020830184612838565b9392505050565b5f61287882611b78565b915061288383611b78565b9250828203905060ff81111561289c5761289b6127d6565b5b92915050565b5f6128ac82611e90565b91506128b783611e90565b92508282026128c581611e90565b915082820484148315176128dc576128db6127d6565b5b5092915050565b7f4d65726b6c6520726f6f7420646f65736e2774206d61746368000000000000005f82015250565b5f612917601983611ad6565b9150612922826128e3565b602082019050919050565b5f6020820190508181035f8301526129448161290b565b9050919050565b5f61295582611b78565b915061296083611b78565b9250828201905060ff811115612979576129786127d6565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6129b682611e90565b91506129c183611e90565b9250826129d1576129d061297f565b5b828206905092915050565b7f546f6b656e20616d6f756e7420746f6f206869676821000000000000000000005f82015250565b5f612a10601683611ad6565b9150612a1b826129dc565b602082019050919050565b5f6020820190508181035f830152612a3d81612a04565b9050919050565b7f4d6574686f642063616e206f6e6c792062652063616c6c6564206469726563745f8201527f6c7920627920757365722e000000000000000000000000000000000000000000602082015250565b5f612a9e602b83611ad6565b9150612aa982612a44565b604082019050919050565b5f6020820190508181035f830152612acb81612a92565b9050919050565b5f612adc82611e90565b9150612ae783611e90565b925082612af757612af661297f565b5b828204905092915050565b5f612b0c82611e90565b9150612b1783611e90565b9250828203905081811115612b2f57612b2e6127d6565b5b92915050565b7f50726f6f6620696e636f72726563742073697a650000000000000000000000005f82015250565b5f612b69601483611ad6565b9150612b7482612b35565b602082019050919050565b5f6020820190508181035f830152612b9681612b5d565b9050919050565b5f612ba782611b78565b91505f8203612bb957612bb86127d6565b5b600182039050919050565b7f416c7265616479206d696e7465642100000000000000000000000000000000005f82015250565b5f612bf8600f83611ad6565b9150612c0382612bc4565b602082019050919050565b5f6020820190508181035f830152612c2581612bec565b9050919050565b7f496e76616c6964206465707468207370656369666965640000000000000000005f82015250565b5f612c60601783611ad6565b9150612c6b82612c2c565b602082019050919050565b5f6020820190508181035f830152612c8d81612c54565b9050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302612cfa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612cbf565b612d048683612cbf565b95508019841693508086168417925050509392505050565b5f819050919050565b5f612d3f612d3a612d3584611e90565b612d1c565b611e90565b9050919050565b5f819050919050565b612d5883612d25565b612d6c612d6482612d46565b848454612ccb565b825550505050565b5f90565b612d80612d74565b612d8b818484612d4f565b505050565b5b81811015612dae57612da35f82612d78565b600181019050612d91565b5050565b601f821115612df357612dc481612c9e565b612dcd84612cb0565b81016020851015612ddc578190505b612df0612de885612cb0565b830182612d90565b50505b505050565b5f82821c905092915050565b5f612e135f1984600802612df8565b1980831691505092915050565b5f612e2b8383612e04565b9150826002028217905092915050565b612e458383612c94565b67ffffffffffffffff811115612e5e57612e5d61233d565b5b612e68825461251b565b612e73828285612db2565b5f601f831160018114612ea0575f8415612e8e578287013590505b612e988582612e20565b865550612eff565b601f198416612eae86612c9e565b5f5b82811015612ed557848901358255600182019150602085019450602081019050612eb0565b86831015612ef25784890135612eee601f891682612e04565b8355505b6001600288020188555050505b50505050505050565b5f612f138385611ad6565b9350612f208385846123e5565b612f2983611af4565b840190509392505050565b5f608082019050612f475f830188611b69565b612f546020830187611f59565b612f616040830186611f59565b8181036060830152612f74818486612f08565b90509695505050505050565b5f612f8a82611b5c565b915061ffff8203612f9e57612f9d6127d6565b5b60018201905091905056fea264697066735822122062f7d9e026d2a47733dd0228a1ca64d12f2bb47f81a96813b6f8a78517955d8864736f6c63430008190033" | ||
} |
@@ -1,5 +0,6 @@ | ||
import {ContractFactory, Signer} from "ethers"; | ||
import {ContractFactory, Signer, providers, BigNumber} from "ethers"; | ||
import {cNFTCollection} from "./cNFTCollection"; | ||
import {cNFT} from "./abis/cNFT"; | ||
import {createMerkleTree, getMerkleRoot} from "./Utils"; | ||
import {ExternalProvider} from "@ethersproject/providers/src.ts/web3-provider"; | ||
@@ -13,6 +14,6 @@ | ||
constructor(signer: Signer, indexerUrl: string) { | ||
this.signer = signer; | ||
constructor(metamask: ExternalProvider, indexerUrl: string) { | ||
this.signer = new providers.Web3Provider(metamask).getSigner(); | ||
this.indexerUrl = indexerUrl; | ||
this.factory = new ContractFactory(cNFT.abi, "0x"+cNFT.bytecode, signer); | ||
this.factory = new ContractFactory(cNFT.abi, "0x"+cNFT.bytecode, this.signer); | ||
} | ||
@@ -43,8 +44,8 @@ | ||
const transaction = await deployment.populateTransaction.mint(baseUrl, amount, merkleRootString); | ||
transaction.chainId = await this.client.signer.getChainId(); | ||
transaction.gasLimit = 200000; | ||
transaction.gasPrice = await this.client.signer.getGasPrice(); | ||
transaction.nonce = await this.client.signer.getTransactionCount(signerAddress); | ||
transaction.chainId = await this.signer.getChainId(); | ||
transaction.gasLimit = BigNumber.from(200000); | ||
transaction.gasPrice = await this.signer.getGasPrice(); | ||
transaction.nonce = await this.signer.getTransactionCount(await this.signer.getAddress()); | ||
const submittedTx = await this.client.signer.sendTransaction(transaction); | ||
const submittedTx = await this.signer.sendTransaction(transaction); | ||
const receipt = await submittedTx.wait(); | ||
@@ -51,0 +52,0 @@ if (receipt.status === 0) throw new Error("Mint transaction failed"); |
@@ -54,3 +54,3 @@ import {BigNumber, Contract, UnsignedTransaction} from "ethers"; | ||
private getNftUrl(index: number): string { | ||
return this.baseUrl.replace(new RegExp("\{INDEX\}", 'g'), tokenResponse.index.toString(10)); | ||
return this.baseUrl.replace(new RegExp("\{INDEX\}", 'g'), index.toString(10)); | ||
} | ||
@@ -173,3 +173,3 @@ | ||
transaction.chainId = await this.client.signer.getChainId(); | ||
transaction.gasLimit = 80000; | ||
transaction.gasLimit = BigNumber.from(80000); | ||
transaction.gasPrice = await this.client.signer.getGasPrice(); | ||
@@ -181,4 +181,6 @@ transaction.nonce = await this.client.signer.getTransactionCount(signerAddress); | ||
if (receipt.status === 0) throw new Error("Transfer transaction failed"); | ||
return receipt.transactionHash; | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116042
19
2332
4