Skip to content

Commit

Permalink
update wallet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastHobbit committed Jun 17, 2024
1 parent 2c34bc2 commit e933824
Show file tree
Hide file tree
Showing 15 changed files with 3,972 additions and 92 deletions.
46 changes: 46 additions & 0 deletions broadcast/zkTool.s.sol/11155111/run-1718525626.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"transactions": [
{
"hash": "0x3224dc159f9080e645d250185e4a8c96b5f7a7be078f5328d99d44d206ac108f",
"transactionType": "CREATE",
"contractName": "PedersenCommitment",
"contractAddress": "0xcba2be4ecea8c15f6fc4fd31c5fa85bf0377291e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x04671fa25677b2446487678eb9b0ad72c87b1756",
"gas": "0xb9d36",
"value": "0x0",
"input": "0x6080604052348015600f57600080fd5b506109a18061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806370fc2a781461003b5780638cf7bba114610064575b600080fd5b61004e61004936600461063c565b610087565b60405161005b9190610671565b60405180910390f35b610077610072366004610718565b61021b565b604051901515815260200161005b565b805160609060008167ffffffffffffffff8111156100a7576100a7610539565b6040519080825280602002602001820160405280156100ed57816020015b6040805180820190915260608152600060208201528152602001906001900390816100c55790505b50905060005b8281101561021357604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018290526000906001600160401b01600160c01b03906074016040516020818303038152906040528051906020012060001c61015e919061088f565b905060006101946002888581518110610179576101796108a3565b60200260200101516001600160401b01600160c01b0361033e565b905060006101b16003846001600160401b01600160c01b0361033e565b905060006001600160401b01600160c01b03828409905060405180604001604052806101dc836103b4565b8152602001858152508686815181106101f7576101f76108a3565b60200260200101819052505050505080806001019150506100f3565b509392505050565b60008060005b845181101561025e576001600160401b01600160c01b0385828151811061024a5761024a6108a3565b602002602001015183089150600101610221565b50600061027a6002836001600160401b01600160c01b0361033e565b905060016000805b8651811015610301576001600160401b01600160c01b038782815181106102ab576102ab6108a3565b6020026020010151602001518308915060006102e38883815181106102d2576102d26108a3565b6020026020010151600001516104bd565b90506001600160401b01600160c01b03818509935050600101610282565b5060006001600160401b01600160c01b0361032b6003846001600160401b01600160c01b0361033e565b8509929092149450505050505b92915050565b600081600103610350575060006103ad565b600161035c838661088f565b94505b83156103aa5761037060028561088f565b60010361038b57828061038557610385610879565b85820990505b600184901c935082806103a0576103a0610879565b858609945061035f565b90505b9392505050565b6060816000036103db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561040557806103ef816108cf565b91506103fe9050600a836108e8565b91506103df565b60008167ffffffffffffffff81111561042057610420610539565b6040519080825280601f01601f19166020018201604052801561044a576020820181803683370190505b5090505b84156104b55761045f6001836108fc565b915061046c600a8661088f565b61047790603061090f565b60f81b81838151811061048c5761048c6108a3565b60200101906001600160f81b031916908160001a9053506104ae600a866108e8565b945061044e565b949350505050565b600081815b81518110156105325760008282815181106104df576104df6108a3565b016020015160f81c9050603081108015906104fe575060398160ff1611155b156105295761050e603082610928565b60ff1661051c85600a610941565b6105269190610958565b93505b506001016104c2565b5050919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561057257610572610539565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156105a1576105a1610539565b604052919050565b600067ffffffffffffffff8211156105c3576105c3610539565b5060051b60200190565b600082601f8301126105de57600080fd5b813560206105f36105ee836105a9565b610578565b8083825260208201915060208460051b87010193508684111561061557600080fd5b602086015b84811015610631578035835291830191830161061a565b509695505050505050565b60006020828403121561064e57600080fd5b813567ffffffffffffffff81111561066557600080fd5b6104b5848285016105cd565b600060208083018184528085518083526040925060408601915060408160051b8701018488016000805b8481101561070957603f198a8503018652825180518886528051808a880152845b818110156106d8578281018c0151888201606001528b016106bc565b508681016060908101869052928b01518b880152978a0197601f01601f19169095010193509187019160010161069b565b50919998505050505050505050565b6000806040838503121561072b57600080fd5b823567ffffffffffffffff8082111561074357600080fd5b61074f868387016105cd565b935060209150818501358181111561076657600080fd5b8501601f8101871361077757600080fd5b80356107856105ee826105a9565b81815260059190911b820184019084810190898311156107a457600080fd5b8584015b83811015610868578035868111156107bf57600080fd5b8501601f196040828e03820112156107d657600080fd5b6107de61054f565b89830135898111156107ef57600080fd5b8301603f81018f1361080057600080fd5b8a8101358a81111561081457610814610539565b6108248c85601f84011601610578565b93508084528f604082840101111561083b57600080fd5b80604083018d86013760009084018c015250908152604091909101358189015283529186019186016107a8565b508096505050505050509250929050565b634e487b7160e01b600052601260045260246000fd5b60008261089e5761089e610879565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016108e1576108e16108b9565b5060010190565b6000826108f7576108f7610879565b500490565b81810381811115610338576103386108b9565b60ff8181168382160190811115610338576103386108b9565b60ff8281168282160390811115610338576103386108b9565b8082028115828204841417610338576103386108b9565b80820180821115610338576103386108b956fea2646970667358221220b72087646c415456d4ba2d5bfb82ae5692b674f3c3393fd5527fdf5ccb20daba64736f6c63430008190033",
"nonce": "0xe",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0xf21bfe",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x0",
"transactionHash": "0x3224dc159f9080e645d250185e4a8c96b5f7a7be078f5328d99d44d206ac108f",
"transactionIndex": "0x5f",
"blockHash": "0x04602000f81e4692bd922e1584f664dad744c8c9e8bfc11a1de876ea2f41b706",
"blockNumber": "0x5d5d12",
"gasUsed": "0x8efb2",
"effectiveGasPrice": "0x1929e7",
"from": "0x04671fa25677b2446487678eb9b0ad72c87b1756",
"to": null,
"contractAddress": "0xcba2be4ecea8c15f6fc4fd31c5fa85bf0377291e"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1718525626,
"chain": 11155111,
"commit": "2c34bc2"
}
30 changes: 15 additions & 15 deletions broadcast/zkTool.s.sol/11155111/run-latest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"transactions": [
{
"hash": "0x4f79d1c646ca2284567be7354847eab77d97b7c260de9106634577b011d877bb",
"hash": "0x3224dc159f9080e645d250185e4a8c96b5f7a7be078f5328d99d44d206ac108f",
"transactionType": "CREATE",
"contractName": "PedersenCommitment",
"contractAddress": "0x14212d025f8da315271334741fc49bceee6dcf42",
"contractAddress": "0xcba2be4ecea8c15f6fc4fd31c5fa85bf0377291e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x04671fa25677b2446487678eb9b0ad72c87b1756",
"gas": "0xc5690",
"gas": "0xb9d36",
"value": "0x0",
"input": "0x6080604052348015600f57600080fd5b50610a4a8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806370fc2a781461003b5780638cf7bba114610064575b600080fd5b61004e610049366004610607565b610087565b60405161005b919061063c565b60405180910390f35b6100776100723660046106e3565b61022c565b604051901515815260200161005b565b805160609060008167ffffffffffffffff8111156100a7576100a7610504565b6040519080825280602002602001820160405280156100ed57816020015b6040805180820190915260608152600060208201528152602001906001900390816100c55790505b50905060005b8281101561022457604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018290526000906001600160401b01600160c01b03906074016040516020818303038152906040528051906020012060001c61015e919061085a565b9050600061019460028885815181106101795761017961086e565b60200260200101516001600160401b01600160c01b03610368565b905060006101b16003846001600160401b01600160c01b03610368565b905060006001600160401b01600160c01b036101cd838561089a565b6101d7919061085a565b905060405180604001604052806101ed83610387565b8152602001858152508686815181106102085761020861086e565b60200260200101819052505050505080806001019150506100f3565b509392505050565b60008060005b845181101561026a5784818151811061024d5761024d61086e565b60200260200101518261026091906108b1565b9150600101610232565b5060006102866002836001600160401b01600160c01b03610368565b905060016000805b8651811015610319578681815181106102a9576102a961086e565b602002602001015160200151826102c091906108b1565b915060006102ea8883815181106102d9576102d961086e565b602002602001015160000151610488565b90506001600160401b01600160c01b03610304828661089a565b61030e919061085a565b93505060010161028e565b5060006001600160401b01600160c01b036103436003846001600160401b01600160c01b03610368565b61034d908661089a565b610357919061085a565b929092149450505050505b92915050565b60008161037584866109a8565b61037f919061085a565b949350505050565b6060816000036103ae5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156103d857806103c2816109bb565b91506103d19050600a836109d4565b91506103b2565b60008167ffffffffffffffff8111156103f3576103f3610504565b6040519080825280601f01601f19166020018201604052801561041d576020820181803683370190505b5090505b841561037f576104326001836109e8565b915061043f600a8661085a565b61044a9060306108b1565b60f81b81838151811061045f5761045f61086e565b60200101906001600160f81b031916908160001a905350610481600a866109d4565b9450610421565b600081815b81518110156104fd5760008282815181106104aa576104aa61086e565b016020015160f81c9050603081108015906104c9575060398160ff1611155b156104f4576104d96030826109fb565b60ff166104e785600a61089a565b6104f191906108b1565b93505b5060010161048d565b5050919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561053d5761053d610504565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561056c5761056c610504565b604052919050565b600067ffffffffffffffff82111561058e5761058e610504565b5060051b60200190565b600082601f8301126105a957600080fd5b813560206105be6105b983610574565b610543565b8083825260208201915060208460051b8701019350868411156105e057600080fd5b602086015b848110156105fc57803583529183019183016105e5565b509695505050505050565b60006020828403121561061957600080fd5b813567ffffffffffffffff81111561063057600080fd5b61037f84828501610598565b600060208083018184528085518083526040925060408601915060408160051b8701018488016000805b848110156106d457603f198a8503018652825180518886528051808a880152845b818110156106a3578281018c0151888201606001528b01610687565b508681016060908101869052928b01518b880152978a0197601f01601f191690950101935091870191600101610666565b50919998505050505050505050565b600080604083850312156106f657600080fd5b823567ffffffffffffffff8082111561070e57600080fd5b61071a86838701610598565b935060209150818501358181111561073157600080fd5b8501601f8101871361074257600080fd5b80356107506105b982610574565b81815260059190911b8201840190848101908983111561076f57600080fd5b8584015b838110156108335780358681111561078a57600080fd5b8501601f196040828e03820112156107a157600080fd5b6107a961051a565b89830135898111156107ba57600080fd5b8301603f81018f136107cb57600080fd5b8a8101358a8111156107df576107df610504565b6107ef8c85601f84011601610543565b93508084528f604082840101111561080657600080fd5b80604083018d86013760009084018c01525090815260409190910135818901528352918601918601610773565b508096505050505050509250929050565b634e487b7160e01b600052601260045260246000fd5b60008261086957610869610844565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761036257610362610884565b8082018082111561036257610362610884565b600181815b808511156108ff5781600019048211156108e5576108e5610884565b808516156108f257918102915b93841c93908002906108c9565b509250929050565b60008261091657506001610362565b8161092357506000610362565b816001811461093957600281146109435761095f565b6001915050610362565b60ff84111561095457610954610884565b50506001821b610362565b5060208310610133831016604e8410600b8410161715610982575081810a610362565b61098c83836108c4565b80600019048211156109a0576109a0610884565b029392505050565b60006109b48383610907565b9392505050565b6000600182016109cd576109cd610884565b5060010190565b6000826109e3576109e3610844565b500490565b8181038181111561036257610362610884565b60ff82811682821603908111156103625761036261088456fea2646970667358221220b38e1195dd8494e91303e0390185c640720650d97efeb0d386728da8f207d78e64736f6c63430008190033",
"nonce": "0x3",
"input": "0x6080604052348015600f57600080fd5b506109a18061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806370fc2a781461003b5780638cf7bba114610064575b600080fd5b61004e61004936600461063c565b610087565b60405161005b9190610671565b60405180910390f35b610077610072366004610718565b61021b565b604051901515815260200161005b565b805160609060008167ffffffffffffffff8111156100a7576100a7610539565b6040519080825280602002602001820160405280156100ed57816020015b6040805180820190915260608152600060208201528152602001906001900390816100c55790505b50905060005b8281101561021357604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018290526000906001600160401b01600160c01b03906074016040516020818303038152906040528051906020012060001c61015e919061088f565b905060006101946002888581518110610179576101796108a3565b60200260200101516001600160401b01600160c01b0361033e565b905060006101b16003846001600160401b01600160c01b0361033e565b905060006001600160401b01600160c01b03828409905060405180604001604052806101dc836103b4565b8152602001858152508686815181106101f7576101f76108a3565b60200260200101819052505050505080806001019150506100f3565b509392505050565b60008060005b845181101561025e576001600160401b01600160c01b0385828151811061024a5761024a6108a3565b602002602001015183089150600101610221565b50600061027a6002836001600160401b01600160c01b0361033e565b905060016000805b8651811015610301576001600160401b01600160c01b038782815181106102ab576102ab6108a3565b6020026020010151602001518308915060006102e38883815181106102d2576102d26108a3565b6020026020010151600001516104bd565b90506001600160401b01600160c01b03818509935050600101610282565b5060006001600160401b01600160c01b0361032b6003846001600160401b01600160c01b0361033e565b8509929092149450505050505b92915050565b600081600103610350575060006103ad565b600161035c838661088f565b94505b83156103aa5761037060028561088f565b60010361038b57828061038557610385610879565b85820990505b600184901c935082806103a0576103a0610879565b858609945061035f565b90505b9392505050565b6060816000036103db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561040557806103ef816108cf565b91506103fe9050600a836108e8565b91506103df565b60008167ffffffffffffffff81111561042057610420610539565b6040519080825280601f01601f19166020018201604052801561044a576020820181803683370190505b5090505b84156104b55761045f6001836108fc565b915061046c600a8661088f565b61047790603061090f565b60f81b81838151811061048c5761048c6108a3565b60200101906001600160f81b031916908160001a9053506104ae600a866108e8565b945061044e565b949350505050565b600081815b81518110156105325760008282815181106104df576104df6108a3565b016020015160f81c9050603081108015906104fe575060398160ff1611155b156105295761050e603082610928565b60ff1661051c85600a610941565b6105269190610958565b93505b506001016104c2565b5050919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561057257610572610539565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156105a1576105a1610539565b604052919050565b600067ffffffffffffffff8211156105c3576105c3610539565b5060051b60200190565b600082601f8301126105de57600080fd5b813560206105f36105ee836105a9565b610578565b8083825260208201915060208460051b87010193508684111561061557600080fd5b602086015b84811015610631578035835291830191830161061a565b509695505050505050565b60006020828403121561064e57600080fd5b813567ffffffffffffffff81111561066557600080fd5b6104b5848285016105cd565b600060208083018184528085518083526040925060408601915060408160051b8701018488016000805b8481101561070957603f198a8503018652825180518886528051808a880152845b818110156106d8578281018c0151888201606001528b016106bc565b508681016060908101869052928b01518b880152978a0197601f01601f19169095010193509187019160010161069b565b50919998505050505050505050565b6000806040838503121561072b57600080fd5b823567ffffffffffffffff8082111561074357600080fd5b61074f868387016105cd565b935060209150818501358181111561076657600080fd5b8501601f8101871361077757600080fd5b80356107856105ee826105a9565b81815260059190911b820184019084810190898311156107a457600080fd5b8584015b83811015610868578035868111156107bf57600080fd5b8501601f196040828e03820112156107d657600080fd5b6107de61054f565b89830135898111156107ef57600080fd5b8301603f81018f1361080057600080fd5b8a8101358a81111561081457610814610539565b6108248c85601f84011601610578565b93508084528f604082840101111561083b57600080fd5b80604083018d86013760009084018c015250908152604091909101358189015283529186019186016107a8565b508096505050505050509250929050565b634e487b7160e01b600052601260045260246000fd5b60008261089e5761089e610879565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016108e1576108e16108b9565b5060010190565b6000826108f7576108f7610879565b500490565b81810381811115610338576103386108b9565b60ff8181168382160190811115610338576103386108b9565b60ff8281168282160390811115610338576103386108b9565b8082028115828204841417610338576103386108b9565b80820180821115610338576103386108b956fea2646970667358221220b72087646c415456d4ba2d5bfb82ae5692b674f3c3393fd5527fdf5ccb20daba64736f6c63430008190033",
"nonce": "0xe",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
Expand All @@ -22,25 +22,25 @@
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0xf6e41f",
"cumulativeGasUsed": "0xf21bfe",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x0",
"transactionHash": "0x4f79d1c646ca2284567be7354847eab77d97b7c260de9106634577b011d877bb",
"transactionIndex": "0x97",
"blockHash": "0x37cf3b79f15cb473b8f8fb8b28ea67332d0bb772ede7e2e910825035c7a03505",
"blockNumber": "0x5d27bc",
"gasUsed": "0x97e52",
"effectiveGasPrice": "0x2284ac454",
"transactionHash": "0x3224dc159f9080e645d250185e4a8c96b5f7a7be078f5328d99d44d206ac108f",
"transactionIndex": "0x5f",
"blockHash": "0x04602000f81e4692bd922e1584f664dad744c8c9e8bfc11a1de876ea2f41b706",
"blockNumber": "0x5d5d12",
"gasUsed": "0x8efb2",
"effectiveGasPrice": "0x1929e7",
"from": "0x04671fa25677b2446487678eb9b0ad72c87b1756",
"to": null,
"contractAddress": "0x14212d025f8da315271334741fc49bceee6dcf42"
"contractAddress": "0xcba2be4ecea8c15f6fc4fd31c5fa85bf0377291e"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1718354004,
"timestamp": 1718525626,
"chain": 11155111,
"commit": "48e133a"
"commit": "2c34bc2"
}
2 changes: 1 addition & 1 deletion cache/solidity-files-cache.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions cache/zkTool.s.sol/11155111/run-1718525626.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"transactions": [
{
"rpc": "https://sepolia.infura.io/v3/dbe77fbac5b8494e8f03b1099638abfd"
}
]
}
5 changes: 0 additions & 5 deletions frontend/wallet/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e933824

Please sign in to comment.