mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
parent
48d8b92527
commit
f6ab8f8975
File diff suppressed because one or more lines are too long
@ -244,7 +244,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"inputs": [],
|
"inputs": [],
|
||||||
"name": "_swapMarketFee",
|
"name": "_swapPublishMarketFee",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"internalType": "uint256",
|
"internalType": "uint256",
|
||||||
@ -276,7 +276,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"inputs": [],
|
"inputs": [],
|
||||||
"name": "getOPFFee",
|
"name": "getOPCFee",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"internalType": "uint256",
|
"internalType": "uint256",
|
||||||
@ -295,7 +295,7 @@
|
|||||||
"type": "address"
|
"type": "address"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "marketFees",
|
"name": "publishMarketFees",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"internalType": "uint256",
|
"internalType": "uint256",
|
||||||
@ -307,8 +307,8 @@
|
|||||||
"type": "function"
|
"type": "function"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bytecode": "0x608060405234801561001057600080fd5b50610460806100206000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063992e2a92116100ad578063bc694ea211610071578063bc694ea2146101eb578063c36596a614610153578063c6580d12146101f3578063e4a28a5214610131578063ec093021146101fb57600080fd5b8063992e2a92146101cb578063b0e0d136146101d3578063b7b800a4146101d3578063ba019dab146101db578063bc063e1a146101e357600080fd5b806349e9350f116100f457806349e9350f146101a2578063700dd7e8146101ab57806376c7a3c7146101b3578063867378c5146101bb5780639381cd2b146101c357600080fd5b806309a3bbe414610131578063189d00ca1461014b578063218b538214610153578063300621921461016257806331e2761b14610182575b600080fd5b610139610203565b60405190815260200160405180910390f35b610139610219565b610139670de0b6b3a764000081565b61013961017036600461035b565b60056020526000908152604090205481565b61013961019036600461035b565b60066020526000908152604090205481565b61013960005481565b610139610230565b6101396102b9565b6101396102ce565b6101396102e5565b6101396102f8565b610139600281565b610139600181565b610139610316565b610139610329565b610139600081565b610139610348565b610216670de0b6b3a764000060326103de565b81565b6102166402540be400670de0b6b3a76400006103bc565b60025460048054604051637c0aa57760e11b81526001600160a01b0391821692810192909252600092169063f8154aee9060240160206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b4919061038b565b905090565b610216620f4240670de0b6b3a76400006103bc565b61021664e8d4a51000670de0b6b3a76400006103bc565b610216670de0b6b3a764000060646103de565b61030b6003670de0b6b3a76400006103bc565b6102169060016103a4565b610216600a670de0b6b3a76400006103bc565b600161033e670de0b6b3a764000060026103de565b61021691906103fd565b6102166002670de0b6b3a76400006103bc565b60006020828403121561036d57600080fd5b81356001600160a01b038116811461038457600080fd5b9392505050565b60006020828403121561039d57600080fd5b5051919050565b600082198211156103b7576103b7610414565b500190565b6000826103d957634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156103f8576103f8610414565b500290565b60008282101561040f5761040f610414565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220699b1f34bf1d54caa297e60d6fddebd8dc902d2243c98d4a62f4485302305a1064736f6c63430008070033",
|
"bytecode": "0x608060405234801561001057600080fd5b50610451806100206000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063992e2a92116100ad578063bc694ea211610071578063bc694ea2146101eb578063c36596a614610153578063c6580d12146101f3578063e4a28a5214610131578063ec093021146101fb57600080fd5b8063992e2a92146101cb578063b0e0d136146101d3578063b7b800a4146101d3578063ba019dab146101db578063bc063e1a146101e357600080fd5b806376c7a3c7116100f457806376c7a3c71461018a5780637a284be4146101925780637c5918b31461019b578063867378c5146101bb5780639381cd2b146101c357600080fd5b806309a3bbe414610131578063189d00ca1461014b578063218b53821461015357806329b88a6a14610162578063300621921461016a575b600080fd5b610139610203565b60405190815260200160405180910390f35b610139610219565b610139670de0b6b3a764000081565b610139610230565b61013961017836600461034c565b60056020526000908152604090205481565b6101396102aa565b61013960005481565b6101396101a936600461034c565b60066020526000908152604090205481565b6101396102bf565b6101396102d6565b6101396102e9565b610139600281565b610139600181565b610139610307565b61013961031a565b610139600081565b610139610339565b610216670de0b6b3a76400006032610392565b81565b6102166402540be400670de0b6b3a76400006103b1565b6002546004805460405163b8421e2b60e01b81526001600160a01b0391821692810192909252600092169063b8421e2b90602401602060405180830381865afa158015610281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a591906103d3565b905090565b610216620f4240670de0b6b3a76400006103b1565b61021664e8d4a51000670de0b6b3a76400006103b1565b610216670de0b6b3a76400006064610392565b6102fc6003670de0b6b3a76400006103b1565b6102169060016103ec565b610216600a670de0b6b3a76400006103b1565b600161032f670de0b6b3a76400006002610392565b6102169190610404565b6102166002670de0b6b3a76400006103b1565b60006020828403121561035e57600080fd5b81356001600160a01b038116811461037557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156103ac576103ac61037c565b500290565b6000826103ce57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156103e557600080fd5b5051919050565b600082198211156103ff576103ff61037c565b500190565b6000828210156104165761041661037c565b50039056fea2646970667358221220bb7675d200528b1ac138059c595a95fd2adb2b36b61e0bac3f6baeafc4fc887c64736f6c634300080a0033",
|
||||||
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063992e2a92116100ad578063bc694ea211610071578063bc694ea2146101eb578063c36596a614610153578063c6580d12146101f3578063e4a28a5214610131578063ec093021146101fb57600080fd5b8063992e2a92146101cb578063b0e0d136146101d3578063b7b800a4146101d3578063ba019dab146101db578063bc063e1a146101e357600080fd5b806349e9350f116100f457806349e9350f146101a2578063700dd7e8146101ab57806376c7a3c7146101b3578063867378c5146101bb5780639381cd2b146101c357600080fd5b806309a3bbe414610131578063189d00ca1461014b578063218b538214610153578063300621921461016257806331e2761b14610182575b600080fd5b610139610203565b60405190815260200160405180910390f35b610139610219565b610139670de0b6b3a764000081565b61013961017036600461035b565b60056020526000908152604090205481565b61013961019036600461035b565b60066020526000908152604090205481565b61013960005481565b610139610230565b6101396102b9565b6101396102ce565b6101396102e5565b6101396102f8565b610139600281565b610139600181565b610139610316565b610139610329565b610139600081565b610139610348565b610216670de0b6b3a764000060326103de565b81565b6102166402540be400670de0b6b3a76400006103bc565b60025460048054604051637c0aa57760e11b81526001600160a01b0391821692810192909252600092169063f8154aee9060240160206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b4919061038b565b905090565b610216620f4240670de0b6b3a76400006103bc565b61021664e8d4a51000670de0b6b3a76400006103bc565b610216670de0b6b3a764000060646103de565b61030b6003670de0b6b3a76400006103bc565b6102169060016103a4565b610216600a670de0b6b3a76400006103bc565b600161033e670de0b6b3a764000060026103de565b61021691906103fd565b6102166002670de0b6b3a76400006103bc565b60006020828403121561036d57600080fd5b81356001600160a01b038116811461038457600080fd5b9392505050565b60006020828403121561039d57600080fd5b5051919050565b600082198211156103b7576103b7610414565b500190565b6000826103d957634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156103f8576103f8610414565b500290565b60008282101561040f5761040f610414565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220699b1f34bf1d54caa297e60d6fddebd8dc902d2243c98d4a62f4485302305a1064736f6c63430008070033",
|
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063992e2a92116100ad578063bc694ea211610071578063bc694ea2146101eb578063c36596a614610153578063c6580d12146101f3578063e4a28a5214610131578063ec093021146101fb57600080fd5b8063992e2a92146101cb578063b0e0d136146101d3578063b7b800a4146101d3578063ba019dab146101db578063bc063e1a146101e357600080fd5b806376c7a3c7116100f457806376c7a3c71461018a5780637a284be4146101925780637c5918b31461019b578063867378c5146101bb5780639381cd2b146101c357600080fd5b806309a3bbe414610131578063189d00ca1461014b578063218b53821461015357806329b88a6a14610162578063300621921461016a575b600080fd5b610139610203565b60405190815260200160405180910390f35b610139610219565b610139670de0b6b3a764000081565b610139610230565b61013961017836600461034c565b60056020526000908152604090205481565b6101396102aa565b61013960005481565b6101396101a936600461034c565b60066020526000908152604090205481565b6101396102bf565b6101396102d6565b6101396102e9565b610139600281565b610139600181565b610139610307565b61013961031a565b610139600081565b610139610339565b610216670de0b6b3a76400006032610392565b81565b6102166402540be400670de0b6b3a76400006103b1565b6002546004805460405163b8421e2b60e01b81526001600160a01b0391821692810192909252600092169063b8421e2b90602401602060405180830381865afa158015610281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a591906103d3565b905090565b610216620f4240670de0b6b3a76400006103b1565b61021664e8d4a51000670de0b6b3a76400006103b1565b610216670de0b6b3a76400006064610392565b6102fc6003670de0b6b3a76400006103b1565b6102169060016103ec565b610216600a670de0b6b3a76400006103b1565b600161032f670de0b6b3a76400006002610392565b6102169190610404565b6102166002670de0b6b3a76400006103b1565b60006020828403121561035e57600080fd5b81356001600160a01b038116811461037557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156103ac576103ac61037c565b500290565b6000826103ce57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156103e557600080fd5b5051919050565b600082198211156103ff576103ff61037c565b500190565b6000828210156104165761041661037c565b50039056fea2646970667358221220bb7675d200528b1ac138059c595a95fd2adb2b36b61e0bac3f6baeafc4fc887c64736f6c634300080a0033",
|
||||||
"linkReferences": {},
|
"linkReferences": {},
|
||||||
"deployedLinkReferences": {}
|
"deployedLinkReferences": {}
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"_format": "hh-sol-artifact-1",
|
"_format": "hh-sol-artifact-1",
|
||||||
"contractName": "ERC20Roles",
|
"contractName": "ERC20Roles",
|
||||||
@ -32,7 +31,7 @@
|
|||||||
"type": "uint256"
|
"type": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "AddedFeeManager",
|
"name": "AddedMinter",
|
||||||
"type": "event"
|
"type": "event"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -63,7 +62,7 @@
|
|||||||
"type": "uint256"
|
"type": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "AddedMinter",
|
"name": "AddedPaymentManager",
|
||||||
"type": "event"
|
"type": "event"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -119,7 +118,7 @@
|
|||||||
"type": "uint256"
|
"type": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "RemovedFeeManager",
|
"name": "RemovedMinter",
|
||||||
"type": "event"
|
"type": "event"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -150,7 +149,7 @@
|
|||||||
"type": "uint256"
|
"type": "uint256"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "RemovedMinter",
|
"name": "RemovedPaymentManager",
|
||||||
"type": "event"
|
"type": "event"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -172,6 +171,37 @@
|
|||||||
"stateMutability": "view",
|
"stateMutability": "view",
|
||||||
"type": "function"
|
"type": "function"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "address",
|
||||||
|
"name": "user",
|
||||||
|
"type": "address"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "getPermissions",
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"components": [
|
||||||
|
{
|
||||||
|
"internalType": "bool",
|
||||||
|
"name": "minter",
|
||||||
|
"type": "bool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"internalType": "bool",
|
||||||
|
"name": "paymentManager",
|
||||||
|
"type": "bool"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"internalType": "struct ERC20Roles.RolesERC20",
|
||||||
|
"name": "",
|
||||||
|
"type": "tuple"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stateMutability": "view",
|
||||||
|
"type": "function"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
@ -189,7 +219,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"internalType": "bool",
|
"internalType": "bool",
|
||||||
"name": "feeManager",
|
"name": "paymentManager",
|
||||||
"type": "bool"
|
"type": "bool"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -197,8 +227,8 @@
|
|||||||
"type": "function"
|
"type": "function"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bytecode": "0x608060405234801561001057600080fd5b50610157806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806301e882081461003b578063ef867ff414610083575b600080fd5b6100676100493660046100d8565b60006020819052908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152015b60405180910390f35b610096610091366004610108565b6100ae565b6040516001600160a01b03909116815260200161007a565b600181815481106100be57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000602082840312156100ea57600080fd5b81356001600160a01b038116811461010157600080fd5b9392505050565b60006020828403121561011a57600080fd5b503591905056fea26469706673582212208b39415173b3f678559d83bbb56ee8b4f17b6bd1c999526ee00defa21731a4cc64736f6c63430008070033",
|
"bytecode": "0x608060405234801561001057600080fd5b506101df806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301e8820814610046578063160a79251461008e578063ef867ff41461010b575b600080fd5b610072610054366004610160565b60006020819052908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152015b60405180910390f35b6100ec61009c366004610160565b6040805180820190915260008082526020820152506001600160a01b03166000908152602081815260409182902082518084019093525460ff808216151584526101009091041615159082015290565b6040805182511515815260209283015115159281019290925201610085565b61011e610119366004610190565b610136565b6040516001600160a01b039091168152602001610085565b6001818154811061014657600080fd5b6000918252602090912001546001600160a01b0316905081565b60006020828403121561017257600080fd5b81356001600160a01b038116811461018957600080fd5b9392505050565b6000602082840312156101a257600080fd5b503591905056fea2646970667358221220ccf3df6db224ddd4890801a3179ede2341d3b79e67297621cef6008f522b4b9e64736f6c634300080a0033",
|
||||||
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806301e882081461003b578063ef867ff414610083575b600080fd5b6100676100493660046100d8565b60006020819052908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152015b60405180910390f35b610096610091366004610108565b6100ae565b6040516001600160a01b03909116815260200161007a565b600181815481106100be57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000602082840312156100ea57600080fd5b81356001600160a01b038116811461010157600080fd5b9392505050565b60006020828403121561011a57600080fd5b503591905056fea26469706673582212208b39415173b3f678559d83bbb56ee8b4f17b6bd1c999526ee00defa21731a4cc64736f6c63430008070033",
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301e8820814610046578063160a79251461008e578063ef867ff41461010b575b600080fd5b610072610054366004610160565b60006020819052908152604090205460ff8082169161010090041682565b6040805192151583529015156020830152015b60405180910390f35b6100ec61009c366004610160565b6040805180820190915260008082526020820152506001600160a01b03166000908152602081815260409182902082518084019093525460ff808216151584526101009091041615159082015290565b6040805182511515815260209283015115159281019290925201610085565b61011e610119366004610190565b610136565b6040516001600160a01b039091168152602001610085565b6001818154811061014657600080fd5b6000918252602090912001546001600160a01b0316905081565b60006020828403121561017257600080fd5b81356001600160a01b038116811461018957600080fd5b9392505050565b6000602082840312156101a257600080fd5b503591905056fea2646970667358221220ccf3df6db224ddd4890801a3179ede2341d3b79e67297621cef6008f522b4b9e64736f6c634300080a0033",
|
||||||
"linkReferences": {},
|
"linkReferences": {},
|
||||||
"deployedLinkReferences": {}
|
"deployedLinkReferences": {}
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -415,8 +415,8 @@
|
|||||||
"type": "function"
|
"type": "function"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bytecode": "0x608060405234801561001057600080fd5b5061090f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063431053ac1161005b578063431053ac1461019f5780634a63740a146101b2578063b0c41ead146101c5578063fe1ec880146101f057600080fd5b806310c558bf1461008d578063160a7925146100a257806319c186e514610179578063273e06b31461018c575b600080fd5b6100a061009b366004610859565b610203565b005b6101356100b0366004610859565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260208181526040918290208251608081018452905460ff808216151583526101008204811615159383019390935262010000810483161515938201939093526301000000909204161515606082015290565b604051610170919081511515815260208083015115159082015260408083015115159082015260609182015115159181019190915260800190565b60405180910390f35b6100a0610187366004610859565b6102f0565b6100a061019a366004610859565b6103ca565b6100a06101ad366004610859565b6104fc565b6100a06101c0366004610859565b61062d565b6101d86101d3366004610889565b610703565b6040516001600160a01b039091168152602001610170565b6100a06101fe366004610859565b61072d565b3360009081526020819052604090205460ff1615156001146102405760405162461bcd60e51b8152600401610237906108a2565b60405180910390fd5b6001600160a01b038116600081815260208190526040808220805462ff000019166201000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917fc2a42571a74ce1442c8c44d375ba9442e7d55d94b37afeace261c83c62128fa4906102e49042904390918252602082015260400190565b60405180910390a35050565b3360009081526020819052604090205460ff1615156001146103245760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805463ff0000001916630100000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917feb09276310ed110a7e565d64966d0ff68a47112d2dd5eeb6cbd7451836ce35ee906102e49042904390918252602082015260400190565b3360009081526020819052604090205460ff1615156001148061041b5750336001600160a01b03821614801561041b5750336000908152602081905260409020546301000000900460ff1615156001145b1561047f576001600160a01b03811660008181526020818152604091829020805463ff000000191681558251428152439281019290925292339290917fc929b18b08ffea86a1f95e29384dbe8968f2fcbd70cfd735df3aba1cc548cbf391016102e4565b60405162461bcd60e51b815260206004820152604660248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2037323553746f6064820152651c99531a5cdd60d21b608482015260a401610237565b3360009081526020819052604090205460ff1615156001148061054c5750336001600160a01b03821614801561054c57503360009081526020819052604090205462010000900460ff1615156001145b156105af576001600160a01b03811660008181526020818152604091829020805462ff0000191681558251428152439281019290925292339290917f9b41e1311fa819e825bc77fa2568492112e15ea92d173f3f8ee1c8ec3c1c562b91016102e4565b60405162461bcd60e51b815260206004820152604760248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d206d65746164616064820152661d18481b1a5cdd60ca1b608482015260a401610237565b3360009081526020819052604090205460ff1615156001146106615760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805461ff00191661010017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917f0572d56343be407a66810f01449212e8545e14ff5049c479d34be944cdfd0d4f906102e49042904390918252602082015260400190565b6001818154811061071357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526020819052604090205460ff1615156001148061077d5750336001600160a01b03821614801561077d57503360009081526020819052604090205460ff6101009091041615156001145b156107df576001600160a01b03811660008181526020818152604091829020805461ff00191681558251428152439281019290925292339290917f59bd33f4c27cc16a2d74450e1fa43d7896020be9aecea4bee009db9294de899791016102e4565b60405162461bcd60e51b815260206004820152604360248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2045524332304c6064820152621a5cdd60ea1b608482015260a401610237565b60006020828403121561086b57600080fd5b81356001600160a01b038116811461088257600080fd5b9392505050565b60006020828403121561089b57600080fd5b5035919050565b6020808252601f908201527f455243373231526f6c6573416464726573733a204e4f54204d414e414745520060408201526060019056fea2646970667358221220248218b22aec91e387c93ed97ce3e042c3ec436875947fa77390c9eaed3129ec64736f6c63430008070033",
|
"bytecode": "0x608060405234801561001057600080fd5b5061090f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063431053ac1161005b578063431053ac1461019f5780634a63740a146101b2578063b0c41ead146101c5578063fe1ec880146101f057600080fd5b806310c558bf1461008d578063160a7925146100a257806319c186e514610179578063273e06b31461018c575b600080fd5b6100a061009b366004610859565b610203565b005b6101356100b0366004610859565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260208181526040918290208251608081018452905460ff808216151583526101008204811615159383019390935262010000810483161515938201939093526301000000909204161515606082015290565b604051610170919081511515815260208083015115159082015260408083015115159082015260609182015115159181019190915260800190565b60405180910390f35b6100a0610187366004610859565b6102f0565b6100a061019a366004610859565b6103ca565b6100a06101ad366004610859565b6104fc565b6100a06101c0366004610859565b61062d565b6101d86101d3366004610889565b610703565b6040516001600160a01b039091168152602001610170565b6100a06101fe366004610859565b61072d565b3360009081526020819052604090205460ff1615156001146102405760405162461bcd60e51b8152600401610237906108a2565b60405180910390fd5b6001600160a01b038116600081815260208190526040808220805462ff000019166201000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917fc2a42571a74ce1442c8c44d375ba9442e7d55d94b37afeace261c83c62128fa4906102e49042904390918252602082015260400190565b60405180910390a35050565b3360009081526020819052604090205460ff1615156001146103245760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805463ff0000001916630100000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917feb09276310ed110a7e565d64966d0ff68a47112d2dd5eeb6cbd7451836ce35ee906102e49042904390918252602082015260400190565b3360009081526020819052604090205460ff1615156001148061041b5750336001600160a01b03821614801561041b5750336000908152602081905260409020546301000000900460ff1615156001145b1561047f576001600160a01b03811660008181526020818152604091829020805463ff000000191681558251428152439281019290925292339290917fc929b18b08ffea86a1f95e29384dbe8968f2fcbd70cfd735df3aba1cc548cbf391016102e4565b60405162461bcd60e51b815260206004820152604660248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2037323553746f6064820152651c99531a5cdd60d21b608482015260a401610237565b3360009081526020819052604090205460ff1615156001148061054c5750336001600160a01b03821614801561054c57503360009081526020819052604090205462010000900460ff1615156001145b156105af576001600160a01b03811660008181526020818152604091829020805462ff0000191681558251428152439281019290925292339290917f9b41e1311fa819e825bc77fa2568492112e15ea92d173f3f8ee1c8ec3c1c562b91016102e4565b60405162461bcd60e51b815260206004820152604760248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d206d65746164616064820152661d18481b1a5cdd60ca1b608482015260a401610237565b3360009081526020819052604090205460ff1615156001146106615760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805461ff00191661010017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917f0572d56343be407a66810f01449212e8545e14ff5049c479d34be944cdfd0d4f906102e49042904390918252602082015260400190565b6001818154811061071357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526020819052604090205460ff1615156001148061077d5750336001600160a01b03821614801561077d57503360009081526020819052604090205460ff6101009091041615156001145b156107df576001600160a01b03811660008181526020818152604091829020805461ff00191681558251428152439281019290925292339290917f59bd33f4c27cc16a2d74450e1fa43d7896020be9aecea4bee009db9294de899791016102e4565b60405162461bcd60e51b815260206004820152604360248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2045524332304c6064820152621a5cdd60ea1b608482015260a401610237565b60006020828403121561086b57600080fd5b81356001600160a01b038116811461088257600080fd5b9392505050565b60006020828403121561089b57600080fd5b5035919050565b6020808252601f908201527f455243373231526f6c6573416464726573733a204e4f54204d414e414745520060408201526060019056fea2646970667358221220cabd9a0cec3e45ffba59a95bb3ddc1d19aa1c82a0724b54aabff16b67c302d2c64736f6c634300080a0033",
|
||||||
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063431053ac1161005b578063431053ac1461019f5780634a63740a146101b2578063b0c41ead146101c5578063fe1ec880146101f057600080fd5b806310c558bf1461008d578063160a7925146100a257806319c186e514610179578063273e06b31461018c575b600080fd5b6100a061009b366004610859565b610203565b005b6101356100b0366004610859565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260208181526040918290208251608081018452905460ff808216151583526101008204811615159383019390935262010000810483161515938201939093526301000000909204161515606082015290565b604051610170919081511515815260208083015115159082015260408083015115159082015260609182015115159181019190915260800190565b60405180910390f35b6100a0610187366004610859565b6102f0565b6100a061019a366004610859565b6103ca565b6100a06101ad366004610859565b6104fc565b6100a06101c0366004610859565b61062d565b6101d86101d3366004610889565b610703565b6040516001600160a01b039091168152602001610170565b6100a06101fe366004610859565b61072d565b3360009081526020819052604090205460ff1615156001146102405760405162461bcd60e51b8152600401610237906108a2565b60405180910390fd5b6001600160a01b038116600081815260208190526040808220805462ff000019166201000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917fc2a42571a74ce1442c8c44d375ba9442e7d55d94b37afeace261c83c62128fa4906102e49042904390918252602082015260400190565b60405180910390a35050565b3360009081526020819052604090205460ff1615156001146103245760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805463ff0000001916630100000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917feb09276310ed110a7e565d64966d0ff68a47112d2dd5eeb6cbd7451836ce35ee906102e49042904390918252602082015260400190565b3360009081526020819052604090205460ff1615156001148061041b5750336001600160a01b03821614801561041b5750336000908152602081905260409020546301000000900460ff1615156001145b1561047f576001600160a01b03811660008181526020818152604091829020805463ff000000191681558251428152439281019290925292339290917fc929b18b08ffea86a1f95e29384dbe8968f2fcbd70cfd735df3aba1cc548cbf391016102e4565b60405162461bcd60e51b815260206004820152604660248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2037323553746f6064820152651c99531a5cdd60d21b608482015260a401610237565b3360009081526020819052604090205460ff1615156001148061054c5750336001600160a01b03821614801561054c57503360009081526020819052604090205462010000900460ff1615156001145b156105af576001600160a01b03811660008181526020818152604091829020805462ff0000191681558251428152439281019290925292339290917f9b41e1311fa819e825bc77fa2568492112e15ea92d173f3f8ee1c8ec3c1c562b91016102e4565b60405162461bcd60e51b815260206004820152604760248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d206d65746164616064820152661d18481b1a5cdd60ca1b608482015260a401610237565b3360009081526020819052604090205460ff1615156001146106615760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805461ff00191661010017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917f0572d56343be407a66810f01449212e8545e14ff5049c479d34be944cdfd0d4f906102e49042904390918252602082015260400190565b6001818154811061071357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526020819052604090205460ff1615156001148061077d5750336001600160a01b03821614801561077d57503360009081526020819052604090205460ff6101009091041615156001145b156107df576001600160a01b03811660008181526020818152604091829020805461ff00191681558251428152439281019290925292339290917f59bd33f4c27cc16a2d74450e1fa43d7896020be9aecea4bee009db9294de899791016102e4565b60405162461bcd60e51b815260206004820152604360248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2045524332304c6064820152621a5cdd60ea1b608482015260a401610237565b60006020828403121561086b57600080fd5b81356001600160a01b038116811461088257600080fd5b9392505050565b60006020828403121561089b57600080fd5b5035919050565b6020808252601f908201527f455243373231526f6c6573416464726573733a204e4f54204d414e414745520060408201526060019056fea2646970667358221220248218b22aec91e387c93ed97ce3e042c3ec436875947fa77390c9eaed3129ec64736f6c63430008070033",
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063431053ac1161005b578063431053ac1461019f5780634a63740a146101b2578063b0c41ead146101c5578063fe1ec880146101f057600080fd5b806310c558bf1461008d578063160a7925146100a257806319c186e514610179578063273e06b31461018c575b600080fd5b6100a061009b366004610859565b610203565b005b6101356100b0366004610859565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260208181526040918290208251608081018452905460ff808216151583526101008204811615159383019390935262010000810483161515938201939093526301000000909204161515606082015290565b604051610170919081511515815260208083015115159082015260408083015115159082015260609182015115159181019190915260800190565b60405180910390f35b6100a0610187366004610859565b6102f0565b6100a061019a366004610859565b6103ca565b6100a06101ad366004610859565b6104fc565b6100a06101c0366004610859565b61062d565b6101d86101d3366004610889565b610703565b6040516001600160a01b039091168152602001610170565b6100a06101fe366004610859565b61072d565b3360009081526020819052604090205460ff1615156001146102405760405162461bcd60e51b8152600401610237906108a2565b60405180910390fd5b6001600160a01b038116600081815260208190526040808220805462ff000019166201000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917fc2a42571a74ce1442c8c44d375ba9442e7d55d94b37afeace261c83c62128fa4906102e49042904390918252602082015260400190565b60405180910390a35050565b3360009081526020819052604090205460ff1615156001146103245760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805463ff0000001916630100000017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917feb09276310ed110a7e565d64966d0ff68a47112d2dd5eeb6cbd7451836ce35ee906102e49042904390918252602082015260400190565b3360009081526020819052604090205460ff1615156001148061041b5750336001600160a01b03821614801561041b5750336000908152602081905260409020546301000000900460ff1615156001145b1561047f576001600160a01b03811660008181526020818152604091829020805463ff000000191681558251428152439281019290925292339290917fc929b18b08ffea86a1f95e29384dbe8968f2fcbd70cfd735df3aba1cc548cbf391016102e4565b60405162461bcd60e51b815260206004820152604660248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2037323553746f6064820152651c99531a5cdd60d21b608482015260a401610237565b3360009081526020819052604090205460ff1615156001148061054c5750336001600160a01b03821614801561054c57503360009081526020819052604090205462010000900460ff1615156001145b156105af576001600160a01b03811660008181526020818152604091829020805462ff0000191681558251428152439281019290925292339290917f9b41e1311fa819e825bc77fa2568492112e15ea92d173f3f8ee1c8ec3c1c562b91016102e4565b60405162461bcd60e51b815260206004820152604760248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d206d65746164616064820152661d18481b1a5cdd60ca1b608482015260a401610237565b3360009081526020819052604090205460ff1615156001146106615760405162461bcd60e51b8152600401610237906108a2565b6001600160a01b038116600081815260208190526040808220805461ff00191661010017815560018054808201825593527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690920180546001600160a01b0319168417905551909133917f0572d56343be407a66810f01449212e8545e14ff5049c479d34be944cdfd0d4f906102e49042904390918252602082015260400190565b6001818154811061071357600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526020819052604090205460ff1615156001148061077d5750336001600160a01b03821614801561077d57503360009081526020819052604090205460ff6101009091041615156001145b156107df576001600160a01b03811660008181526020818152604091829020805461ff00191681558251428152439281019290925292339290917f59bd33f4c27cc16a2d74450e1fa43d7896020be9aecea4bee009db9294de899791016102e4565b60405162461bcd60e51b815260206004820152604360248201527f455243373231526f6c6573416464726573733a204e6f7420656e6f756768207060448201527f65726d697373696f6e7320746f2072656d6f76652066726f6d2045524332304c6064820152621a5cdd60ea1b608482015260a401610237565b60006020828403121561086b57600080fd5b81356001600160a01b038116811461088257600080fd5b9392505050565b60006020828403121561089b57600080fd5b5035919050565b6020808252601f908201527f455243373231526f6c6573416464726573733a204e4f54204d414e414745520060408201526060019056fea2646970667358221220cabd9a0cec3e45ffba59a95bb3ddc1d19aa1c82a0724b54aabff16b67c302d2c64736f6c634300080a0033",
|
||||||
"linkReferences": {},
|
"linkReferences": {},
|
||||||
"deployedLinkReferences": {}
|
"deployedLinkReferences": {}
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -422,9 +422,12 @@ type GlobalStats @entity {
|
|||||||
|
|
||||||
type NftUpdate @entity {
|
type NftUpdate @entity {
|
||||||
id: ID! # update tx + nft address
|
id: ID! # update tx + nft address
|
||||||
|
tokenUri: String!
|
||||||
nft: Nft!
|
nft: Nft!
|
||||||
|
|
||||||
|
"provider url that can decrypt the ddo"
|
||||||
|
providerUrl: String
|
||||||
|
|
||||||
"user that made the update"
|
"user that made the update"
|
||||||
userAddress: String!
|
userAddress: String!
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Order } from '../@types/schema'
|
import { Order } from '../@types/schema'
|
||||||
import {
|
import {
|
||||||
ConsumeMarketFees,
|
|
||||||
NewPaymentCollector,
|
NewPaymentCollector,
|
||||||
OrderStarted,
|
OrderStarted,
|
||||||
PublishMarketFees
|
PublishMarketFees
|
||||||
@ -44,13 +43,13 @@ export function handleOrderStarted(event: OrderStarted): void {
|
|||||||
token.decimals
|
token.decimals
|
||||||
)
|
)
|
||||||
|
|
||||||
order.serviceId = event.params.serviceId.toI32()
|
order.serviceId = event.params.serviceIndex.toI32()
|
||||||
|
|
||||||
const publishMarket = getUser(event.params.publishMarketAddress.toHex())
|
const publishMarket = getUser(event.params.publishMarketAddress.toHex())
|
||||||
order.publishingMarket = publishMarket.id
|
order.publishingMarket = publishMarket.id
|
||||||
|
|
||||||
const consumeMarket = getUser(event.params.consumeFeeMarketAddress.toHex())
|
// const consumeMarket = getUser(event.params..toHex())
|
||||||
order.consumerMarket = consumeMarket.id
|
// order.consumerMarket = consumeMarket.id
|
||||||
|
|
||||||
order.createdTimestamp = event.block.timestamp.toI32()
|
order.createdTimestamp = event.block.timestamp.toI32()
|
||||||
order.tx = event.transaction.hash.toHex()
|
order.tx = event.transaction.hash.toHex()
|
||||||
@ -66,7 +65,6 @@ export function handleOrderStarted(event: OrderStarted): void {
|
|||||||
|
|
||||||
export function handleNewPaymentCollector(event: NewPaymentCollector): void {}
|
export function handleNewPaymentCollector(event: NewPaymentCollector): void {}
|
||||||
export function handlePublishMarketFees(event: PublishMarketFees): void {}
|
export function handlePublishMarketFees(event: PublishMarketFees): void {}
|
||||||
export function handleConsumeMarketFees(event: ConsumeMarketFees): void {}
|
|
||||||
|
|
||||||
// export function handlePublishMarketFees(event: PublishMarketFees): void {
|
// export function handlePublishMarketFees(event: PublishMarketFees): void {
|
||||||
// const order = Order.load(
|
// const order = Order.load(
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { log } from '@graphprotocol/graph-ts'
|
||||||
import { NFTCreated, TokenCreated } from '../@types/ERC721Factory/ERC721Factory'
|
import { NFTCreated, TokenCreated } from '../@types/ERC721Factory/ERC721Factory'
|
||||||
import { Nft, Token } from '../@types/schema'
|
import { Nft, Token } from '../@types/schema'
|
||||||
import { ERC20Template, ERC721Template } from '../@types/templates'
|
import { ERC20Template, ERC721Template } from '../@types/templates'
|
||||||
@ -7,13 +8,15 @@ import { getGlobalStats } from './utils/globalUtils'
|
|||||||
import { getUser } from './utils/userUtils'
|
import { getUser } from './utils/userUtils'
|
||||||
|
|
||||||
export function handleNftCreated(event: NFTCreated): void {
|
export function handleNftCreated(event: NFTCreated): void {
|
||||||
|
log.warning('nft handleNftCreated {}', [event.params.tokenURI.toString()])
|
||||||
const nft = new Nft(event.params.newTokenAddress.toHexString())
|
const nft = new Nft(event.params.newTokenAddress.toHexString())
|
||||||
ERC721Template.create(event.params.newTokenAddress)
|
ERC721Template.create(event.params.newTokenAddress)
|
||||||
const user = getUser(event.params.admin.toHexString())
|
const user = getUser(event.params.admin.toHexString())
|
||||||
nft.owner = user.id
|
nft.owner = user.id
|
||||||
nft.address = event.params.newTokenAddress.toHexString()
|
nft.address = event.params.newTokenAddress.toHexString()
|
||||||
nft.name = event.params.tokenName
|
nft.name = event.params.tokenName
|
||||||
nft.symbol = ''
|
nft.symbol = event.params.symbol.toString()
|
||||||
|
nft.tokenUri = event.params.tokenURI.toString()
|
||||||
nft.createdTimestamp = event.block.timestamp.toI32()
|
nft.createdTimestamp = event.block.timestamp.toI32()
|
||||||
nft.tx = event.transaction.hash.toHex()
|
nft.tx = event.transaction.hash.toHex()
|
||||||
nft.block = event.block.number.toI32()
|
nft.block = event.block.number.toI32()
|
||||||
|
@ -19,22 +19,13 @@ import { getToken } from './utils/tokenUtils'
|
|||||||
import { getUser } from './utils/userUtils'
|
import { getUser } from './utils/userUtils'
|
||||||
|
|
||||||
export function handleExchangeCreated(event: ExchangeCreated): void {
|
export function handleExchangeCreated(event: ExchangeCreated): void {
|
||||||
log.warning(
|
|
||||||
'handleExchangeCreated baseToken {} ; dataToken {} ; exchangeOwner {} ; fixedRate {}',
|
|
||||||
[
|
|
||||||
event.params.baseToken.toHexString(),
|
|
||||||
event.params.dataToken.toHexString(),
|
|
||||||
event.params.exchangeOwner.toHexString(),
|
|
||||||
event.params.fixedRate.toBigDecimal().toString()
|
|
||||||
]
|
|
||||||
)
|
|
||||||
const fixedRateExchange = new FixedRateExchange(
|
const fixedRateExchange = new FixedRateExchange(
|
||||||
event.params.exchangeId.toHexString()
|
event.params.exchangeId.toHexString()
|
||||||
)
|
)
|
||||||
const user = getUser(event.params.exchangeOwner.toHexString())
|
const user = getUser(event.params.exchangeOwner.toHexString())
|
||||||
fixedRateExchange.owner = user.id
|
fixedRateExchange.owner = user.id
|
||||||
fixedRateExchange.datatoken = getToken(
|
fixedRateExchange.datatoken = getToken(
|
||||||
event.params.dataToken.toHexString()
|
event.params.datatoken.toHexString()
|
||||||
).id
|
).id
|
||||||
fixedRateExchange.baseToken = getToken(
|
fixedRateExchange.baseToken = getToken(
|
||||||
event.params.baseToken.toHexString()
|
event.params.baseToken.toHexString()
|
||||||
@ -177,7 +168,7 @@ export function handleSwap(event: Swapped): void {
|
|||||||
BigInt.fromI32(baseToken.decimals).toI32()
|
BigInt.fromI32(baseToken.decimals).toI32()
|
||||||
)
|
)
|
||||||
swap.dataTokenAmount = weiToDecimal(
|
swap.dataTokenAmount = weiToDecimal(
|
||||||
event.params.dataTokenSwappedAmount.toBigDecimal(),
|
event.params.datatokenSwappedAmount.toBigDecimal(),
|
||||||
BigInt.fromI32(18).toI32()
|
BigInt.fromI32(18).toI32()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,13 +13,12 @@ function getId(tx: string, nftAddress: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function handleCreated(event: MetadataCreated): void {
|
export function handleCreated(event: MetadataCreated): void {
|
||||||
log.warning('nft handleCreated {}', [event.address.toHex()])
|
|
||||||
const nftAddress = event.address.toHex()
|
const nftAddress = event.address.toHex()
|
||||||
const nft = Nft.load(nftAddress)
|
const nft = Nft.load(nftAddress)
|
||||||
if (!nft) return
|
if (!nft) return
|
||||||
|
|
||||||
nft.assetState = event.params.state
|
nft.assetState = event.params.state
|
||||||
|
nft.providerUrl = event.params.decryptorUrl.toString()
|
||||||
const nftUpdate = new NftUpdate(
|
const nftUpdate = new NftUpdate(
|
||||||
getId(event.transaction.hash.toHex(), nftAddress)
|
getId(event.transaction.hash.toHex(), nftAddress)
|
||||||
)
|
)
|
||||||
@ -28,6 +27,9 @@ export function handleCreated(event: MetadataCreated): void {
|
|||||||
nftUpdate.userAddress = event.params.createdBy.toHex()
|
nftUpdate.userAddress = event.params.createdBy.toHex()
|
||||||
nftUpdate.assetState = event.params.state
|
nftUpdate.assetState = event.params.state
|
||||||
|
|
||||||
|
nftUpdate.nft = nft.id
|
||||||
|
nftUpdate.providerUrl = nft.providerUrl
|
||||||
|
|
||||||
nftUpdate.timestamp = event.block.timestamp.toI32()
|
nftUpdate.timestamp = event.block.timestamp.toI32()
|
||||||
nftUpdate.tx = event.transaction.hash.toHex()
|
nftUpdate.tx = event.transaction.hash.toHex()
|
||||||
nftUpdate.block = event.block.number.toI32()
|
nftUpdate.block = event.block.number.toI32()
|
||||||
@ -88,7 +90,7 @@ export function handleTokenUriUpdate(event: TokenURIUpdate): void {
|
|||||||
|
|
||||||
if (!nft) return
|
if (!nft) return
|
||||||
|
|
||||||
nft.tokenUri = event.params.tokenURI
|
nft.tokenUri = event.params.tokenURI.toString()
|
||||||
|
|
||||||
const nftUpdate = new NftUpdate(
|
const nftUpdate = new NftUpdate(
|
||||||
getId(event.transaction.hash.toHex(), nftAddress)
|
getId(event.transaction.hash.toHex(), nftAddress)
|
||||||
@ -96,7 +98,7 @@ export function handleTokenUriUpdate(event: TokenURIUpdate): void {
|
|||||||
|
|
||||||
nftUpdate.type = NftUpdateType.TOKENURI_UPDATED
|
nftUpdate.type = NftUpdateType.TOKENURI_UPDATED
|
||||||
nftUpdate.userAddress = event.params.updatedBy.toHex()
|
nftUpdate.userAddress = event.params.updatedBy.toHex()
|
||||||
|
nftUpdate.tokenUri = nft.tokenUri
|
||||||
nftUpdate.timestamp = event.block.timestamp.toI32()
|
nftUpdate.timestamp = event.block.timestamp.toI32()
|
||||||
nftUpdate.tx = event.transaction.hash.toHex()
|
nftUpdate.tx = event.transaction.hash.toHex()
|
||||||
nftUpdate.block = event.block.number.toI32()
|
nftUpdate.block = event.block.number.toI32()
|
||||||
|
@ -21,7 +21,6 @@ import { getUser } from './utils/userUtils'
|
|||||||
|
|
||||||
// kinda redundant code in join/swap/exit
|
// kinda redundant code in join/swap/exit
|
||||||
export function handleJoin(event: LOG_JOIN): void {
|
export function handleJoin(event: LOG_JOIN): void {
|
||||||
log.warning('handle join {}', [event.address.toHex()])
|
|
||||||
const pool = getPool(event.address.toHex())
|
const pool = getPool(event.address.toHex())
|
||||||
const user = getUser(event.params.caller.toHex())
|
const user = getUser(event.params.caller.toHex())
|
||||||
const poolTx = getPoolTransaction(event, user.id, PoolTransactionType.JOIN)
|
const poolTx = getPoolTransaction(event, user.id, PoolTransactionType.JOIN)
|
||||||
@ -36,10 +35,6 @@ export function handleJoin(event: LOG_JOIN): void {
|
|||||||
event.params.tokenAmountIn.toBigDecimal(),
|
event.params.tokenAmountIn.toBigDecimal(),
|
||||||
token.decimals
|
token.decimals
|
||||||
)
|
)
|
||||||
log.warning('handle join ammount {} tokenAmountIn {}', [
|
|
||||||
ammount.toString(),
|
|
||||||
event.params.tokenAmountIn.toString()
|
|
||||||
])
|
|
||||||
if (token.isDatatoken) {
|
if (token.isDatatoken) {
|
||||||
poolTx.datatoken = token.id
|
poolTx.datatoken = token.id
|
||||||
poolTx.datatokenValue = ammount
|
poolTx.datatokenValue = ammount
|
||||||
@ -58,11 +53,6 @@ export function handleJoin(event: LOG_JOIN): void {
|
|||||||
pool.baseTokenLiquidity = pool.baseTokenLiquidity.plus(ammount)
|
pool.baseTokenLiquidity = pool.baseTokenLiquidity.plus(ammount)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.warning('handle join baseTokenLiquidity {} datatokenLiquidity {}', [
|
|
||||||
pool.baseTokenLiquidity.toString(),
|
|
||||||
pool.datatokenLiquidity.toString()
|
|
||||||
])
|
|
||||||
|
|
||||||
poolSnapshot.save()
|
poolSnapshot.save()
|
||||||
poolTx.save()
|
poolTx.save()
|
||||||
pool.save()
|
pool.save()
|
||||||
@ -181,7 +171,6 @@ export function handleSwap(event: LOG_SWAP): void {
|
|||||||
|
|
||||||
// setup is just to set token weight(it will mostly be 50:50) and spotPrice
|
// setup is just to set token weight(it will mostly be 50:50) and spotPrice
|
||||||
export function handleSetup(event: LOG_SETUP): void {
|
export function handleSetup(event: LOG_SETUP): void {
|
||||||
log.warning('new Pool from {} ', [event.transaction.from.toHexString()])
|
|
||||||
const pool = getPool(event.address.toHex())
|
const pool = getPool(event.address.toHex())
|
||||||
|
|
||||||
pool.controller = event.params.caller.toHexString()
|
pool.controller = event.params.caller.toHexString()
|
||||||
@ -193,10 +182,10 @@ export function handleSetup(event: LOG_SETUP): void {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// decimals hardcoded because datatokens have 18 decimals
|
// decimals hardcoded because datatokens have 18 decimals
|
||||||
const datatoken = getToken(event.params.dataToken.toHex())
|
const datatoken = getToken(event.params.datatoken.toHex())
|
||||||
pool.datatoken = datatoken.id
|
pool.datatoken = datatoken.id
|
||||||
pool.datatokenWeight = weiToDecimal(
|
pool.datatokenWeight = weiToDecimal(
|
||||||
event.params.dataTokenWeight.toBigDecimal(),
|
event.params.datatokenWeight.toBigDecimal(),
|
||||||
18
|
18
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -241,12 +230,6 @@ export function handlerBptTransfer(event: Transfer): void {
|
|||||||
poolAddress,
|
poolAddress,
|
||||||
event.block.timestamp.toI32()
|
event.block.timestamp.toI32()
|
||||||
)
|
)
|
||||||
log.warning('bpt transfer tx: {} from: {} | to {} | ammount {} ', [
|
|
||||||
event.transaction.hash.toHex(),
|
|
||||||
fromAddress,
|
|
||||||
toAddress,
|
|
||||||
event.params.amt.toString()
|
|
||||||
])
|
|
||||||
|
|
||||||
// btoken has 18 decimals
|
// btoken has 18 decimals
|
||||||
const ammount = weiToDecimal(event.params.amt.toBigDecimal(), 18)
|
const ammount = weiToDecimal(event.params.amt.toBigDecimal(), 18)
|
||||||
|
@ -8,9 +8,9 @@ dataSources:
|
|||||||
name: ERC721Factory
|
name: ERC721Factory
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x3405C797C132e3BC7BdD10A16b6394a2d71fE77a'
|
address: '0x65aCFbcf0576D5740d1a824afd1776E7D4034C3D'
|
||||||
abi: ERC721Factory
|
abi: ERC721Factory
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -30,9 +30,9 @@ dataSources:
|
|||||||
name: FixedRateExchange
|
name: FixedRateExchange
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x5FfBfa9cbC9BC1D0366E3B558825ABfc2889FA8e'
|
address: '0x40F63Ec24aDc291d41F63fBA356Dd9983197c83a'
|
||||||
abi: FixedRateExchange
|
abi: FixedRateExchange
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -64,9 +64,9 @@ dataSources:
|
|||||||
name: Dispenser
|
name: Dispenser
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x57f4A9C96f2c433B0eD2Dcf7A7460C90f555192F'
|
address: '0x5b18fbac5aA81B4a0CAF993afb69b2ADfC3E8833'
|
||||||
abi: Dispenser
|
abi: Dispenser
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -95,9 +95,9 @@ dataSources:
|
|||||||
name: FactoryRouter
|
name: FactoryRouter
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x9E70c93B69B0cFc784736d46D0C11F3c438DA587'
|
address: '0x5a31C7e57D51fc0991C1315c66587e7a158c9c40'
|
||||||
abi: FactoryRouter
|
abi: FactoryRouter
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -135,14 +135,12 @@ templates:
|
|||||||
- name: ERC20Roles
|
- name: ERC20Roles
|
||||||
file: ./abis/ERC20Roles.json
|
file: ./abis/ERC20Roles.json
|
||||||
eventHandlers:
|
eventHandlers:
|
||||||
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,indexed address,uint256)
|
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,uint256)
|
||||||
handler: handleOrderStarted
|
handler: handleOrderStarted
|
||||||
- event: NewPaymentCollector(indexed address,indexed address,uint256,uint256)
|
- event: NewPaymentCollector(indexed address,indexed address,uint256,uint256)
|
||||||
handler: handleNewPaymentCollector
|
handler: handleNewPaymentCollector
|
||||||
- event: PublishMarketFees(indexed address,indexed address,uint256)
|
- event: PublishMarketFees(indexed address,indexed address,uint256)
|
||||||
handler: handlePublishMarketFees
|
handler: handlePublishMarketFees
|
||||||
- event: ConsumeMarketFees(indexed address,indexed address,uint256)
|
|
||||||
handler: handleConsumeMarketFees
|
|
||||||
|
|
||||||
- name: BPool
|
- name: BPool
|
||||||
kind: ethereum/contract
|
kind: ethereum/contract
|
||||||
@ -192,9 +190,9 @@ templates:
|
|||||||
- name: ERC721Template
|
- name: ERC721Template
|
||||||
file: ./abis/ERC721Template.json
|
file: ./abis/ERC721Template.json
|
||||||
eventHandlers:
|
eventHandlers:
|
||||||
- event: MetadataCreated(indexed address,uint8,string,bytes,bytes,bytes,uint256,uint256)
|
- event: MetadataCreated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
||||||
handler: handleCreated
|
handler: handleCreated
|
||||||
- event: MetadataUpdated(indexed address,uint8,string,bytes,bytes,bytes,uint256,uint256)
|
- event: MetadataUpdated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
||||||
handler: handleUpdated
|
handler: handleUpdated
|
||||||
- event: MetadataState(indexed address,uint8,uint256,uint256)
|
- event: MetadataState(indexed address,uint8,uint256,uint256)
|
||||||
handler: handleState
|
handler: handleState
|
||||||
|
@ -8,9 +8,9 @@ dataSources:
|
|||||||
name: ERC721Factory
|
name: ERC721Factory
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x15087E3E9eAAAb37d32d9D06Fa4000309BD7Ee6D'
|
address: '0x65aCFbcf0576D5740d1a824afd1776E7D4034C3D'
|
||||||
abi: ERC721Factory
|
abi: ERC721Factory
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -30,9 +30,9 @@ dataSources:
|
|||||||
name: FixedRateExchange
|
name: FixedRateExchange
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0xB5f34bd0B3E8e59447fD5a750F2dE4262BABE66C'
|
address: '0x40F63Ec24aDc291d41F63fBA356Dd9983197c83a'
|
||||||
abi: FixedRateExchange
|
abi: FixedRateExchange
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -64,9 +64,9 @@ dataSources:
|
|||||||
name: Dispenser
|
name: Dispenser
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x17b1760c20eAc7A2656412412F6020e6c00b78BD'
|
address: '0x5b18fbac5aA81B4a0CAF993afb69b2ADfC3E8833'
|
||||||
abi: Dispenser
|
abi: Dispenser
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -95,9 +95,9 @@ dataSources:
|
|||||||
name: FactoryRouter
|
name: FactoryRouter
|
||||||
network: rinkeby
|
network: rinkeby
|
||||||
source:
|
source:
|
||||||
address: '0x31066E8eFe281C755dC21d828bdF30363D055baB'
|
address: '0x5a31C7e57D51fc0991C1315c66587e7a158c9c40'
|
||||||
abi: FactoryRouter
|
abi: FactoryRouter
|
||||||
startBlock: 9989814
|
startBlock: 10065057
|
||||||
mapping:
|
mapping:
|
||||||
kind: ethereum/events
|
kind: ethereum/events
|
||||||
apiVersion: 0.0.6
|
apiVersion: 0.0.6
|
||||||
@ -135,14 +135,12 @@ templates:
|
|||||||
- name: ERC20Roles
|
- name: ERC20Roles
|
||||||
file: ./abis/ERC20Roles.json
|
file: ./abis/ERC20Roles.json
|
||||||
eventHandlers:
|
eventHandlers:
|
||||||
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,indexed address,uint256)
|
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,uint256)
|
||||||
handler: handleOrderStarted
|
handler: handleOrderStarted
|
||||||
- event: NewPaymentCollector(indexed address,indexed address,uint256,uint256)
|
- event: NewPaymentCollector(indexed address,indexed address,uint256,uint256)
|
||||||
handler: handleNewPaymentCollector
|
handler: handleNewPaymentCollector
|
||||||
- event: PublishMarketFees(indexed address,indexed address,uint256)
|
- event: PublishMarketFees(indexed address,indexed address,uint256)
|
||||||
handler: handlePublishMarketFees
|
handler: handlePublishMarketFees
|
||||||
- event: ConsumeMarketFees(indexed address,indexed address,uint256)
|
|
||||||
handler: handleConsumeMarketFees
|
|
||||||
|
|
||||||
- name: BPool
|
- name: BPool
|
||||||
kind: ethereum/contract
|
kind: ethereum/contract
|
||||||
@ -192,9 +190,9 @@ templates:
|
|||||||
- name: ERC721Template
|
- name: ERC721Template
|
||||||
file: ./abis/ERC721Template.json
|
file: ./abis/ERC721Template.json
|
||||||
eventHandlers:
|
eventHandlers:
|
||||||
- event: MetadataCreated(indexed address,uint8,string,bytes,bytes,bytes,uint256,uint256)
|
- event: MetadataCreated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
||||||
handler: handleCreated
|
handler: handleCreated
|
||||||
- event: MetadataUpdated(indexed address,uint8,string,bytes,bytes,bytes,uint256,uint256)
|
- event: MetadataUpdated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
||||||
handler: handleUpdated
|
handler: handleUpdated
|
||||||
- event: MetadataState(indexed address,uint8,uint256,uint256)
|
- event: MetadataState(indexed address,uint8,uint256,uint256)
|
||||||
handler: handleState
|
handler: handleState
|
||||||
|
Loading…
Reference in New Issue
Block a user