2018-04-25 18:49:13 +00:00
|
|
|
{
|
|
|
|
"contract_name": "IdentityFactory",
|
|
|
|
"code": "608060405234801561001057600080fd5b50604051613d60380380613d608339810160405280510161002f610297565b604051809103906000f08015801561004b573d6000803e3d6000fd5b5060008054600160a060020a03191633600160a060020a031617905561007981640100000000610080810204565b50506102a7565b600454600090600160a060020a038381169116141561009e57600080fd5b6100b082640100000000610202810204565b60028054600160a060020a038086166000818152600160208181526040808420879055805160808101825243815242818401818152828401888152606084018d8152968b018c559a909652905160049889027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019190915594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf86015597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad08501805491909716600160a060020a03199182161790965591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad190930192909255600395909555835490921681179092558251918252810183905281519293507f1f6d323e0f0d100bbeff07e00af23eca57fcb99f3efdef25cba223d7a34d0f31929081900390910190a15050565b60006060823b82811161021457600080fd5b60408051603f8301601f19168101909152818152915080600060208401863c816040518082805190602001908083835b602083106102635780518252601f199092019160209182019101610244565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b604051612fd780610d8983390190565b610ad3806102b66000396000f30060806040526004361061008d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633cebb823811461009257806359d21ad9146100b55780635b2ab06c146100e657806381ea440814610107578063b88da7591461013a578063be537a7914610180578063cc81203c146101b5578063f77c4791146101d6575b600080fd5b34801561009e57600080fd5b506100b3600160a060020a03600435166101eb565b005b3480156100c157600080fd5b506100ca610235565b60408051600160a060020a039092168252519081900360200190f35b3480156100f257600080fd5b506100ca600160a060020a0360043516610245565b34801561011357600080fd5b50610128600160a060020a036004351661035d565b60408051918252519081900360200190f35b34801561014657600080fd5b506101526004356103f2565b604080519485526020850193909352600160a060020a03909116838301526060830152519081900360800190f35b34801561018c57600080fd5b506101a1600160a060020a0360043516610498565b604080519115158252519081900360200190f35b3480156101c157600080fd5b506100b3600160a060020a03600435166104b4565b3480156101e257600080fd5b506100ca6104db565b60005433600160a060020a0390811691161461020657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600061024033610245565b905090565b6004546000908190600160a060020a031661025e610670565b600160a060020a03909116815260405190819003602001906000f08015801561028b573d6000803e3d6000fd5b50905080600160a060020a031663230818b2846040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050600060405180830381600087803b15801561030257600080fd5b505af1158015610316573d6000803e3d6000fd5b505060408051600160a060020a038516815290517fac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf09350908190036020019150a192915050565b60006060823b82811161036f57600080fd5b60408051603f8301601f19168101909152818152915080600060208401863c816040518082805190602001908083835b602083106103be5780518252601f19909201916020918201910161039f565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b60008060008060028581548110151561040757fe5b90600052602060002090600402016000015460028681548110151561042857fe5b90600052602060002090600402016001015460028781548110151561044957fe5b6000918252602090912060026004909202018101548154600160a060020a0390911691908990811061047757fe5b90600052602060002090600402016003015493509350935093509193509193565b600160a060020a03166000908152600160205260408120541190565b60005433600160a060020a039081169116146104cf57600080fd5b6104d8816104ea565b50565b600054600160a060020a031681565b600454600090600160a060020a038381169116141561050857600080fd5b6105118261035d565b60028054600160a060020a038086166000818152600160208181526040808420879055805160808101825243815242818401
|
|
|
|
"runtime_bytecode": "60806040526004361061008d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633cebb823811461009257806359d21ad9146100b55780635b2ab06c146100e657806381ea440814610107578063b88da7591461013a578063be537a7914610180578063cc81203c146101b5578063f77c4791146101d6575b600080fd5b34801561009e57600080fd5b506100b3600160a060020a03600435166101eb565b005b3480156100c157600080fd5b506100ca610235565b60408051600160a060020a039092168252519081900360200190f35b3480156100f257600080fd5b506100ca600160a060020a0360043516610245565b34801561011357600080fd5b50610128600160a060020a036004351661035d565b60408051918252519081900360200190f35b34801561014657600080fd5b506101526004356103f2565b604080519485526020850193909352600160a060020a03909116838301526060830152519081900360800190f35b34801561018c57600080fd5b506101a1600160a060020a0360043516610498565b604080519115158252519081900360200190f35b3480156101c157600080fd5b506100b3600160a060020a03600435166104b4565b3480156101e257600080fd5b506100ca6104db565b60005433600160a060020a0390811691161461020657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600061024033610245565b905090565b6004546000908190600160a060020a031661025e610670565b600160a060020a03909116815260405190819003602001906000f08015801561028b573d6000803e3d6000fd5b50905080600160a060020a031663230818b2846040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050600060405180830381600087803b15801561030257600080fd5b505af1158015610316573d6000803e3d6000fd5b505060408051600160a060020a038516815290517fac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf09350908190036020019150a192915050565b60006060823b82811161036f57600080fd5b60408051603f8301601f19168101909152818152915080600060208401863c816040518082805190602001908083835b602083106103be5780518252601f19909201916020918201910161039f565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b60008060008060028581548110151561040757fe5b90600052602060002090600402016000015460028681548110151561042857fe5b90600052602060002090600402016001015460028781548110151561044957fe5b6000918252602090912060026004909202018101548154600160a060020a0390911691908990811061047757fe5b90600052602060002090600402016003015493509350935093509193509193565b600160a060020a03166000908152600160205260408120541190565b60005433600160a060020a039081169116146104cf57600080fd5b6104d8816104ea565b50565b600054600160a060020a031681565b600454600090600160a060020a038381169116141561050857600080fd5b6105118261035d565b60028054600160a060020a038086166000818152600160208181526040808420879055805160808101825243815242818401818152828401888152606084018d8152968b018c559a909652905160049889027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019190915594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf86015597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad0850180549190971673ffffffffffffffffffffffffffffffffffffffff199182161790965591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad190930192909255600395909555835490921681179092558251918252810183905281519293507f1f6d323e0f0d100bbeff07e00af23eca57fcb99f3efdef25cba223d7a34d0f31929081900390910190a15050565b60405161042780610681833901905600608060405234801561001057600080fd5b50604051602080610427833981016040525160008054600160a060020a03909216600160a060020a03199092169190911790556103d5806100526000396000f30060806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663579cf8a781146100c957806387f11a97146100ea578063a2e620451461010b578063d4aae0c414610143578063efcba0ee14610174575b34801561007857600080fd5b50610081610189565b600160a060020a031660003660405180838380828437820191505092505050600060405180830381855af491505015156100ba57600080fd5b3d604051816000823e8181f35b005b3480156100d557600080fd5b506100c7600160a060020a0360043516610198565b3480156100f657600080fd5b506100c7600160a060020a0360043516610283565b34801561011757600080fd5b5061012061032a565b
|
|
|
|
"real_runtime_bytecode": "60806040526004361061008d5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633cebb823811461009257806359d21ad9146100b55780635b2ab06c146100e657806381ea440814610107578063b88da7591461013a578063be537a7914610180578063cc81203c146101b5578063f77c4791146101d6575b600080fd5b34801561009e57600080fd5b506100b3600160a060020a03600435166101eb565b005b3480156100c157600080fd5b506100ca610235565b60408051600160a060020a039092168252519081900360200190f35b3480156100f257600080fd5b506100ca600160a060020a0360043516610245565b34801561011357600080fd5b50610128600160a060020a036004351661035d565b60408051918252519081900360200190f35b34801561014657600080fd5b506101526004356103f2565b604080519485526020850193909352600160a060020a03909116838301526060830152519081900360800190f35b34801561018c57600080fd5b506101a1600160a060020a0360043516610498565b604080519115158252519081900360200190f35b3480156101c157600080fd5b506100b3600160a060020a03600435166104b4565b3480156101e257600080fd5b506100ca6104db565b60005433600160a060020a0390811691161461020657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600061024033610245565b905090565b6004546000908190600160a060020a031661025e610670565b600160a060020a03909116815260405190819003602001906000f08015801561028b573d6000803e3d6000fd5b50905080600160a060020a031663230818b2846040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050600060405180830381600087803b15801561030257600080fd5b505af1158015610316573d6000803e3d6000fd5b505060408051600160a060020a038516815290517fac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf09350908190036020019150a192915050565b60006060823b82811161036f57600080fd5b60408051603f8301601f19168101909152818152915080600060208401863c816040518082805190602001908083835b602083106103be5780518252601f19909201916020918201910161039f565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b60008060008060028581548110151561040757fe5b90600052602060002090600402016000015460028681548110151561042857fe5b90600052602060002090600402016001015460028781548110151561044957fe5b6000918252602090912060026004909202018101548154600160a060020a0390911691908990811061047757fe5b90600052602060002090600402016003015493509350935093509193509193565b600160a060020a03166000908152600160205260408120541190565b60005433600160a060020a039081169116146104cf57600080fd5b6104d8816104ea565b50565b600054600160a060020a031681565b600454600090600160a060020a038381169116141561050857600080fd5b6105118261035d565b60028054600160a060020a038086166000818152600160208181526040808420879055805160808101825243815242818401818152828401888152606084018d8152968b018c559a909652905160049889027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019190915594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf86015597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad0850180549190971673ffffffffffffffffffffffffffffffffffffffff199182161790965591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad190930192909255600395909555835490921681179092558251918252810183905281519293507f1f6d323e0f0d100bbeff07e00af23eca57fcb99f3efdef25cba223d7a34d0f31929081900390910190a15050565b60405161042780610681833901905600608060405234801561001057600080fd5b50604051602080610427833981016040525160008054600160a060020a03909216600160a060020a03199092169190911790556103d5806100526000396000f30060806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663579cf8a781146100c957806387f11a97146100ea578063a2e620451461010b578063d4aae0c414610143578063efcba0ee14610174575b34801561007857600080fd5b50610081610189565b600160a060020a031660003660405180838380828437820191505092505050600060405180830381855af491505015156100ba57600080fd5b3d604051816000823e8181f35b005b3480156100d557600080fd5b506100c7600160a060020a0360043516610198565b3480156100f657600080fd5b506100c7600160a060020a0360043516610283565b34801561011757600080fd5b5061012061032
|
|
|
|
"swarm_hash": "86ee84fbf17e634ce8a5796041fc622e7fe2b06d64d0a623192d14759ff64abb",
|
|
|
|
"gas_estimates": {
|
|
|
|
"creation": {
|
|
|
|
"codeDepositCost": "554200",
|
|
|
|
"executionCost": "infinite",
|
|
|
|
"totalCost": "infinite"
|
|
|
|
},
|
|
|
|
"external": {
|
|
|
|
"changeController(address)": "20834",
|
|
|
|
"controller()": "691",
|
|
|
|
"createIdentity()": "infinite",
|
|
|
|
"createIdentity(address)": "infinite",
|
|
|
|
"getCodeHash(address)": "infinite",
|
|
|
|
"getVersion(uint256)": "2570",
|
|
|
|
"isKernel(address)": "725",
|
|
|
|
"setKernel(address)": "infinite"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"function_hashes": {
|
|
|
|
"changeController(address)": "3cebb823",
|
|
|
|
"controller()": "f77c4791",
|
|
|
|
"createIdentity()": "59d21ad9",
|
|
|
|
"createIdentity(address)": "5b2ab06c",
|
|
|
|
"getCodeHash(address)": "81ea4408",
|
|
|
|
"getVersion(uint256)": "b88da759",
|
|
|
|
"isKernel(address)": "be537a79",
|
|
|
|
"setKernel(address)": "cc81203c"
|
|
|
|
},
|
|
|
|
"abi": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_newController",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "changeController",
|
|
|
|
"outputs": [],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"inputs": [],
|
|
|
|
"name": "createIdentity",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_idOwner",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "createIdentity",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": true,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_addr",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "getCodeHash",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "codeHash",
|
|
|
|
"type": "bytes32"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": true,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "index",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "getVersion",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "blockNumber",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "timestamp",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "kernel",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "codeHash",
|
|
|
|
"type": "bytes32"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_addr",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "isKernel",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_kernel",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "setKernel",
|
|
|
|
"outputs": [],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": true,
|
|
|
|
"inputs": [],
|
|
|
|
"name": "controller",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"name": "_infohash",
|
|
|
|
"type": "bytes"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"payable": false,
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "constructor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"name": "instance",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "IdentityCreated",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"name": "newKernel",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"name": "codeHash",
|
|
|
|
"type": "bytes32"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "NewKernel",
|
|
|
|
"type": "event"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|