2021-10-31 23:23:58 +00:00
|
|
|
package params
|
|
|
|
|
|
|
|
import "github.com/ethereum/go-ethereum/common/math"
|
|
|
|
|
|
|
|
var pulseChainTestnetTreasury Treasury
|
|
|
|
|
|
|
|
var pulseChainTestnetInitValidators = []string{
|
|
|
|
"0xdB5f55b6111f0adC916921Cf5624B2768f6524F8",
|
|
|
|
"0x33C31EE0457ADfE7e41FD65A33f50262Cc97eA1A",
|
|
|
|
"0x9F8ff5790D111915b55eF9D9BBd6E82Ef08c4550",
|
|
|
|
}
|
|
|
|
var pulseChainTestnetSystemContracts = []SystemContract{
|
|
|
|
{
|
|
|
|
Addr: "0x0000000000000000000000000000000000000666",
|
2021-11-18 18:28:42 +00:00
|
|
|
Code: "0x6080604052600080fdfea26469706673582212202b648b36cb82ab85836e2d58b86ed7319f885513bac876bbd70c01996b8aca3964736f6c63430008090033",
|
2021-10-31 23:23:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Addr: "0x0000000000000000000000000000000000001000",
|
2021-11-18 18:28:42 +00:00
|
|
|
Code: "0x6080604052600436106101095760003560e01c8063c3f8d5f411610095578063e589b61e11610064578063e589b61e146102e4578063eb57e20214610304578063f340fa0114610324578063f677e55714610337578063f9a2bbc71461035757600080fd5b8063c3f8d5f41461028e578063daacdb66146102a4578063e086c7b1146102ba578063e1c7392a146102cf57600080fd5b806381650b62116100dc57806381650b62146101d6578063a78abc1614610200578063ab51bb961461022a578063ad3c9da61461023f578063b7ab4db51461026c57600080fd5b80630e2374a51461010e57806335409f7f14610141578063565c56b3146101635780636969a25c14610191575b600080fd5b34801561011a57600080fd5b5061012461100281565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014d57600080fd5b5061016161015c366004611e44565b61036d565b005b34801561016f57600080fd5b5061018361017e366004611e44565b6105d0565b604051908152602001610138565b34801561019d57600080fd5b506101b16101ac366004611e6d565b61062d565b604080516001600160a01b039094168452911515602084015290820152606001610138565b3480156101e257600080fd5b506101eb606581565b60405163ffffffff9091168152602001610138565b34801561020c57600080fd5b5060005461021a9060ff1681565b6040519015158152602001610138565b34801561023657600080fd5b506101eb600081565b34801561024b57600080fd5b5061018361025a366004611e44565b60026020526000908152604090205481565b34801561027857600080fd5b50610281610670565b6040516101389190611e86565b34801561029a57600080fd5b5061012461100181565b3480156102b057600080fd5b5061018360035481565b3480156102c657600080fd5b50610183602981565b3480156102db57600080fd5b506101616107e1565b3480156102f057600080fd5b506101eb6102ff366004611e44565b610942565b34801561031057600080fd5b5061016161031f366004611e44565b610b25565b610161610332366004611e44565b610c10565b34801561034357600080fd5b506101eb610352366004611ed3565b610e1d565b34801561036357600080fd5b5061012461100081565b33611001146103975760405162461bcd60e51b815260040161038e90611f48565b60405180910390fd5b6001600160a01b038116600090815260026020526040902054806103b9575050565b6103c4600182611fa7565b90506000600182815481106103db576103db611fbe565b600091825260208220600160029092020181015481549093506103fe9190611fa7565b9050806104355760006001848154811061041a5761041a611fbe565b90600052602060002090600202016001018190555050505050565b836001600160a01b03167f17b74c5cba45cad2290ed1e96fedbc95120d08d9db606e6b540ef7355e0897a08360405161047091815260200190565b60405180910390a26001600160a01b0384166000908152600260205260408120556001805461049f9190611fa7565b831461059057600180546104b4908290611fa7565b815481106104c4576104c4611fbe565b9060005260206000209060020201600184815481106104e5576104e5611fbe565b60009182526020909120825460029092020180546001600160a01b039092166001600160a01b031983168117825583546001600160a81b031990931617600160a01b9283900460ff1615159092029190911781556001918201549082015561054e908490611fd4565b600260006001868154811061056557610565611fbe565b600091825260208083206002909202909101546001600160a01b031683528201929092526040019020555b60018054806105a1576105a1611fec565b60008281526020812060026000199093019283020180546001600160a81b031916815560010155905550505050565b6001600160a01b038116600090815260026020526040812054806105f75750600092915050565b60016106038183611fa7565b8154811061061357610613611fbe565b906000526020600020906002020160010154915050919050565b6001818154811061063d57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0382169250600160a01b90910460ff169083565b6001546060906000805b828110156106d4576001818154811061069557610695611fbe565b6000918252602090912060029091020154600160a01b900460ff166106c257816106be81612002565b9250505b806106cc81612002565b91505061067a565b5060008167ffffffffffffffff8111156106f0576106f061201d565b604051908082528060200260200182016040528015610719578160200160208202803683370190505b5090506000915060005b838110156107d9576001818154811061073e5761073e611fbe565b6000918252602090912060029091020154600160a01b900460ff166107c7576001818154811061077057610770611fbe565b600091825260209091206002909102015482516001600160a01b03909116908390859081106107a1576107a1611fbe565b6001600160a01b0390921660209283029190910190910152826107c381612002565b9350505b806107d181612002565b915050610723565b509392505050565b60005460ff16156108345760405162461bcd60e51b815260
|
2021-10-31 23:23:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Addr: "0x0000000000000000000000000000000000001001",
|
2021-11-18 18:28:42 +00:00
|
|
|
Code: "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063ab51bb961161008c578063c80d4b8f11610066578063c80d4b8f1461024c578063c96be4cb14610254578063f9a2bbc714610269578063fc4333cd1461027257600080fd5b8063ab51bb961461021e578063ac0af6291461023b578063c3f8d5f41461024357600080fd5b806337c8dab9116100c857806337c8dab91461017657806362b72cf5146101e25780637912a65d146101f9578063a78abc161461020157600080fd5b80630e2374a5146100ef57806323bac5a21461011557806335aa2e4414610163575b600080fd5b6100f861100281565b6040516001600160a01b0390911681526020015b60405180910390f35b610146610123366004610a98565b600260208190526000918252604090912080546001820154919092015460ff1683565b60408051938452602084019290925215159082015260600161010c565b6100f8610171366004610ac8565b61027a565b6101cd610184366004610a98565b6001600160a01b0316600090815260026020818152604092839020835160608101855281548082526001830154938201849052919093015460ff16151592909301919091529091565b6040805192835260208301919091520161010c565b6101eb60035481565b60405190815260200161010c565b6101eb603281565b60005461020e9060ff1681565b604051901515815260200161010c565b610226600081565b60405163ffffffff909116815260200161010c565b6101eb600481565b6100f861100181565b6101eb609681565b610267610262366004610a98565b6102a4565b005b6100f861100081565b6102676105bb565b6001818154811061028a57600080fd5b6000918252602090912001546001600160a01b0316905081565b33411461030e5760405162461bcd60e51b815260206004820152602d60248201527f746865206d6573736167652073656e646572206d75737420626520746865206260448201526c3637b1b590383937b23ab1b2b960991b60648201526084015b60405180910390fd5b3a156103535760405162461bcd60e51b81526020600482015260146024820152736761737072696365206973206e6f74207a65726f60601b6044820152606401610305565b60035443116103a45760405162461bcd60e51b815260206004820181905260248201527f63616e206e6f7420736c61736820747769636520696e206f6e6520626c6f636b6044820152606401610305565b6001600160a01b0381166000908152600260208181526040928390208351606081018552815481526001820154928101929092529091015460ff16158015928201929092529061040657602081018051906103fe82610af7565b90525061045f565b60016040820181905260208201819052805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0384161790555b438152602081015161047390609690610b28565b6104de57600060208201526040516335409f7f60e01b81526001600160a01b0383166004820152611000906335409f7f90602401600060405180830381600087803b1580156104c157600080fd5b505af11580156104d5573d6000803e3d6000fd5b5050505061054f565b603281602001516104ef9190610b28565b61054f576040516375abf10160e11b81526001600160a01b03831660048201526110009063eb57e20290602401600060405180830381600087803b15801561053657600080fd5b505af115801561054a573d6000803e3d6000fd5b505050505b6001600160a01b0382166000818152600260208181526040808420865181559186015160018301558581015191909201805460ff1916911515919091179055517f1647efd0ce9727dc31dc201c9d8d35ac687f7370adcacbd454afc6485ddabfda9190a2505043600355565b33611000146106255760405162461bcd60e51b815260206004820152603060248201527f746865206d6573736167652073656e646572206d7573742062652076616c696460448201526f185d1bdc94d95d0818dbdb9d1c9858dd60821b6064820152608401610305565b60015461062e57565b6001805460009182916106419190610b3c565b90505b808211610a6b576000805b82841015610781576000600260006001878154811061067057610670610b53565b60009182526020808320909101546001600160a01b0316835282810193909352604091820190208151606081018352815481526001820154938101939093526002015460ff1615159082015290506106ca60046096610b69565b81602001511115610764576106e160046096610b69565b81602001516106f09190610b3c565b81602001818152505080600260006001888154811061071157610711610b53565b6000918252602080832091909101546001600160a01b0316835282810193909352604091820190208351815591830151600183015591909101516002909101805460ff191691151591909117905561076e565b6001925050610781565b508361077981610af7565b94505061064f565b82841161093c57600060026000600186815481106107a1576107a1610b53565b60009182526020808320909101546001600160a01b0316835282810193909352604091820190208151606081018352815481526001820154938101939093526002015460ff1615159082015290506107fb60046096610b69
|
2021-10-31 23:23:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Addr: "0x0000000000000000000000000000000000001002",
|
2021-11-18 18:28:42 +00:00
|
|
|
Code: "0x6080604052600436106101405760003560e01c80639c2972ca116100b6578063c3f8d5f41161006f578063c3f8d5f41461038a578063db7fa0fa146103a0578063e1c7392a146103b5578063f4075602146103ca578063f519c8f1146103f7578063f9a2bbc71461040d57600080fd5b80639c2972ca146102c65780639e027604146102e8578063a78abc16146102f0578063ab51bb961461031a578063b1ab7df814610344578063be64b76b1461036c57600080fd5b80631904bb2e116101085780631904bb2e1461020f5780632cfd9fc61461023c578063389e36fb146102515780634754857c1461027157806368ce7d8a146102845780639bd571db146102a457600080fd5b80630d1bdb96146101455780630e2374a514610171578063107679041461019f578063183516c6146101b457806318d50d33146101d4575b600080fd5b34801561015157600080fd5b5061015a603281565b60405160ff90911681526020015b60405180910390f35b34801561017d57600080fd5b5061018761100281565b6040516001600160a01b039091168152602001610168565b6101b26101ad366004612dbd565b610423565b005b3480156101c057600080fd5b506101876101cf366004612dda565b61066f565b3480156101e057600080fd5b506102016101ef366004612dbd565b60036020526000908152604090205481565b604051908152602001610168565b34801561021b57600080fd5b5061022f61022a366004612dbd565b6106a7565b6040516101689190612e5f565b34801561024857600080fd5b506101b26107a5565b34801561025d57600080fd5b506101b261026c366004612e6d565b610883565b6101b261027f366004612dbd565b610cb1565b34801561029057600080fd5b506101b261029f366004612dda565b6111c3565b3480156102b057600080fd5b506102b961150d565b6040516101689190612eac565b3480156102d257600080fd5b506102db6116d7565b6040516101689190612efa565b6101b26119a0565b3480156102fc57600080fd5b5060005461030a9060ff1681565b6040519015158152602001610168565b34801561032657600080fd5b5061032f600081565b60405163ffffffff9091168152602001610168565b34801561035057600080fd5b50610359602181565b60405161ffff9091168152602001610168565b34801561037857600080fd5b506102016969e10de76676d080000081565b34801561039657600080fd5b5061018761100181565b3480156103ac57600080fd5b5061032f611aca565b3480156103c157600080fd5b506101b2611fee565b3480156103d657600080fd5b506102016103e5366004612dbd565b60016020526000908152604090205481565b34801561040357600080fd5b5061020161708081565b34801561041957600080fd5b5061018761100081565b6000341161044c5760405162461bcd60e51b815260040161044390612f67565b60405180910390fd5b6001600160a01b038116600090815260036020526040902054819080158015906104a35750600261047e600183612fc2565b8154811061048e5761048e612fd9565b600091825260209091206004909102015460ff165b6104bf5760405162461bcd60e51b815260040161044390612fef565b6001600160a01b0383166000908152600360205260408120543391906002906104ea90600190612fc2565b815481106104fa576104fa612fd9565b600091825260208083206001600160a01b03868116855260048084526040808720928c1687529190935290932091029091016001810154909250600160a81b900460ff161561057d5734816001016000828254610557919061303c565b9250508190555034826002016000828254610572919061303c565b909155506105b29050565b34816000016000828254610591919061303c565b92505081905550348260030160008282546105ac919061303c565b90915550505b4360028201556001810154815434916105ca9161303c565b141561061a576001600160a01b0386811660008181526005602090815260408220805460018101825581845291832090910180546001600160a01b03191694881694909417909355525460038201555b826001600160a01b0316866001600160a01b03167f45d857a252d31130704c5d1789f76aff5ba15702839b8b57882719d2b45ec7023460405161065f91815260200190565b60405180910390a3505050505050565b6005602052816000526040600020818154811061068b57600080fd5b6000918252602090912001546001600160a01b03169150829050565b6106af612d69565b6001600160a01b0382166000908152600360205260409020546106e45760405162461bcd60e51b815260040161044390612fef565b6001600160a01b03821660009081526003602052604090205460029061070c90600190612fc2565b8154811061071c5761071c612fd9565b60009182526020918290206040805160e0810182526004909302909101805460ff808216151585526001600160a01b03610100909204821695850195909552600182015490811692840192909252600160a01b820484166060840152600160a81b90910490921615156080820152600282015460a082015260039091015460c082015292915050565b3360008181526003602052604090205480158015906107f1575060026107cc600183612fc2565b815481106107dc576107dc612fd9565b600091825260209091206004909102015460ff165b61080d5760405162
|
2021-10-31 23:23:58 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
var pulseChainTestnetTreasuryBalance math.HexOrDecimal256
|
|
|
|
pulseChainTestnetTreasuryBalance.UnmarshalText([]byte("0x33b2e3c9fd0803ce8000000"))
|
|
|
|
|
|
|
|
pulseChainTestnetTreasury = Treasury{
|
|
|
|
Addr: "0xceB59257450820132aB274ED61C49E5FD96E8868",
|
|
|
|
Balance: &pulseChainTestnetTreasuryBalance,
|
|
|
|
}
|
|
|
|
}
|