diff --git a/AGENTS.md b/AGENTS.md index cd62d78..3575110 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,7 @@ This repository implements the off-chain backend of AgentPay. Before changing co Companion repos are wired in via the filesystem MCP server. The canonical roots are: - `agent-pay-docs` — protocol architecture (`agentpay-architecture/`). Required reading for protocol-sensitive work. The `state-guardian-network/` subtree is **not** required background; read it only when the task is explicitly about SGN behavior or SGN-related profile wiring. -- `agent-pay-contracts` — Solidity contracts (CelerLedger, PayResolver, PayRegistry, RouterRegistry, Wallet, plus the chain-canonical wrapped-native / WETH-style contract that CelerLedger references for native-token funding flows). Optional background; read only when the task touches on-chain contract logic, event semantics, generated bindings under `chain/channel-eth-go/`, or profile/address wiring that depends on contract behavior. +- `agent-pay-contracts` — Solidity contracts (AgentPayLedger, PayResolver, PayRegistry, RouterRegistry, Wallet, plus the chain-canonical wrapped-native / WETH-style contract that AgentPayLedger references for native-token funding flows). Optional background; read only when the task touches on-chain contract logic, event semantics, generated bindings under `chain/channel-eth-go/`, or profile/address wiring that depends on contract behavior. - `agent-pay-x402` — downstream integration that consumes this repo via WebAPI gRPC + Admin HTTP. Useful as an "external consumer" reference, not required reading. `.mcp.json` is gitignored per-developer. Copy `.mcp.json.example` to `.mcp.json` and fill in absolute paths to your local sibling clones. If a path is unavailable when needed, ask the user before guessing on protocol-sensitive work. diff --git a/CLAUDE.md b/CLAUDE.md index c66a955..4e1ad33 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ The protocol-and-contract design lives in the companion `agent-pay-docs` repo (` `.mcp.json` is gitignored per-developer — each contributor wires their own absolute paths. The current wiring exposes three filesystem MCP roots: - **agent-pay-docs** — protocol architecture + SGN docs. Read `agentpay-architecture/`. Skip `state-guardian-network/` unless the task is explicitly about SGN behavior or SGN-related profile wiring. -- **agent-pay-contracts** — Solidity contracts (CelerLedger, PayResolver, PayRegistry, RouterRegistry, Wallet, plus the chain-canonical wrapped-native / WETH-style contract that CelerLedger references for native-token funding flows). Foundry project. Read only when the task touches on-chain contract logic, event semantics, or generated bindings under [chain/channel-eth-go/](chain/channel-eth-go/). +- **agent-pay-contracts** — Solidity contracts (AgentPayLedger, PayResolver, PayRegistry, RouterRegistry, Wallet, plus the chain-canonical wrapped-native / WETH-style contract that AgentPayLedger references for native-token funding flows). Foundry project. Read only when the task touches on-chain contract logic, event semantics, or generated bindings under [chain/channel-eth-go/](chain/channel-eth-go/). - **agent-pay-x402** — downstream Go integration that layers x402 HTTP payment over AgentPay state channels. Useful as an "external consumer" reference: it talks to this repo's WebAPI gRPC (clients) and Admin HTTP (OSP) only, never `CelerStream` directly. Friction observed there is logged in that repo's `docs/agent-pay-feedback.md`. If a path is unavailable in your MCP roots, ask the user before guessing — do not silently proceed on protocol-sensitive work. diff --git a/chain/channel-eth-go/channel/channel.go b/chain/channel-eth-go/channel/channel.go index 2c07544..4f9e195 100644 --- a/chain/channel-eth-go/channel/channel.go +++ b/chain/channel-eth-go/channel/channel.go @@ -33,7 +33,7 @@ var ( // LedgerChannelMetaData contains all meta data concerning the LedgerChannel contract. var LedgerChannelMetaData = &bind.MetaData{ ABI: "[]", - Bin: "0x610eaa610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610111575f3560e01c8063b80ddf7e116100a9578063c46dd9dd11610079578063c46dd9dd146102be578063c814d28e14610339578063c8ed149e1461034c578063d6b89e3a1461036e578063d7db65ce14610381575f5ffd5b8063b80ddf7e14610241578063bcdf4ebb14610256578063c2c3f21f14610269578063c2f8816b1461027c575f5ffd5b806360f8e398116100e457806360f8e398146101c357806377ffc623146101e45780638970f8a5146101f9578063b32531271461021c575f5ffd5b806312bb8c81146101155780631fd4a9c214610143578063418ec1011461017e578063565aebdb1461019e575b5f5ffd5b61012d610123366004610c8e565b6002015460ff1690565b60405161013a9190610cb9565b60405180910390f35b610166610151366004610c8e565b6002015461010090046001600160a01b031690565b6040516001600160a01b03909116815260200161013a565b61019061018c366004610c8e565b5490565b60405190815260200161013a565b6101b66101ac366004610c8e565b6003015460ff1690565b60405161013a9190610cd3565b6101d66101d1366004610c8e565b6103a2565b60405161013a929190610d3a565b6101906101f2366004610c8e565b6014015490565b610166610207366004610c8e565b6003015461010090046001600160a01b031690565b61022f61022a366004610c8e565b6104cf565b60405161013a96959493929190610d55565b61019061024f366004610c8e565b6001015490565b6101d6610264366004610c8e565b610692565b6101d6610277366004610c8e565b6107c5565b61028f61028a366004610c8e565b6108f2565b60405161013a949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b61030f6102cc366004610c8e565b6040805160808101825260158301546001600160a01b03168082526016840154602083018190526017850154938301849052601890940154606090920182905293565b604080516001600160a01b039095168552602085019390935291830152606082015260800161013a565b6101d6610347366004610c8e565b610942565b61035f61035a366004610c8e565b610a6b565b60405161013a93929190610db2565b61019061037c366004610c8e565b610b02565b61039461038f366004610c8e565b610b43565b60405161013a929190610de2565b6103aa610c70565b6103b2610c70565b604080518082019091525f9060048501600283835b8282101561045757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016103c7565b5050505090506040518060400160405280825f6002811061047a5761047a610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201909152935160609081015181015185529151820151909101519083015294909350915050565b6104d7610c70565b6104df610c70565b6104e7610c70565b6104ef610c70565b6104f7610c70565b6104ff610c70565b604080518082019091525f9060048901600283835b828210156105a457604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610514565b5050505090506040518060400160405280825f600281106105c7576105c7610e20565b60209081029190910151516001600160a01b03908116835284820180515190911692820192909252604080518082018252855183015181528351830151818401528151808301835286518301518152845183015181850152825180840184528751606090810151518252865181015151828701528451808601865289518201518701518152875182015187015181880152855180870190965298518101516080908101518652965101519095015193830193909352939c939b50909950909750919550909350915050565b61069a610c70565b6106a2610c70565b604080518082019091525f9060048501600283835b8282101561074757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016106b7565b5050505090506040518060400160405280825f6002811061076a5761076a610e20565b60209081029190910151516001600160a01b0390811683528482015151169181019190915260408051808201909152835160600151608001518152908101836001602002015160600151608001518152509250925050915091565b6107cd610c70565b6107d5610c70565b604080518082019091525f9060048501600283835b8282101561087a57604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016107ea565b5050505090506040518060400160405280825f6002811061089d5761089d610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201909152935160609081015182015185529151909101518101519083015294909350915050565b60018101546002808301545f928392839283929160ff9091169081111561091b5761091b610ca5565b60028701546014909701549197909661010090046001600160a01b03169550909350915050565b61094a610c70565b610952610c70565b604080518082019091525f9060048501600283835b828210156109f757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610967565b5050505090506040518060400160405280825f60028110610a1a57610a1a610e20565b60209081029190910151516001600160a01b03908116835284820180515190911692820192909252604080518082019091529351606090810151518552915190910151519083015294909350915050565b610a73610c70565b610a7b610c70565b610a83610c70565b5f6040518060400160405280866004015f60028110610aa457610aa4610e20565b60080201546001600160a01b039081168252600c8801541660209182015260408051808201825260058901548152600d89015481840152815180830190925260068901548252600e9098015491810191909152909690945092505050565b600e8101546006820154600d83015460058401545f93849390929091610b289190610e48565b610b329190610e61565b610b3c9190610e61565b9392505050565b610b4b610c70565b610b53610c70565b604080518082019091525f9060048501600283835b82821015610bf857604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610b68565b5050505090506040518060400160405280825f60028110610c1b57610c1b610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201825294516060908101518201518652925190920151909101519083015294909350915050565b60405180604001604052806002906020820280368337509192915050565b5f60208284031215610c9e575f5ffd5b5035919050565b634e487b7160e01b5f52602160045260245ffd5b6020810160038310610ccd57610ccd610ca5565b91905290565b6020810160058310610ccd57610ccd610ca5565b805f5b6002811015610d125781516001600160a01b0316845260209384019390910190600101610cea565b50505050565b805f5b6002811015610d12578151845260209384019390910190600101610d1b565b60808101610d488285610ce7565b610b3c6040830184610d18565b6101808101610d648289610ce7565b610d716040830188610d18565b610d7e6080830187610d18565b610d8b60c0830186610d18565b610d99610100830185610d18565b610da7610140830184610d18565b979650505050505050565b60c08101610dc08286610ce7565b610dcd6040830185610d18565b610dda6080830184610d18565b949350505050565b60808101610df08285610ce7565b60408201835f5b6002811015610e16578151835260209283019290910190600101610df7565b5050509392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e5b57610e5b610e34565b92915050565b81810381811115610e5b57610e5b610e3456fea26469706673582212201302c5f277a965e99f1bbbc455b68962cda5023a1a451c8dc52f79a564b30df864736f6c634300081e0033", + Bin: "0x610eaa610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610111575f3560e01c8063b80ddf7e116100a9578063c46dd9dd11610079578063c46dd9dd146102be578063c814d28e14610339578063c8ed149e1461034c578063d6b89e3a1461036e578063d7db65ce14610381575f5ffd5b8063b80ddf7e14610241578063bcdf4ebb14610256578063c2c3f21f14610269578063c2f8816b1461027c575f5ffd5b806360f8e398116100e457806360f8e398146101c357806377ffc623146101e45780638970f8a5146101f9578063b32531271461021c575f5ffd5b806312bb8c81146101155780631fd4a9c214610143578063418ec1011461017e578063565aebdb1461019e575b5f5ffd5b61012d610123366004610c8e565b6002015460ff1690565b60405161013a9190610cb9565b60405180910390f35b610166610151366004610c8e565b6002015461010090046001600160a01b031690565b6040516001600160a01b03909116815260200161013a565b61019061018c366004610c8e565b5490565b60405190815260200161013a565b6101b66101ac366004610c8e565b6003015460ff1690565b60405161013a9190610cd3565b6101d66101d1366004610c8e565b6103a2565b60405161013a929190610d3a565b6101906101f2366004610c8e565b6014015490565b610166610207366004610c8e565b6003015461010090046001600160a01b031690565b61022f61022a366004610c8e565b6104cf565b60405161013a96959493929190610d55565b61019061024f366004610c8e565b6001015490565b6101d6610264366004610c8e565b610692565b6101d6610277366004610c8e565b6107c5565b61028f61028a366004610c8e565b6108f2565b60405161013a949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b61030f6102cc366004610c8e565b6040805160808101825260158301546001600160a01b03168082526016840154602083018190526017850154938301849052601890940154606090920182905293565b604080516001600160a01b039095168552602085019390935291830152606082015260800161013a565b6101d6610347366004610c8e565b610942565b61035f61035a366004610c8e565b610a6b565b60405161013a93929190610db2565b61019061037c366004610c8e565b610b02565b61039461038f366004610c8e565b610b43565b60405161013a929190610de2565b6103aa610c70565b6103b2610c70565b604080518082019091525f9060048501600283835b8282101561045757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016103c7565b5050505090506040518060400160405280825f6002811061047a5761047a610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201909152935160609081015181015185529151820151909101519083015294909350915050565b6104d7610c70565b6104df610c70565b6104e7610c70565b6104ef610c70565b6104f7610c70565b6104ff610c70565b604080518082019091525f9060048901600283835b828210156105a457604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610514565b5050505090506040518060400160405280825f600281106105c7576105c7610e20565b60209081029190910151516001600160a01b03908116835284820180515190911692820192909252604080518082018252855183015181528351830151818401528151808301835286518301518152845183015181850152825180840184528751606090810151518252865181015151828701528451808601865289518201518701518152875182015187015181880152855180870190965298518101516080908101518652965101519095015193830193909352939c939b50909950909750919550909350915050565b61069a610c70565b6106a2610c70565b604080518082019091525f9060048501600283835b8282101561074757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016106b7565b5050505090506040518060400160405280825f6002811061076a5761076a610e20565b60209081029190910151516001600160a01b0390811683528482015151169181019190915260408051808201909152835160600151608001518152908101836001602002015160600151608001518152509250925050915091565b6107cd610c70565b6107d5610c70565b604080518082019091525f9060048501600283835b8282101561087a57604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a0810187526003840154815260048401548183015260058401549681019690965260068301546060878101919091526007909301549386019390935290830193909352908352920191016107ea565b5050505090506040518060400160405280825f6002811061089d5761089d610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201909152935160609081015182015185529151909101518101519083015294909350915050565b60018101546002808301545f928392839283929160ff9091169081111561091b5761091b610ca5565b60028701546014909701549197909661010090046001600160a01b03169550909350915050565b61094a610c70565b610952610c70565b604080518082019091525f9060048501600283835b828210156109f757604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610967565b5050505090506040518060400160405280825f60028110610a1a57610a1a610e20565b60209081029190910151516001600160a01b03908116835284820180515190911692820192909252604080518082019091529351606090810151518552915190910151519083015294909350915050565b610a73610c70565b610a7b610c70565b610a83610c70565b5f6040518060400160405280866004015f60028110610aa457610aa4610e20565b60080201546001600160a01b039081168252600c8801541660209182015260408051808201825260058901548152600d89015481840152815180830190925260068901548252600e9098015491810191909152909690945092505050565b600e8101546006820154600d83015460058401545f93849390929091610b289190610e48565b610b329190610e61565b610b3c9190610e61565b9392505050565b610b4b610c70565b610b53610c70565b604080518082019091525f9060048501600283835b82821015610bf857604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101610b68565b5050505090506040518060400160405280825f60028110610c1b57610c1b610e20565b60209081029190910151516001600160a01b0390811683528482018051519091169282019290925260408051808201825294516060908101518201518652925190920151909101519083015294909350915050565b60405180604001604052806002906020820280368337509192915050565b5f60208284031215610c9e575f5ffd5b5035919050565b634e487b7160e01b5f52602160045260245ffd5b6020810160038310610ccd57610ccd610ca5565b91905290565b6020810160058310610ccd57610ccd610ca5565b805f5b6002811015610d125781516001600160a01b0316845260209384019390910190600101610cea565b50505050565b805f5b6002811015610d12578151845260209384019390910190600101610d1b565b60808101610d488285610ce7565b610b3c6040830184610d18565b6101808101610d648289610ce7565b610d716040830188610d18565b610d7e6080830187610d18565b610d8b60c0830186610d18565b610d99610100830185610d18565b610da7610140830184610d18565b979650505050505050565b60c08101610dc08286610ce7565b610dcd6040830185610d18565b610dda6080830184610d18565b949350505050565b60808101610df08285610ce7565b60408201835f5b6002811015610e16578151835260209283019290910190600101610df7565b5050509392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e5b57610e5b610e34565b92915050565b81810381811115610e5b57610e5b610e3456fea264697066735822122068ee01e413cdd342fc177b7f2ad5a1d8e84af6b88ac508a2ee53914bfe4534b364736f6c634300081e0033", } // LedgerChannelABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/deploy/deploy.go b/chain/channel-eth-go/deploy/deploy.go index 9ad6afa..1f8267c 100644 --- a/chain/channel-eth-go/deploy/deploy.go +++ b/chain/channel-eth-go/deploy/deploy.go @@ -33,17 +33,17 @@ import ( ) type CelerChannelAddrBundle struct { - BalanceLimitAddr common.Address - LedgerChannelAddr common.Address - NativeWrapAddr common.Address - CelerLedgerAddr common.Address - OperationAddr common.Address - MigrateAddr common.Address - PayRegistryAddr common.Address - PayResolverAddr common.Address - VirtResolverAddr common.Address - LedgerStructAddr common.Address - CelerWalletAddr common.Address + BalanceLimitAddr common.Address + LedgerChannelAddr common.Address + NativeWrapAddr common.Address + AgentPayLedgerAddr common.Address + OperationAddr common.Address + MigrateAddr common.Address + PayRegistryAddr common.Address + PayResolverAddr common.Address + VirtResolverAddr common.Address + LedgerStructAddr common.Address + AgentPayWalletAddr common.Address } // DeployRouterRegistry deploys router registry contract @@ -92,7 +92,7 @@ func DeployAll( // Deploy NativeWrap (WETH-style) contract. In production this is the // chain's canonical wrapped-native address (WETH on Ethereum); in this // local-deploy path we deploy a minimal mock so tests can exercise the - // funding-flow path that CelerLedger uses internally for multi-party native deposits. + // funding-flow path that AgentPayLedger uses internally for multi-party native deposits. log.Infoln("Deploying NativeWrap (WETH-style mock) contract...") nativeWrapAddr, tx, _, err := nativewrap.DeployNativeWrap(auth, conn) if err != nil { @@ -131,18 +131,18 @@ func DeployAll( log.Infof("Transaction status: %x", receipt.Status) log.Infof("Deployed PayResolver contract at 0x%x\n", payResolverAddr) - // Deploy CelerWallet contract - log.Infoln("Deploying CelerWallet contract...") - walletAddr, tx, _, err := wallet.DeployCelerWallet(auth, conn) + // Deploy AgentPayWallet contract + log.Infoln("Deploying AgentPayWallet contract...") + walletAddr, tx, _, err := wallet.DeployAgentPayWallet(auth, conn) if err != nil { - log.Fatalf("Failed to deploy CelerWallet contract: %v", err) + log.Fatalf("Failed to deploy AgentPayWallet contract: %v", err) } receipt, err = WaitMined(ctx, conn, tx, blockDelay) if err != nil { - log.Fatalf("Failed to WaitMined CelerWallet: %v", err) + log.Fatalf("Failed to WaitMined AgentPayWallet: %v", err) } log.Infof("Transaction status: %x", receipt.Status) - log.Infof("Deployed CelerWallet contract at 0x%x\n", walletAddr) + log.Infof("Deployed AgentPayWallet contract at 0x%x\n", walletAddr) // Deploy LedgerStruct contract log.Infoln("Deploying LedgerStruct contract...") @@ -238,13 +238,13 @@ func DeployAll( log.Infof("Transaction status: %x", receipt.Status) log.Infof("Deployed LedgerMigrate contract at 0x%x\n", migrateAddr) - // Deploy CelerLedger contract - log.Infoln("Deploying CelerLedger contract...") + // Deploy AgentPayLedger contract + log.Infoln("Deploying AgentPayLedger contract...") ledgerAddr, tx, _, err := DeployContractWithLinks( auth, conn, - ledger.CelerLedgerABI, - ledger.CelerLedgerBin, + ledger.AgentPayLedgerABI, + ledger.AgentPayLedgerBin, map[string]common.Address{ "LedgerStruct": ledgerstructAddr, "LedgerOperation": operationAddr, @@ -257,28 +257,28 @@ func DeployAll( walletAddr, ) if err != nil { - log.Fatalf("Failed to deploy CelerLedger contract: %v", err) + log.Fatalf("Failed to deploy AgentPayLedger contract: %v", err) } receipt, err = WaitMined(ctx, conn, tx, blockDelay) if err != nil { - log.Fatalf("Failed to WaitMined CelerLedger: %v", err) + log.Fatalf("Failed to WaitMined AgentPayLedger: %v", err) } log.Infof("Transaction status: %x", receipt.Status) - log.Infof("Deployed CelerLedger contract at 0x%x\n", ledgerAddr) + log.Infof("Deployed AgentPayLedger contract at 0x%x\n", ledgerAddr) // return addresses of deployed contracts return CelerChannelAddrBundle{ - BalanceLimitAddr: balancelimitAddr, - LedgerChannelAddr: channelAddr, - NativeWrapAddr: nativeWrapAddr, - CelerLedgerAddr: ledgerAddr, - OperationAddr: operationAddr, - MigrateAddr: migrateAddr, - PayRegistryAddr: payRegistryAddr, - PayResolverAddr: payResolverAddr, - VirtResolverAddr: virtresolverAddr, - LedgerStructAddr: ledgerstructAddr, - CelerWalletAddr: walletAddr, + BalanceLimitAddr: balancelimitAddr, + LedgerChannelAddr: channelAddr, + NativeWrapAddr: nativeWrapAddr, + AgentPayLedgerAddr: ledgerAddr, + OperationAddr: operationAddr, + MigrateAddr: migrateAddr, + PayRegistryAddr: payRegistryAddr, + PayResolverAddr: payResolverAddr, + VirtResolverAddr: virtresolverAddr, + LedgerStructAddr: ledgerstructAddr, + AgentPayWalletAddr: walletAddr, } } diff --git a/chain/channel-eth-go/ledger/ledger.go b/chain/channel-eth-go/ledger/ledger.go index 5ab7de1..c813e4f 100644 --- a/chain/channel-eth-go/ledger/ledger.go +++ b/chain/channel-eth-go/ledger/ledger.go @@ -30,23 +30,23 @@ var ( _ = abi.ConvertType ) -// CelerLedgerMetaData contains all meta data concerning the CelerLedger contract. -var CelerLedgerMetaData = &bind.MetaData{ - ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_nativeWrap\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_payRegistry\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_celerWallet\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"clearPays\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_peerFrom\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_payIdList\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"confirmSettle\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"confirmWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cooperativeSettle\",\"inputs\":[{\"name\":\"_settleRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cooperativeWithdraw\",\"inputs\":[{\"name\":\"_cooperativeWithdrawRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_transferFromAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"depositInBatch\",\"inputs\":[{\"name\":\"_channelIds\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_receivers\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_transferFromAmounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"disableBalanceLimits\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"enableBalanceLimits\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getBalanceLimit\",\"inputs\":[{\"name\":\"_tokenAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalanceLimitsEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalanceMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getCelerWallet\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelMigrationArgs\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelStatus\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumLedgerStruct.ChannelStatus\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelStatusNum\",\"inputs\":[{\"name\":\"_channelStatus\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getCooperativeWithdrawSeqNum\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDisputeTimeout\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMigratedTo\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNativeWrap\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextPayIdListHashMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"bytes32[2]\",\"internalType\":\"bytes32[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPayClearDeadlineMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPayRegistry\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPeersMigrationInfo\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPendingPayOutMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSettleFinalizedTime\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStateSeqNumMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenContract\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenType\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumPbEntity.TokenType\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTotalBalance\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTransferOutMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getWithdrawIntent\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"intendSettle\",\"inputs\":[{\"name\":\"_signedSimplexStateArray\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"intendWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_recipientChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"migrateChannelFrom\",\"inputs\":[{\"name\":\"_fromLedgerAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_migrationRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"migrateChannelTo\",\"inputs\":[{\"name\":\"_migrationRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"openChannel\",\"inputs\":[{\"name\":\"_openRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setBalanceLimits\",\"inputs\":[{\"name\":\"_tokenAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_limits\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"snapshotStates\",\"inputs\":[{\"name\":\"_signedSimplexStateArray\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"vetoWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"ClearOnePay\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"payId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerFrom\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettleFail\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"seqNum\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MigrateChannelFrom\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"oldLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MigrateChannelTo\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OpenChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenType\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"initialDeposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SnapshotStates\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"VetoWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"CallerNotNativeWrap\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"LengthMismatch\",\"inputs\":[{\"name\":\"a\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"b\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"NativeWrapNotContract\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ZeroAddress\",\"inputs\":[]}]", - Bin: "0x608060405234801561000f575f5ffd5b5060405161223338038061223383398101604081905261002e91610167565b338061005357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61005c816100fd565b506001600160a01b0383166100845760405163d92e233d60e01b815260040160405180910390fd5b5f836001600160a01b03163b116100ae576040516337bf1fcf60e21b815260040160405180910390fd5b600280546001600160a01b039485166001600160a01b0319918216179091556003805493851693821693909317909255600480549190931691161790556006805460ff191660011790556101a7565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114610162575f5ffd5b919050565b5f5f5f60608486031215610179575f5ffd5b6101828461014c565b92506101906020850161014c565b915061019e6040850161014c565b90509250925092565b61207f806101b45f395ff3fe608060405260043610610257575f3560e01c80638da5cb5b1161013f578063d757abd2116100b3578063e5780db211610078578063e5780db2146107a8578063e6322df7146107c7578063ec7c637d146107e6578063f0c73d701461081a578063f2fde38b14610839578063fd0a1a6114610858575f5ffd5b8063d757abd214610724578063d927bfc414610743578063d954863c14610762578063e063913c14610775578063e0a515b714610789575f5ffd5b8063bd480cb711610104578063bd480cb714610640578063c06d5ff51461066e578063c38a325d1461068d578063c7ff8625146106ac578063cc0b94b7146106cb578063cd3a1be6146106f7575f5ffd5b80638da5cb5b146105a957806393b7b3ce146105c5578063979a9b5e146105d8578063a099a39f14610604578063a8580cab14610621575f5ffd5b8063312ea2c6116101d6578063715018a61161019b578063715018a6146104c957806376bff117146104dd5780637e9a7a3e1461052657806383c8f8b81461054557806388f41465146105595780638942ecb21461058a575f5ffd5b8063312ea2c6146104325780634102b9a81461044f57806361fb19a01461046e578063666a6d651461048b57806369d5dd67146104aa575f5ffd5b80632b559ecc1161021c5780632b559ecc1461034d5780632e2a5a021461036f5780632e3c517a146103a65780632f0ac304146103c5578063307d6f9614610413575f5ffd5b80630165cef81461028d57806309683c03146102c357806309b65d86146102e2578063130d33fe1461030f578063255aab591461032e575f5ffd5b36610289576002546001600160a01b031633146102875760405163e1b71f7760e01b815260040160405180910390fd5b005b5f5ffd5b348015610298575f5ffd5b506102ac6102a73660046117df565b610877565b6040516102ba929190611849565b60405180910390f35b3480156102ce575f5ffd5b506102876102dd3660046118a9565b610912565b3480156102ed575f5ffd5b506103016102fc3660046117df565b61097e565b6040519081526020016102ba565b34801561031a575f5ffd5b506102876103293660046118a9565b610a05565b348015610339575f5ffd5b506102876103483660046117df565b610a41565b348015610358575f5ffd5b5060065460ff1660405190151581526020016102ba565b34801561037a575f5ffd5b5061038e6103893660046117df565b610aab565b6040516001600160a01b0390911681526020016102ba565b3480156103b1575f5ffd5b506102876103c03660046118fc565b610b2b565b3480156103d0575f5ffd5b506103e46103df3660046117df565b610b9a565b6040516102ba949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b34801561041e575f5ffd5b5061030161042d3660046117df565b610c30565b34801561043d575f5ffd5b506003546001600160a01b031661038e565b34801561045a575f5ffd5b506102876104693660046118a9565b610cb1565b348015610479575f5ffd5b506002546001600160a01b031661038e565b348015610496575f5ffd5b506102ac6104a53660046117df565b610ced565b3480156104b5575f5ffd5b506103016104c43660046117df565b610d43565b3480156104d4575f5ffd5b50610287610d88565b3480156104e8575f5ffd5b506104fc6104f73660046117df565b610d9b565b604080516001600160a01b03909516855260208501939093529183015260608201526080016102ba565b348015610531575f5ffd5b506102876105403660046117df565b610e21565b348015610550575f5ffd5b50610287610e60565b348015610564575f5ffd5b506105786105733660046117df565b610e77565b6040516102ba9695949392919061194d565b348015610595575f5ffd5b506102876105a43660046119aa565b610f3d565b3480156105b4575f5ffd5b505f546001600160a01b031661038e565b6102876105d33660046118a9565b610f8a565b3480156105e3575f5ffd5b506105f76105f23660046117df565b610fc6565b6040516102ba91906119e7565b34801561060f575f5ffd5b506004546001600160a01b031661038e565b34801561062c575f5ffd5b5061028761063b366004611a42565b611045565b34801561064b575f5ffd5b5061065f61065a3660046117df565b6110f1565b6040516102ba93929190611aae565b348015610679575f5ffd5b506102ac6106883660046117df565b611197565b348015610698575f5ffd5b5061038e6106a73660046117df565b6111ed565b3480156106b7575f5ffd5b506102876106c63660046117df565b611232565b3480156106d6575f5ffd5b506106ea6106e53660046117df565b611271565b6040516102ba9190611ade565b348015610702575f5ffd5b506107166107113660046117df565b6112f0565b6040516102ba929190611af2565b34801561072f575f5ffd5b5061028761073e3660046118a9565b611380565b34801561074e575f5ffd5b506102ac61075d3660046117df565b6113bc565b610287610770366004611b30565b611412565b348015610780575f5ffd5b50610287611467565b348015610794575f5ffd5b506103016107a33660046118a9565b61147b565b3480156107b3575f5ffd5b506102876107c2366004611b65565b6114b9565b3480156107d2575f5ffd5b506103016107e13660046117df565b61160a565b3480156107f1575f5ffd5b50610301610800366004611c04565b6001600160a01b03165f9081526005602052604090205490565b348015610825575f5ffd5b506103016108343660046117df565b61164f565b348015610844575f5ffd5b50610287610853366004611c04565b611694565b348015610863575f5ffd5b50610287610872366004611c1f565b6116d1565b61087f6117c1565b6108876117c1565b5f8381526007602052604090819020905163bcdf4ebb60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063bcdf4ebb906024015b608060405180830381865af41580156108e4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109089190611d44565b9250925050915091565b6040516379e9008760e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__906379e900879061094e9060019086908690600401611d9f565b5f6040518083038186803b158015610964575f5ffd5b505af4158015610976573d5f5f3e3d5ffd5b505050505050565b5f81815260076020526040808220905163418ec10160e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063418ec101906024015b602060405180830381865af41580156109da573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611dc1565b9392505050565b604051630bdc541160e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__90630bdc54119061094e9060019086908690600401611d9f565b60405163eb4de33760e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063eb4de337906044015b5f6040518083038186803b158015610a92575f5ffd5b505af4158015610aa4573d5f5f3e3d5ffd5b5050505050565b5f818152600760205260408082209051630fea54e160e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__90631fd4a9c2906024015b602060405180830381865af4158015610b07573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611dd8565b60405163415a19c560e11b815273__$2da4c1bc7831bce59d8f8d9cf5a8504e33$__906382b4338a90610b6990600190879087908790600401611df3565b5f6040518083038186803b158015610b7f575f5ffd5b505af4158015610b91573d5f5f3e3d5ffd5b50505050505050565b5f81815260076020526040808220905163c2f8816b60e01b8152600481018290528291829182919073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c2f8816b90602401608060405180830381865af4158015610bfc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c209190611e27565b9450945094509450509193509193565b6040516360297df360e01b815260016004820152602481018290525f9073__$c617d6f30a3108b63ce4034547dfec5d71$__906360297df390604401602060405180830381865af4158015610c87573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cab9190611dc1565b92915050565b6040516372cf9b4360e11b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063e59f36869061094e9060019086908690600401611d9f565b610cf56117c1565b610cfd6117c1565b5f8381526007602052604090819020905163640a694760e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c814d28e906024016108c9565b5f818152600760205260408082209051636b5c4f1d60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a906024016109bf565b610d90611746565b610d995f611772565b565b5f81815260076020526040808220905163c46dd9dd60e01b8152600481018290528291829182919073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c46dd9dd90602401608060405180830381865af4158015610dfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c209190611e64565b6040516383e0fef560e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__906383e0fef590604401610a7c565b610e68611746565b6006805460ff19166001179055565b610e7f6117c1565b610e876117c1565b610e8f6117c1565b610e976117c1565b610e9f6117c1565b610ea76117c1565b5f8781526007602052604090819020905163b325312760e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063b32531279060240161018060405180830381865af4158015610f04573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f289190611ea0565b949d939c50919a509850965090945092505050565b604051637a2654ed60e01b81526001600482015260248101849052604481018390526064810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__90637a2654ed90608401610b69565b60405163594db6e360e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063594db6e39061094e9060019086908690600401611d9f565b5f8181526007602052604080822090516312bb8c8160e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906312bb8c8190602401602060405180830381865af4158015611021573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611f19565b61104d611746565b828181811461107d576040516355c5b3e360e11b8152600481019290925260248201526044015b60405180910390fd5b505f90505b83811015610aa45782828281811061109c5761109c611f37565b9050602002013560016004015f8787858181106110bb576110bb611f37565b90506020020160208101906110d09190611c04565b6001600160a01b0316815260208101919091526040015f2055600101611082565b6110f96117c1565b6111016117c1565b6111096117c1565b5f848152600760205260409081902090516364768a4f60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af4158015611165573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111899190611f4b565b935093509350509193909250565b61119f6117c1565b6111a76117c1565b5f83815260076020526040908190209051630c1f1c7360e31b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906360f8e398906024016108c9565b5f818152600760205260408082209051638970f8a560e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__90638970f8a590602401610aec565b60405163bb3d0f2b60e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063bb3d0f2b90604401610a7c565b5f81815260076020526040808220905163565aebdb60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063565aebdb90602401602060405180830381865af41580156112cc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611f8e565b6112f86117c1565b6113006117c1565b5f83815260076020526040908190209051636bedb2e760e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d7db65ce90602401608060405180830381865af415801561135c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109089190611fac565b60405163742fb50760e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063742fb5079061094e9060019086908690600401611d9f565b6113c46117c1565b6113cc6117c1565b5f8381526007602052604090819020905163c2c3f21f60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c2c3f21f906024016108c9565b60405163bd9d315760e01b815260016004820152602481018490526001600160a01b03831660448201526064810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063bd9d315790608401610b69565b61146f611746565b6006805460ff19169055565b604051631e28763960e11b81525f9073__$2da4c1bc7831bce59d8f8d9cf5a8504e33$__90633c50ec72906109bf9060019087908790600401611d9f565b84838181146114e4576040516355c5b3e360e11b815260048101929092526024820152604401611074565b5083905081818114611512576040516355c5b3e360e11b815260048101929092526024820152604401611074565b505f90505b85811015610b915773__$c617d6f30a3108b63ce4034547dfec5d71$__63bd9d3157600189898581811061154d5761154d611f37565b9050602002013588888681811061156657611566611f37565b905060200201602081019061157b9190611c04565b87878781811061158d5761158d611f37565b905060200201356040518563ffffffff1660e01b81526004016115d2949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b5f6040518083038186803b1580156115e8575f5ffd5b505af41580156115fa573d5f5f3e3d5ffd5b5050600190920191506115179050565b5f818152600760205260408082209051635c06efbf60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063b80ddf7e906024016109bf565b5f8181526007602052604080822090516377ffc62360e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906377ffc623906024016109bf565b61169c611746565b6001600160a01b0381166116c557604051631e4fbdf760e01b81525f6004820152602401611074565b6116ce81611772565b50565b604051600162804bef60e01b0319815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063ff7fb4119061171490600190889088908890889060040161201c565b5f6040518083038186803b15801561172a575f5ffd5b505af415801561173c573d5f5f3e3d5ffd5b5050505050505050565b5f546001600160a01b03163314610d995760405163118cdaa760e01b8152336004820152602401611074565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405180604001604052806002906020820280368337509192915050565b5f602082840312156117ef575f5ffd5b5035919050565b805f5b60028110156118215781516001600160a01b03168452602093840193909101906001016117f9565b50505050565b805f5b600281101561182157815184526020938401939091019060010161182a565b6080810161185782856117f6565b6109fe6040830184611827565b5f5f83601f840112611874575f5ffd5b50813567ffffffffffffffff81111561188b575f5ffd5b6020830191508360208285010111156118a2575f5ffd5b9250929050565b5f5f602083850312156118ba575f5ffd5b823567ffffffffffffffff8111156118d0575f5ffd5b6118dc85828601611864565b90969095509350505050565b6001600160a01b03811681146116ce575f5ffd5b5f5f5f6040848603121561190e575f5ffd5b8335611919816118e8565b9250602084013567ffffffffffffffff811115611934575f5ffd5b61194086828701611864565b9497909650939450505050565b610180810161195c82896117f6565b6119696040830188611827565b6119766080830187611827565b61198360c0830186611827565b611991610100830185611827565b61199f610140830184611827565b979650505050505050565b5f5f5f606084860312156119bc575f5ffd5b505081359360208301359350604090920135919050565b634e487b7160e01b5f52602160045260245ffd5b60208101600383106119fb576119fb6119d3565b91905290565b5f5f83601f840112611a11575f5ffd5b50813567ffffffffffffffff811115611a28575f5ffd5b6020830191508360208260051b85010111156118a2575f5ffd5b5f5f5f5f60408587031215611a55575f5ffd5b843567ffffffffffffffff811115611a6b575f5ffd5b611a7787828801611a01565b909550935050602085013567ffffffffffffffff811115611a96575f5ffd5b611aa287828801611a01565b95989497509550505050565b60c08101611abc82866117f6565b611ac96040830185611827565b611ad66080830184611827565b949350505050565b60208101600583106119fb576119fb6119d3565b60808101611b0082856117f6565b60408201835f5b6002811015611b26578151835260209283019290910190600101611b07565b5050509392505050565b5f5f5f60608486031215611b42575f5ffd5b833592506020840135611b54816118e8565b929592945050506040919091013590565b5f5f5f5f5f5f60608789031215611b7a575f5ffd5b863567ffffffffffffffff811115611b90575f5ffd5b611b9c89828a01611a01565b909750955050602087013567ffffffffffffffff811115611bbb575f5ffd5b611bc789828a01611a01565b909550935050604087013567ffffffffffffffff811115611be6575f5ffd5b611bf289828a01611a01565b979a9699509497509295939492505050565b5f60208284031215611c14575f5ffd5b81356109fe816118e8565b5f5f5f5f60608587031215611c32575f5ffd5b843593506020850135611c44816118e8565b9250604085013567ffffffffffffffff811115611c5f575f5ffd5b611aa287828801611864565b604051601f8201601f1916810167ffffffffffffffff81118282101715611ca057634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611cb7575f5ffd5b611cc16040611c6b565b806040840185811115611cd2575f5ffd5b845b81811015611cf5578051611ce7816118e8565b845260209384019301611cd4565b509095945050505050565b5f82601f830112611d0f575f5ffd5b611d196040611c6b565b806040840185811115611d2a575f5ffd5b845b81811015611cf5578051845260209384019301611d2c565b5f5f60808385031215611d55575f5ffd5b611d5f8484611ca8565b9150611d6e8460408501611d00565b90509250929050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b838152604060208201525f611db8604083018486611d77565b95945050505050565b5f60208284031215611dd1575f5ffd5b5051919050565b5f60208284031215611de8575f5ffd5b81516109fe816118e8565b8481526001600160a01b03841660208201526060604082018190525f90611e1d9083018486611d77565b9695505050505050565b5f5f5f5f60808587031215611e3a575f5ffd5b8451602086015160408701519195509350611e54816118e8565b6060959095015193969295505050565b5f5f5f5f60808587031215611e77575f5ffd5b8451611e82816118e8565b60208601516040870151606090970151919890975090945092505050565b5f5f5f5f5f5f6101808789031215611eb6575f5ffd5b611ec08888611ca8565b9550611ecf8860408901611d00565b9450611ede8860808901611d00565b9350611eed8860c08901611d00565b9250611efd886101008901611d00565b9150611f0d886101408901611d00565b90509295509295509295565b5f60208284031215611f29575f5ffd5b8151600381106109fe575f5ffd5b634e487b7160e01b5f52603260045260245ffd5b5f5f5f60c08486031215611f5d575f5ffd5b611f678585611ca8565b9250611f768560408601611d00565b9150611f858560808601611d00565b90509250925092565b5f60208284031215611f9e575f5ffd5b8151600581106109fe575f5ffd5b5f5f60808385031215611fbd575f5ffd5b611fc78484611ca8565b915083605f840112611fd7575f5ffd5b611fe16040611c6b565b806080850186811115611ff2575f5ffd5b604086015b8181101561200f578051845260209384019301611ff7565b5093969095509350505050565b85815284602082015260018060a01b0384166040820152608060608201525f61199f608083018486611d7756fea264697066735822122075305fd887422e28ac96fe0aeb44bacb2850242b47467200acfd1b496f86f56764736f6c634300081e0033", +// AgentPayLedgerMetaData contains all meta data concerning the AgentPayLedger contract. +var AgentPayLedgerMetaData = &bind.MetaData{ + ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_nativeWrap\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_payRegistry\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_wallet\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"clearPays\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_peerFrom\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_payIdList\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"confirmSettle\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"confirmWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cooperativeSettle\",\"inputs\":[{\"name\":\"_settleRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cooperativeWithdraw\",\"inputs\":[{\"name\":\"_cooperativeWithdrawRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_transferFromAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"depositInBatch\",\"inputs\":[{\"name\":\"_channelIds\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_receivers\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_transferFromAmounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"disableBalanceLimits\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"enableBalanceLimits\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getAgentPayWallet\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalanceLimit\",\"inputs\":[{\"name\":\"_tokenAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalanceLimitsEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalanceMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelMigrationArgs\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelStatus\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumLedgerStruct.ChannelStatus\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getChannelStatusNum\",\"inputs\":[{\"name\":\"_channelStatus\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getCooperativeWithdrawSeqNum\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDisputeTimeout\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMigratedTo\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNativeWrap\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextPayIdListHashMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"bytes32[2]\",\"internalType\":\"bytes32[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPayClearDeadlineMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPayRegistry\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPeersMigrationInfo\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPendingPayOutMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSettleFinalizedTime\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStateSeqNumMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenContract\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenType\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumPbEntity.TokenType\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTotalBalance\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTransferOutMap\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[2]\",\"internalType\":\"address[2]\"},{\"name\":\"\",\"type\":\"uint256[2]\",\"internalType\":\"uint256[2]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getWithdrawIntent\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"intendSettle\",\"inputs\":[{\"name\":\"_signedSimplexStateArray\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"intendWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_recipientChannelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"migrateChannelFrom\",\"inputs\":[{\"name\":\"_fromLedgerAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_migrationRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"migrateChannelTo\",\"inputs\":[{\"name\":\"_migrationRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"openChannel\",\"inputs\":[{\"name\":\"_openRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setBalanceLimits\",\"inputs\":[{\"name\":\"_tokenAddrs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_limits\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"snapshotStates\",\"inputs\":[{\"name\":\"_signedSimplexStateArray\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"vetoWithdraw\",\"inputs\":[{\"name\":\"_channelId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"ClearOnePay\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"payId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerFrom\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettleFail\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"seqNum\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MigrateChannelFrom\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"oldLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MigrateChannelTo\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OpenChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenType\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"initialDeposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SnapshotStates\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"VetoWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"CallerNotNativeWrap\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"LengthMismatch\",\"inputs\":[{\"name\":\"a\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"b\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"NativeWrapNotContract\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ZeroAddress\",\"inputs\":[]}]", + Bin: "0x608060405234801561000f575f5ffd5b5060405161223338038061223383398101604081905261002e91610167565b338061005357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61005c816100fd565b506001600160a01b0383166100845760405163d92e233d60e01b815260040160405180910390fd5b5f836001600160a01b03163b116100ae576040516337bf1fcf60e21b815260040160405180910390fd5b600280546001600160a01b039485166001600160a01b0319918216179091556003805493851693821693909317909255600480549190931691161790556006805460ff191660011790556101a7565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114610162575f5ffd5b919050565b5f5f5f60608486031215610179575f5ffd5b6101828461014c565b92506101906020850161014c565b915061019e6040850161014c565b90509250925092565b61207f806101b45f395ff3fe608060405260043610610257575f3560e01c80638da5cb5b1161013f578063d757abd2116100b3578063e5780db211610078578063e5780db2146107a8578063e6322df7146107c7578063ec7c637d146107e6578063f0c73d701461081a578063f2fde38b14610839578063fd0a1a6114610858575f5ffd5b8063d757abd214610724578063d927bfc414610743578063d954863c14610762578063e063913c14610775578063e0a515b714610789575f5ffd5b8063bd480cb711610104578063bd480cb714610640578063c06d5ff51461066e578063c38a325d1461068d578063c7ff8625146106ac578063cc0b94b7146106cb578063cd3a1be6146106f7575f5ffd5b80638da5cb5b146105a957806393b7b3ce146105c5578063979a9b5e146105d8578063a8580cab14610604578063b08a52c714610623575f5ffd5b8063312ea2c6116101d6578063715018a61161019b578063715018a6146104c957806376bff117146104dd5780637e9a7a3e1461052657806383c8f8b81461054557806388f41465146105595780638942ecb21461058a575f5ffd5b8063312ea2c6146104325780634102b9a81461044f57806361fb19a01461046e578063666a6d651461048b57806369d5dd67146104aa575f5ffd5b80632b559ecc1161021c5780632b559ecc1461034d5780632e2a5a021461036f5780632e3c517a146103a65780632f0ac304146103c5578063307d6f9614610413575f5ffd5b80630165cef81461028d57806309683c03146102c357806309b65d86146102e2578063130d33fe1461030f578063255aab591461032e575f5ffd5b36610289576002546001600160a01b031633146102875760405163e1b71f7760e01b815260040160405180910390fd5b005b5f5ffd5b348015610298575f5ffd5b506102ac6102a73660046117df565b610877565b6040516102ba929190611849565b60405180910390f35b3480156102ce575f5ffd5b506102876102dd3660046118a9565b610912565b3480156102ed575f5ffd5b506103016102fc3660046117df565b61097e565b6040519081526020016102ba565b34801561031a575f5ffd5b506102876103293660046118a9565b610a05565b348015610339575f5ffd5b506102876103483660046117df565b610a41565b348015610358575f5ffd5b5060065460ff1660405190151581526020016102ba565b34801561037a575f5ffd5b5061038e6103893660046117df565b610aab565b6040516001600160a01b0390911681526020016102ba565b3480156103b1575f5ffd5b506102876103c03660046118fc565b610b2b565b3480156103d0575f5ffd5b506103e46103df3660046117df565b610b9a565b6040516102ba949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b34801561041e575f5ffd5b5061030161042d3660046117df565b610c30565b34801561043d575f5ffd5b506003546001600160a01b031661038e565b34801561045a575f5ffd5b506102876104693660046118a9565b610cb1565b348015610479575f5ffd5b506002546001600160a01b031661038e565b348015610496575f5ffd5b506102ac6104a53660046117df565b610ced565b3480156104b5575f5ffd5b506103016104c43660046117df565b610d43565b3480156104d4575f5ffd5b50610287610d88565b3480156104e8575f5ffd5b506104fc6104f73660046117df565b610d9b565b604080516001600160a01b03909516855260208501939093529183015260608201526080016102ba565b348015610531575f5ffd5b506102876105403660046117df565b610e21565b348015610550575f5ffd5b50610287610e60565b348015610564575f5ffd5b506105786105733660046117df565b610e77565b6040516102ba9695949392919061194d565b348015610595575f5ffd5b506102876105a43660046119aa565b610f3d565b3480156105b4575f5ffd5b505f546001600160a01b031661038e565b6102876105d33660046118a9565b610f8a565b3480156105e3575f5ffd5b506105f76105f23660046117df565b610fc6565b6040516102ba91906119e7565b34801561060f575f5ffd5b5061028761061e366004611a42565b611045565b34801561062e575f5ffd5b506004546001600160a01b031661038e565b34801561064b575f5ffd5b5061065f61065a3660046117df565b6110f1565b6040516102ba93929190611aae565b348015610679575f5ffd5b506102ac6106883660046117df565b611197565b348015610698575f5ffd5b5061038e6106a73660046117df565b6111ed565b3480156106b7575f5ffd5b506102876106c63660046117df565b611232565b3480156106d6575f5ffd5b506106ea6106e53660046117df565b611271565b6040516102ba9190611ade565b348015610702575f5ffd5b506107166107113660046117df565b6112f0565b6040516102ba929190611af2565b34801561072f575f5ffd5b5061028761073e3660046118a9565b611380565b34801561074e575f5ffd5b506102ac61075d3660046117df565b6113bc565b610287610770366004611b30565b611412565b348015610780575f5ffd5b50610287611467565b348015610794575f5ffd5b506103016107a33660046118a9565b61147b565b3480156107b3575f5ffd5b506102876107c2366004611b65565b6114b9565b3480156107d2575f5ffd5b506103016107e13660046117df565b61160a565b3480156107f1575f5ffd5b50610301610800366004611c04565b6001600160a01b03165f9081526005602052604090205490565b348015610825575f5ffd5b506103016108343660046117df565b61164f565b348015610844575f5ffd5b50610287610853366004611c04565b611694565b348015610863575f5ffd5b50610287610872366004611c1f565b6116d1565b61087f6117c1565b6108876117c1565b5f8381526007602052604090819020905163bcdf4ebb60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063bcdf4ebb906024015b608060405180830381865af41580156108e4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109089190611d44565b9250925050915091565b6040516379e9008760e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__906379e900879061094e9060019086908690600401611d9f565b5f6040518083038186803b158015610964575f5ffd5b505af4158015610976573d5f5f3e3d5ffd5b505050505050565b5f81815260076020526040808220905163418ec10160e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063418ec101906024015b602060405180830381865af41580156109da573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611dc1565b9392505050565b604051630bdc541160e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__90630bdc54119061094e9060019086908690600401611d9f565b60405163eb4de33760e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063eb4de337906044015b5f6040518083038186803b158015610a92575f5ffd5b505af4158015610aa4573d5f5f3e3d5ffd5b5050505050565b5f818152600760205260408082209051630fea54e160e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__90631fd4a9c2906024015b602060405180830381865af4158015610b07573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611dd8565b60405163415a19c560e11b815273__$2da4c1bc7831bce59d8f8d9cf5a8504e33$__906382b4338a90610b6990600190879087908790600401611df3565b5f6040518083038186803b158015610b7f575f5ffd5b505af4158015610b91573d5f5f3e3d5ffd5b50505050505050565b5f81815260076020526040808220905163c2f8816b60e01b8152600481018290528291829182919073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c2f8816b90602401608060405180830381865af4158015610bfc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c209190611e27565b9450945094509450509193509193565b6040516360297df360e01b815260016004820152602481018290525f9073__$c617d6f30a3108b63ce4034547dfec5d71$__906360297df390604401602060405180830381865af4158015610c87573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cab9190611dc1565b92915050565b6040516372cf9b4360e11b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063e59f36869061094e9060019086908690600401611d9f565b610cf56117c1565b610cfd6117c1565b5f8381526007602052604090819020905163640a694760e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c814d28e906024016108c9565b5f818152600760205260408082209051636b5c4f1d60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a906024016109bf565b610d90611746565b610d995f611772565b565b5f81815260076020526040808220905163c46dd9dd60e01b8152600481018290528291829182919073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c46dd9dd90602401608060405180830381865af4158015610dfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c209190611e64565b6040516383e0fef560e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__906383e0fef590604401610a7c565b610e68611746565b6006805460ff19166001179055565b610e7f6117c1565b610e876117c1565b610e8f6117c1565b610e976117c1565b610e9f6117c1565b610ea76117c1565b5f8781526007602052604090819020905163b325312760e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063b32531279060240161018060405180830381865af4158015610f04573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f289190611ea0565b949d939c50919a509850965090945092505050565b604051637a2654ed60e01b81526001600482015260248101849052604481018390526064810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__90637a2654ed90608401610b69565b60405163594db6e360e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063594db6e39061094e9060019086908690600401611d9f565b5f8181526007602052604080822090516312bb8c8160e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906312bb8c8190602401602060405180830381865af4158015611021573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611f19565b61104d611746565b828181811461107d576040516355c5b3e360e11b8152600481019290925260248201526044015b60405180910390fd5b505f90505b83811015610aa45782828281811061109c5761109c611f37565b9050602002013560016004015f8787858181106110bb576110bb611f37565b90506020020160208101906110d09190611c04565b6001600160a01b0316815260208101919091526040015f2055600101611082565b6110f96117c1565b6111016117c1565b6111096117c1565b5f848152600760205260409081902090516364768a4f60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af4158015611165573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111899190611f4b565b935093509350509193909250565b61119f6117c1565b6111a76117c1565b5f83815260076020526040908190209051630c1f1c7360e31b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906360f8e398906024016108c9565b5f818152600760205260408082209051638970f8a560e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__90638970f8a590602401610aec565b60405163bb3d0f2b60e01b8152600160048201526024810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063bb3d0f2b90604401610a7c565b5f81815260076020526040808220905163565aebdb60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063565aebdb90602401602060405180830381865af41580156112cc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109fe9190611f8e565b6112f86117c1565b6113006117c1565b5f83815260076020526040908190209051636bedb2e760e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d7db65ce90602401608060405180830381865af415801561135c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109089190611fac565b60405163742fb50760e01b815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063742fb5079061094e9060019086908690600401611d9f565b6113c46117c1565b6113cc6117c1565b5f8381526007602052604090819020905163c2c3f21f60e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c2c3f21f906024016108c9565b60405163bd9d315760e01b815260016004820152602481018490526001600160a01b03831660448201526064810182905273__$c617d6f30a3108b63ce4034547dfec5d71$__9063bd9d315790608401610b69565b61146f611746565b6006805460ff19169055565b604051631e28763960e11b81525f9073__$2da4c1bc7831bce59d8f8d9cf5a8504e33$__90633c50ec72906109bf9060019087908790600401611d9f565b84838181146114e4576040516355c5b3e360e11b815260048101929092526024820152604401611074565b5083905081818114611512576040516355c5b3e360e11b815260048101929092526024820152604401611074565b505f90505b85811015610b915773__$c617d6f30a3108b63ce4034547dfec5d71$__63bd9d3157600189898581811061154d5761154d611f37565b9050602002013588888681811061156657611566611f37565b905060200201602081019061157b9190611c04565b87878781811061158d5761158d611f37565b905060200201356040518563ffffffff1660e01b81526004016115d2949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b5f6040518083038186803b1580156115e8575f5ffd5b505af41580156115fa573d5f5f3e3d5ffd5b5050600190920191506115179050565b5f818152600760205260408082209051635c06efbf60e11b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063b80ddf7e906024016109bf565b5f8181526007602052604080822090516377ffc62360e01b81526004810182905273__$13d4168a6482a4756bee5acfadcccc5f1f$__906377ffc623906024016109bf565b61169c611746565b6001600160a01b0381166116c557604051631e4fbdf760e01b81525f6004820152602401611074565b6116ce81611772565b50565b604051600162804bef60e01b0319815273__$c617d6f30a3108b63ce4034547dfec5d71$__9063ff7fb4119061171490600190889088908890889060040161201c565b5f6040518083038186803b15801561172a575f5ffd5b505af415801561173c573d5f5f3e3d5ffd5b5050505050505050565b5f546001600160a01b03163314610d995760405163118cdaa760e01b8152336004820152602401611074565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405180604001604052806002906020820280368337509192915050565b5f602082840312156117ef575f5ffd5b5035919050565b805f5b60028110156118215781516001600160a01b03168452602093840193909101906001016117f9565b50505050565b805f5b600281101561182157815184526020938401939091019060010161182a565b6080810161185782856117f6565b6109fe6040830184611827565b5f5f83601f840112611874575f5ffd5b50813567ffffffffffffffff81111561188b575f5ffd5b6020830191508360208285010111156118a2575f5ffd5b9250929050565b5f5f602083850312156118ba575f5ffd5b823567ffffffffffffffff8111156118d0575f5ffd5b6118dc85828601611864565b90969095509350505050565b6001600160a01b03811681146116ce575f5ffd5b5f5f5f6040848603121561190e575f5ffd5b8335611919816118e8565b9250602084013567ffffffffffffffff811115611934575f5ffd5b61194086828701611864565b9497909650939450505050565b610180810161195c82896117f6565b6119696040830188611827565b6119766080830187611827565b61198360c0830186611827565b611991610100830185611827565b61199f610140830184611827565b979650505050505050565b5f5f5f606084860312156119bc575f5ffd5b505081359360208301359350604090920135919050565b634e487b7160e01b5f52602160045260245ffd5b60208101600383106119fb576119fb6119d3565b91905290565b5f5f83601f840112611a11575f5ffd5b50813567ffffffffffffffff811115611a28575f5ffd5b6020830191508360208260051b85010111156118a2575f5ffd5b5f5f5f5f60408587031215611a55575f5ffd5b843567ffffffffffffffff811115611a6b575f5ffd5b611a7787828801611a01565b909550935050602085013567ffffffffffffffff811115611a96575f5ffd5b611aa287828801611a01565b95989497509550505050565b60c08101611abc82866117f6565b611ac96040830185611827565b611ad66080830184611827565b949350505050565b60208101600583106119fb576119fb6119d3565b60808101611b0082856117f6565b60408201835f5b6002811015611b26578151835260209283019290910190600101611b07565b5050509392505050565b5f5f5f60608486031215611b42575f5ffd5b833592506020840135611b54816118e8565b929592945050506040919091013590565b5f5f5f5f5f5f60608789031215611b7a575f5ffd5b863567ffffffffffffffff811115611b90575f5ffd5b611b9c89828a01611a01565b909750955050602087013567ffffffffffffffff811115611bbb575f5ffd5b611bc789828a01611a01565b909550935050604087013567ffffffffffffffff811115611be6575f5ffd5b611bf289828a01611a01565b979a9699509497509295939492505050565b5f60208284031215611c14575f5ffd5b81356109fe816118e8565b5f5f5f5f60608587031215611c32575f5ffd5b843593506020850135611c44816118e8565b9250604085013567ffffffffffffffff811115611c5f575f5ffd5b611aa287828801611864565b604051601f8201601f1916810167ffffffffffffffff81118282101715611ca057634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611cb7575f5ffd5b611cc16040611c6b565b806040840185811115611cd2575f5ffd5b845b81811015611cf5578051611ce7816118e8565b845260209384019301611cd4565b509095945050505050565b5f82601f830112611d0f575f5ffd5b611d196040611c6b565b806040840185811115611d2a575f5ffd5b845b81811015611cf5578051845260209384019301611d2c565b5f5f60808385031215611d55575f5ffd5b611d5f8484611ca8565b9150611d6e8460408501611d00565b90509250929050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b838152604060208201525f611db8604083018486611d77565b95945050505050565b5f60208284031215611dd1575f5ffd5b5051919050565b5f60208284031215611de8575f5ffd5b81516109fe816118e8565b8481526001600160a01b03841660208201526060604082018190525f90611e1d9083018486611d77565b9695505050505050565b5f5f5f5f60808587031215611e3a575f5ffd5b8451602086015160408701519195509350611e54816118e8565b6060959095015193969295505050565b5f5f5f5f60808587031215611e77575f5ffd5b8451611e82816118e8565b60208601516040870151606090970151919890975090945092505050565b5f5f5f5f5f5f6101808789031215611eb6575f5ffd5b611ec08888611ca8565b9550611ecf8860408901611d00565b9450611ede8860808901611d00565b9350611eed8860c08901611d00565b9250611efd886101008901611d00565b9150611f0d886101408901611d00565b90509295509295509295565b5f60208284031215611f29575f5ffd5b8151600381106109fe575f5ffd5b634e487b7160e01b5f52603260045260245ffd5b5f5f5f60c08486031215611f5d575f5ffd5b611f678585611ca8565b9250611f768560408601611d00565b9150611f858560808601611d00565b90509250925092565b5f60208284031215611f9e575f5ffd5b8151600581106109fe575f5ffd5b5f5f60808385031215611fbd575f5ffd5b611fc78484611ca8565b915083605f840112611fd7575f5ffd5b611fe16040611c6b565b806080850186811115611ff2575f5ffd5b604086015b8181101561200f578051845260209384019301611ff7565b5093969095509350505050565b85815284602082015260018060a01b0384166040820152608060608201525f61199f608083018486611d7756fea2646970667358221220b854ba8774655fe28bc32e3ef387b58bba5828e0ab62adf069fee294babc6ef564736f6c634300081e0033", } -// CelerLedgerABI is the input ABI used to generate the binding from. -// Deprecated: Use CelerLedgerMetaData.ABI instead. -var CelerLedgerABI = CelerLedgerMetaData.ABI +// AgentPayLedgerABI is the input ABI used to generate the binding from. +// Deprecated: Use AgentPayLedgerMetaData.ABI instead. +var AgentPayLedgerABI = AgentPayLedgerMetaData.ABI -// CelerLedgerBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use CelerLedgerMetaData.Bin instead. -var CelerLedgerBin = CelerLedgerMetaData.Bin +// AgentPayLedgerBin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use AgentPayLedgerMetaData.Bin instead. +var AgentPayLedgerBin = AgentPayLedgerMetaData.Bin -// DeployCelerLedger deploys a new Ethereum contract, binding an instance of CelerLedger to it. -func DeployCelerLedger(auth *bind.TransactOpts, backend bind.ContractBackend, _nativeWrap common.Address, _payRegistry common.Address, _celerWallet common.Address) (common.Address, *types.Transaction, *CelerLedger, error) { - parsed, err := CelerLedgerMetaData.GetAbi() +// DeployAgentPayLedger deploys a new Ethereum contract, binding an instance of AgentPayLedger to it. +func DeployAgentPayLedger(auth *bind.TransactOpts, backend bind.ContractBackend, _nativeWrap common.Address, _payRegistry common.Address, _wallet common.Address) (common.Address, *types.Transaction, *AgentPayLedger, error) { + parsed, err := AgentPayLedgerMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } @@ -54,111 +54,111 @@ func DeployCelerLedger(auth *bind.TransactOpts, backend bind.ContractBackend, _n return common.Address{}, nil, nil, errors.New("GetABI returned nil") } - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(CelerLedgerBin), backend, _nativeWrap, _payRegistry, _celerWallet) + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AgentPayLedgerBin), backend, _nativeWrap, _payRegistry, _wallet) if err != nil { return common.Address{}, nil, nil, err } - return address, tx, &CelerLedger{CelerLedgerCaller: CelerLedgerCaller{contract: contract}, CelerLedgerTransactor: CelerLedgerTransactor{contract: contract}, CelerLedgerFilterer: CelerLedgerFilterer{contract: contract}}, nil + return address, tx, &AgentPayLedger{AgentPayLedgerCaller: AgentPayLedgerCaller{contract: contract}, AgentPayLedgerTransactor: AgentPayLedgerTransactor{contract: contract}, AgentPayLedgerFilterer: AgentPayLedgerFilterer{contract: contract}}, nil } -// CelerLedger is an auto generated Go binding around an Ethereum contract. -type CelerLedger struct { - CelerLedgerCaller // Read-only binding to the contract - CelerLedgerTransactor // Write-only binding to the contract - CelerLedgerFilterer // Log filterer for contract events +// AgentPayLedger is an auto generated Go binding around an Ethereum contract. +type AgentPayLedger struct { + AgentPayLedgerCaller // Read-only binding to the contract + AgentPayLedgerTransactor // Write-only binding to the contract + AgentPayLedgerFilterer // Log filterer for contract events } -// CelerLedgerCaller is an auto generated read-only Go binding around an Ethereum contract. -type CelerLedgerCaller struct { +// AgentPayLedgerCaller is an auto generated read-only Go binding around an Ethereum contract. +type AgentPayLedgerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerLedgerTransactor is an auto generated write-only Go binding around an Ethereum contract. -type CelerLedgerTransactor struct { +// AgentPayLedgerTransactor is an auto generated write-only Go binding around an Ethereum contract. +type AgentPayLedgerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerLedgerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type CelerLedgerFilterer struct { +// AgentPayLedgerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type AgentPayLedgerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerLedgerSession is an auto generated Go binding around an Ethereum contract, +// AgentPayLedgerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type CelerLedgerSession struct { - Contract *CelerLedger // Generic contract binding to set the session for +type AgentPayLedgerSession struct { + Contract *AgentPayLedger // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// CelerLedgerCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// AgentPayLedgerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type CelerLedgerCallerSession struct { - Contract *CelerLedgerCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session +type AgentPayLedgerCallerSession struct { + Contract *AgentPayLedgerCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session } -// CelerLedgerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// AgentPayLedgerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type CelerLedgerTransactorSession struct { - Contract *CelerLedgerTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +type AgentPayLedgerTransactorSession struct { + Contract *AgentPayLedgerTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// CelerLedgerRaw is an auto generated low-level Go binding around an Ethereum contract. -type CelerLedgerRaw struct { - Contract *CelerLedger // Generic contract binding to access the raw methods on +// AgentPayLedgerRaw is an auto generated low-level Go binding around an Ethereum contract. +type AgentPayLedgerRaw struct { + Contract *AgentPayLedger // Generic contract binding to access the raw methods on } -// CelerLedgerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type CelerLedgerCallerRaw struct { - Contract *CelerLedgerCaller // Generic read-only contract binding to access the raw methods on +// AgentPayLedgerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type AgentPayLedgerCallerRaw struct { + Contract *AgentPayLedgerCaller // Generic read-only contract binding to access the raw methods on } -// CelerLedgerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type CelerLedgerTransactorRaw struct { - Contract *CelerLedgerTransactor // Generic write-only contract binding to access the raw methods on +// AgentPayLedgerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type AgentPayLedgerTransactorRaw struct { + Contract *AgentPayLedgerTransactor // Generic write-only contract binding to access the raw methods on } -// NewCelerLedger creates a new instance of CelerLedger, bound to a specific deployed contract. -func NewCelerLedger(address common.Address, backend bind.ContractBackend) (*CelerLedger, error) { - contract, err := bindCelerLedger(address, backend, backend, backend) +// NewAgentPayLedger creates a new instance of AgentPayLedger, bound to a specific deployed contract. +func NewAgentPayLedger(address common.Address, backend bind.ContractBackend) (*AgentPayLedger, error) { + contract, err := bindAgentPayLedger(address, backend, backend, backend) if err != nil { return nil, err } - return &CelerLedger{CelerLedgerCaller: CelerLedgerCaller{contract: contract}, CelerLedgerTransactor: CelerLedgerTransactor{contract: contract}, CelerLedgerFilterer: CelerLedgerFilterer{contract: contract}}, nil + return &AgentPayLedger{AgentPayLedgerCaller: AgentPayLedgerCaller{contract: contract}, AgentPayLedgerTransactor: AgentPayLedgerTransactor{contract: contract}, AgentPayLedgerFilterer: AgentPayLedgerFilterer{contract: contract}}, nil } -// NewCelerLedgerCaller creates a new read-only instance of CelerLedger, bound to a specific deployed contract. -func NewCelerLedgerCaller(address common.Address, caller bind.ContractCaller) (*CelerLedgerCaller, error) { - contract, err := bindCelerLedger(address, caller, nil, nil) +// NewAgentPayLedgerCaller creates a new read-only instance of AgentPayLedger, bound to a specific deployed contract. +func NewAgentPayLedgerCaller(address common.Address, caller bind.ContractCaller) (*AgentPayLedgerCaller, error) { + contract, err := bindAgentPayLedger(address, caller, nil, nil) if err != nil { return nil, err } - return &CelerLedgerCaller{contract: contract}, nil + return &AgentPayLedgerCaller{contract: contract}, nil } -// NewCelerLedgerTransactor creates a new write-only instance of CelerLedger, bound to a specific deployed contract. -func NewCelerLedgerTransactor(address common.Address, transactor bind.ContractTransactor) (*CelerLedgerTransactor, error) { - contract, err := bindCelerLedger(address, nil, transactor, nil) +// NewAgentPayLedgerTransactor creates a new write-only instance of AgentPayLedger, bound to a specific deployed contract. +func NewAgentPayLedgerTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentPayLedgerTransactor, error) { + contract, err := bindAgentPayLedger(address, nil, transactor, nil) if err != nil { return nil, err } - return &CelerLedgerTransactor{contract: contract}, nil + return &AgentPayLedgerTransactor{contract: contract}, nil } -// NewCelerLedgerFilterer creates a new log filterer instance of CelerLedger, bound to a specific deployed contract. -func NewCelerLedgerFilterer(address common.Address, filterer bind.ContractFilterer) (*CelerLedgerFilterer, error) { - contract, err := bindCelerLedger(address, nil, nil, filterer) +// NewAgentPayLedgerFilterer creates a new log filterer instance of AgentPayLedger, bound to a specific deployed contract. +func NewAgentPayLedgerFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentPayLedgerFilterer, error) { + contract, err := bindAgentPayLedger(address, nil, nil, filterer) if err != nil { return nil, err } - return &CelerLedgerFilterer{contract: contract}, nil + return &AgentPayLedgerFilterer{contract: contract}, nil } -// bindCelerLedger binds a generic wrapper to an already deployed contract. -func bindCelerLedger(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := CelerLedgerMetaData.GetAbi() +// bindAgentPayLedger binds a generic wrapper to an already deployed contract. +func bindAgentPayLedger(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := AgentPayLedgerMetaData.GetAbi() if err != nil { return nil, err } @@ -169,46 +169,77 @@ func bindCelerLedger(address common.Address, caller bind.ContractCaller, transac // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_CelerLedger *CelerLedgerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CelerLedger.Contract.CelerLedgerCaller.contract.Call(opts, result, method, params...) +func (_AgentPayLedger *AgentPayLedgerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _AgentPayLedger.Contract.AgentPayLedgerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CelerLedger *CelerLedgerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.Contract.CelerLedgerTransactor.contract.Transfer(opts) +func (_AgentPayLedger *AgentPayLedgerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.Contract.AgentPayLedgerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CelerLedger *CelerLedgerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CelerLedger.Contract.CelerLedgerTransactor.contract.Transact(opts, method, params...) +func (_AgentPayLedger *AgentPayLedgerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _AgentPayLedger.Contract.AgentPayLedgerTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_CelerLedger *CelerLedgerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CelerLedger.Contract.contract.Call(opts, result, method, params...) +func (_AgentPayLedger *AgentPayLedgerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _AgentPayLedger.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CelerLedger *CelerLedgerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.Contract.contract.Transfer(opts) +func (_AgentPayLedger *AgentPayLedgerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CelerLedger *CelerLedgerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CelerLedger.Contract.contract.Transact(opts, method, params...) +func (_AgentPayLedger *AgentPayLedgerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _AgentPayLedger.Contract.contract.Transact(opts, method, params...) +} + +// GetAgentPayWallet is a free data retrieval call binding the contract method 0xb08a52c7. +// +// Solidity: function getAgentPayWallet() view returns(address) +func (_AgentPayLedger *AgentPayLedgerCaller) GetAgentPayWallet(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _AgentPayLedger.contract.Call(opts, &out, "getAgentPayWallet") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetAgentPayWallet is a free data retrieval call binding the contract method 0xb08a52c7. +// +// Solidity: function getAgentPayWallet() view returns(address) +func (_AgentPayLedger *AgentPayLedgerSession) GetAgentPayWallet() (common.Address, error) { + return _AgentPayLedger.Contract.GetAgentPayWallet(&_AgentPayLedger.CallOpts) +} + +// GetAgentPayWallet is a free data retrieval call binding the contract method 0xb08a52c7. +// +// Solidity: function getAgentPayWallet() view returns(address) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetAgentPayWallet() (common.Address, error) { + return _AgentPayLedger.Contract.GetAgentPayWallet(&_AgentPayLedger.CallOpts) } // GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d. // // Solidity: function getBalanceLimit(address _tokenAddr) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetBalanceLimit(opts *bind.CallOpts, _tokenAddr common.Address) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetBalanceLimit(opts *bind.CallOpts, _tokenAddr common.Address) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getBalanceLimit", _tokenAddr) + err := _AgentPayLedger.contract.Call(opts, &out, "getBalanceLimit", _tokenAddr) if err != nil { return *new(*big.Int), err @@ -223,23 +254,23 @@ func (_CelerLedger *CelerLedgerCaller) GetBalanceLimit(opts *bind.CallOpts, _tok // GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d. // // Solidity: function getBalanceLimit(address _tokenAddr) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error) { - return _CelerLedger.Contract.GetBalanceLimit(&_CelerLedger.CallOpts, _tokenAddr) +func (_AgentPayLedger *AgentPayLedgerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error) { + return _AgentPayLedger.Contract.GetBalanceLimit(&_AgentPayLedger.CallOpts, _tokenAddr) } // GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d. // // Solidity: function getBalanceLimit(address _tokenAddr) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error) { - return _CelerLedger.Contract.GetBalanceLimit(&_CelerLedger.CallOpts, _tokenAddr) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error) { + return _AgentPayLedger.Contract.GetBalanceLimit(&_AgentPayLedger.CallOpts, _tokenAddr) } // GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc. // // Solidity: function getBalanceLimitsEnabled() view returns(bool) -func (_CelerLedger *CelerLedgerCaller) GetBalanceLimitsEnabled(opts *bind.CallOpts) (bool, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetBalanceLimitsEnabled(opts *bind.CallOpts) (bool, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getBalanceLimitsEnabled") + err := _AgentPayLedger.contract.Call(opts, &out, "getBalanceLimitsEnabled") if err != nil { return *new(bool), err @@ -254,23 +285,23 @@ func (_CelerLedger *CelerLedgerCaller) GetBalanceLimitsEnabled(opts *bind.CallOp // GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc. // // Solidity: function getBalanceLimitsEnabled() view returns(bool) -func (_CelerLedger *CelerLedgerSession) GetBalanceLimitsEnabled() (bool, error) { - return _CelerLedger.Contract.GetBalanceLimitsEnabled(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerSession) GetBalanceLimitsEnabled() (bool, error) { + return _AgentPayLedger.Contract.GetBalanceLimitsEnabled(&_AgentPayLedger.CallOpts) } // GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc. // // Solidity: function getBalanceLimitsEnabled() view returns(bool) -func (_CelerLedger *CelerLedgerCallerSession) GetBalanceLimitsEnabled() (bool, error) { - return _CelerLedger.Contract.GetBalanceLimitsEnabled(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetBalanceLimitsEnabled() (bool, error) { + return _AgentPayLedger.Contract.GetBalanceLimitsEnabled(&_AgentPayLedger.CallOpts) } // GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7. // // Solidity: function getBalanceMap(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetBalanceMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetBalanceMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getBalanceMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getBalanceMap", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), *new([2]*big.Int), err @@ -287,54 +318,23 @@ func (_CelerLedger *CelerLedgerCaller) GetBalanceMap(opts *bind.CallOpts, _chann // GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7. // // Solidity: function getBalanceMap(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { - return _CelerLedger.Contract.GetBalanceMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetBalanceMap(&_AgentPayLedger.CallOpts, _channelId) } // GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7. // // Solidity: function getBalanceMap(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { - return _CelerLedger.Contract.GetBalanceMap(&_CelerLedger.CallOpts, _channelId) -} - -// GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f. -// -// Solidity: function getCelerWallet() view returns(address) -func (_CelerLedger *CelerLedgerCaller) GetCelerWallet(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getCelerWallet") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f. -// -// Solidity: function getCelerWallet() view returns(address) -func (_CelerLedger *CelerLedgerSession) GetCelerWallet() (common.Address, error) { - return _CelerLedger.Contract.GetCelerWallet(&_CelerLedger.CallOpts) -} - -// GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f. -// -// Solidity: function getCelerWallet() view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) GetCelerWallet() (common.Address, error) { - return _CelerLedger.Contract.GetCelerWallet(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetBalanceMap(&_AgentPayLedger.CallOpts, _channelId) } // GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304. // // Solidity: function getChannelMigrationArgs(bytes32 _channelId) view returns(uint256, uint256, address, uint256) -func (_CelerLedger *CelerLedgerCaller) GetChannelMigrationArgs(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetChannelMigrationArgs(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getChannelMigrationArgs", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getChannelMigrationArgs", _channelId) if err != nil { return *new(*big.Int), *new(*big.Int), *new(common.Address), *new(*big.Int), err @@ -352,23 +352,23 @@ func (_CelerLedger *CelerLedgerCaller) GetChannelMigrationArgs(opts *bind.CallOp // GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304. // // Solidity: function getChannelMigrationArgs(bytes32 _channelId) view returns(uint256, uint256, address, uint256) -func (_CelerLedger *CelerLedgerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { - return _CelerLedger.Contract.GetChannelMigrationArgs(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { + return _AgentPayLedger.Contract.GetChannelMigrationArgs(&_AgentPayLedger.CallOpts, _channelId) } // GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304. // // Solidity: function getChannelMigrationArgs(bytes32 _channelId) view returns(uint256, uint256, address, uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { - return _CelerLedger.Contract.GetChannelMigrationArgs(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error) { + return _AgentPayLedger.Contract.GetChannelMigrationArgs(&_AgentPayLedger.CallOpts, _channelId) } // GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7. // // Solidity: function getChannelStatus(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerCaller) GetChannelStatus(opts *bind.CallOpts, _channelId [32]byte) (uint8, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetChannelStatus(opts *bind.CallOpts, _channelId [32]byte) (uint8, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getChannelStatus", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getChannelStatus", _channelId) if err != nil { return *new(uint8), err @@ -383,23 +383,23 @@ func (_CelerLedger *CelerLedgerCaller) GetChannelStatus(opts *bind.CallOpts, _ch // GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7. // // Solidity: function getChannelStatus(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerSession) GetChannelStatus(_channelId [32]byte) (uint8, error) { - return _CelerLedger.Contract.GetChannelStatus(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetChannelStatus(_channelId [32]byte) (uint8, error) { + return _AgentPayLedger.Contract.GetChannelStatus(&_AgentPayLedger.CallOpts, _channelId) } // GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7. // // Solidity: function getChannelStatus(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerCallerSession) GetChannelStatus(_channelId [32]byte) (uint8, error) { - return _CelerLedger.Contract.GetChannelStatus(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetChannelStatus(_channelId [32]byte) (uint8, error) { + return _AgentPayLedger.Contract.GetChannelStatus(&_AgentPayLedger.CallOpts, _channelId) } // GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96. // // Solidity: function getChannelStatusNum(uint256 _channelStatus) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetChannelStatusNum(opts *bind.CallOpts, _channelStatus *big.Int) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetChannelStatusNum(opts *bind.CallOpts, _channelStatus *big.Int) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getChannelStatusNum", _channelStatus) + err := _AgentPayLedger.contract.Call(opts, &out, "getChannelStatusNum", _channelStatus) if err != nil { return *new(*big.Int), err @@ -414,23 +414,23 @@ func (_CelerLedger *CelerLedgerCaller) GetChannelStatusNum(opts *bind.CallOpts, // GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96. // // Solidity: function getChannelStatusNum(uint256 _channelStatus) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error) { - return _CelerLedger.Contract.GetChannelStatusNum(&_CelerLedger.CallOpts, _channelStatus) +func (_AgentPayLedger *AgentPayLedgerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error) { + return _AgentPayLedger.Contract.GetChannelStatusNum(&_AgentPayLedger.CallOpts, _channelStatus) } // GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96. // // Solidity: function getChannelStatusNum(uint256 _channelStatus) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error) { - return _CelerLedger.Contract.GetChannelStatusNum(&_CelerLedger.CallOpts, _channelStatus) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error) { + return _AgentPayLedger.Contract.GetChannelStatusNum(&_AgentPayLedger.CallOpts, _channelStatus) } // GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70. // // Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetCooperativeWithdrawSeqNum(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetCooperativeWithdrawSeqNum(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getCooperativeWithdrawSeqNum", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getCooperativeWithdrawSeqNum", _channelId) if err != nil { return *new(*big.Int), err @@ -445,23 +445,23 @@ func (_CelerLedger *CelerLedgerCaller) GetCooperativeWithdrawSeqNum(opts *bind.C // GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70. // // Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetCooperativeWithdrawSeqNum(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetCooperativeWithdrawSeqNum(&_AgentPayLedger.CallOpts, _channelId) } // GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70. // // Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetCooperativeWithdrawSeqNum(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetCooperativeWithdrawSeqNum(&_AgentPayLedger.CallOpts, _channelId) } // GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7. // // Solidity: function getDisputeTimeout(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetDisputeTimeout(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetDisputeTimeout(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getDisputeTimeout", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getDisputeTimeout", _channelId) if err != nil { return *new(*big.Int), err @@ -476,23 +476,23 @@ func (_CelerLedger *CelerLedgerCaller) GetDisputeTimeout(opts *bind.CallOpts, _c // GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7. // // Solidity: function getDisputeTimeout(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetDisputeTimeout(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetDisputeTimeout(&_AgentPayLedger.CallOpts, _channelId) } // GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7. // // Solidity: function getDisputeTimeout(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetDisputeTimeout(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetDisputeTimeout(&_AgentPayLedger.CallOpts, _channelId) } // GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d. // // Solidity: function getMigratedTo(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerCaller) GetMigratedTo(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetMigratedTo(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getMigratedTo", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getMigratedTo", _channelId) if err != nil { return *new(common.Address), err @@ -507,23 +507,23 @@ func (_CelerLedger *CelerLedgerCaller) GetMigratedTo(opts *bind.CallOpts, _chann // GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d. // // Solidity: function getMigratedTo(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error) { - return _CelerLedger.Contract.GetMigratedTo(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error) { + return _AgentPayLedger.Contract.GetMigratedTo(&_AgentPayLedger.CallOpts, _channelId) } // GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d. // // Solidity: function getMigratedTo(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error) { - return _CelerLedger.Contract.GetMigratedTo(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error) { + return _AgentPayLedger.Contract.GetMigratedTo(&_AgentPayLedger.CallOpts, _channelId) } // GetNativeWrap is a free data retrieval call binding the contract method 0x61fb19a0. // // Solidity: function getNativeWrap() view returns(address) -func (_CelerLedger *CelerLedgerCaller) GetNativeWrap(opts *bind.CallOpts) (common.Address, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetNativeWrap(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getNativeWrap") + err := _AgentPayLedger.contract.Call(opts, &out, "getNativeWrap") if err != nil { return *new(common.Address), err @@ -538,23 +538,23 @@ func (_CelerLedger *CelerLedgerCaller) GetNativeWrap(opts *bind.CallOpts) (commo // GetNativeWrap is a free data retrieval call binding the contract method 0x61fb19a0. // // Solidity: function getNativeWrap() view returns(address) -func (_CelerLedger *CelerLedgerSession) GetNativeWrap() (common.Address, error) { - return _CelerLedger.Contract.GetNativeWrap(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerSession) GetNativeWrap() (common.Address, error) { + return _AgentPayLedger.Contract.GetNativeWrap(&_AgentPayLedger.CallOpts) } // GetNativeWrap is a free data retrieval call binding the contract method 0x61fb19a0. // // Solidity: function getNativeWrap() view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) GetNativeWrap() (common.Address, error) { - return _CelerLedger.Contract.GetNativeWrap(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetNativeWrap() (common.Address, error) { + return _AgentPayLedger.Contract.GetNativeWrap(&_AgentPayLedger.CallOpts) } // GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6. // // Solidity: function getNextPayIdListHashMap(bytes32 _channelId) view returns(address[2], bytes32[2]) -func (_CelerLedger *CelerLedgerCaller) GetNextPayIdListHashMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2][32]byte, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetNextPayIdListHashMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2][32]byte, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getNextPayIdListHashMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getNextPayIdListHashMap", _channelId) if err != nil { return *new([2]common.Address), *new([2][32]byte), err @@ -570,23 +570,23 @@ func (_CelerLedger *CelerLedgerCaller) GetNextPayIdListHashMap(opts *bind.CallOp // GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6. // // Solidity: function getNextPayIdListHashMap(bytes32 _channelId) view returns(address[2], bytes32[2]) -func (_CelerLedger *CelerLedgerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error) { - return _CelerLedger.Contract.GetNextPayIdListHashMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error) { + return _AgentPayLedger.Contract.GetNextPayIdListHashMap(&_AgentPayLedger.CallOpts, _channelId) } // GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6. // // Solidity: function getNextPayIdListHashMap(bytes32 _channelId) view returns(address[2], bytes32[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error) { - return _CelerLedger.Contract.GetNextPayIdListHashMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error) { + return _AgentPayLedger.Contract.GetNextPayIdListHashMap(&_AgentPayLedger.CallOpts, _channelId) } // GetPayClearDeadlineMap is a free data retrieval call binding the contract method 0xc06d5ff5. // // Solidity: function getPayClearDeadlineMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetPayClearDeadlineMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetPayClearDeadlineMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getPayClearDeadlineMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getPayClearDeadlineMap", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), err @@ -602,23 +602,23 @@ func (_CelerLedger *CelerLedgerCaller) GetPayClearDeadlineMap(opts *bind.CallOpt // GetPayClearDeadlineMap is a free data retrieval call binding the contract method 0xc06d5ff5. // // Solidity: function getPayClearDeadlineMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetPayClearDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPayClearDeadlineMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetPayClearDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPayClearDeadlineMap(&_AgentPayLedger.CallOpts, _channelId) } // GetPayClearDeadlineMap is a free data retrieval call binding the contract method 0xc06d5ff5. // // Solidity: function getPayClearDeadlineMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetPayClearDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPayClearDeadlineMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetPayClearDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPayClearDeadlineMap(&_AgentPayLedger.CallOpts, _channelId) } // GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6. // // Solidity: function getPayRegistry() view returns(address) -func (_CelerLedger *CelerLedgerCaller) GetPayRegistry(opts *bind.CallOpts) (common.Address, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetPayRegistry(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getPayRegistry") + err := _AgentPayLedger.contract.Call(opts, &out, "getPayRegistry") if err != nil { return *new(common.Address), err @@ -633,23 +633,23 @@ func (_CelerLedger *CelerLedgerCaller) GetPayRegistry(opts *bind.CallOpts) (comm // GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6. // // Solidity: function getPayRegistry() view returns(address) -func (_CelerLedger *CelerLedgerSession) GetPayRegistry() (common.Address, error) { - return _CelerLedger.Contract.GetPayRegistry(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerSession) GetPayRegistry() (common.Address, error) { + return _AgentPayLedger.Contract.GetPayRegistry(&_AgentPayLedger.CallOpts) } // GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6. // // Solidity: function getPayRegistry() view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) GetPayRegistry() (common.Address, error) { - return _CelerLedger.Contract.GetPayRegistry(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetPayRegistry() (common.Address, error) { + return _AgentPayLedger.Contract.GetPayRegistry(&_AgentPayLedger.CallOpts) } // GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465. // // Solidity: function getPeersMigrationInfo(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetPeersMigrationInfo(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetPeersMigrationInfo(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getPeersMigrationInfo", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getPeersMigrationInfo", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), *new([2]*big.Int), *new([2]*big.Int), *new([2]*big.Int), *new([2]*big.Int), err @@ -669,23 +669,23 @@ func (_CelerLedger *CelerLedgerCaller) GetPeersMigrationInfo(opts *bind.CallOpts // GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465. // // Solidity: function getPeersMigrationInfo(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPeersMigrationInfo(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPeersMigrationInfo(&_AgentPayLedger.CallOpts, _channelId) } // GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465. // // Solidity: function getPeersMigrationInfo(bytes32 _channelId) view returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPeersMigrationInfo(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPeersMigrationInfo(&_AgentPayLedger.CallOpts, _channelId) } // GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8. // // Solidity: function getPendingPayOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetPendingPayOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetPendingPayOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getPendingPayOutMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getPendingPayOutMap", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), err @@ -701,23 +701,23 @@ func (_CelerLedger *CelerLedgerCaller) GetPendingPayOutMap(opts *bind.CallOpts, // GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8. // // Solidity: function getPendingPayOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPendingPayOutMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPendingPayOutMap(&_AgentPayLedger.CallOpts, _channelId) } // GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8. // // Solidity: function getPendingPayOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetPendingPayOutMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetPendingPayOutMap(&_AgentPayLedger.CallOpts, _channelId) } // GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86. // // Solidity: function getSettleFinalizedTime(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetSettleFinalizedTime(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetSettleFinalizedTime(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getSettleFinalizedTime", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getSettleFinalizedTime", _channelId) if err != nil { return *new(*big.Int), err @@ -732,23 +732,23 @@ func (_CelerLedger *CelerLedgerCaller) GetSettleFinalizedTime(opts *bind.CallOpt // GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86. // // Solidity: function getSettleFinalizedTime(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetSettleFinalizedTime(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetSettleFinalizedTime(&_AgentPayLedger.CallOpts, _channelId) } // GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86. // // Solidity: function getSettleFinalizedTime(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetSettleFinalizedTime(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetSettleFinalizedTime(&_AgentPayLedger.CallOpts, _channelId) } // GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65. // // Solidity: function getStateSeqNumMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetStateSeqNumMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetStateSeqNumMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getStateSeqNumMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getStateSeqNumMap", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), err @@ -764,23 +764,23 @@ func (_CelerLedger *CelerLedgerCaller) GetStateSeqNumMap(opts *bind.CallOpts, _c // GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65. // // Solidity: function getStateSeqNumMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetStateSeqNumMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetStateSeqNumMap(&_AgentPayLedger.CallOpts, _channelId) } // GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65. // // Solidity: function getStateSeqNumMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetStateSeqNumMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetStateSeqNumMap(&_AgentPayLedger.CallOpts, _channelId) } // GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02. // // Solidity: function getTokenContract(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerCaller) GetTokenContract(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetTokenContract(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getTokenContract", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getTokenContract", _channelId) if err != nil { return *new(common.Address), err @@ -795,23 +795,23 @@ func (_CelerLedger *CelerLedgerCaller) GetTokenContract(opts *bind.CallOpts, _ch // GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02. // // Solidity: function getTokenContract(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerSession) GetTokenContract(_channelId [32]byte) (common.Address, error) { - return _CelerLedger.Contract.GetTokenContract(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetTokenContract(_channelId [32]byte) (common.Address, error) { + return _AgentPayLedger.Contract.GetTokenContract(&_AgentPayLedger.CallOpts, _channelId) } // GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02. // // Solidity: function getTokenContract(bytes32 _channelId) view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) GetTokenContract(_channelId [32]byte) (common.Address, error) { - return _CelerLedger.Contract.GetTokenContract(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetTokenContract(_channelId [32]byte) (common.Address, error) { + return _AgentPayLedger.Contract.GetTokenContract(&_AgentPayLedger.CallOpts, _channelId) } // GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e. // // Solidity: function getTokenType(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerCaller) GetTokenType(opts *bind.CallOpts, _channelId [32]byte) (uint8, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetTokenType(opts *bind.CallOpts, _channelId [32]byte) (uint8, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getTokenType", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getTokenType", _channelId) if err != nil { return *new(uint8), err @@ -826,23 +826,23 @@ func (_CelerLedger *CelerLedgerCaller) GetTokenType(opts *bind.CallOpts, _channe // GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e. // // Solidity: function getTokenType(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerSession) GetTokenType(_channelId [32]byte) (uint8, error) { - return _CelerLedger.Contract.GetTokenType(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetTokenType(_channelId [32]byte) (uint8, error) { + return _AgentPayLedger.Contract.GetTokenType(&_AgentPayLedger.CallOpts, _channelId) } // GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e. // // Solidity: function getTokenType(bytes32 _channelId) view returns(uint8) -func (_CelerLedger *CelerLedgerCallerSession) GetTokenType(_channelId [32]byte) (uint8, error) { - return _CelerLedger.Contract.GetTokenType(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetTokenType(_channelId [32]byte) (uint8, error) { + return _AgentPayLedger.Contract.GetTokenType(&_AgentPayLedger.CallOpts, _channelId) } // GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67. // // Solidity: function getTotalBalance(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCaller) GetTotalBalance(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetTotalBalance(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getTotalBalance", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getTotalBalance", _channelId) if err != nil { return *new(*big.Int), err @@ -857,23 +857,23 @@ func (_CelerLedger *CelerLedgerCaller) GetTotalBalance(opts *bind.CallOpts, _cha // GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67. // // Solidity: function getTotalBalance(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetTotalBalance(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetTotalBalance(&_AgentPayLedger.CallOpts, _channelId) } // GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67. // // Solidity: function getTotalBalance(bytes32 _channelId) view returns(uint256) -func (_CelerLedger *CelerLedgerCallerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error) { - return _CelerLedger.Contract.GetTotalBalance(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error) { + return _AgentPayLedger.Contract.GetTotalBalance(&_AgentPayLedger.CallOpts, _channelId) } // GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4. // // Solidity: function getTransferOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCaller) GetTransferOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetTransferOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getTransferOutMap", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getTransferOutMap", _channelId) if err != nil { return *new([2]common.Address), *new([2]*big.Int), err @@ -889,23 +889,23 @@ func (_CelerLedger *CelerLedgerCaller) GetTransferOutMap(opts *bind.CallOpts, _c // GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4. // // Solidity: function getTransferOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetTransferOutMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetTransferOutMap(&_AgentPayLedger.CallOpts, _channelId) } // GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4. // // Solidity: function getTransferOutMap(bytes32 _channelId) view returns(address[2], uint256[2]) -func (_CelerLedger *CelerLedgerCallerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { - return _CelerLedger.Contract.GetTransferOutMap(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error) { + return _AgentPayLedger.Contract.GetTransferOutMap(&_AgentPayLedger.CallOpts, _channelId) } // GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117. // // Solidity: function getWithdrawIntent(bytes32 _channelId) view returns(address, uint256, uint256, bytes32) -func (_CelerLedger *CelerLedgerCaller) GetWithdrawIntent(opts *bind.CallOpts, _channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) GetWithdrawIntent(opts *bind.CallOpts, _channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "getWithdrawIntent", _channelId) + err := _AgentPayLedger.contract.Call(opts, &out, "getWithdrawIntent", _channelId) if err != nil { return *new(common.Address), *new(*big.Int), *new(*big.Int), *new([32]byte), err @@ -923,23 +923,23 @@ func (_CelerLedger *CelerLedgerCaller) GetWithdrawIntent(opts *bind.CallOpts, _c // GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117. // // Solidity: function getWithdrawIntent(bytes32 _channelId) view returns(address, uint256, uint256, bytes32) -func (_CelerLedger *CelerLedgerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { - return _CelerLedger.Contract.GetWithdrawIntent(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { + return _AgentPayLedger.Contract.GetWithdrawIntent(&_AgentPayLedger.CallOpts, _channelId) } // GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117. // // Solidity: function getWithdrawIntent(bytes32 _channelId) view returns(address, uint256, uint256, bytes32) -func (_CelerLedger *CelerLedgerCallerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { - return _CelerLedger.Contract.GetWithdrawIntent(&_CelerLedger.CallOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerCallerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error) { + return _AgentPayLedger.Contract.GetWithdrawIntent(&_AgentPayLedger.CallOpts, _channelId) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerLedger *CelerLedgerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_AgentPayLedger *AgentPayLedgerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CelerLedger.contract.Call(opts, &out, "owner") + err := _AgentPayLedger.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -954,440 +954,440 @@ func (_CelerLedger *CelerLedgerCaller) Owner(opts *bind.CallOpts) (common.Addres // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerLedger *CelerLedgerSession) Owner() (common.Address, error) { - return _CelerLedger.Contract.Owner(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerSession) Owner() (common.Address, error) { + return _AgentPayLedger.Contract.Owner(&_AgentPayLedger.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerLedger *CelerLedgerCallerSession) Owner() (common.Address, error) { - return _CelerLedger.Contract.Owner(&_CelerLedger.CallOpts) +func (_AgentPayLedger *AgentPayLedgerCallerSession) Owner() (common.Address, error) { + return _AgentPayLedger.Contract.Owner(&_AgentPayLedger.CallOpts) } // ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61. // // Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns() -func (_CelerLedger *CelerLedgerTransactor) ClearPays(opts *bind.TransactOpts, _channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "clearPays", _channelId, _peerFrom, _payIdList) +func (_AgentPayLedger *AgentPayLedgerTransactor) ClearPays(opts *bind.TransactOpts, _channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "clearPays", _channelId, _peerFrom, _payIdList) } // ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61. // // Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns() -func (_CelerLedger *CelerLedgerSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ClearPays(&_CelerLedger.TransactOpts, _channelId, _peerFrom, _payIdList) +func (_AgentPayLedger *AgentPayLedgerSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ClearPays(&_AgentPayLedger.TransactOpts, _channelId, _peerFrom, _payIdList) } // ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61. // // Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns() -func (_CelerLedger *CelerLedgerTransactorSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ClearPays(&_CelerLedger.TransactOpts, _channelId, _peerFrom, _payIdList) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ClearPays(&_AgentPayLedger.TransactOpts, _channelId, _peerFrom, _payIdList) } // ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625. // // Solidity: function confirmSettle(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactor) ConfirmSettle(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "confirmSettle", _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactor) ConfirmSettle(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "confirmSettle", _channelId) } // ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625. // // Solidity: function confirmSettle(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ConfirmSettle(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ConfirmSettle(&_AgentPayLedger.TransactOpts, _channelId) } // ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625. // // Solidity: function confirmSettle(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactorSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ConfirmSettle(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ConfirmSettle(&_AgentPayLedger.TransactOpts, _channelId) } // ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e. // // Solidity: function confirmWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactor) ConfirmWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "confirmWithdraw", _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactor) ConfirmWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "confirmWithdraw", _channelId) } // ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e. // // Solidity: function confirmWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ConfirmWithdraw(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ConfirmWithdraw(&_AgentPayLedger.TransactOpts, _channelId) } // ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e. // // Solidity: function confirmWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactorSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.ConfirmWithdraw(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.ConfirmWithdraw(&_AgentPayLedger.TransactOpts, _channelId) } // CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03. // // Solidity: function cooperativeSettle(bytes _settleRequest) returns() -func (_CelerLedger *CelerLedgerTransactor) CooperativeSettle(opts *bind.TransactOpts, _settleRequest []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "cooperativeSettle", _settleRequest) +func (_AgentPayLedger *AgentPayLedgerTransactor) CooperativeSettle(opts *bind.TransactOpts, _settleRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "cooperativeSettle", _settleRequest) } // CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03. // // Solidity: function cooperativeSettle(bytes _settleRequest) returns() -func (_CelerLedger *CelerLedgerSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.CooperativeSettle(&_CelerLedger.TransactOpts, _settleRequest) +func (_AgentPayLedger *AgentPayLedgerSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.CooperativeSettle(&_AgentPayLedger.TransactOpts, _settleRequest) } // CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03. // // Solidity: function cooperativeSettle(bytes _settleRequest) returns() -func (_CelerLedger *CelerLedgerTransactorSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.CooperativeSettle(&_CelerLedger.TransactOpts, _settleRequest) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.CooperativeSettle(&_AgentPayLedger.TransactOpts, _settleRequest) } // CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2. // // Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns() -func (_CelerLedger *CelerLedgerTransactor) CooperativeWithdraw(opts *bind.TransactOpts, _cooperativeWithdrawRequest []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "cooperativeWithdraw", _cooperativeWithdrawRequest) +func (_AgentPayLedger *AgentPayLedgerTransactor) CooperativeWithdraw(opts *bind.TransactOpts, _cooperativeWithdrawRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "cooperativeWithdraw", _cooperativeWithdrawRequest) } // CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2. // // Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns() -func (_CelerLedger *CelerLedgerSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.CooperativeWithdraw(&_CelerLedger.TransactOpts, _cooperativeWithdrawRequest) +func (_AgentPayLedger *AgentPayLedgerSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.CooperativeWithdraw(&_AgentPayLedger.TransactOpts, _cooperativeWithdrawRequest) } // CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2. // // Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns() -func (_CelerLedger *CelerLedgerTransactorSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.CooperativeWithdraw(&_CelerLedger.TransactOpts, _cooperativeWithdrawRequest) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.CooperativeWithdraw(&_AgentPayLedger.TransactOpts, _cooperativeWithdrawRequest) } // Deposit is a paid mutator transaction binding the contract method 0xd954863c. // // Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) payable returns() -func (_CelerLedger *CelerLedgerTransactor) Deposit(opts *bind.TransactOpts, _channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "deposit", _channelId, _receiver, _transferFromAmount) +func (_AgentPayLedger *AgentPayLedgerTransactor) Deposit(opts *bind.TransactOpts, _channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "deposit", _channelId, _receiver, _transferFromAmount) } // Deposit is a paid mutator transaction binding the contract method 0xd954863c. // // Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) payable returns() -func (_CelerLedger *CelerLedgerSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.Deposit(&_CelerLedger.TransactOpts, _channelId, _receiver, _transferFromAmount) +func (_AgentPayLedger *AgentPayLedgerSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.Deposit(&_AgentPayLedger.TransactOpts, _channelId, _receiver, _transferFromAmount) } // Deposit is a paid mutator transaction binding the contract method 0xd954863c. // // Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) payable returns() -func (_CelerLedger *CelerLedgerTransactorSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.Deposit(&_CelerLedger.TransactOpts, _channelId, _receiver, _transferFromAmount) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.Deposit(&_AgentPayLedger.TransactOpts, _channelId, _receiver, _transferFromAmount) } // DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2. // // Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns() -func (_CelerLedger *CelerLedgerTransactor) DepositInBatch(opts *bind.TransactOpts, _channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "depositInBatch", _channelIds, _receivers, _transferFromAmounts) +func (_AgentPayLedger *AgentPayLedgerTransactor) DepositInBatch(opts *bind.TransactOpts, _channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "depositInBatch", _channelIds, _receivers, _transferFromAmounts) } // DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2. // // Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns() -func (_CelerLedger *CelerLedgerSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.DepositInBatch(&_CelerLedger.TransactOpts, _channelIds, _receivers, _transferFromAmounts) +func (_AgentPayLedger *AgentPayLedgerSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.DepositInBatch(&_AgentPayLedger.TransactOpts, _channelIds, _receivers, _transferFromAmounts) } // DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2. // // Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns() -func (_CelerLedger *CelerLedgerTransactorSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.DepositInBatch(&_CelerLedger.TransactOpts, _channelIds, _receivers, _transferFromAmounts) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.DepositInBatch(&_AgentPayLedger.TransactOpts, _channelIds, _receivers, _transferFromAmounts) } // DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c. // // Solidity: function disableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerTransactor) DisableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "disableBalanceLimits") +func (_AgentPayLedger *AgentPayLedgerTransactor) DisableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "disableBalanceLimits") } // DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c. // // Solidity: function disableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerSession) DisableBalanceLimits() (*types.Transaction, error) { - return _CelerLedger.Contract.DisableBalanceLimits(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerSession) DisableBalanceLimits() (*types.Transaction, error) { + return _AgentPayLedger.Contract.DisableBalanceLimits(&_AgentPayLedger.TransactOpts) } // DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c. // // Solidity: function disableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerTransactorSession) DisableBalanceLimits() (*types.Transaction, error) { - return _CelerLedger.Contract.DisableBalanceLimits(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) DisableBalanceLimits() (*types.Transaction, error) { + return _AgentPayLedger.Contract.DisableBalanceLimits(&_AgentPayLedger.TransactOpts) } // EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8. // // Solidity: function enableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerTransactor) EnableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "enableBalanceLimits") +func (_AgentPayLedger *AgentPayLedgerTransactor) EnableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "enableBalanceLimits") } // EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8. // // Solidity: function enableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerSession) EnableBalanceLimits() (*types.Transaction, error) { - return _CelerLedger.Contract.EnableBalanceLimits(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerSession) EnableBalanceLimits() (*types.Transaction, error) { + return _AgentPayLedger.Contract.EnableBalanceLimits(&_AgentPayLedger.TransactOpts) } // EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8. // // Solidity: function enableBalanceLimits() returns() -func (_CelerLedger *CelerLedgerTransactorSession) EnableBalanceLimits() (*types.Transaction, error) { - return _CelerLedger.Contract.EnableBalanceLimits(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) EnableBalanceLimits() (*types.Transaction, error) { + return _AgentPayLedger.Contract.EnableBalanceLimits(&_AgentPayLedger.TransactOpts) } // IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe. // // Solidity: function intendSettle(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerTransactor) IntendSettle(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "intendSettle", _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerTransactor) IntendSettle(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "intendSettle", _signedSimplexStateArray) } // IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe. // // Solidity: function intendSettle(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.IntendSettle(&_CelerLedger.TransactOpts, _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.IntendSettle(&_AgentPayLedger.TransactOpts, _signedSimplexStateArray) } // IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe. // // Solidity: function intendSettle(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerTransactorSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.IntendSettle(&_CelerLedger.TransactOpts, _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.IntendSettle(&_AgentPayLedger.TransactOpts, _signedSimplexStateArray) } // IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2. // // Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns() -func (_CelerLedger *CelerLedgerTransactor) IntendWithdraw(opts *bind.TransactOpts, _channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "intendWithdraw", _channelId, _amount, _recipientChannelId) +func (_AgentPayLedger *AgentPayLedgerTransactor) IntendWithdraw(opts *bind.TransactOpts, _channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "intendWithdraw", _channelId, _amount, _recipientChannelId) } // IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2. // // Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns() -func (_CelerLedger *CelerLedgerSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.IntendWithdraw(&_CelerLedger.TransactOpts, _channelId, _amount, _recipientChannelId) +func (_AgentPayLedger *AgentPayLedgerSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.IntendWithdraw(&_AgentPayLedger.TransactOpts, _channelId, _amount, _recipientChannelId) } // IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2. // // Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns() -func (_CelerLedger *CelerLedgerTransactorSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.IntendWithdraw(&_CelerLedger.TransactOpts, _channelId, _amount, _recipientChannelId) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.IntendWithdraw(&_AgentPayLedger.TransactOpts, _channelId, _amount, _recipientChannelId) } // MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a. // // Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns() -func (_CelerLedger *CelerLedgerTransactor) MigrateChannelFrom(opts *bind.TransactOpts, _fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "migrateChannelFrom", _fromLedgerAddr, _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerTransactor) MigrateChannelFrom(opts *bind.TransactOpts, _fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "migrateChannelFrom", _fromLedgerAddr, _migrationRequest) } // MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a. // // Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns() -func (_CelerLedger *CelerLedgerSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.MigrateChannelFrom(&_CelerLedger.TransactOpts, _fromLedgerAddr, _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.MigrateChannelFrom(&_AgentPayLedger.TransactOpts, _fromLedgerAddr, _migrationRequest) } // MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a. // // Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns() -func (_CelerLedger *CelerLedgerTransactorSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.MigrateChannelFrom(&_CelerLedger.TransactOpts, _fromLedgerAddr, _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.MigrateChannelFrom(&_AgentPayLedger.TransactOpts, _fromLedgerAddr, _migrationRequest) } // MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7. // // Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32) -func (_CelerLedger *CelerLedgerTransactor) MigrateChannelTo(opts *bind.TransactOpts, _migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "migrateChannelTo", _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerTransactor) MigrateChannelTo(opts *bind.TransactOpts, _migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "migrateChannelTo", _migrationRequest) } // MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7. // // Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32) -func (_CelerLedger *CelerLedgerSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.MigrateChannelTo(&_CelerLedger.TransactOpts, _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.MigrateChannelTo(&_AgentPayLedger.TransactOpts, _migrationRequest) } // MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7. // // Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32) -func (_CelerLedger *CelerLedgerTransactorSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.MigrateChannelTo(&_CelerLedger.TransactOpts, _migrationRequest) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.MigrateChannelTo(&_AgentPayLedger.TransactOpts, _migrationRequest) } // OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce. // // Solidity: function openChannel(bytes _openRequest) payable returns() -func (_CelerLedger *CelerLedgerTransactor) OpenChannel(opts *bind.TransactOpts, _openRequest []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "openChannel", _openRequest) +func (_AgentPayLedger *AgentPayLedgerTransactor) OpenChannel(opts *bind.TransactOpts, _openRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "openChannel", _openRequest) } // OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce. // // Solidity: function openChannel(bytes _openRequest) payable returns() -func (_CelerLedger *CelerLedgerSession) OpenChannel(_openRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.OpenChannel(&_CelerLedger.TransactOpts, _openRequest) +func (_AgentPayLedger *AgentPayLedgerSession) OpenChannel(_openRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.OpenChannel(&_AgentPayLedger.TransactOpts, _openRequest) } // OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce. // // Solidity: function openChannel(bytes _openRequest) payable returns() -func (_CelerLedger *CelerLedgerTransactorSession) OpenChannel(_openRequest []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.OpenChannel(&_CelerLedger.TransactOpts, _openRequest) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) OpenChannel(_openRequest []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.OpenChannel(&_AgentPayLedger.TransactOpts, _openRequest) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerLedger *CelerLedgerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "renounceOwnership") +func (_AgentPayLedger *AgentPayLedgerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerLedger *CelerLedgerSession) RenounceOwnership() (*types.Transaction, error) { - return _CelerLedger.Contract.RenounceOwnership(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerSession) RenounceOwnership() (*types.Transaction, error) { + return _AgentPayLedger.Contract.RenounceOwnership(&_AgentPayLedger.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerLedger *CelerLedgerTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _CelerLedger.Contract.RenounceOwnership(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) RenounceOwnership() (*types.Transaction, error) { + return _AgentPayLedger.Contract.RenounceOwnership(&_AgentPayLedger.TransactOpts) } // SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab. // // Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns() -func (_CelerLedger *CelerLedgerTransactor) SetBalanceLimits(opts *bind.TransactOpts, _tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "setBalanceLimits", _tokenAddrs, _limits) +func (_AgentPayLedger *AgentPayLedgerTransactor) SetBalanceLimits(opts *bind.TransactOpts, _tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "setBalanceLimits", _tokenAddrs, _limits) } // SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab. // // Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns() -func (_CelerLedger *CelerLedgerSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.SetBalanceLimits(&_CelerLedger.TransactOpts, _tokenAddrs, _limits) +func (_AgentPayLedger *AgentPayLedgerSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.SetBalanceLimits(&_AgentPayLedger.TransactOpts, _tokenAddrs, _limits) } // SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab. // // Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns() -func (_CelerLedger *CelerLedgerTransactorSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { - return _CelerLedger.Contract.SetBalanceLimits(&_CelerLedger.TransactOpts, _tokenAddrs, _limits) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error) { + return _AgentPayLedger.Contract.SetBalanceLimits(&_AgentPayLedger.TransactOpts, _tokenAddrs, _limits) } // SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8. // // Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerTransactor) SnapshotStates(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "snapshotStates", _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerTransactor) SnapshotStates(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "snapshotStates", _signedSimplexStateArray) } // SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8. // // Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.SnapshotStates(&_CelerLedger.TransactOpts, _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.SnapshotStates(&_AgentPayLedger.TransactOpts, _signedSimplexStateArray) } // SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8. // // Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns() -func (_CelerLedger *CelerLedgerTransactorSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error) { - return _CelerLedger.Contract.SnapshotStates(&_CelerLedger.TransactOpts, _signedSimplexStateArray) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.SnapshotStates(&_AgentPayLedger.TransactOpts, _signedSimplexStateArray) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerLedger *CelerLedgerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "transferOwnership", newOwner) +func (_AgentPayLedger *AgentPayLedgerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerLedger *CelerLedgerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _CelerLedger.Contract.TransferOwnership(&_CelerLedger.TransactOpts, newOwner) +func (_AgentPayLedger *AgentPayLedgerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _AgentPayLedger.Contract.TransferOwnership(&_AgentPayLedger.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerLedger *CelerLedgerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _CelerLedger.Contract.TransferOwnership(&_CelerLedger.TransactOpts, newOwner) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _AgentPayLedger.Contract.TransferOwnership(&_AgentPayLedger.TransactOpts, newOwner) } // VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59. // // Solidity: function vetoWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactor) VetoWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.contract.Transact(opts, "vetoWithdraw", _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactor) VetoWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.contract.Transact(opts, "vetoWithdraw", _channelId) } // VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59. // // Solidity: function vetoWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.VetoWithdraw(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.VetoWithdraw(&_AgentPayLedger.TransactOpts, _channelId) } // VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59. // // Solidity: function vetoWithdraw(bytes32 _channelId) returns() -func (_CelerLedger *CelerLedgerTransactorSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error) { - return _CelerLedger.Contract.VetoWithdraw(&_CelerLedger.TransactOpts, _channelId) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error) { + return _AgentPayLedger.Contract.VetoWithdraw(&_AgentPayLedger.TransactOpts, _channelId) } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_CelerLedger *CelerLedgerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerLedger.contract.RawTransact(opts, nil) // calldata is disallowed for receive function +func (_AgentPayLedger *AgentPayLedgerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayLedger.contract.RawTransact(opts, nil) // calldata is disallowed for receive function } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_CelerLedger *CelerLedgerSession) Receive() (*types.Transaction, error) { - return _CelerLedger.Contract.Receive(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerSession) Receive() (*types.Transaction, error) { + return _AgentPayLedger.Contract.Receive(&_AgentPayLedger.TransactOpts) } // Receive is a paid mutator transaction binding the contract receive function. // // Solidity: receive() payable returns() -func (_CelerLedger *CelerLedgerTransactorSession) Receive() (*types.Transaction, error) { - return _CelerLedger.Contract.Receive(&_CelerLedger.TransactOpts) +func (_AgentPayLedger *AgentPayLedgerTransactorSession) Receive() (*types.Transaction, error) { + return _AgentPayLedger.Contract.Receive(&_AgentPayLedger.TransactOpts) } -// CelerLedgerClearOnePayIterator is returned from FilterClearOnePay and is used to iterate over the raw logs and unpacked data for ClearOnePay events raised by the CelerLedger contract. -type CelerLedgerClearOnePayIterator struct { - Event *CelerLedgerClearOnePay // Event containing the contract specifics and raw log +// AgentPayLedgerClearOnePayIterator is returned from FilterClearOnePay and is used to iterate over the raw logs and unpacked data for ClearOnePay events raised by the AgentPayLedger contract. +type AgentPayLedgerClearOnePayIterator struct { + Event *AgentPayLedgerClearOnePay // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1401,7 +1401,7 @@ type CelerLedgerClearOnePayIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerClearOnePayIterator) Next() bool { +func (it *AgentPayLedgerClearOnePayIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1410,7 +1410,7 @@ func (it *CelerLedgerClearOnePayIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerClearOnePay) + it.Event = new(AgentPayLedgerClearOnePay) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1425,7 +1425,7 @@ func (it *CelerLedgerClearOnePayIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerClearOnePay) + it.Event = new(AgentPayLedgerClearOnePay) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1441,19 +1441,19 @@ func (it *CelerLedgerClearOnePayIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerClearOnePayIterator) Error() error { +func (it *AgentPayLedgerClearOnePayIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerClearOnePayIterator) Close() error { +func (it *AgentPayLedgerClearOnePayIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerClearOnePay represents a ClearOnePay event raised by the CelerLedger contract. -type CelerLedgerClearOnePay struct { +// AgentPayLedgerClearOnePay represents a ClearOnePay event raised by the AgentPayLedger contract. +type AgentPayLedgerClearOnePay struct { ChannelId [32]byte PayId [32]byte PeerFrom common.Address @@ -1464,7 +1464,7 @@ type CelerLedgerClearOnePay struct { // FilterClearOnePay is a free log retrieval operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776. // // Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) FilterClearOnePay(opts *bind.FilterOpts, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (*CelerLedgerClearOnePayIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterClearOnePay(opts *bind.FilterOpts, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (*AgentPayLedgerClearOnePayIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -1479,17 +1479,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterClearOnePay(opts *bind.FilterOpts peerFromRule = append(peerFromRule, peerFromItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "ClearOnePay", channelIdRule, payIdRule, peerFromRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "ClearOnePay", channelIdRule, payIdRule, peerFromRule) if err != nil { return nil, err } - return &CelerLedgerClearOnePayIterator{contract: _CelerLedger.contract, event: "ClearOnePay", logs: logs, sub: sub}, nil + return &AgentPayLedgerClearOnePayIterator{contract: _AgentPayLedger.contract, event: "ClearOnePay", logs: logs, sub: sub}, nil } // WatchClearOnePay is a free log subscription operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776. // // Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, sink chan<- *CelerLedgerClearOnePay, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerClearOnePay, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -1504,7 +1504,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, peerFromRule = append(peerFromRule, peerFromItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "ClearOnePay", channelIdRule, payIdRule, peerFromRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "ClearOnePay", channelIdRule, payIdRule, peerFromRule) if err != nil { return nil, err } @@ -1514,8 +1514,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerClearOnePay) - if err := _CelerLedger.contract.UnpackLog(event, "ClearOnePay", log); err != nil { + event := new(AgentPayLedgerClearOnePay) + if err := _AgentPayLedger.contract.UnpackLog(event, "ClearOnePay", log); err != nil { return err } event.Raw = log @@ -1539,18 +1539,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, // ParseClearOnePay is a log parse operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776. // // Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) ParseClearOnePay(log types.Log) (*CelerLedgerClearOnePay, error) { - event := new(CelerLedgerClearOnePay) - if err := _CelerLedger.contract.UnpackLog(event, "ClearOnePay", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseClearOnePay(log types.Log) (*AgentPayLedgerClearOnePay, error) { + event := new(AgentPayLedgerClearOnePay) + if err := _AgentPayLedger.contract.UnpackLog(event, "ClearOnePay", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerConfirmSettleIterator is returned from FilterConfirmSettle and is used to iterate over the raw logs and unpacked data for ConfirmSettle events raised by the CelerLedger contract. -type CelerLedgerConfirmSettleIterator struct { - Event *CelerLedgerConfirmSettle // Event containing the contract specifics and raw log +// AgentPayLedgerConfirmSettleIterator is returned from FilterConfirmSettle and is used to iterate over the raw logs and unpacked data for ConfirmSettle events raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmSettleIterator struct { + Event *AgentPayLedgerConfirmSettle // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1564,7 +1564,7 @@ type CelerLedgerConfirmSettleIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerConfirmSettleIterator) Next() bool { +func (it *AgentPayLedgerConfirmSettleIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1573,7 +1573,7 @@ func (it *CelerLedgerConfirmSettleIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmSettle) + it.Event = new(AgentPayLedgerConfirmSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1588,7 +1588,7 @@ func (it *CelerLedgerConfirmSettleIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmSettle) + it.Event = new(AgentPayLedgerConfirmSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1604,19 +1604,19 @@ func (it *CelerLedgerConfirmSettleIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerConfirmSettleIterator) Error() error { +func (it *AgentPayLedgerConfirmSettleIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerConfirmSettleIterator) Close() error { +func (it *AgentPayLedgerConfirmSettleIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerConfirmSettle represents a ConfirmSettle event raised by the CelerLedger contract. -type CelerLedgerConfirmSettle struct { +// AgentPayLedgerConfirmSettle represents a ConfirmSettle event raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmSettle struct { ChannelId [32]byte SettleBalance [2]*big.Int Raw types.Log // Blockchain specific contextual infos @@ -1625,31 +1625,31 @@ type CelerLedgerConfirmSettle struct { // FilterConfirmSettle is a free log retrieval operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206. // // Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) FilterConfirmSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerConfirmSettleIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterConfirmSettle(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerConfirmSettleIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "ConfirmSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "ConfirmSettle", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerConfirmSettleIterator{contract: _CelerLedger.contract, event: "ConfirmSettle", logs: logs, sub: sub}, nil + return &AgentPayLedgerConfirmSettleIterator{contract: _AgentPayLedger.contract, event: "ConfirmSettle", logs: logs, sub: sub}, nil } // WatchConfirmSettle is a free log subscription operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206. // // Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmSettle, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchConfirmSettle(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerConfirmSettle, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "ConfirmSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "ConfirmSettle", channelIdRule) if err != nil { return nil, err } @@ -1659,8 +1659,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettle(opts *bind.WatchOpts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerConfirmSettle) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmSettle", log); err != nil { + event := new(AgentPayLedgerConfirmSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmSettle", log); err != nil { return err } event.Raw = log @@ -1684,18 +1684,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettle(opts *bind.WatchOpts // ParseConfirmSettle is a log parse operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206. // // Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) ParseConfirmSettle(log types.Log) (*CelerLedgerConfirmSettle, error) { - event := new(CelerLedgerConfirmSettle) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmSettle", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseConfirmSettle(log types.Log) (*AgentPayLedgerConfirmSettle, error) { + event := new(AgentPayLedgerConfirmSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmSettle", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerConfirmSettleFailIterator is returned from FilterConfirmSettleFail and is used to iterate over the raw logs and unpacked data for ConfirmSettleFail events raised by the CelerLedger contract. -type CelerLedgerConfirmSettleFailIterator struct { - Event *CelerLedgerConfirmSettleFail // Event containing the contract specifics and raw log +// AgentPayLedgerConfirmSettleFailIterator is returned from FilterConfirmSettleFail and is used to iterate over the raw logs and unpacked data for ConfirmSettleFail events raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmSettleFailIterator struct { + Event *AgentPayLedgerConfirmSettleFail // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1709,7 +1709,7 @@ type CelerLedgerConfirmSettleFailIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerConfirmSettleFailIterator) Next() bool { +func (it *AgentPayLedgerConfirmSettleFailIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1718,7 +1718,7 @@ func (it *CelerLedgerConfirmSettleFailIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmSettleFail) + it.Event = new(AgentPayLedgerConfirmSettleFail) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1733,7 +1733,7 @@ func (it *CelerLedgerConfirmSettleFailIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmSettleFail) + it.Event = new(AgentPayLedgerConfirmSettleFail) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1749,19 +1749,19 @@ func (it *CelerLedgerConfirmSettleFailIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerConfirmSettleFailIterator) Error() error { +func (it *AgentPayLedgerConfirmSettleFailIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerConfirmSettleFailIterator) Close() error { +func (it *AgentPayLedgerConfirmSettleFailIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerConfirmSettleFail represents a ConfirmSettleFail event raised by the CelerLedger contract. -type CelerLedgerConfirmSettleFail struct { +// AgentPayLedgerConfirmSettleFail represents a ConfirmSettleFail event raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmSettleFail struct { ChannelId [32]byte Raw types.Log // Blockchain specific contextual infos } @@ -1769,31 +1769,31 @@ type CelerLedgerConfirmSettleFail struct { // FilterConfirmSettleFail is a free log retrieval operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36. // // Solidity: event ConfirmSettleFail(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) FilterConfirmSettleFail(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerConfirmSettleFailIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterConfirmSettleFail(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerConfirmSettleFailIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "ConfirmSettleFail", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "ConfirmSettleFail", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerConfirmSettleFailIterator{contract: _CelerLedger.contract, event: "ConfirmSettleFail", logs: logs, sub: sub}, nil + return &AgentPayLedgerConfirmSettleFailIterator{contract: _AgentPayLedger.contract, event: "ConfirmSettleFail", logs: logs, sub: sub}, nil } // WatchConfirmSettleFail is a free log subscription operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36. // // Solidity: event ConfirmSettleFail(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettleFail(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmSettleFail, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchConfirmSettleFail(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerConfirmSettleFail, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "ConfirmSettleFail", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "ConfirmSettleFail", channelIdRule) if err != nil { return nil, err } @@ -1803,8 +1803,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettleFail(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerConfirmSettleFail) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmSettleFail", log); err != nil { + event := new(AgentPayLedgerConfirmSettleFail) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmSettleFail", log); err != nil { return err } event.Raw = log @@ -1828,18 +1828,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettleFail(opts *bind.Watch // ParseConfirmSettleFail is a log parse operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36. // // Solidity: event ConfirmSettleFail(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) ParseConfirmSettleFail(log types.Log) (*CelerLedgerConfirmSettleFail, error) { - event := new(CelerLedgerConfirmSettleFail) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmSettleFail", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseConfirmSettleFail(log types.Log) (*AgentPayLedgerConfirmSettleFail, error) { + event := new(AgentPayLedgerConfirmSettleFail) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmSettleFail", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerConfirmWithdrawIterator is returned from FilterConfirmWithdraw and is used to iterate over the raw logs and unpacked data for ConfirmWithdraw events raised by the CelerLedger contract. -type CelerLedgerConfirmWithdrawIterator struct { - Event *CelerLedgerConfirmWithdraw // Event containing the contract specifics and raw log +// AgentPayLedgerConfirmWithdrawIterator is returned from FilterConfirmWithdraw and is used to iterate over the raw logs and unpacked data for ConfirmWithdraw events raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmWithdrawIterator struct { + Event *AgentPayLedgerConfirmWithdraw // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1853,7 +1853,7 @@ type CelerLedgerConfirmWithdrawIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerConfirmWithdrawIterator) Next() bool { +func (it *AgentPayLedgerConfirmWithdrawIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1862,7 +1862,7 @@ func (it *CelerLedgerConfirmWithdrawIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmWithdraw) + it.Event = new(AgentPayLedgerConfirmWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1877,7 +1877,7 @@ func (it *CelerLedgerConfirmWithdrawIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerConfirmWithdraw) + it.Event = new(AgentPayLedgerConfirmWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1893,19 +1893,19 @@ func (it *CelerLedgerConfirmWithdrawIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerConfirmWithdrawIterator) Error() error { +func (it *AgentPayLedgerConfirmWithdrawIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerConfirmWithdrawIterator) Close() error { +func (it *AgentPayLedgerConfirmWithdrawIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerConfirmWithdraw represents a ConfirmWithdraw event raised by the CelerLedger contract. -type CelerLedgerConfirmWithdraw struct { +// AgentPayLedgerConfirmWithdraw represents a ConfirmWithdraw event raised by the AgentPayLedger contract. +type AgentPayLedgerConfirmWithdraw struct { ChannelId [32]byte WithdrawnAmount *big.Int Receiver common.Address @@ -1918,7 +1918,7 @@ type CelerLedgerConfirmWithdraw struct { // FilterConfirmWithdraw is a free log retrieval operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e. // // Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) FilterConfirmWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*CelerLedgerConfirmWithdrawIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterConfirmWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*AgentPayLedgerConfirmWithdrawIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -1934,17 +1934,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterConfirmWithdraw(opts *bind.Filter recipientChannelIdRule = append(recipientChannelIdRule, recipientChannelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "ConfirmWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "ConfirmWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) if err != nil { return nil, err } - return &CelerLedgerConfirmWithdrawIterator{contract: _CelerLedger.contract, event: "ConfirmWithdraw", logs: logs, sub: sub}, nil + return &AgentPayLedgerConfirmWithdrawIterator{contract: _AgentPayLedger.contract, event: "ConfirmWithdraw", logs: logs, sub: sub}, nil } // WatchConfirmWithdraw is a free log subscription operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e. // // Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerConfirmWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -1960,7 +1960,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOp recipientChannelIdRule = append(recipientChannelIdRule, recipientChannelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "ConfirmWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "ConfirmWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) if err != nil { return nil, err } @@ -1970,8 +1970,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerConfirmWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmWithdraw", log); err != nil { + event := new(AgentPayLedgerConfirmWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmWithdraw", log); err != nil { return err } event.Raw = log @@ -1995,18 +1995,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOp // ParseConfirmWithdraw is a log parse operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e. // // Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) ParseConfirmWithdraw(log types.Log) (*CelerLedgerConfirmWithdraw, error) { - event := new(CelerLedgerConfirmWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "ConfirmWithdraw", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseConfirmWithdraw(log types.Log) (*AgentPayLedgerConfirmWithdraw, error) { + event := new(AgentPayLedgerConfirmWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "ConfirmWithdraw", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerCooperativeSettleIterator is returned from FilterCooperativeSettle and is used to iterate over the raw logs and unpacked data for CooperativeSettle events raised by the CelerLedger contract. -type CelerLedgerCooperativeSettleIterator struct { - Event *CelerLedgerCooperativeSettle // Event containing the contract specifics and raw log +// AgentPayLedgerCooperativeSettleIterator is returned from FilterCooperativeSettle and is used to iterate over the raw logs and unpacked data for CooperativeSettle events raised by the AgentPayLedger contract. +type AgentPayLedgerCooperativeSettleIterator struct { + Event *AgentPayLedgerCooperativeSettle // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2020,7 +2020,7 @@ type CelerLedgerCooperativeSettleIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerCooperativeSettleIterator) Next() bool { +func (it *AgentPayLedgerCooperativeSettleIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2029,7 +2029,7 @@ func (it *CelerLedgerCooperativeSettleIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerCooperativeSettle) + it.Event = new(AgentPayLedgerCooperativeSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2044,7 +2044,7 @@ func (it *CelerLedgerCooperativeSettleIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerCooperativeSettle) + it.Event = new(AgentPayLedgerCooperativeSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2060,19 +2060,19 @@ func (it *CelerLedgerCooperativeSettleIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerCooperativeSettleIterator) Error() error { +func (it *AgentPayLedgerCooperativeSettleIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerCooperativeSettleIterator) Close() error { +func (it *AgentPayLedgerCooperativeSettleIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerCooperativeSettle represents a CooperativeSettle event raised by the CelerLedger contract. -type CelerLedgerCooperativeSettle struct { +// AgentPayLedgerCooperativeSettle represents a CooperativeSettle event raised by the AgentPayLedger contract. +type AgentPayLedgerCooperativeSettle struct { ChannelId [32]byte SettleBalance [2]*big.Int Raw types.Log // Blockchain specific contextual infos @@ -2081,31 +2081,31 @@ type CelerLedgerCooperativeSettle struct { // FilterCooperativeSettle is a free log retrieval operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd. // // Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) FilterCooperativeSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerCooperativeSettleIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterCooperativeSettle(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerCooperativeSettleIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "CooperativeSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "CooperativeSettle", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerCooperativeSettleIterator{contract: _CelerLedger.contract, event: "CooperativeSettle", logs: logs, sub: sub}, nil + return &AgentPayLedgerCooperativeSettleIterator{contract: _AgentPayLedger.contract, event: "CooperativeSettle", logs: logs, sub: sub}, nil } // WatchCooperativeSettle is a free log subscription operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd. // // Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerCooperativeSettle, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchCooperativeSettle(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerCooperativeSettle, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "CooperativeSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "CooperativeSettle", channelIdRule) if err != nil { return nil, err } @@ -2115,8 +2115,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeSettle(opts *bind.Watch select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerCooperativeSettle) - if err := _CelerLedger.contract.UnpackLog(event, "CooperativeSettle", log); err != nil { + event := new(AgentPayLedgerCooperativeSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "CooperativeSettle", log); err != nil { return err } event.Raw = log @@ -2140,18 +2140,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeSettle(opts *bind.Watch // ParseCooperativeSettle is a log parse operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd. // // Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance) -func (_CelerLedger *CelerLedgerFilterer) ParseCooperativeSettle(log types.Log) (*CelerLedgerCooperativeSettle, error) { - event := new(CelerLedgerCooperativeSettle) - if err := _CelerLedger.contract.UnpackLog(event, "CooperativeSettle", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseCooperativeSettle(log types.Log) (*AgentPayLedgerCooperativeSettle, error) { + event := new(AgentPayLedgerCooperativeSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "CooperativeSettle", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerCooperativeWithdrawIterator is returned from FilterCooperativeWithdraw and is used to iterate over the raw logs and unpacked data for CooperativeWithdraw events raised by the CelerLedger contract. -type CelerLedgerCooperativeWithdrawIterator struct { - Event *CelerLedgerCooperativeWithdraw // Event containing the contract specifics and raw log +// AgentPayLedgerCooperativeWithdrawIterator is returned from FilterCooperativeWithdraw and is used to iterate over the raw logs and unpacked data for CooperativeWithdraw events raised by the AgentPayLedger contract. +type AgentPayLedgerCooperativeWithdrawIterator struct { + Event *AgentPayLedgerCooperativeWithdraw // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2165,7 +2165,7 @@ type CelerLedgerCooperativeWithdrawIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerCooperativeWithdrawIterator) Next() bool { +func (it *AgentPayLedgerCooperativeWithdrawIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2174,7 +2174,7 @@ func (it *CelerLedgerCooperativeWithdrawIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerCooperativeWithdraw) + it.Event = new(AgentPayLedgerCooperativeWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2189,7 +2189,7 @@ func (it *CelerLedgerCooperativeWithdrawIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerCooperativeWithdraw) + it.Event = new(AgentPayLedgerCooperativeWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2205,19 +2205,19 @@ func (it *CelerLedgerCooperativeWithdrawIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerCooperativeWithdrawIterator) Error() error { +func (it *AgentPayLedgerCooperativeWithdrawIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerCooperativeWithdrawIterator) Close() error { +func (it *AgentPayLedgerCooperativeWithdrawIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerCooperativeWithdraw represents a CooperativeWithdraw event raised by the CelerLedger contract. -type CelerLedgerCooperativeWithdraw struct { +// AgentPayLedgerCooperativeWithdraw represents a CooperativeWithdraw event raised by the AgentPayLedger contract. +type AgentPayLedgerCooperativeWithdraw struct { ChannelId [32]byte WithdrawnAmount *big.Int Receiver common.Address @@ -2231,7 +2231,7 @@ type CelerLedgerCooperativeWithdraw struct { // FilterCooperativeWithdraw is a free log retrieval operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f. // // Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum) -func (_CelerLedger *CelerLedgerFilterer) FilterCooperativeWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*CelerLedgerCooperativeWithdrawIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterCooperativeWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*AgentPayLedgerCooperativeWithdrawIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2247,17 +2247,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterCooperativeWithdraw(opts *bind.Fi recipientChannelIdRule = append(recipientChannelIdRule, recipientChannelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "CooperativeWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "CooperativeWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) if err != nil { return nil, err } - return &CelerLedgerCooperativeWithdrawIterator{contract: _CelerLedger.contract, event: "CooperativeWithdraw", logs: logs, sub: sub}, nil + return &AgentPayLedgerCooperativeWithdrawIterator{contract: _AgentPayLedger.contract, event: "CooperativeWithdraw", logs: logs, sub: sub}, nil } // WatchCooperativeWithdraw is a free log subscription operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f. // // Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum) -func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerCooperativeWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchCooperativeWithdraw(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerCooperativeWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2273,7 +2273,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeWithdraw(opts *bind.Wat recipientChannelIdRule = append(recipientChannelIdRule, recipientChannelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "CooperativeWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "CooperativeWithdraw", channelIdRule, receiverRule, recipientChannelIdRule) if err != nil { return nil, err } @@ -2283,8 +2283,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeWithdraw(opts *bind.Wat select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerCooperativeWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "CooperativeWithdraw", log); err != nil { + event := new(AgentPayLedgerCooperativeWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "CooperativeWithdraw", log); err != nil { return err } event.Raw = log @@ -2308,18 +2308,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeWithdraw(opts *bind.Wat // ParseCooperativeWithdraw is a log parse operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f. // // Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum) -func (_CelerLedger *CelerLedgerFilterer) ParseCooperativeWithdraw(log types.Log) (*CelerLedgerCooperativeWithdraw, error) { - event := new(CelerLedgerCooperativeWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "CooperativeWithdraw", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseCooperativeWithdraw(log types.Log) (*AgentPayLedgerCooperativeWithdraw, error) { + event := new(AgentPayLedgerCooperativeWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "CooperativeWithdraw", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the CelerLedger contract. -type CelerLedgerDepositIterator struct { - Event *CelerLedgerDeposit // Event containing the contract specifics and raw log +// AgentPayLedgerDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the AgentPayLedger contract. +type AgentPayLedgerDepositIterator struct { + Event *AgentPayLedgerDeposit // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2333,7 +2333,7 @@ type CelerLedgerDepositIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerDepositIterator) Next() bool { +func (it *AgentPayLedgerDepositIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2342,7 +2342,7 @@ func (it *CelerLedgerDepositIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerDeposit) + it.Event = new(AgentPayLedgerDeposit) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2357,7 +2357,7 @@ func (it *CelerLedgerDepositIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerDeposit) + it.Event = new(AgentPayLedgerDeposit) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2373,19 +2373,19 @@ func (it *CelerLedgerDepositIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerDepositIterator) Error() error { +func (it *AgentPayLedgerDepositIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerDepositIterator) Close() error { +func (it *AgentPayLedgerDepositIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerDeposit represents a Deposit event raised by the CelerLedger contract. -type CelerLedgerDeposit struct { +// AgentPayLedgerDeposit represents a Deposit event raised by the AgentPayLedger contract. +type AgentPayLedgerDeposit struct { ChannelId [32]byte PeerAddrs [2]common.Address Deposits [2]*big.Int @@ -2396,31 +2396,31 @@ type CelerLedgerDeposit struct { // FilterDeposit is a free log retrieval operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c. // // Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) FilterDeposit(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerDepositIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterDeposit(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerDepositIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "Deposit", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "Deposit", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerDepositIterator{contract: _CelerLedger.contract, event: "Deposit", logs: logs, sub: sub}, nil + return &AgentPayLedgerDepositIterator{contract: _AgentPayLedger.contract, event: "Deposit", logs: logs, sub: sub}, nil } // WatchDeposit is a free log subscription operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c. // // Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *CelerLedgerDeposit, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerDeposit, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "Deposit", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "Deposit", channelIdRule) if err != nil { return nil, err } @@ -2430,8 +2430,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchDeposit(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerDeposit) - if err := _CelerLedger.contract.UnpackLog(event, "Deposit", log); err != nil { + event := new(AgentPayLedgerDeposit) + if err := _AgentPayLedger.contract.UnpackLog(event, "Deposit", log); err != nil { return err } event.Raw = log @@ -2455,18 +2455,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchDeposit(opts *bind.WatchOpts, sink // ParseDeposit is a log parse operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c. // // Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals) -func (_CelerLedger *CelerLedgerFilterer) ParseDeposit(log types.Log) (*CelerLedgerDeposit, error) { - event := new(CelerLedgerDeposit) - if err := _CelerLedger.contract.UnpackLog(event, "Deposit", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseDeposit(log types.Log) (*AgentPayLedgerDeposit, error) { + event := new(AgentPayLedgerDeposit) + if err := _AgentPayLedger.contract.UnpackLog(event, "Deposit", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerIntendSettleIterator is returned from FilterIntendSettle and is used to iterate over the raw logs and unpacked data for IntendSettle events raised by the CelerLedger contract. -type CelerLedgerIntendSettleIterator struct { - Event *CelerLedgerIntendSettle // Event containing the contract specifics and raw log +// AgentPayLedgerIntendSettleIterator is returned from FilterIntendSettle and is used to iterate over the raw logs and unpacked data for IntendSettle events raised by the AgentPayLedger contract. +type AgentPayLedgerIntendSettleIterator struct { + Event *AgentPayLedgerIntendSettle // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2480,7 +2480,7 @@ type CelerLedgerIntendSettleIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerIntendSettleIterator) Next() bool { +func (it *AgentPayLedgerIntendSettleIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2489,7 +2489,7 @@ func (it *CelerLedgerIntendSettleIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerIntendSettle) + it.Event = new(AgentPayLedgerIntendSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2504,7 +2504,7 @@ func (it *CelerLedgerIntendSettleIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerIntendSettle) + it.Event = new(AgentPayLedgerIntendSettle) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2520,19 +2520,19 @@ func (it *CelerLedgerIntendSettleIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerIntendSettleIterator) Error() error { +func (it *AgentPayLedgerIntendSettleIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerIntendSettleIterator) Close() error { +func (it *AgentPayLedgerIntendSettleIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerIntendSettle represents a IntendSettle event raised by the CelerLedger contract. -type CelerLedgerIntendSettle struct { +// AgentPayLedgerIntendSettle represents a IntendSettle event raised by the AgentPayLedger contract. +type AgentPayLedgerIntendSettle struct { ChannelId [32]byte SeqNums [2]*big.Int Raw types.Log // Blockchain specific contextual infos @@ -2541,31 +2541,31 @@ type CelerLedgerIntendSettle struct { // FilterIntendSettle is a free log retrieval operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64. // // Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) FilterIntendSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerIntendSettleIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterIntendSettle(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerIntendSettleIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "IntendSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "IntendSettle", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerIntendSettleIterator{contract: _CelerLedger.contract, event: "IntendSettle", logs: logs, sub: sub}, nil + return &AgentPayLedgerIntendSettleIterator{contract: _AgentPayLedger.contract, event: "IntendSettle", logs: logs, sub: sub}, nil } // WatchIntendSettle is a free log subscription operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64. // // Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerIntendSettle, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerIntendSettle, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "IntendSettle", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "IntendSettle", channelIdRule) if err != nil { return nil, err } @@ -2575,8 +2575,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchIntendSettle(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerIntendSettle) - if err := _CelerLedger.contract.UnpackLog(event, "IntendSettle", log); err != nil { + event := new(AgentPayLedgerIntendSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "IntendSettle", log); err != nil { return err } event.Raw = log @@ -2600,18 +2600,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchIntendSettle(opts *bind.WatchOpts, // ParseIntendSettle is a log parse operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64. // // Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) ParseIntendSettle(log types.Log) (*CelerLedgerIntendSettle, error) { - event := new(CelerLedgerIntendSettle) - if err := _CelerLedger.contract.UnpackLog(event, "IntendSettle", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseIntendSettle(log types.Log) (*AgentPayLedgerIntendSettle, error) { + event := new(AgentPayLedgerIntendSettle) + if err := _AgentPayLedger.contract.UnpackLog(event, "IntendSettle", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerIntendWithdrawIterator is returned from FilterIntendWithdraw and is used to iterate over the raw logs and unpacked data for IntendWithdraw events raised by the CelerLedger contract. -type CelerLedgerIntendWithdrawIterator struct { - Event *CelerLedgerIntendWithdraw // Event containing the contract specifics and raw log +// AgentPayLedgerIntendWithdrawIterator is returned from FilterIntendWithdraw and is used to iterate over the raw logs and unpacked data for IntendWithdraw events raised by the AgentPayLedger contract. +type AgentPayLedgerIntendWithdrawIterator struct { + Event *AgentPayLedgerIntendWithdraw // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2625,7 +2625,7 @@ type CelerLedgerIntendWithdrawIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerIntendWithdrawIterator) Next() bool { +func (it *AgentPayLedgerIntendWithdrawIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2634,7 +2634,7 @@ func (it *CelerLedgerIntendWithdrawIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerIntendWithdraw) + it.Event = new(AgentPayLedgerIntendWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2649,7 +2649,7 @@ func (it *CelerLedgerIntendWithdrawIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerIntendWithdraw) + it.Event = new(AgentPayLedgerIntendWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2665,19 +2665,19 @@ func (it *CelerLedgerIntendWithdrawIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerIntendWithdrawIterator) Error() error { +func (it *AgentPayLedgerIntendWithdrawIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerIntendWithdrawIterator) Close() error { +func (it *AgentPayLedgerIntendWithdrawIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerIntendWithdraw represents a IntendWithdraw event raised by the CelerLedger contract. -type CelerLedgerIntendWithdraw struct { +// AgentPayLedgerIntendWithdraw represents a IntendWithdraw event raised by the AgentPayLedger contract. +type AgentPayLedgerIntendWithdraw struct { ChannelId [32]byte Receiver common.Address Amount *big.Int @@ -2687,7 +2687,7 @@ type CelerLedgerIntendWithdraw struct { // FilterIntendWithdraw is a free log retrieval operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe. // // Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) FilterIntendWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address) (*CelerLedgerIntendWithdrawIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterIntendWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address) (*AgentPayLedgerIntendWithdrawIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2698,17 +2698,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterIntendWithdraw(opts *bind.FilterO receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "IntendWithdraw", channelIdRule, receiverRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "IntendWithdraw", channelIdRule, receiverRule) if err != nil { return nil, err } - return &CelerLedgerIntendWithdrawIterator{contract: _CelerLedger.contract, event: "IntendWithdraw", logs: logs, sub: sub}, nil + return &AgentPayLedgerIntendWithdrawIterator{contract: _AgentPayLedger.contract, event: "IntendWithdraw", logs: logs, sub: sub}, nil } // WatchIntendWithdraw is a free log subscription operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe. // // Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerIntendWithdraw, channelId [][32]byte, receiver []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerIntendWithdraw, channelId [][32]byte, receiver []common.Address) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2719,7 +2719,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpt receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "IntendWithdraw", channelIdRule, receiverRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "IntendWithdraw", channelIdRule, receiverRule) if err != nil { return nil, err } @@ -2729,8 +2729,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerIntendWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "IntendWithdraw", log); err != nil { + event := new(AgentPayLedgerIntendWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "IntendWithdraw", log); err != nil { return err } event.Raw = log @@ -2754,18 +2754,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpt // ParseIntendWithdraw is a log parse operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe. // // Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount) -func (_CelerLedger *CelerLedgerFilterer) ParseIntendWithdraw(log types.Log) (*CelerLedgerIntendWithdraw, error) { - event := new(CelerLedgerIntendWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "IntendWithdraw", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseIntendWithdraw(log types.Log) (*AgentPayLedgerIntendWithdraw, error) { + event := new(AgentPayLedgerIntendWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "IntendWithdraw", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerMigrateChannelFromIterator is returned from FilterMigrateChannelFrom and is used to iterate over the raw logs and unpacked data for MigrateChannelFrom events raised by the CelerLedger contract. -type CelerLedgerMigrateChannelFromIterator struct { - Event *CelerLedgerMigrateChannelFrom // Event containing the contract specifics and raw log +// AgentPayLedgerMigrateChannelFromIterator is returned from FilterMigrateChannelFrom and is used to iterate over the raw logs and unpacked data for MigrateChannelFrom events raised by the AgentPayLedger contract. +type AgentPayLedgerMigrateChannelFromIterator struct { + Event *AgentPayLedgerMigrateChannelFrom // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2779,7 +2779,7 @@ type CelerLedgerMigrateChannelFromIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerMigrateChannelFromIterator) Next() bool { +func (it *AgentPayLedgerMigrateChannelFromIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2788,7 +2788,7 @@ func (it *CelerLedgerMigrateChannelFromIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerMigrateChannelFrom) + it.Event = new(AgentPayLedgerMigrateChannelFrom) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2803,7 +2803,7 @@ func (it *CelerLedgerMigrateChannelFromIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerMigrateChannelFrom) + it.Event = new(AgentPayLedgerMigrateChannelFrom) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2819,19 +2819,19 @@ func (it *CelerLedgerMigrateChannelFromIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerMigrateChannelFromIterator) Error() error { +func (it *AgentPayLedgerMigrateChannelFromIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerMigrateChannelFromIterator) Close() error { +func (it *AgentPayLedgerMigrateChannelFromIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerMigrateChannelFrom represents a MigrateChannelFrom event raised by the CelerLedger contract. -type CelerLedgerMigrateChannelFrom struct { +// AgentPayLedgerMigrateChannelFrom represents a MigrateChannelFrom event raised by the AgentPayLedger contract. +type AgentPayLedgerMigrateChannelFrom struct { ChannelId [32]byte OldLedgerAddr common.Address Raw types.Log // Blockchain specific contextual infos @@ -2840,7 +2840,7 @@ type CelerLedgerMigrateChannelFrom struct { // FilterMigrateChannelFrom is a free log retrieval operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb. // // Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelFrom(opts *bind.FilterOpts, channelId [][32]byte, oldLedgerAddr []common.Address) (*CelerLedgerMigrateChannelFromIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterMigrateChannelFrom(opts *bind.FilterOpts, channelId [][32]byte, oldLedgerAddr []common.Address) (*AgentPayLedgerMigrateChannelFromIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2851,17 +2851,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelFrom(opts *bind.Fil oldLedgerAddrRule = append(oldLedgerAddrRule, oldLedgerAddrItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "MigrateChannelFrom", channelIdRule, oldLedgerAddrRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "MigrateChannelFrom", channelIdRule, oldLedgerAddrRule) if err != nil { return nil, err } - return &CelerLedgerMigrateChannelFromIterator{contract: _CelerLedger.contract, event: "MigrateChannelFrom", logs: logs, sub: sub}, nil + return &AgentPayLedgerMigrateChannelFromIterator{contract: _AgentPayLedger.contract, event: "MigrateChannelFrom", logs: logs, sub: sub}, nil } // WatchMigrateChannelFrom is a free log subscription operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb. // // Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelFrom(opts *bind.WatchOpts, sink chan<- *CelerLedgerMigrateChannelFrom, channelId [][32]byte, oldLedgerAddr []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchMigrateChannelFrom(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerMigrateChannelFrom, channelId [][32]byte, oldLedgerAddr []common.Address) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -2872,7 +2872,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelFrom(opts *bind.Watc oldLedgerAddrRule = append(oldLedgerAddrRule, oldLedgerAddrItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "MigrateChannelFrom", channelIdRule, oldLedgerAddrRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "MigrateChannelFrom", channelIdRule, oldLedgerAddrRule) if err != nil { return nil, err } @@ -2882,8 +2882,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelFrom(opts *bind.Watc select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerMigrateChannelFrom) - if err := _CelerLedger.contract.UnpackLog(event, "MigrateChannelFrom", log); err != nil { + event := new(AgentPayLedgerMigrateChannelFrom) + if err := _AgentPayLedger.contract.UnpackLog(event, "MigrateChannelFrom", log); err != nil { return err } event.Raw = log @@ -2907,18 +2907,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelFrom(opts *bind.Watc // ParseMigrateChannelFrom is a log parse operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb. // // Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) ParseMigrateChannelFrom(log types.Log) (*CelerLedgerMigrateChannelFrom, error) { - event := new(CelerLedgerMigrateChannelFrom) - if err := _CelerLedger.contract.UnpackLog(event, "MigrateChannelFrom", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseMigrateChannelFrom(log types.Log) (*AgentPayLedgerMigrateChannelFrom, error) { + event := new(AgentPayLedgerMigrateChannelFrom) + if err := _AgentPayLedger.contract.UnpackLog(event, "MigrateChannelFrom", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerMigrateChannelToIterator is returned from FilterMigrateChannelTo and is used to iterate over the raw logs and unpacked data for MigrateChannelTo events raised by the CelerLedger contract. -type CelerLedgerMigrateChannelToIterator struct { - Event *CelerLedgerMigrateChannelTo // Event containing the contract specifics and raw log +// AgentPayLedgerMigrateChannelToIterator is returned from FilterMigrateChannelTo and is used to iterate over the raw logs and unpacked data for MigrateChannelTo events raised by the AgentPayLedger contract. +type AgentPayLedgerMigrateChannelToIterator struct { + Event *AgentPayLedgerMigrateChannelTo // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2932,7 +2932,7 @@ type CelerLedgerMigrateChannelToIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerMigrateChannelToIterator) Next() bool { +func (it *AgentPayLedgerMigrateChannelToIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2941,7 +2941,7 @@ func (it *CelerLedgerMigrateChannelToIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerMigrateChannelTo) + it.Event = new(AgentPayLedgerMigrateChannelTo) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2956,7 +2956,7 @@ func (it *CelerLedgerMigrateChannelToIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerMigrateChannelTo) + it.Event = new(AgentPayLedgerMigrateChannelTo) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2972,19 +2972,19 @@ func (it *CelerLedgerMigrateChannelToIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerMigrateChannelToIterator) Error() error { +func (it *AgentPayLedgerMigrateChannelToIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerMigrateChannelToIterator) Close() error { +func (it *AgentPayLedgerMigrateChannelToIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerMigrateChannelTo represents a MigrateChannelTo event raised by the CelerLedger contract. -type CelerLedgerMigrateChannelTo struct { +// AgentPayLedgerMigrateChannelTo represents a MigrateChannelTo event raised by the AgentPayLedger contract. +type AgentPayLedgerMigrateChannelTo struct { ChannelId [32]byte NewLedgerAddr common.Address Raw types.Log // Blockchain specific contextual infos @@ -2993,7 +2993,7 @@ type CelerLedgerMigrateChannelTo struct { // FilterMigrateChannelTo is a free log retrieval operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f. // // Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelTo(opts *bind.FilterOpts, channelId [][32]byte, newLedgerAddr []common.Address) (*CelerLedgerMigrateChannelToIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterMigrateChannelTo(opts *bind.FilterOpts, channelId [][32]byte, newLedgerAddr []common.Address) (*AgentPayLedgerMigrateChannelToIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -3004,17 +3004,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelTo(opts *bind.Filte newLedgerAddrRule = append(newLedgerAddrRule, newLedgerAddrItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "MigrateChannelTo", channelIdRule, newLedgerAddrRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "MigrateChannelTo", channelIdRule, newLedgerAddrRule) if err != nil { return nil, err } - return &CelerLedgerMigrateChannelToIterator{contract: _CelerLedger.contract, event: "MigrateChannelTo", logs: logs, sub: sub}, nil + return &AgentPayLedgerMigrateChannelToIterator{contract: _AgentPayLedger.contract, event: "MigrateChannelTo", logs: logs, sub: sub}, nil } // WatchMigrateChannelTo is a free log subscription operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f. // // Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchOpts, sink chan<- *CelerLedgerMigrateChannelTo, channelId [][32]byte, newLedgerAddr []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerMigrateChannelTo, channelId [][32]byte, newLedgerAddr []common.Address) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -3025,7 +3025,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchO newLedgerAddrRule = append(newLedgerAddrRule, newLedgerAddrItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "MigrateChannelTo", channelIdRule, newLedgerAddrRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "MigrateChannelTo", channelIdRule, newLedgerAddrRule) if err != nil { return nil, err } @@ -3035,8 +3035,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchO select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerMigrateChannelTo) - if err := _CelerLedger.contract.UnpackLog(event, "MigrateChannelTo", log); err != nil { + event := new(AgentPayLedgerMigrateChannelTo) + if err := _AgentPayLedger.contract.UnpackLog(event, "MigrateChannelTo", log); err != nil { return err } event.Raw = log @@ -3060,18 +3060,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchO // ParseMigrateChannelTo is a log parse operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f. // // Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr) -func (_CelerLedger *CelerLedgerFilterer) ParseMigrateChannelTo(log types.Log) (*CelerLedgerMigrateChannelTo, error) { - event := new(CelerLedgerMigrateChannelTo) - if err := _CelerLedger.contract.UnpackLog(event, "MigrateChannelTo", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseMigrateChannelTo(log types.Log) (*AgentPayLedgerMigrateChannelTo, error) { + event := new(AgentPayLedgerMigrateChannelTo) + if err := _AgentPayLedger.contract.UnpackLog(event, "MigrateChannelTo", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerOpenChannelIterator is returned from FilterOpenChannel and is used to iterate over the raw logs and unpacked data for OpenChannel events raised by the CelerLedger contract. -type CelerLedgerOpenChannelIterator struct { - Event *CelerLedgerOpenChannel // Event containing the contract specifics and raw log +// AgentPayLedgerOpenChannelIterator is returned from FilterOpenChannel and is used to iterate over the raw logs and unpacked data for OpenChannel events raised by the AgentPayLedger contract. +type AgentPayLedgerOpenChannelIterator struct { + Event *AgentPayLedgerOpenChannel // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3085,7 +3085,7 @@ type CelerLedgerOpenChannelIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerOpenChannelIterator) Next() bool { +func (it *AgentPayLedgerOpenChannelIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3094,7 +3094,7 @@ func (it *CelerLedgerOpenChannelIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerOpenChannel) + it.Event = new(AgentPayLedgerOpenChannel) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3109,7 +3109,7 @@ func (it *CelerLedgerOpenChannelIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerOpenChannel) + it.Event = new(AgentPayLedgerOpenChannel) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3125,19 +3125,19 @@ func (it *CelerLedgerOpenChannelIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerOpenChannelIterator) Error() error { +func (it *AgentPayLedgerOpenChannelIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerOpenChannelIterator) Close() error { +func (it *AgentPayLedgerOpenChannelIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerOpenChannel represents a OpenChannel event raised by the CelerLedger contract. -type CelerLedgerOpenChannel struct { +// AgentPayLedgerOpenChannel represents a OpenChannel event raised by the AgentPayLedger contract. +type AgentPayLedgerOpenChannel struct { ChannelId [32]byte TokenType *big.Int TokenAddress common.Address @@ -3149,7 +3149,7 @@ type CelerLedgerOpenChannel struct { // FilterOpenChannel is a free log retrieval operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d. // // Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits) -func (_CelerLedger *CelerLedgerFilterer) FilterOpenChannel(opts *bind.FilterOpts, channelId [][32]byte, tokenAddress []common.Address) (*CelerLedgerOpenChannelIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterOpenChannel(opts *bind.FilterOpts, channelId [][32]byte, tokenAddress []common.Address) (*AgentPayLedgerOpenChannelIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -3161,17 +3161,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterOpenChannel(opts *bind.FilterOpts tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "OpenChannel", channelIdRule, tokenAddressRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "OpenChannel", channelIdRule, tokenAddressRule) if err != nil { return nil, err } - return &CelerLedgerOpenChannelIterator{contract: _CelerLedger.contract, event: "OpenChannel", logs: logs, sub: sub}, nil + return &AgentPayLedgerOpenChannelIterator{contract: _AgentPayLedger.contract, event: "OpenChannel", logs: logs, sub: sub}, nil } // WatchOpenChannel is a free log subscription operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d. // // Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits) -func (_CelerLedger *CelerLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, sink chan<- *CelerLedgerOpenChannel, channelId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerOpenChannel, channelId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { @@ -3183,7 +3183,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "OpenChannel", channelIdRule, tokenAddressRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "OpenChannel", channelIdRule, tokenAddressRule) if err != nil { return nil, err } @@ -3193,8 +3193,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerOpenChannel) - if err := _CelerLedger.contract.UnpackLog(event, "OpenChannel", log); err != nil { + event := new(AgentPayLedgerOpenChannel) + if err := _AgentPayLedger.contract.UnpackLog(event, "OpenChannel", log); err != nil { return err } event.Raw = log @@ -3218,18 +3218,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, // ParseOpenChannel is a log parse operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d. // // Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits) -func (_CelerLedger *CelerLedgerFilterer) ParseOpenChannel(log types.Log) (*CelerLedgerOpenChannel, error) { - event := new(CelerLedgerOpenChannel) - if err := _CelerLedger.contract.UnpackLog(event, "OpenChannel", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseOpenChannel(log types.Log) (*AgentPayLedgerOpenChannel, error) { + event := new(AgentPayLedgerOpenChannel) + if err := _AgentPayLedger.contract.UnpackLog(event, "OpenChannel", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the CelerLedger contract. -type CelerLedgerOwnershipTransferredIterator struct { - Event *CelerLedgerOwnershipTransferred // Event containing the contract specifics and raw log +// AgentPayLedgerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the AgentPayLedger contract. +type AgentPayLedgerOwnershipTransferredIterator struct { + Event *AgentPayLedgerOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3243,7 +3243,7 @@ type CelerLedgerOwnershipTransferredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerOwnershipTransferredIterator) Next() bool { +func (it *AgentPayLedgerOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3252,7 +3252,7 @@ func (it *CelerLedgerOwnershipTransferredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerOwnershipTransferred) + it.Event = new(AgentPayLedgerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3267,7 +3267,7 @@ func (it *CelerLedgerOwnershipTransferredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerOwnershipTransferred) + it.Event = new(AgentPayLedgerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3283,19 +3283,19 @@ func (it *CelerLedgerOwnershipTransferredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerOwnershipTransferredIterator) Error() error { +func (it *AgentPayLedgerOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerOwnershipTransferredIterator) Close() error { +func (it *AgentPayLedgerOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerOwnershipTransferred represents a OwnershipTransferred event raised by the CelerLedger contract. -type CelerLedgerOwnershipTransferred struct { +// AgentPayLedgerOwnershipTransferred represents a OwnershipTransferred event raised by the AgentPayLedger contract. +type AgentPayLedgerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -3304,7 +3304,7 @@ type CelerLedgerOwnershipTransferred struct { // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerLedger *CelerLedgerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CelerLedgerOwnershipTransferredIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentPayLedgerOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -3315,17 +3315,17 @@ func (_CelerLedger *CelerLedgerFilterer) FilterOwnershipTransferred(opts *bind.F newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } - return &CelerLedgerOwnershipTransferredIterator{contract: _CelerLedger.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil + return &AgentPayLedgerOwnershipTransferredIterator{contract: _AgentPayLedger.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerLedger *CelerLedgerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CelerLedgerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -3336,7 +3336,7 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOwnershipTransferred(opts *bind.Wa newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } @@ -3346,8 +3346,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOwnershipTransferred(opts *bind.Wa select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerOwnershipTransferred) - if err := _CelerLedger.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + event := new(AgentPayLedgerOwnershipTransferred) + if err := _AgentPayLedger.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log @@ -3371,18 +3371,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchOwnershipTransferred(opts *bind.Wa // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerLedger *CelerLedgerFilterer) ParseOwnershipTransferred(log types.Log) (*CelerLedgerOwnershipTransferred, error) { - event := new(CelerLedgerOwnershipTransferred) - if err := _CelerLedger.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseOwnershipTransferred(log types.Log) (*AgentPayLedgerOwnershipTransferred, error) { + event := new(AgentPayLedgerOwnershipTransferred) + if err := _AgentPayLedger.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerSnapshotStatesIterator is returned from FilterSnapshotStates and is used to iterate over the raw logs and unpacked data for SnapshotStates events raised by the CelerLedger contract. -type CelerLedgerSnapshotStatesIterator struct { - Event *CelerLedgerSnapshotStates // Event containing the contract specifics and raw log +// AgentPayLedgerSnapshotStatesIterator is returned from FilterSnapshotStates and is used to iterate over the raw logs and unpacked data for SnapshotStates events raised by the AgentPayLedger contract. +type AgentPayLedgerSnapshotStatesIterator struct { + Event *AgentPayLedgerSnapshotStates // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3396,7 +3396,7 @@ type CelerLedgerSnapshotStatesIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerSnapshotStatesIterator) Next() bool { +func (it *AgentPayLedgerSnapshotStatesIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3405,7 +3405,7 @@ func (it *CelerLedgerSnapshotStatesIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerSnapshotStates) + it.Event = new(AgentPayLedgerSnapshotStates) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3420,7 +3420,7 @@ func (it *CelerLedgerSnapshotStatesIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerSnapshotStates) + it.Event = new(AgentPayLedgerSnapshotStates) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3436,19 +3436,19 @@ func (it *CelerLedgerSnapshotStatesIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerSnapshotStatesIterator) Error() error { +func (it *AgentPayLedgerSnapshotStatesIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerSnapshotStatesIterator) Close() error { +func (it *AgentPayLedgerSnapshotStatesIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerSnapshotStates represents a SnapshotStates event raised by the CelerLedger contract. -type CelerLedgerSnapshotStates struct { +// AgentPayLedgerSnapshotStates represents a SnapshotStates event raised by the AgentPayLedger contract. +type AgentPayLedgerSnapshotStates struct { ChannelId [32]byte SeqNums [2]*big.Int Raw types.Log // Blockchain specific contextual infos @@ -3457,31 +3457,31 @@ type CelerLedgerSnapshotStates struct { // FilterSnapshotStates is a free log retrieval operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271. // // Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) FilterSnapshotStates(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerSnapshotStatesIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterSnapshotStates(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerSnapshotStatesIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "SnapshotStates", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "SnapshotStates", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerSnapshotStatesIterator{contract: _CelerLedger.contract, event: "SnapshotStates", logs: logs, sub: sub}, nil + return &AgentPayLedgerSnapshotStatesIterator{contract: _AgentPayLedger.contract, event: "SnapshotStates", logs: logs, sub: sub}, nil } // WatchSnapshotStates is a free log subscription operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271. // // Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) WatchSnapshotStates(opts *bind.WatchOpts, sink chan<- *CelerLedgerSnapshotStates, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchSnapshotStates(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerSnapshotStates, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "SnapshotStates", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "SnapshotStates", channelIdRule) if err != nil { return nil, err } @@ -3491,8 +3491,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchSnapshotStates(opts *bind.WatchOpt select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerSnapshotStates) - if err := _CelerLedger.contract.UnpackLog(event, "SnapshotStates", log); err != nil { + event := new(AgentPayLedgerSnapshotStates) + if err := _AgentPayLedger.contract.UnpackLog(event, "SnapshotStates", log); err != nil { return err } event.Raw = log @@ -3516,18 +3516,18 @@ func (_CelerLedger *CelerLedgerFilterer) WatchSnapshotStates(opts *bind.WatchOpt // ParseSnapshotStates is a log parse operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271. // // Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums) -func (_CelerLedger *CelerLedgerFilterer) ParseSnapshotStates(log types.Log) (*CelerLedgerSnapshotStates, error) { - event := new(CelerLedgerSnapshotStates) - if err := _CelerLedger.contract.UnpackLog(event, "SnapshotStates", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseSnapshotStates(log types.Log) (*AgentPayLedgerSnapshotStates, error) { + event := new(AgentPayLedgerSnapshotStates) + if err := _AgentPayLedger.contract.UnpackLog(event, "SnapshotStates", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerLedgerVetoWithdrawIterator is returned from FilterVetoWithdraw and is used to iterate over the raw logs and unpacked data for VetoWithdraw events raised by the CelerLedger contract. -type CelerLedgerVetoWithdrawIterator struct { - Event *CelerLedgerVetoWithdraw // Event containing the contract specifics and raw log +// AgentPayLedgerVetoWithdrawIterator is returned from FilterVetoWithdraw and is used to iterate over the raw logs and unpacked data for VetoWithdraw events raised by the AgentPayLedger contract. +type AgentPayLedgerVetoWithdrawIterator struct { + Event *AgentPayLedgerVetoWithdraw // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -3541,7 +3541,7 @@ type CelerLedgerVetoWithdrawIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerLedgerVetoWithdrawIterator) Next() bool { +func (it *AgentPayLedgerVetoWithdrawIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -3550,7 +3550,7 @@ func (it *CelerLedgerVetoWithdrawIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerLedgerVetoWithdraw) + it.Event = new(AgentPayLedgerVetoWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3565,7 +3565,7 @@ func (it *CelerLedgerVetoWithdrawIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerLedgerVetoWithdraw) + it.Event = new(AgentPayLedgerVetoWithdraw) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -3581,19 +3581,19 @@ func (it *CelerLedgerVetoWithdrawIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerLedgerVetoWithdrawIterator) Error() error { +func (it *AgentPayLedgerVetoWithdrawIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerLedgerVetoWithdrawIterator) Close() error { +func (it *AgentPayLedgerVetoWithdrawIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerLedgerVetoWithdraw represents a VetoWithdraw event raised by the CelerLedger contract. -type CelerLedgerVetoWithdraw struct { +// AgentPayLedgerVetoWithdraw represents a VetoWithdraw event raised by the AgentPayLedger contract. +type AgentPayLedgerVetoWithdraw struct { ChannelId [32]byte Raw types.Log // Blockchain specific contextual infos } @@ -3601,31 +3601,31 @@ type CelerLedgerVetoWithdraw struct { // FilterVetoWithdraw is a free log retrieval operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c. // // Solidity: event VetoWithdraw(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) FilterVetoWithdraw(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerVetoWithdrawIterator, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) FilterVetoWithdraw(opts *bind.FilterOpts, channelId [][32]byte) (*AgentPayLedgerVetoWithdrawIterator, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.FilterLogs(opts, "VetoWithdraw", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.FilterLogs(opts, "VetoWithdraw", channelIdRule) if err != nil { return nil, err } - return &CelerLedgerVetoWithdrawIterator{contract: _CelerLedger.contract, event: "VetoWithdraw", logs: logs, sub: sub}, nil + return &AgentPayLedgerVetoWithdrawIterator{contract: _AgentPayLedger.contract, event: "VetoWithdraw", logs: logs, sub: sub}, nil } // WatchVetoWithdraw is a free log subscription operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c. // // Solidity: event VetoWithdraw(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) WatchVetoWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerVetoWithdraw, channelId [][32]byte) (event.Subscription, error) { +func (_AgentPayLedger *AgentPayLedgerFilterer) WatchVetoWithdraw(opts *bind.WatchOpts, sink chan<- *AgentPayLedgerVetoWithdraw, channelId [][32]byte) (event.Subscription, error) { var channelIdRule []interface{} for _, channelIdItem := range channelId { channelIdRule = append(channelIdRule, channelIdItem) } - logs, sub, err := _CelerLedger.contract.WatchLogs(opts, "VetoWithdraw", channelIdRule) + logs, sub, err := _AgentPayLedger.contract.WatchLogs(opts, "VetoWithdraw", channelIdRule) if err != nil { return nil, err } @@ -3635,8 +3635,8 @@ func (_CelerLedger *CelerLedgerFilterer) WatchVetoWithdraw(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerLedgerVetoWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "VetoWithdraw", log); err != nil { + event := new(AgentPayLedgerVetoWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "VetoWithdraw", log); err != nil { return err } event.Raw = log @@ -3660,9 +3660,9 @@ func (_CelerLedger *CelerLedgerFilterer) WatchVetoWithdraw(opts *bind.WatchOpts, // ParseVetoWithdraw is a log parse operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c. // // Solidity: event VetoWithdraw(bytes32 indexed channelId) -func (_CelerLedger *CelerLedgerFilterer) ParseVetoWithdraw(log types.Log) (*CelerLedgerVetoWithdraw, error) { - event := new(CelerLedgerVetoWithdraw) - if err := _CelerLedger.contract.UnpackLog(event, "VetoWithdraw", log); err != nil { +func (_AgentPayLedger *AgentPayLedgerFilterer) ParseVetoWithdraw(log types.Log) (*AgentPayLedgerVetoWithdraw, error) { + event := new(AgentPayLedgerVetoWithdraw) + if err := _AgentPayLedger.contract.UnpackLog(event, "VetoWithdraw", log); err != nil { return nil, err } event.Raw = log diff --git a/chain/channel-eth-go/ledgerstruct/ledgerstruct.go b/chain/channel-eth-go/ledgerstruct/ledgerstruct.go index 2ad46cd..cc03ab7 100644 --- a/chain/channel-eth-go/ledgerstruct/ledgerstruct.go +++ b/chain/channel-eth-go/ledgerstruct/ledgerstruct.go @@ -33,7 +33,7 @@ var ( // LedgerStructMetaData contains all meta data concerning the LedgerStruct contract. var LedgerStructMetaData = &bind.MetaData{ ABI: "[]", - Bin: "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220de4f8764c7c8c26e1293f122c85a4f010675f1d4a0f5f806119a3d061356b54464736f6c634300081e0033", + Bin: "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220bb55596d685978aad9a6beda6063f797daa0b254be995a892e346362e2793db464736f6c634300081e0033", } // LedgerStructABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/migrate/migrate.go b/chain/channel-eth-go/migrate/migrate.go index cea425e..44ff54e 100644 --- a/chain/channel-eth-go/migrate/migrate.go +++ b/chain/channel-eth-go/migrate/migrate.go @@ -33,7 +33,7 @@ var ( // LedgerMigrateMetaData contains all meta data concerning the LedgerMigrate contract. var LedgerMigrateMetaData = &bind.MetaData{ ABI: "[{\"type\":\"event\",\"name\":\"MigrateChannelFrom\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"oldLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"MigrateChannelTo\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newLedgerAddr\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ChannelAlreadyMigrated\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChannelNotOperableOrSettling\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DeadlinePassed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureLength\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureS\",\"inputs\":[{\"name\":\"s\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"FromLedgerAddressMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidCoSignatures\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OperatorshipNotTransferred\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ToLedgerAddressMismatch\",\"inputs\":[]}]", - Bin: "0x61133e610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061003f575f3560e01c80633c50ec721461004357806382b4338a14610074575b5f5ffd5b81801561004e575f5ffd5b5061006261005d366004610fd6565b610095565b60405190815260200160405180910390f35b81801561007f575f5ffd5b5061009361008e366004611035565b6102e0565b005b5f5f6100d584848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061048f92505050565b90505f6100e4825f01516105a4565b80515f818152600689016020526040908190209083015192935090916001600383015460ff16600481111561011b5761011b61108d565b148061013f57506002600383015460ff16600481111561013d5761013d61108d565b145b61015c576040516334b8cc2360e11b815260040160405180910390fd5b8451805160209182012090860151610177908490839061069a565b6101945760405163b089d34760e01b815260040160405180910390fd5b60208501516001600160a01b031630146101c15760405163712974f160e11b815260040160405180910390fd5b6001600160a01b03821633146101ea57604051632a78050b60e11b815260040160405180910390fd5b846060015142111561020f5760405163387b2e5560e11b815260040160405180910390fd5b61021b8a84600461075f565b600383018054610100600160a81b0319166101006001600160a01b0385169081029190911790915560405185907fdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f905f90a360038a015460405163283226a360e21b8152600481018690526001600160a01b0384811660248301529091169063a0c89a8c906044015f604051808303815f87803b1580156102ba575f5ffd5b505af11580156102cc573d5f5f3e3d5ffd5b5095985050505050505050505b9392505050565b60405163e0a515b760e01b815283905f906001600160a01b0383169063e0a515b79061031290879087906004016110a1565b6020604051808303815f875af115801561032e573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035291906110cf565b5f8181526006880160205260408120919250600382015460ff16600481111561037d5761037d61108d565b1461039b5760405163099a70bf60e21b815260040160405180910390fd5b600387015460405163aee2e98960e01b81526004810184905230916001600160a01b03169063aee2e98990602401602060405180830381865afa1580156103e4573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061040891906110e6565b6001600160a01b03161461042f5760405163ec86390b60e01b815260040160405180910390fd5b61043b8782600161075f565b610446818484610896565b610451818484610978565b6040516001600160a01b0387169083907f141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb905f90a350505050505050565b60408051808201909152606080825260208201525f6104c083604080518082019091525f8152602081019190915290565b90505f600284516104d19190611115565b67ffffffffffffffff8111156104e9576104e9611134565b604051908082528060200260200182016040528015610512578160200160208202803683370190505b5090505f805b602084015151845110156105965761052f84610af7565b905080600a036105495761054284610b66565b8552610518565b80601203610572575f61055b85610b66565b600584901b85016020015250600190910190610518565b61059181600716600581111561058a5761058a61108d565b8590610c09565b610518565b508152602083015250919050565b604080516080810182525f808252602080830182905282840182905260608301829052835180850190945281845283018490529091905b60208201515182511015610693576105f282610af7565b905080600a0361060c5761060582610ce9565b83526105db565b806012036106305761061d82610d46565b6001600160a01b031660208401526105db565b80601a036106545761064182610d46565b6001600160a01b031660408401526105db565b8060200361066f5761066582610af7565b60608401526105db565b61068e8160071660058111156106875761068761108d565b8390610c09565b6105db565b5050919050565b5f81516002146106ab57505f6102d9565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c849052603c812090805b6002811015610752576107118582815181106106fa576106fa611148565b602002602001015184610d9990919063ffffffff16565b915086600401816002811061072857610728611148565b60080201546001600160a01b0383811691161461074a575f93505050506102d9565b6001016106dc565b5060019695505050505050565b8060048111156107715761077161108d565b600383015460ff16600481111561078a5761078a61108d565b0361079457505050565b5f600383015460ff1660048111156107ae576107ae61108d565b1461081957600382015460019084905f9060ff1660048111156107d3576107d361108d565b81526020019081526020015f20546107eb919061115c565b600383015484905f9060ff1660048111156108085761080861108d565b815260208101919091526040015f20555b825f82600481111561082d5761082d61108d565b81526020019081526020015f20546001610847919061116f565b835f83600481111561085b5761085b61108d565b815260208101919091526040015f205560038201805482919060ff1916600183600481111561088c5761088c61108d565b0217905550505050565b604051630bc2b0c160e21b8152600481018290525f906001600160a01b03841690632f0ac30490602401608060405180830381865afa1580156108db573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ff9190611182565b6014880155600280880180546001600160a01b0390931661010002610100600160a81b0319909316929092179091556001870192909255915081908111156109495761094961108d565b60028086018054909160ff1990911690600190849081111561096d5761096d61108d565b021790555050505050565b5f5f5f5f5f5f876001600160a01b03166388f41465886040518263ffffffff1660e01b81526004016109ac91815260200190565b61018060405180830381865afa1580156109c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109ec919061124b565b9550955095509550955095505f5f90505b6002811015610aeb575f8a6004018260028110610a1c57610a1c611148565b600802019050878260028110610a3457610a34611148565b602002015181546001600160a01b0319166001600160a01b03909116178155868260028110610a6557610a65611148565b60200201516001820155858260028110610a8157610a81611148565b60200201518160020181905550848260028110610aa057610aa0611148565b60200201516003820155838260028110610abc57610abc611148565b60200201516004820155828260028110610ad857610ad8611148565b60200201516007909101556001016109fd565b50505050505050505050565b602080820151825181515f938301845b600a81101561003f57828410610b1b575f5ffd5b838201515f1a607f8116600783021b96909617956001909401936080811015610b5d5781600903610b525760028110610b52575f5ffd5b505050935250919050565b50600101610b07565b60605f610b7283610af7565b90505f81845f0151610b84919061116f565b9050836020015151811115610b97575f5ffd5b8167ffffffffffffffff811115610bb057610bb0611134565b6040519080825280601f01601f191660200182016040528015610bda576020820181803683370190505b5060208086015186519295509181860191908301015f5b85811015610b52578181015183820152602001610bf1565b5f816005811115610c1c57610c1c61108d565b03610c2f57610c2a82610af7565b505050565b6002816005811115610c4357610c4361108d565b03610c7a575f610c5283610af7565b905080835f01818151610c65919061116f565b90525060208301515183511115610c2a575f5ffd5b6001816005811115610c8e57610c8e61108d565b03610cbe576008825f01818151610ca5919061116f565b90525060208201515182511115610cba575f5ffd5b5050565b6005816005811115610cd257610cd261108d565b0361003f576004825f01818151610ca5919061116f565b5f5f610cf483610af7565b905080602014610d02575f5ffd5b82516020808501515190610d1790839061116f565b1115610d21575f5ffd5b602080850151828101820151945090610d3b90839061116f565b909452509092915050565b5f5f610d5183610af7565b905080601414610d5f575f5ffd5b8251602084015151610d7282601461116f565b1115610d7c575f5ffd5b6020808501518281019091015160601c9350610d3b82601461116f565b5f5f5f5f610da78686610dc3565b925092509250610db78282610e0c565b50909150505b92915050565b5f5f5f8351604103610dfa576020840151604085015160608601515f1a610dec88828585610ec9565b955095509550505050610e05565b505081515f91506002905b9250925092565b5f826003811115610e1f57610e1f61108d565b03610e28575050565b6001826003811115610e3c57610e3c61108d565b03610e5a5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610e6e57610e6e61108d565b03610e945760405163fce698f760e01b8152600481018290526024015b60405180910390fd5b6003826003811115610ea857610ea861108d565b03610cba576040516335e2f38360e21b815260048101829052602401610e8b565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610f0257505f91506003905082610f87565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610f53573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b038116610f7e57505f925060019150829050610f87565b92505f91508190505b9450945094915050565b5f5f83601f840112610fa1575f5ffd5b50813567ffffffffffffffff811115610fb8575f5ffd5b602083019150836020828501011115610fcf575f5ffd5b9250929050565b5f5f5f60408486031215610fe8575f5ffd5b83359250602084013567ffffffffffffffff811115611005575f5ffd5b61101186828701610f91565b9497909650939450505050565b6001600160a01b0381168114611032575f5ffd5b50565b5f5f5f5f60608587031215611048575f5ffd5b84359350602085013561105a8161101e565b9250604085013567ffffffffffffffff811115611075575f5ffd5b61108187828801610f91565b95989497509550505050565b634e487b7160e01b5f52602160045260245ffd5b60208152816020820152818360408301375f818301604090810191909152601f909201601f19160101919050565b5f602082840312156110df575f5ffd5b5051919050565b5f602082840312156110f6575f5ffd5b81516102d98161101e565b634e487b7160e01b5f52601160045260245ffd5b5f8261112f57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b81810381811115610dbd57610dbd611101565b80820180821115610dbd57610dbd611101565b5f5f5f5f60808587031215611195575f5ffd5b84516020860151604087015191955093506111af8161101e565b6060959095015193969295505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156111f457634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261120b575f5ffd5b61121560406111bf565b806040840185811115611226575f5ffd5b845b81811015611240578051845260209384019301611228565b509095945050505050565b5f5f5f5f5f5f6101808789031215611261575f5ffd5b87601f88011261126f575f5ffd5b61127960406111bf565b80604089018a81111561128a575f5ffd5b895b818110156112ad57805161129f8161101e565b84526020938401930161128c565b508198506112bb8b826111fc565b97505050506112cd88608089016111fc565b93506112dc8860c089016111fc565b92506112ec8861010089016111fc565b91506112fc8861014089016111fc565b9050929550929550929556fea26469706673582212208d0ddabee6b965d186d9c075cff0b9aada9a433035366e29327e63a71096fc7964736f6c634300081e0033", + Bin: "0x61133e610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061003f575f3560e01c80633c50ec721461004357806382b4338a14610074575b5f5ffd5b81801561004e575f5ffd5b5061006261005d366004610fd6565b610095565b60405190815260200160405180910390f35b81801561007f575f5ffd5b5061009361008e366004611035565b6102e0565b005b5f5f6100d584848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061048f92505050565b90505f6100e4825f01516105a4565b80515f818152600689016020526040908190209083015192935090916001600383015460ff16600481111561011b5761011b61108d565b148061013f57506002600383015460ff16600481111561013d5761013d61108d565b145b61015c576040516334b8cc2360e11b815260040160405180910390fd5b8451805160209182012090860151610177908490839061069a565b6101945760405163b089d34760e01b815260040160405180910390fd5b60208501516001600160a01b031630146101c15760405163712974f160e11b815260040160405180910390fd5b6001600160a01b03821633146101ea57604051632a78050b60e11b815260040160405180910390fd5b846060015142111561020f5760405163387b2e5560e11b815260040160405180910390fd5b61021b8a84600461075f565b600383018054610100600160a81b0319166101006001600160a01b0385169081029190911790915560405185907fdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f905f90a360038a015460405163283226a360e21b8152600481018690526001600160a01b0384811660248301529091169063a0c89a8c906044015f604051808303815f87803b1580156102ba575f5ffd5b505af11580156102cc573d5f5f3e3d5ffd5b5095985050505050505050505b9392505050565b60405163e0a515b760e01b815283905f906001600160a01b0383169063e0a515b79061031290879087906004016110a1565b6020604051808303815f875af115801561032e573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035291906110cf565b5f8181526006880160205260408120919250600382015460ff16600481111561037d5761037d61108d565b1461039b5760405163099a70bf60e21b815260040160405180910390fd5b600387015460405163aee2e98960e01b81526004810184905230916001600160a01b03169063aee2e98990602401602060405180830381865afa1580156103e4573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061040891906110e6565b6001600160a01b03161461042f5760405163ec86390b60e01b815260040160405180910390fd5b61043b8782600161075f565b610446818484610896565b610451818484610978565b6040516001600160a01b0387169083907f141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb905f90a350505050505050565b60408051808201909152606080825260208201525f6104c083604080518082019091525f8152602081019190915290565b90505f600284516104d19190611115565b67ffffffffffffffff8111156104e9576104e9611134565b604051908082528060200260200182016040528015610512578160200160208202803683370190505b5090505f805b602084015151845110156105965761052f84610af7565b905080600a036105495761054284610b66565b8552610518565b80601203610572575f61055b85610b66565b600584901b85016020015250600190910190610518565b61059181600716600581111561058a5761058a61108d565b8590610c09565b610518565b508152602083015250919050565b604080516080810182525f808252602080830182905282840182905260608301829052835180850190945281845283018490529091905b60208201515182511015610693576105f282610af7565b905080600a0361060c5761060582610ce9565b83526105db565b806012036106305761061d82610d46565b6001600160a01b031660208401526105db565b80601a036106545761064182610d46565b6001600160a01b031660408401526105db565b8060200361066f5761066582610af7565b60608401526105db565b61068e8160071660058111156106875761068761108d565b8390610c09565b6105db565b5050919050565b5f81516002146106ab57505f6102d9565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c849052603c812090805b6002811015610752576107118582815181106106fa576106fa611148565b602002602001015184610d9990919063ffffffff16565b915086600401816002811061072857610728611148565b60080201546001600160a01b0383811691161461074a575f93505050506102d9565b6001016106dc565b5060019695505050505050565b8060048111156107715761077161108d565b600383015460ff16600481111561078a5761078a61108d565b0361079457505050565b5f600383015460ff1660048111156107ae576107ae61108d565b1461081957600382015460019084905f9060ff1660048111156107d3576107d361108d565b81526020019081526020015f20546107eb919061115c565b600383015484905f9060ff1660048111156108085761080861108d565b815260208101919091526040015f20555b825f82600481111561082d5761082d61108d565b81526020019081526020015f20546001610847919061116f565b835f83600481111561085b5761085b61108d565b815260208101919091526040015f205560038201805482919060ff1916600183600481111561088c5761088c61108d565b0217905550505050565b604051630bc2b0c160e21b8152600481018290525f906001600160a01b03841690632f0ac30490602401608060405180830381865afa1580156108db573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108ff9190611182565b6014880155600280880180546001600160a01b0390931661010002610100600160a81b0319909316929092179091556001870192909255915081908111156109495761094961108d565b60028086018054909160ff1990911690600190849081111561096d5761096d61108d565b021790555050505050565b5f5f5f5f5f5f876001600160a01b03166388f41465886040518263ffffffff1660e01b81526004016109ac91815260200190565b61018060405180830381865afa1580156109c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109ec919061124b565b9550955095509550955095505f5f90505b6002811015610aeb575f8a6004018260028110610a1c57610a1c611148565b600802019050878260028110610a3457610a34611148565b602002015181546001600160a01b0319166001600160a01b03909116178155868260028110610a6557610a65611148565b60200201516001820155858260028110610a8157610a81611148565b60200201518160020181905550848260028110610aa057610aa0611148565b60200201516003820155838260028110610abc57610abc611148565b60200201516004820155828260028110610ad857610ad8611148565b60200201516007909101556001016109fd565b50505050505050505050565b602080820151825181515f938301845b600a81101561003f57828410610b1b575f5ffd5b838201515f1a607f8116600783021b96909617956001909401936080811015610b5d5781600903610b525760028110610b52575f5ffd5b505050935250919050565b50600101610b07565b60605f610b7283610af7565b90505f81845f0151610b84919061116f565b9050836020015151811115610b97575f5ffd5b8167ffffffffffffffff811115610bb057610bb0611134565b6040519080825280601f01601f191660200182016040528015610bda576020820181803683370190505b5060208086015186519295509181860191908301015f5b85811015610b52578181015183820152602001610bf1565b5f816005811115610c1c57610c1c61108d565b03610c2f57610c2a82610af7565b505050565b6002816005811115610c4357610c4361108d565b03610c7a575f610c5283610af7565b905080835f01818151610c65919061116f565b90525060208301515183511115610c2a575f5ffd5b6001816005811115610c8e57610c8e61108d565b03610cbe576008825f01818151610ca5919061116f565b90525060208201515182511115610cba575f5ffd5b5050565b6005816005811115610cd257610cd261108d565b0361003f576004825f01818151610ca5919061116f565b5f5f610cf483610af7565b905080602014610d02575f5ffd5b82516020808501515190610d1790839061116f565b1115610d21575f5ffd5b602080850151828101820151945090610d3b90839061116f565b909452509092915050565b5f5f610d5183610af7565b905080601414610d5f575f5ffd5b8251602084015151610d7282601461116f565b1115610d7c575f5ffd5b6020808501518281019091015160601c9350610d3b82601461116f565b5f5f5f5f610da78686610dc3565b925092509250610db78282610e0c565b50909150505b92915050565b5f5f5f8351604103610dfa576020840151604085015160608601515f1a610dec88828585610ec9565b955095509550505050610e05565b505081515f91506002905b9250925092565b5f826003811115610e1f57610e1f61108d565b03610e28575050565b6001826003811115610e3c57610e3c61108d565b03610e5a5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610e6e57610e6e61108d565b03610e945760405163fce698f760e01b8152600481018290526024015b60405180910390fd5b6003826003811115610ea857610ea861108d565b03610cba576040516335e2f38360e21b815260048101829052602401610e8b565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610f0257505f91506003905082610f87565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610f53573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b038116610f7e57505f925060019150829050610f87565b92505f91508190505b9450945094915050565b5f5f83601f840112610fa1575f5ffd5b50813567ffffffffffffffff811115610fb8575f5ffd5b602083019150836020828501011115610fcf575f5ffd5b9250929050565b5f5f5f60408486031215610fe8575f5ffd5b83359250602084013567ffffffffffffffff811115611005575f5ffd5b61101186828701610f91565b9497909650939450505050565b6001600160a01b0381168114611032575f5ffd5b50565b5f5f5f5f60608587031215611048575f5ffd5b84359350602085013561105a8161101e565b9250604085013567ffffffffffffffff811115611075575f5ffd5b61108187828801610f91565b95989497509550505050565b634e487b7160e01b5f52602160045260245ffd5b60208152816020820152818360408301375f818301604090810191909152601f909201601f19160101919050565b5f602082840312156110df575f5ffd5b5051919050565b5f602082840312156110f6575f5ffd5b81516102d98161101e565b634e487b7160e01b5f52601160045260245ffd5b5f8261112f57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b81810381811115610dbd57610dbd611101565b80820180821115610dbd57610dbd611101565b5f5f5f5f60808587031215611195575f5ffd5b84516020860151604087015191955093506111af8161101e565b6060959095015193969295505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156111f457634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261120b575f5ffd5b61121560406111bf565b806040840185811115611226575f5ffd5b845b81811015611240578051845260209384019301611228565b509095945050505050565b5f5f5f5f5f5f6101808789031215611261575f5ffd5b87601f88011261126f575f5ffd5b61127960406111bf565b80604089018a81111561128a575f5ffd5b895b818110156112ad57805161129f8161101e565b84526020938401930161128c565b508198506112bb8b826111fc565b97505050506112cd88608089016111fc565b93506112dc8860c089016111fc565b92506112ec8861010089016111fc565b91506112fc8861014089016111fc565b9050929550929550929556fea264697066735822122019054e19dbe3be254db22969e8d1d7ac7e8749e9e1d2357afea6bec2954f84ac64736f6c634300081e0033", } // LedgerMigrateABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/nativewrap/nativewrap.go b/chain/channel-eth-go/nativewrap/nativewrap.go index a9eef28..6903c6e 100644 --- a/chain/channel-eth-go/nativewrap/nativewrap.go +++ b/chain/channel-eth-go/nativewrap/nativewrap.go @@ -33,7 +33,7 @@ var ( // NativeWrapMetaData contains all meta data concerning the NativeWrap contract. var NativeWrapMetaData = &bind.MetaData{ ABI: "[{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"_to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdraw\",\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]", - Bin: "0x6080604052348015600e575f5ffd5b5061077e8061001c5f395ff3fe60806040526004361061009d575f3560e01c8063313ce56711610062578063313ce567146101d857806370a08231146101fe57806395d89b4114610232578063a9059cbb14610262578063d0e30db014610281578063dd62ed3e14610289575f5ffd5b806306fdde03146100ef578063095ea7b31461014d57806318160ddd1461017c57806323b872dd146101985780632e1a7d4d146101b7575f5ffd5b366100eb57335f90815260208190526040812080543492906100c09084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3005b5f5ffd5b3480156100fa575f5ffd5b506101376040518060400160405280601a81526020017f57726170706564204e6174697665202874657374206d6f636b2900000000000081525081565b60405161014491906105fb565b60405180910390f35b348015610158575f5ffd5b5061016c61016736600461064b565b6102cd565b6040519015158152602001610144565b348015610187575f5ffd5b50475b604051908152602001610144565b3480156101a3575f5ffd5b5061016c6101b2366004610673565b610339565b3480156101c2575f5ffd5b506101d66101d13660046106ad565b610420565b005b3480156101e3575f5ffd5b506101ec601281565b60405160ff9091168152602001610144565b348015610209575f5ffd5b5061018a6102183660046106c4565b6001600160a01b03165f9081526020819052604090205490565b34801561023d575f5ffd5b5061013760405180604001604052806005815260200164574d4f434b60d81b81525081565b34801561026d575f5ffd5b5061016c61027c36600461064b565b610510565b6101d661058b565b348015610294575f5ffd5b5061018a6102a33660046106e4565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b335f8181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103279086815260200190565b60405180910390a35060015b92915050565b5f336001600160a01b03851614610382576001600160a01b0384165f9081526001602090815260408083203384529091528120805484929061037c908490610715565b90915550505b6001600160a01b0384165f90815260208190526040812080548492906103a9908490610715565b90915550506001600160a01b0383165f90815260208190526040812080548492906103d59084906105e8565b92505081905550826001600160a01b0316846001600160a01b03165f5160206107295f395f51905f528460405161040e91815260200190565b60405180910390a35060019392505050565b335f908152602081905260408120805483929061043e908490610715565b90915550506040518181525f9033905f5160206107295f395f51905f529060200160405180910390a36040515f90339083908381818185875af1925050503d805f81146104a6576040519150601f19603f3d011682016040523d82523d5f602084013e6104ab565b606091505b505090508061050c5760405162461bcd60e51b8152602060048201526024808201527f4e6174697665577261704d6f636b3a2077697468647261772073656e642066616044820152631a5b195960e21b606482015260840160405180910390fd5b5050565b335f90815260208190526040812080548391908390610530908490610715565b90915550506001600160a01b0383165f908152602081905260408120805484929061055c9084906105e8565b90915550506040518281526001600160a01b0384169033905f5160206107295f395f51905f5290602001610327565b335f90815260208190526040812080543492906105a99084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610333576103336105d4565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610646575f5ffd5b919050565b5f5f6040838503121561065c575f5ffd5b61066583610630565b946020939093013593505050565b5f5f5f60608486031215610685575f5ffd5b61068e84610630565b925061069c60208501610630565b929592945050506040919091013590565b5f602082840312156106bd575f5ffd5b5035919050565b5f602082840312156106d4575f5ffd5b6106dd82610630565b9392505050565b5f5f604083850312156106f5575f5ffd5b6106fe83610630565b915061070c60208401610630565b90509250929050565b81810381811115610333576103336105d456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122040a27026703ffec277312dc7e6203627a3306b9cf085370f7d11f4e0a5be402364736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b5061077e8061001c5f395ff3fe60806040526004361061009d575f3560e01c8063313ce56711610062578063313ce567146101d857806370a08231146101fe57806395d89b4114610232578063a9059cbb14610262578063d0e30db014610281578063dd62ed3e14610289575f5ffd5b806306fdde03146100ef578063095ea7b31461014d57806318160ddd1461017c57806323b872dd146101985780632e1a7d4d146101b7575f5ffd5b366100eb57335f90815260208190526040812080543492906100c09084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3005b5f5ffd5b3480156100fa575f5ffd5b506101376040518060400160405280601a81526020017f57726170706564204e6174697665202874657374206d6f636b2900000000000081525081565b60405161014491906105fb565b60405180910390f35b348015610158575f5ffd5b5061016c61016736600461064b565b6102cd565b6040519015158152602001610144565b348015610187575f5ffd5b50475b604051908152602001610144565b3480156101a3575f5ffd5b5061016c6101b2366004610673565b610339565b3480156101c2575f5ffd5b506101d66101d13660046106ad565b610420565b005b3480156101e3575f5ffd5b506101ec601281565b60405160ff9091168152602001610144565b348015610209575f5ffd5b5061018a6102183660046106c4565b6001600160a01b03165f9081526020819052604090205490565b34801561023d575f5ffd5b5061013760405180604001604052806005815260200164574d4f434b60d81b81525081565b34801561026d575f5ffd5b5061016c61027c36600461064b565b610510565b6101d661058b565b348015610294575f5ffd5b5061018a6102a33660046106e4565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b335f8181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103279086815260200190565b60405180910390a35060015b92915050565b5f336001600160a01b03851614610382576001600160a01b0384165f9081526001602090815260408083203384529091528120805484929061037c908490610715565b90915550505b6001600160a01b0384165f90815260208190526040812080548492906103a9908490610715565b90915550506001600160a01b0383165f90815260208190526040812080548492906103d59084906105e8565b92505081905550826001600160a01b0316846001600160a01b03165f5160206107295f395f51905f528460405161040e91815260200190565b60405180910390a35060019392505050565b335f908152602081905260408120805483929061043e908490610715565b90915550506040518181525f9033905f5160206107295f395f51905f529060200160405180910390a36040515f90339083908381818185875af1925050503d805f81146104a6576040519150601f19603f3d011682016040523d82523d5f602084013e6104ab565b606091505b505090508061050c5760405162461bcd60e51b8152602060048201526024808201527f4e6174697665577261704d6f636b3a2077697468647261772073656e642066616044820152631a5b195960e21b606482015260840160405180910390fd5b5050565b335f90815260208190526040812080548391908390610530908490610715565b90915550506001600160a01b0383165f908152602081905260408120805484929061055c9084906105e8565b90915550506040518281526001600160a01b0384169033905f5160206107295f395f51905f5290602001610327565b335f90815260208190526040812080543492906105a99084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610333576103336105d4565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610646575f5ffd5b919050565b5f5f6040838503121561065c575f5ffd5b61066583610630565b946020939093013593505050565b5f5f5f60608486031215610685575f5ffd5b61068e84610630565b925061069c60208501610630565b929592945050506040919091013590565b5f602082840312156106bd575f5ffd5b5035919050565b5f602082840312156106d4575f5ffd5b6106dd82610630565b9392505050565b5f5f604083850312156106f5575f5ffd5b6106fe83610630565b915061070c60208401610630565b90509250929050565b81810381811115610333576103336105d456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212203ac197899a3284b0c8c0fc482001f3b1f0cfaada07a6dd2aaa2d11c63580793e64736f6c634300081e0033", } // NativeWrapABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/operation/operation.go b/chain/channel-eth-go/operation/operation.go index 3f3915d..05e6cb6 100644 --- a/chain/channel-eth-go/operation/operation.go +++ b/chain/channel-eth-go/operation/operation.go @@ -33,7 +33,7 @@ var ( // LedgerOperationMetaData contains all meta data concerning the LedgerOperation contract. var LedgerOperationMetaData = &bind.MetaData{ ABI: "[{\"type\":\"event\",\"name\":\"ClearOnePay\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"payId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerFrom\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmSettleFail\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ConfirmWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"settleBalance\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CooperativeWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"withdrawnAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"recipientChannelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"seqNum\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposit\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"deposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"},{\"name\":\"withdrawals\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendSettle\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IntendWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OpenChannel\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenType\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"peerAddrs\",\"type\":\"address[2]\",\"indexed\":false,\"internalType\":\"address[2]\"},{\"name\":\"initialDeposits\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SnapshotStates\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"seqNums\",\"type\":\"uint256[2]\",\"indexed\":false,\"internalType\":\"uint256[2]\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"VetoWithdraw\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"BalanceLimitExceeded\",\"inputs\":[{\"name\":\"attempted\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"limit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ChainIdMismatch\",\"inputs\":[{\"name\":\"expected\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ChannelIdOccupied\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChannelNotOperable\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChannelNotOperableOrSettling\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChannelNotSettling\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ConfirmSettleTooEarly\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DeadlinePassed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DisputeNotElapsed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureLength\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureS\",\"inputs\":[{\"name\":\"s\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"IntendSettleWindowClosed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidCoSignatures\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidTokenAddress\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"LedgerAddressMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MsgValueMismatch\",\"inputs\":[{\"name\":\"expected\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"MsgValueMustBeZero\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NoWithdrawIntent\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NonAscendingChannelIds\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotPeer\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"PayListHashMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"PaymentNotFinalized\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"PeersNotAscending\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"RecipientChannelTokenMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"SeqNumOutOfOrder\",\"inputs\":[{\"name\":\"onchain\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"proposed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"SettleBalanceSumMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SettlePeersMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SettlementAlreadyActive\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"TokenNotContract\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WithdrawIntentExists\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WithdrawLimitExceeded\",\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"limit\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"WrongPeerCount\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ZeroChannelId\",\"inputs\":[]}]", - Bin: "0x614c5c610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100bc575f3560e01c806383e0fef51161007957806383e0fef514610182578063bb3d0f2b146101a1578063bd9d3157146101c0578063e59f3686146101df578063eb4de337146101fe578063ff7fb4111461021d575f5ffd5b80630bdc5411146100c0578063594db6e3146100e157806360297df314610100578063742fb5071461012557806379e90087146101445780637a2654ed14610163575b5f5ffd5b8180156100cb575f5ffd5b506100df6100da3660046146be565b61023c565b005b8180156100ec575f5ffd5b506100df6100fb3660046146be565b6106ab565b61011361010e366004614705565b610b07565b60405190815260200160405180910390f35b818015610130575f5ffd5b506100df61013f3660046146be565b610b1c565b81801561014f575f5ffd5b506100df61015e3660046146be565b610d6b565b81801561016e575f5ffd5b506100df61017d366004614725565b61112d565b81801561018d575f5ffd5b506100df61019c366004614705565b611237565b8180156101ac575f5ffd5b506100df6101bb366004614705565b6114f7565b8180156101cb575f5ffd5b506100df6101da36600461476b565b611689565b8180156101ea575f5ffd5b506100df6101f93660046146be565b6118ee565b818015610209575f5ffd5b506100df610218366004614705565b611ba1565b818015610228575f5ffd5b506100df6102373660046147a7565b611c90565b5f61027b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611d9a92505050565b805180519192505f906102a69082846102965761029661480b565b60200260200101515f0151611e8b565b90505f5b828110156106a25781515f81815260068901602052604090206102cd8133611fc0565b15610333576001600382015460ff1660048111156102ed576102ed61481f565b148061031157506002600382015460ff16600481111561030f5761030f61481f565b145b61032e576040516334b8cc2360e11b815260040160405180910390fd5b61036c565b6002600382015460ff16600481111561034e5761034e61481f565b1461036c5760405163326c5a6d60e01b815260040160405180910390fd5b8054158061037a5750805442105b610397576040516310344f3160e21b815260040160405180910390fd5b5f865f015184815181106103ad576103ad61480b565b60200260200101515f01518051906020012090505f875f015185815181106103d7576103d761480b565b60200260200101516020015190505f86604001511115610571576103fc838383611ff6565b6104195760405163b089d34760e01b815260040160405180910390fd5b5f6104318760200151856120bb90919063ffffffff16565b90505f8460040182600281106104495761044961480b565b600802016003019050600160048111156104655761046561481f565b600386015460ff16600481111561047e5761047e61481f565b036104c05780546040890151818110156104b9576040516331c0b51760e11b8152600481019290925260248201526044015b60405180910390fd5b5050610518565b6002600386015460ff1660048111156104db576104db61481f565b0361051057805460408901518181116104b9576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b610518614833565b6040880151815560608801516020908101518101516001830155608089015101516002820181905560a089015160038301551561055a5760c088015160048201555b61056a8d87848b60800151612115565b5050610600565b85604001515f036105f85782541561059c576040516360620ccd60e11b815260040160405180910390fd5b805160011480156105d657506105d682825f815181106105be576105be61480b565b6020026020010151856123649092919063ffffffff16565b6105f357604051638baa579f60e01b815260040160405180910390fd5b610600565b610600614833565b61060b60018861485b565b85036106205761061b8b856123b3565b610692565b61062b60018861485b565b85101561068a5787516106539061064387600161486e565b815181106102965761029661480b565b805190965084111561067757604051626ffafb60e21b815260040160405180910390fd5b855184101561061b5761061b8b856123b3565b610692614833565b5050600190920191506102aa9050565b50505050505050565b5f6106ea83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061242492505050565b90505f6106f9825f0151612531565b80516020015151909150600214610723576040516301e57b6b60e71b815260040160405180910390fd5b80602001514211156107485760405163387b2e5560e11b815260040160405180910390fd5b6080810151469080821461077857604051630432cec160e31b8152600481019290925260248201526044016104b0565b505060a08101516001600160a01b031630146107a75760405163668dbc2f60e11b815260040160405180910390fd5b8051516040805180820190915282516020015180515f9291829184906107cf576107cf61480b565b6020026020010151602001518152602001845f0151602001516001815181106107fa576107fa61480b565b60200260200101516020015181525090505f6040518060400160405280855f0151602001515f815181106108305761083061480b565b60200260200101515f01516001600160a01b03166001600160a01b03168152602001855f01516020015160018151811061086c5761086c61480b565b602090810291909101810151516001600160a01b03908116909252820151825192935081169116106108b157604051632ba0bb9d60e01b815260040160405180910390fd5b8451805160209091012060038901545f9081906108da908c906001600160a01b0316868661268b565b91509150866040015181600101819055506108f78b8260016127eb565b61090086612922565b805160028084018054909291839160ff19169060019084908111156109275761092761481f565b02179055506020918201518154610100600160a81b0319166101006001600160a01b03928316021790915585516004840180549183166001600160a01b03199283161790558751600585015586830151600c85018054909216921691909117905585810151600d8301558801516109a19082908590611ff6565b6109be5760405163b089d34760e01b815260040160405180910390fd5b85602001516001600160a01b0316827f9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d885f01516002811115610a0357610a0361481f565b8789604051610a14939291906148ce565b60405180910390a3602085015185515f91610a2e9161486e565b9050805f03610a64573415610a565760405163429465b160e01b815260040160405180910390fd5b505050505050505050505050565b60058c015460ff1615610af4578b6004015f88602001516001600160a01b03166001600160a01b031681526020019081526020015f2054811115818d6004015f8a602001516001600160a01b03166001600160a01b031681526020019081526020015f20549091610af157604051631c71225560e31b8152600481019290925260248201526044016104b0565b50505b610a568c848789858c8e606001516129fa565b5f818152602083905260409020545b92915050565b5f610b5b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250612d0492505050565b90505f610b6a825f0151612e03565b805160808201515f828152600689016020526040902092935090916001600382015460ff166004811115610ba057610ba061481f565b14610bbe5760405163407a5cc360e11b815260040160405180910390fd5b8451805160209182012090860151610bd99083908390611ff6565b610bf65760405163b089d34760e01b815260040160405180910390fd5b81601401548560200151610c0a919061485b565b600114826014015486602001519091610c3f576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b50508460600151421115610c665760405163387b2e5560e11b815260040160405180910390fd5b60408501518051602080880151601486015590910151610c87848383612ee3565b6040516364768a4f60e11b8152600481018590525f90819073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af4158015610cd9573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cfd919061498a565b925092505086846001600160a01b0316897f1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f8686868f60200151604051610d479493929190614a11565b60405180910390a4610d5c8d8986868b612f3e565b50505050505050505050505050565b5f610daa83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506130f992505050565b90505f610db9825f01516131f8565b80515f8181526006880160205260409020919250906001600382015460ff166004811115610de957610de961481f565b1480610e0d57506002600382015460ff166004811115610e0b57610e0b61481f565b145b610e2a576040516334b8cc2360e11b815260040160405180910390fd5b8351805160209182012090850151610e459083908390611ff6565b610e625760405163b089d34760e01b815260040160405180910390fd5b5f6040518060400160405280846004015f60028110610e8357610e8361480b565b60080201546001600160a01b039081168252600c86015416602090910152600f84015460078501549192505f9111610ebf57600f840154610ec5565b60078401545b60208701519091508190818111610ef8576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b5050504285606001511015610f205760405163387b2e5560e11b815260040160405180910390fd5b805f60200201516001600160a01b031685604001515f81518110610f4657610f4661480b565b60200260200101515f01516001600160a01b0316148015610fa0575080600160200201516001600160a01b03168560400151600181518110610f8a57610f8a61480b565b60200260200101515f01516001600160a01b0316145b610fbd57604051630ef95a6960e11b815260040160405180910390fd5b5f604051806040016040528087604001515f81518110610fdf57610fdf61480b565b602002602001015160200151815260200187604001516001815181106110075761100761480b565b60209081029190910181015101519052604051636b5c4f1d60e11b81526004810186905290915073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015611068573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061108c9190614a41565b6020820151825161109d919061486e565b146110bb576040516373bdb53b60e11b815260040160405180910390fd5b6110c78a8560036127eb565b847f6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd826040516110f79190614a58565b60405180910390a26002840154611121908b90879061010090046001600160a01b03168585613347565b50505050505050505050565b5f838152600685016020526040902060158101336001600384015460ff16600481111561115c5761115c61481f565b1461117a5760405163407a5cc360e11b815260040160405180910390fd5b81546001600160a01b0316156111a3576040516381cef9d560e01b815260040160405180910390fd5b6111ad8382611fc0565b6111ca5760405163082290dd60e31b815260040160405180910390fd5b81546001600160a01b0319166001600160a01b0382169081178355600183018690554260028401556003830185905560405186815287907f97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe9060200160405180910390a350505050505050565b5f81815260068301602052604090206001600382015460ff1660048111156112615761126161481f565b1461127f5760405163407a5cc360e11b815260040160405180910390fd5b60158101546001600160a01b03166112aa57604051631358276360e11b815260040160405180910390fd5b600181015460178201546112be919061486e565b4210156112de57604051636f5e8c5960e11b815260040160405180910390fd5b6015810180546016830180546018850180546001600160a01b031985169095555f92839055601786018390558290556001600160a01b03909216929061132485856120bb565b90505f61133282600161485b565b9050600486015f81846002811061134b5761134b61480b565b60080201600301600401548285600281106113685761136861480b565b60080201600301600101548386600281106113855761138561480b565b600802016002015484866002811061139f5761139f61480b565b60080201600301600101548588600281106113bc576113bc61480b565b60080201600101546113ce919061486e565b6113d8919061485b565b6113e2919061485b565b6113ec919061485b565b905085818082111561141a5760405163016d0ef160e01b8152600481019290925260248201526044016104b0565b506114289050888888612ee3565b6040516364768a4f60e11b8152600481018990525f90819073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af415801561147a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061149e919061498a565b925092505086896001600160a01b03168c7fe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e8b86866040516114e293929190614a66565b60405180910390a4610a568c8c8b8b8b612f3e565b5f818152600683016020526040902060048101426002600384015460ff1660048111156115265761152661481f565b146115445760405163326c5a6d60e01b815260040160405180910390fd5b82548110156115665760405163206f4f1160e11b815260040160405180910390fd5b6005820154158061157a5750600682015481115b80156115955750600d82015415806115955750600e82015481115b6115b257604051630d23801760e31b815260040160405180910390fd5b5f5f6115bd85613422565b9150915081611603576115d08786613630565b60405186907fa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36905f90a250505050505050565b61160f878660036127eb565b857f728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef32068260405161163f9190614a58565b60405180910390a260028501546040805180820190915285546001600160a01b0390811682526008870154811660208301526106a2928a928a926101009092049091169085613347565b3461169f85858561169a858761486e565b6136af565b5f8481526006860160205260409020600160028083015460ff16908111156116c9576116c961481f565b036118125781156117335760038601546040516342ef5fbb60e01b8152600481018790526001600160a01b03909116906342ef5fbb9084906024015f604051808303818588803b15801561171b575f5ffd5b505af115801561172d573d5f5f3e3d5ffd5b50505050505b821561180d576001860154611753906001600160a01b0316333086613992565b6001860154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d906024015f604051808303815f87803b158015611798575f5ffd5b505af11580156117aa573d5f5f3e3d5ffd5b5050505060038601546040516342ef5fbb60e01b8152600481018790526001600160a01b03909116906342ef5fbb9085906024015f604051808303818588803b1580156117f5575f5ffd5b505af1158015611807573d5f5f3e3d5ffd5b50505050505b6118e6565b60028181015460ff168181111561182b5761182b61481f565b036118de57811561184f5760405163429465b160e01b815260040160405180910390fd5b600281015461010090046001600160a01b031661186e81333087613992565b600387015461188a906001600160a01b038381169116866139ff565b600387015460405163030422ed60e61b8152600481018890526001600160a01b038381166024830152604482018790529091169063c108bb40906064015f604051808303815f87803b1580156117f5575f5ffd5b6118e6614833565b505050505050565b5f61192d83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611d9a92505050565b805180519192505f906119489082846102965761029661480b565b90505f5b828110156106a25781515f81815260068901602052604090206001600382015460ff1660048111156119805761198061481f565b1461199e5760405163407a5cc360e11b815260040160405180910390fd5b5f865f015184815181106119b4576119b461480b565b60200260200101515f01518051906020012090505f875f015185815181106119de576119de61480b565b6020026020010151602001519050611a01828285611ff69092919063ffffffff16565b611a1e5760405163b089d34760e01b815260040160405180910390fd5b5f611a368760200151856120bb90919063ffffffff16565b90505f846004018260028110611a4e57611a4e61480b565b60080201600301805460408a015191925090818111611a89576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b5050604088015181556060880151602090810151015160018083019190915560c08901516004830155611abc908a61485b565b8703611b0757857fd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271611aed87613a8e565b604051611afa9190614a58565b60405180910390a2611b8f565b611b1260018a61485b565b871015611b87578951611b2a9061064389600161486e565b8051909850861115611b4e57604051626ffafb60e21b815260040160405180910390fd5b8751861015611b8257857fd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271611aed87613a8e565b611b8f565b611b8f614833565b50506001909401935061194c92505050565b5f81815260068301602052604090206001600382015460ff166004811115611bcb57611bcb61481f565b14611be95760405163407a5cc360e11b815260040160405180910390fd5b60158101546001600160a01b0316611c1457604051631358276360e11b815260040160405180910390fd5b611c1e8133611fc0565b611c3b5760405163082290dd60e31b815260040160405180910390fd5b6015810180546001600160a01b03191690555f60168201819055601782018190556018820181905560405183917f9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c91a2505050565b5f84815260068601602052604090206002600382015460ff166004811115611cba57611cba61481f565b14611cd85760405163326c5a6d60e01b815260040160405180910390fd5b5f611ce382866120bb565b90505f8484604051611cf6929190614a7a565b604051809103902090505f836004018360028110611d1657611d1661480b565b60080201600301905081816002015414611d43576040516327ff237960e21b815260040160405180910390fd5b5f611d8287878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613ab692505050565b6020810151600284015590506111218a8a8684612115565b60408051602080820183526060825282518084019093525f8084529083018490528351919291611dcc90600290614a89565b6001600160401b03811115611de357611de36148f7565b604051908082528060200260200182016040528015611e0c578160200160208202803683370190505b5090505f805b60208401515184511015611e8057611e2984613bbd565b905080600a03611e5c575f611e45611e4086613c2c565b613cce565b600584901b85016020015250600190910190611e12565b611e7b816007166005811115611e7457611e7461481f565b8590613dcd565b611e12565b508152825250919050565b611e9361458e565b604080518082019091525f808252602082018490525b60208201515182511015611fb957611ec082613bbd565b905080600a03611eda57611ed382613ead565b8352611ea9565b80601203611efe57611eeb82613f0a565b6001600160a01b03166020840152611ea9565b80601803611f1957611f0f82613bbd565b6040840152611ea9565b80602203611f3c57611f32611f2d83613c2c565b613f5d565b6060840152611ea9565b80602a03611f5f57611f55611f5083613c2c565b613ab6565b6080840152611ea9565b80603003611f7a57611f7082613bbd565b60a0840152611ea9565b80603a03611f9557611f8b82614018565b60c0840152611ea9565b611fb4816007166005811115611fad57611fad61481f565b8390613dcd565b611ea9565b5050919050565b60048201545f906001600160a01b0383811691161480611fef5750600c8301546001600160a01b038381169116145b9392505050565b5f815160021461200757505f611fef565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c849052603c812090805b60028110156120ae5761206d8582815181106120565761205661480b565b60200260200101518461406e90919063ffffffff16565b91508660040181600281106120845761208461480b565b60080201546001600160a01b038381169116146120a6575f9350505050611fef565b600101612038565b5060019695505050505050565b60048201545f906001600160a01b03908116908316036120dc57505f610b16565b600c8301546001600160a01b03908116908316036120fc57506001610b16565b60405163082290dd60e31b815260040160405180910390fd5b5f838152600685016020526040812060028087015484519293926001600160a01b0390911691637cac39cf91906004860190889081106121575761215761480b565b60080201600301600301546040518363ffffffff1660e01b815260040161217f929190614aa8565b5f60405180830381865afa158015612199573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526121c09190810190614af4565b90505f805b8251811015612292578281815181106121e0576121e061480b565b6020026020010151826121f3919061486e565b915083600401866002811061220a5761220a61480b565b6008020154855180516001600160a01b03909216918390811061222f5761222f61480b565b6020026020010151887f33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b877686858151811061226b5761226b61480b565b602002602001015160405161228291815260200190565b60405180910390a46001016121c5565b50808360040186600281106122a9576122a961480b565b60080201600301600101546122be919061486e565b8360040186600281106122d3576122d361480b565b6008020160040155602084015161230d575f8360040186600281106122fa576122fa61480b565b60080201600301600401819055506106a2565b808360040186600281106123235761232361480b565b6008020160030160040154612338919061485b565b83600401866002811061234d5761234d61480b565b600802016003016004018190555050505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c839052603c8120819061239e908461406e565b90506123aa8582611fc0565b95945050505050565b5f818152600683016020526040902060018101546123d1904261486e565b81556123df838260026127eb565b817f296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d6461240a83613a8e565b6040516124179190614a58565b60405180910390a2505050565b60408051808201909152606080825260208201525f61245583604080518082019091525f8152602081019190915290565b90505f600284516124669190614a89565b6001600160401b0381111561247d5761247d6148f7565b6040519080825280602002602001820160405280156124a6578160200160208202803683370190505b5090505f805b60208401515184511015612523576124c384613bbd565b905080600a036124dd576124d684613c2c565b85526124ac565b80601203612506575f6124ef85613c2c565b600584901b850160200152506001909101906124ac565b61251e816007166005811115611e7457611e7461481f565b6124ac565b508152602083015250919050565b61258f6040805161014081019091525f610100820181815261012083019190915260c08201908152606060e0830152819081526020015f81526020015f81526020015f81526020015f81526020015f6001600160a01b031681525090565b604080518082019091525f808252602082018490525b60208201515182511015611fb9576125bc82613bbd565b905080600a036125de576125d76125d283613c2c565b614096565b83526125a5565b806010036125f9576125ef82613bbd565b60208401526125a5565b806018036126145761260a82613bbd565b60408401526125a5565b8060200361262f5761262582613bbd565b60608401526125a5565b8060280361264a5761264082613bbd565b60808401526125a5565b8060320361266e5761265b82613f0a565b6001600160a01b031660a08401526125a5565b612686816007166005811115611fad57611fad61481f565b6125a5565b6040805160028082526060820183525f92839283929091602083019080368337505086518251929350918391505f906126c6576126c661480b565b6001600160a01b03929092166020928302919091018201528501518151829060019081106126f6576126f661480b565b6001600160a01b039283166020918202929092010152604051630d63a1fd60e01b81525f91881690630d63a1fd9061273690859030908a90600401614b9e565b6020604051808303815f875af1158015612752573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127769190614a41565b90508061279657604051637a48b66360e11b815260040160405180910390fd5b5f818152600689016020526040812090600382015460ff1660048111156127bf576127bf61481f565b146127dd576040516306fb701f60e21b815260040160405180910390fd5b909890975095505050505050565b8060048111156127fd576127fd61481f565b600383015460ff1660048111156128165761281661481f565b0361282057505050565b5f600383015460ff16600481111561283a5761283a61481f565b146128a557600382015460019084905f9060ff16600481111561285f5761285f61481f565b81526020019081526020015f2054612877919061485b565b600383015484905f9060ff1660048111156128945761289461481f565b815260208101919091526040015f20555b825f8260048111156128b9576128b961481f565b81526020019081526020015f205460016128d3919061486e565b835f8360048111156128e7576128e761481f565b815260208101919091526040015f205560038201805482919060ff191660018360048111156129185761291861481f565b0217905550505050565b604080518082019091525f808252602082015260018251600281111561294a5761294a61481f565b0361297f5760208201516001600160a01b03161561297b57604051630f58058360e11b815260040160405180910390fd5b5090565b6002825160028111156129945761299461481f565b036129f25760208201516001600160a01b03166129c457604051630f58058360e11b815260040160405180910390fd5b5f82602001516001600160a01b03163b1161297b57604051630fea47fd60e31b815260040160405180910390fd5b61297b614833565b600182516002811115612a0f57612a0f61481f565b03612bbe57838160028110612a2657612a2661480b565b60200201513414848260028110612a3f57612a3f61480b565b6020020151349091612a6d57604051634a09443160e01b8152600481019290925260248201526044016104b0565b505f9050612a7c82600161485b565b90505f858260028110612a9157612a9161480b565b60200201511115612b5a57612ae4868260028110612ab157612ab161480b565b602002015130878460028110612ac957612ac961480b565b602002015160018c01546001600160a01b0316929190613992565b60018801546001600160a01b0316632e1a7d4d868360028110612b0957612b0961480b565b60200201516040518263ffffffff1660e01b8152600401612b2c91815260200190565b5f604051808303815f87803b158015612b43575f5ffd5b505af1158015612b55573d5f5f3e3d5ffd5b505050505b60038801546040516342ef5fbb60e01b8152600481018990526001600160a01b03909116906342ef5fbb9086906024015f604051808303818588803b158015612ba1575f5ffd5b505af1158015612bb3573d5f5f3e3d5ffd5b5050505050506106a2565b600282516002811115612bd357612bd361481f565b03612cfc573415612bf75760405163429465b160e01b815260040160405180910390fd5b60208201515f5b6002811015612c6f57858160028110612c1957612c1961480b565b602002015115612c6757612c67878260028110612c3857612c3861480b565b602002015130888460028110612c5057612c5061480b565b60200201516001600160a01b038616929190613992565b600101612bfe565b506003880154612c8c906001600160a01b038381169116866139ff565b600388015460405163030422ed60e61b8152600481018990526001600160a01b038381166024830152604482018790529091169063c108bb40906064015f604051808303815f87803b158015612ce0575f5ffd5b505af1158015612cf2573d5f5f3e3d5ffd5b50505050506106a2565b6106a2614833565b60408051808201909152606080825260208201525f612d3583604080518082019091525f8152602081019190915290565b90505f60028451612d469190614a89565b6001600160401b03811115612d5d57612d5d6148f7565b604051908082528060200260200182016040528015612d86578160200160208202803683370190505b5090505f805b6020840151518451101561252357612da384613bbd565b905080600a03612dbd57612db684613c2c565b8552612d8c565b80601203612de6575f612dcf85613c2c565b600584901b85016020015250600190910190612d8c565b612dfe816007166005811115611e7457611e7461481f565b612d8c565b612e0b614621565b604080518082019091525f808252602082018490525b60208201515182511015611fb957612e3882613bbd565b905080600a03612e5257612e4b82613ead565b8352612e21565b80601003612e6d57612e6382613bbd565b6020840152612e21565b80601a03612e9057612e86612e8183613c2c565b6141a0565b6040840152612e21565b80602003612eab57612ea182613bbd565b6060840152612e21565b80602a03612ec657612ebc82613ead565b6080840152612e21565b612ede816007166005811115611fad57611fad61481f565b612e21565b5f612eee84846120bb565b905081846004018260028110612f0657612f0661480b565b6008020160020154612f18919061486e565b846004018260028110612f2d57612f2d61480b565b600802016002018190555050505050565b81156130f2575f848152600686016020526040902081612fd8576003860154600282015460405163470660bb60e11b8152600481018890526001600160a01b0361010090920482166024820152868216604482015260648101869052911690638e0cc176906084015f604051808303815f87803b158015612fbd575f5ffd5b505af1158015612fcf573d5f5f3e3d5ffd5b505050506118e6565b5f828152600687016020526040902060028082015460ff16908111156130005761300061481f565b60028084015460ff16908111156130195761301961481f565b148015613044575060028181015490830154610100918290046001600160a01b039081169290910416145b6130615760405163f176be9160e01b815260040160405180910390fd5b61306d878487876136af565b6003870154600283015460405163691c2b7b60e11b815260048101899052602481018690526001600160a01b036101009092048216604482015287821660648201526084810187905291169063d23856f69060a4015f604051808303815f87803b1580156130d9575f5ffd5b505af11580156130eb573d5f5f3e3d5ffd5b5050505050505b5050505050565b60408051808201909152606080825260208201525f61312a83604080518082019091525f8152602081019190915290565b90505f6002845161313b9190614a89565b6001600160401b03811115613152576131526148f7565b60405190808252806020026020018201604052801561317b578160200160208202803683370190505b5090505f805b602084015151845110156125235761319884613bbd565b905080600a036131b2576131ab84613c2c565b8552613181565b806012036131db575f6131c485613c2c565b600584901b85016020015250600190910190613181565b6131f3816007166005811115611e7457611e7461481f565b613181565b61322060405180608001604052805f81526020015f8152602001606081526020015f81525090565b604080518082019091525f80825260208201849052835161324390600290614a89565b6001600160401b0381111561325a5761325a6148f7565b604051908082528060200260200182016040528015613283578160200160208202803683370190505b5090505f805b60208401515184511015613339576132a084613bbd565b905080600a036132ba576132b384613ead565b8552613289565b806010036132d5576132cb84613bbd565b6020860152613289565b80601a03613301575f6132ea612e8186613c2c565b600584901b85016020015250600190910190613289565b8060200361331c5761331284613bbd565b6060860152613289565b613334816007166005811115611e7457611e7461481f565b613289565b508152604083015250919050565b5f5b60028110156118e6578181600281106133645761336461480b565b60200201511561341a5760038601546001600160a01b0316638e0cc17686868685600281106133955761339561480b565b60200201518686600281106133ac576133ac61480b565b60200201516040516001600160e01b031960e087901b16815260048101949094526001600160a01b0392831660248501529116604483015260648201526084015f604051808303815f87803b158015613403575f5ffd5b505af1158015613415573d5f5f3e3d5ffd5b505050505b600101613349565b5f61342b61465c565b604080518082019091525f9060048501600283835b828210156134d057604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101613440565b5050505090505f6040518060400160405280836001600281106134f5576134f561480b565b60200201516060015160200151845f600281106135145761351461480b565b602002015160200151613527919061486e565b815283516060015160209081015181860151820151919092019161354a9161486e565b905290505f5b6002811015613623575f83826002811061356c5761356c61480b565b6020020151604001518483600281106135875761358761480b565b6020020151606001516020015161359e919061486e565b9050808383600281106135b3576135b361480b565b602002015110156135e1575f60405180604001604052805f81526020015f8152509550955050505050915091565b808383600281106135f4576135f461480b565b6020020151613603919061485b565b8383600281106136155761361561480b565b602002015250600101613550565b5060019590945092505050565b5f815561363f828260016127eb565b5f600782018190556008820181905560098201819055600a8201819055600b8201819055600f8201819055601082018190556011820181905560128201819055601382018190556015820180546001600160a01b0319169055601682018190556017820181905560189091015550565b5f83815260068501602052604090206001600382015460ff1660048111156136d9576136d961481f565b146136f75760405163407a5cc360e11b815260040160405180910390fd5b5f61370282856120bb565b600587015490915060ff161561388057600282015461010090046001600160a01b03165f9081526004878101602052604091829020549151636b5c4f1d60e11b815290810184905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015613784573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137a89190614a41565b6137b2908561486e565b604051636b5c4f1d60e11b8152600481018590529110159073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015613804573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138289190614a41565b613832908561486e565b600284015461010090046001600160a01b03165f908152600489016020526040902054909161387d57604051631c71225560e31b8152600481019290925260248201526044016104b0565b50505b828260040182600281106138965761389661480b565b60080201600101546138a8919061486e565b8260040182600281106138bd576138bd61480b565b60080201600101819055505f5f5f8473__$13d4168a6482a4756bee5acfadcccc5f1f$__63c8ed149e90916040518263ffffffff1660e01b815260040161390691815260200190565b60c060405180830381865af4158015613921573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613945919061498a565b925092509250877fb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c84848460405161397f93929190614bfe565b60405180910390a2505050505050505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526139f99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061423b565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613a5084826142a7565b6139f9576040516001600160a01b0384811660248301525f6044830152613a8491869182169063095ea7b3906064016139c7565b6139f9848261423b565b613a9661465c565b506040805180820190915260078201548152600f90910154602082015290565b604080518082018252606081525f6020808301829052835180850190945281845283018490528351919291613aed90602290614a89565b6001600160401b03811115613b0457613b046148f7565b604051908082528060200260200182016040528015613b2d578160200160208202803683370190505b5090505f805b60208401515184511015611e8057613b4a84613bbd565b905080600a03613b8557613b5d84613ead565b838381518110613b6f57613b6f61480b565b6020908102919091010152600190910190613b33565b80601203613ba057613b9684613ead565b6020860152613b33565b613bb8816007166005811115611e7457611e7461481f565b613b33565b602080820151825181515f938301845b600a8110156100bc57828410613be1575f5ffd5b838201515f1a607f8116600783021b96909617956001909401936080811015613c235781600903613c185760028110613c18575f5ffd5b505050935250919050565b50600101613bcd565b60605f613c3883613bbd565b90505f81845f0151613c4a919061486e565b9050836020015151811115613c5d575f5ffd5b816001600160401b03811115613c7557613c756148f7565b6040519080825280601f01601f191660200182016040528015613c9f576020820181803683370190505b5060208086015186519295509181860191908301015f5b85811015613c18578181015183820152602001613cb6565b60408051808201909152606080825260208201525f613cff83604080518082019091525f8152602081019190915290565b90505f60028451613d109190614a89565b6001600160401b03811115613d2757613d276148f7565b604051908082528060200260200182016040528015613d50578160200160208202803683370190505b5090505f805b6020840151518451101561252357613d6d84613bbd565b905080600a03613d8757613d8084613c2c565b8552613d56565b80601203613db0575f613d9985613c2c565b600584901b85016020015250600190910190613d56565b613dc8816007166005811115611e7457611e7461481f565b613d56565b5f816005811115613de057613de061481f565b03613df357613dee82613bbd565b505050565b6002816005811115613e0757613e0761481f565b03613e3e575f613e1683613bbd565b905080835f01818151613e29919061486e565b90525060208301515183511115613dee575f5ffd5b6001816005811115613e5257613e5261481f565b03613e82576008825f01818151613e69919061486e565b90525060208201515182511115613e7e575f5ffd5b5050565b6005816005811115613e9657613e9661481f565b036100bc576004825f01818151613e69919061486e565b5f5f613eb883613bbd565b905080602014613ec6575f5ffd5b82516020808501515190613edb90839061486e565b1115613ee5575f5ffd5b602080850151828101820151945090613eff90839061486e565b909452509092915050565b5f5f613f1583613bbd565b905080601414613f23575f5ffd5b8251602084015151613f3682601461486e565b1115613f40575f5ffd5b6020808501518281019091015160601c9350613eff82601461486e565b604080516080810182525f81830181815260608301829052825282518084018452818152602080820183905280840191909152835180850190945281845283018490529091905b60208201515182511015611fb957613fbb82613bbd565b905080600a03613fdd57613fd6613fd183613c2c565b6142f0565b8352613fa4565b80601203613ffb57613ff1612e8183613c2c565b6020840152613fa4565b614013816007166005811115611fad57611fad61481f565b613fa4565b5f5f61402383613bbd565b90506020811115614032575f5ffd5b82515f61403f838361486e565b9050846020015151811115614052575f5ffd5b602080860151929092018201519452036008029190911c919050565b5f5f5f5f61407c86866143c5565b92509250925061408c828261440e565b5090949350505050565b604080516080810182525f91810182815260608083019390935281526020810191909152604080518082019091525f8082526020820184905283516140dd90600290614a89565b6001600160401b038111156140f4576140f46148f7565b60405190808252806020026020018201604052801561411d578160200160208202803683370190505b5090505f805b602084015151845110156125235761413a84613bbd565b905080600a0361415757614150613fd185613c2c565b8552614123565b80601203614183575f61416c612e8186613c2c565b600584901b85016020015250600190910190614123565b61419b816007166005811115611e7457611e7461481f565b614123565b6040805180820182525f8082526020808301829052835180850190945281845283018490529091905b60208201515182511015611fb9576141e082613bbd565b905080600a03614203576141f382613f0a565b6001600160a01b031683526141c9565b8060120361421e5761421482614018565b60208401526141c9565b614236816007166005811115611fad57611fad61481f565b6141c9565b5f5f60205f8451602086015f885af18061425a576040513d5f823e3d81fd5b50505f513d9150811561427157806001141561427e565b6001600160a01b0384163b155b156139f957604051635274afe760e01b81526001600160a01b03851660048201526024016104b0565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156142e6575081156142d857806001146142e6565b5f866001600160a01b03163b115b9695505050505050565b604080518082019091525f8082526020820152604080518082019091525f80825260208201849052505f5b60208201515182511015611fb95761433282613bbd565b9050806008036143845761434582613bbd565b60028111156143565761435661481f565b839060028111156143695761436961481f565b9081600281111561437c5761437c61481f565b90525061431b565b806012036143a85761439582613f0a565b6001600160a01b0316602084015261431b565b6143c0816007166005811115611fad57611fad61481f565b61431b565b5f5f5f83516041036143fc576020840151604085015160608601515f1a6143ee888285856144c6565b955095509550505050614407565b505081515f91506002905b9250925092565b5f8260038111156144215761442161481f565b0361442a575050565b600182600381111561443e5761443e61481f565b0361445c5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156144705761447061481f565b036144915760405163fce698f760e01b8152600481018290526024016104b0565b60038260038111156144a5576144a561481f565b03613e7e576040516335e2f38360e21b8152600481018290526024016104b0565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156144ff57505f91506003905082614584565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015614550573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661457b57505f925060019150829050614584565b92505f91508190505b9450945094915050565b6040518060e001604052805f81526020015f6001600160a01b031681526020015f81526020016145ee604080516080810182525f818301818152606083018290528252825180840190935280835260208381019190915290919082015290565b815260200161460f6040518060400160405280606081526020015f81525090565b81526020015f81526020015f81525090565b6040518060a001604052805f81526020015f815260200161460f60405180604001604052805f6001600160a01b031681526020015f81525090565b60405180604001604052806002906020820280368337509192915050565b5f5f83601f84011261468a575f5ffd5b5081356001600160401b038111156146a0575f5ffd5b6020830191508360208285010111156146b7575f5ffd5b9250929050565b5f5f5f604084860312156146d0575f5ffd5b8335925060208401356001600160401b038111156146ec575f5ffd5b6146f88682870161467a565b9497909650939450505050565b5f5f60408385031215614716575f5ffd5b50508035926020909101359150565b5f5f5f5f60808587031215614738575f5ffd5b5050823594602084013594506040840135936060013592509050565b6001600160a01b0381168114614768575f5ffd5b50565b5f5f5f5f6080858703121561477e575f5ffd5b8435935060208501359250604085013561479781614754565b9396929550929360600135925050565b5f5f5f5f5f608086880312156147bb575f5ffd5b853594506020860135935060408601356147d481614754565b925060608601356001600160401b038111156147ee575f5ffd5b6147fa8882890161467a565b969995985093965092949392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52600160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610b1657610b16614847565b80820180821115610b1657610b16614847565b805f5b60028110156139f95781516001600160a01b0316845260209384019390910190600101614884565b805f5b60028110156139f95781518452602093840193909101906001016148af565b83815260a081016148e26020830185614881565b6148ef60608301846148ac565b949350505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715614933576149336148f7565b604052919050565b5f82601f83011261494a575f5ffd5b614954604061490b565b806040840185811115614965575f5ffd5b845b8181101561497f578051845260209384019301614967565b509095945050505050565b5f5f5f60c0848603121561499c575f5ffd5b84601f8501126149aa575f5ffd5b6149b4604061490b565b8060408601878111156149c5575f5ffd5b865b818110156149e85780516149da81614754565b8452602093840193016149c7565b508195506149f6888261493b565b9450505050614a08856080860161493b565b90509250925092565b84815260c08101614a2560208301866148ac565b614a3260608301856148ac565b8260a083015295945050505050565b5f60208284031215614a51575f5ffd5b5051919050565b60408101610b1682846148ac565b83815260a081016148e260208301856148ac565b818382375f9101908152919050565b5f82614aa357634e487b7160e01b5f52601260045260245ffd5b500490565b604080825283519082018190525f9060208501906060840190835b81811015614ae1578351835260209384019390920191600101614ac3565b5050602093909301939093525092915050565b5f60208284031215614b04575f5ffd5b81516001600160401b03811115614b19575f5ffd5b8201601f81018413614b29575f5ffd5b80516001600160401b03811115614b4257614b426148f7565b8060051b614b526020820161490b565b91825260208184018101929081019087841115614b6d575f5ffd5b6020850194505b83851015614b9357845180835260209586019590935090910190614b74565b979650505050505050565b606080825284519082018190525f9060208601906080840190835b81811015614be05783516001600160a01b0316835260209384019390920191600101614bb9565b50506001600160a01b03959095166020840152505060400152919050565b60c08101614c0c8286614881565b614c1960408301856148ac565b6148ef60808301846148ac56fea2646970667358221220d38372bc3bffbff8b0424412dd03de9c55f365d52477174f549c5dc0e389af0464736f6c634300081e0033", + Bin: "0x614c5c610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100bc575f3560e01c806383e0fef51161007957806383e0fef514610182578063bb3d0f2b146101a1578063bd9d3157146101c0578063e59f3686146101df578063eb4de337146101fe578063ff7fb4111461021d575f5ffd5b80630bdc5411146100c0578063594db6e3146100e157806360297df314610100578063742fb5071461012557806379e90087146101445780637a2654ed14610163575b5f5ffd5b8180156100cb575f5ffd5b506100df6100da3660046146be565b61023c565b005b8180156100ec575f5ffd5b506100df6100fb3660046146be565b6106ab565b61011361010e366004614705565b610b07565b60405190815260200160405180910390f35b818015610130575f5ffd5b506100df61013f3660046146be565b610b1c565b81801561014f575f5ffd5b506100df61015e3660046146be565b610d6b565b81801561016e575f5ffd5b506100df61017d366004614725565b61112d565b81801561018d575f5ffd5b506100df61019c366004614705565b611237565b8180156101ac575f5ffd5b506100df6101bb366004614705565b6114f7565b8180156101cb575f5ffd5b506100df6101da36600461476b565b611689565b8180156101ea575f5ffd5b506100df6101f93660046146be565b6118ee565b818015610209575f5ffd5b506100df610218366004614705565b611ba1565b818015610228575f5ffd5b506100df6102373660046147a7565b611c90565b5f61027b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611d9a92505050565b805180519192505f906102a69082846102965761029661480b565b60200260200101515f0151611e8b565b90505f5b828110156106a25781515f81815260068901602052604090206102cd8133611fc0565b15610333576001600382015460ff1660048111156102ed576102ed61481f565b148061031157506002600382015460ff16600481111561030f5761030f61481f565b145b61032e576040516334b8cc2360e11b815260040160405180910390fd5b61036c565b6002600382015460ff16600481111561034e5761034e61481f565b1461036c5760405163326c5a6d60e01b815260040160405180910390fd5b8054158061037a5750805442105b610397576040516310344f3160e21b815260040160405180910390fd5b5f865f015184815181106103ad576103ad61480b565b60200260200101515f01518051906020012090505f875f015185815181106103d7576103d761480b565b60200260200101516020015190505f86604001511115610571576103fc838383611ff6565b6104195760405163b089d34760e01b815260040160405180910390fd5b5f6104318760200151856120bb90919063ffffffff16565b90505f8460040182600281106104495761044961480b565b600802016003019050600160048111156104655761046561481f565b600386015460ff16600481111561047e5761047e61481f565b036104c05780546040890151818110156104b9576040516331c0b51760e11b8152600481019290925260248201526044015b60405180910390fd5b5050610518565b6002600386015460ff1660048111156104db576104db61481f565b0361051057805460408901518181116104b9576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b610518614833565b6040880151815560608801516020908101518101516001830155608089015101516002820181905560a089015160038301551561055a5760c088015160048201555b61056a8d87848b60800151612115565b5050610600565b85604001515f036105f85782541561059c576040516360620ccd60e11b815260040160405180910390fd5b805160011480156105d657506105d682825f815181106105be576105be61480b565b6020026020010151856123649092919063ffffffff16565b6105f357604051638baa579f60e01b815260040160405180910390fd5b610600565b610600614833565b61060b60018861485b565b85036106205761061b8b856123b3565b610692565b61062b60018861485b565b85101561068a5787516106539061064387600161486e565b815181106102965761029661480b565b805190965084111561067757604051626ffafb60e21b815260040160405180910390fd5b855184101561061b5761061b8b856123b3565b610692614833565b5050600190920191506102aa9050565b50505050505050565b5f6106ea83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061242492505050565b90505f6106f9825f0151612531565b80516020015151909150600214610723576040516301e57b6b60e71b815260040160405180910390fd5b80602001514211156107485760405163387b2e5560e11b815260040160405180910390fd5b6080810151469080821461077857604051630432cec160e31b8152600481019290925260248201526044016104b0565b505060a08101516001600160a01b031630146107a75760405163668dbc2f60e11b815260040160405180910390fd5b8051516040805180820190915282516020015180515f9291829184906107cf576107cf61480b565b6020026020010151602001518152602001845f0151602001516001815181106107fa576107fa61480b565b60200260200101516020015181525090505f6040518060400160405280855f0151602001515f815181106108305761083061480b565b60200260200101515f01516001600160a01b03166001600160a01b03168152602001855f01516020015160018151811061086c5761086c61480b565b602090810291909101810151516001600160a01b03908116909252820151825192935081169116106108b157604051632ba0bb9d60e01b815260040160405180910390fd5b8451805160209091012060038901545f9081906108da908c906001600160a01b0316868661268b565b91509150866040015181600101819055506108f78b8260016127eb565b61090086612922565b805160028084018054909291839160ff19169060019084908111156109275761092761481f565b02179055506020918201518154610100600160a81b0319166101006001600160a01b03928316021790915585516004840180549183166001600160a01b03199283161790558751600585015586830151600c85018054909216921691909117905585810151600d8301558801516109a19082908590611ff6565b6109be5760405163b089d34760e01b815260040160405180910390fd5b85602001516001600160a01b0316827f9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d885f01516002811115610a0357610a0361481f565b8789604051610a14939291906148ce565b60405180910390a3602085015185515f91610a2e9161486e565b9050805f03610a64573415610a565760405163429465b160e01b815260040160405180910390fd5b505050505050505050505050565b60058c015460ff1615610af4578b6004015f88602001516001600160a01b03166001600160a01b031681526020019081526020015f2054811115818d6004015f8a602001516001600160a01b03166001600160a01b031681526020019081526020015f20549091610af157604051631c71225560e31b8152600481019290925260248201526044016104b0565b50505b610a568c848789858c8e606001516129fa565b5f818152602083905260409020545b92915050565b5f610b5b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250612d0492505050565b90505f610b6a825f0151612e03565b805160808201515f828152600689016020526040902092935090916001600382015460ff166004811115610ba057610ba061481f565b14610bbe5760405163407a5cc360e11b815260040160405180910390fd5b8451805160209182012090860151610bd99083908390611ff6565b610bf65760405163b089d34760e01b815260040160405180910390fd5b81601401548560200151610c0a919061485b565b600114826014015486602001519091610c3f576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b50508460600151421115610c665760405163387b2e5560e11b815260040160405180910390fd5b60408501518051602080880151601486015590910151610c87848383612ee3565b6040516364768a4f60e11b8152600481018590525f90819073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af4158015610cd9573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cfd919061498a565b925092505086846001600160a01b0316897f1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f8686868f60200151604051610d479493929190614a11565b60405180910390a4610d5c8d8986868b612f3e565b50505050505050505050505050565b5f610daa83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506130f992505050565b90505f610db9825f01516131f8565b80515f8181526006880160205260409020919250906001600382015460ff166004811115610de957610de961481f565b1480610e0d57506002600382015460ff166004811115610e0b57610e0b61481f565b145b610e2a576040516334b8cc2360e11b815260040160405180910390fd5b8351805160209182012090850151610e459083908390611ff6565b610e625760405163b089d34760e01b815260040160405180910390fd5b5f6040518060400160405280846004015f60028110610e8357610e8361480b565b60080201546001600160a01b039081168252600c86015416602090910152600f84015460078501549192505f9111610ebf57600f840154610ec5565b60078401545b60208701519091508190818111610ef8576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b5050504285606001511015610f205760405163387b2e5560e11b815260040160405180910390fd5b805f60200201516001600160a01b031685604001515f81518110610f4657610f4661480b565b60200260200101515f01516001600160a01b0316148015610fa0575080600160200201516001600160a01b03168560400151600181518110610f8a57610f8a61480b565b60200260200101515f01516001600160a01b0316145b610fbd57604051630ef95a6960e11b815260040160405180910390fd5b5f604051806040016040528087604001515f81518110610fdf57610fdf61480b565b602002602001015160200151815260200187604001516001815181106110075761100761480b565b60209081029190910181015101519052604051636b5c4f1d60e11b81526004810186905290915073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015611068573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061108c9190614a41565b6020820151825161109d919061486e565b146110bb576040516373bdb53b60e11b815260040160405180910390fd5b6110c78a8560036127eb565b847f6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd826040516110f79190614a58565b60405180910390a26002840154611121908b90879061010090046001600160a01b03168585613347565b50505050505050505050565b5f838152600685016020526040902060158101336001600384015460ff16600481111561115c5761115c61481f565b1461117a5760405163407a5cc360e11b815260040160405180910390fd5b81546001600160a01b0316156111a3576040516381cef9d560e01b815260040160405180910390fd5b6111ad8382611fc0565b6111ca5760405163082290dd60e31b815260040160405180910390fd5b81546001600160a01b0319166001600160a01b0382169081178355600183018690554260028401556003830185905560405186815287907f97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe9060200160405180910390a350505050505050565b5f81815260068301602052604090206001600382015460ff1660048111156112615761126161481f565b1461127f5760405163407a5cc360e11b815260040160405180910390fd5b60158101546001600160a01b03166112aa57604051631358276360e11b815260040160405180910390fd5b600181015460178201546112be919061486e565b4210156112de57604051636f5e8c5960e11b815260040160405180910390fd5b6015810180546016830180546018850180546001600160a01b031985169095555f92839055601786018390558290556001600160a01b03909216929061132485856120bb565b90505f61133282600161485b565b9050600486015f81846002811061134b5761134b61480b565b60080201600301600401548285600281106113685761136861480b565b60080201600301600101548386600281106113855761138561480b565b600802016002015484866002811061139f5761139f61480b565b60080201600301600101548588600281106113bc576113bc61480b565b60080201600101546113ce919061486e565b6113d8919061485b565b6113e2919061485b565b6113ec919061485b565b905085818082111561141a5760405163016d0ef160e01b8152600481019290925260248201526044016104b0565b506114289050888888612ee3565b6040516364768a4f60e11b8152600481018990525f90819073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063c8ed149e9060240160c060405180830381865af415801561147a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061149e919061498a565b925092505086896001600160a01b03168c7fe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e8b86866040516114e293929190614a66565b60405180910390a4610a568c8c8b8b8b612f3e565b5f818152600683016020526040902060048101426002600384015460ff1660048111156115265761152661481f565b146115445760405163326c5a6d60e01b815260040160405180910390fd5b82548110156115665760405163206f4f1160e11b815260040160405180910390fd5b6005820154158061157a5750600682015481115b80156115955750600d82015415806115955750600e82015481115b6115b257604051630d23801760e31b815260040160405180910390fd5b5f5f6115bd85613422565b9150915081611603576115d08786613630565b60405186907fa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36905f90a250505050505050565b61160f878660036127eb565b857f728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef32068260405161163f9190614a58565b60405180910390a260028501546040805180820190915285546001600160a01b0390811682526008870154811660208301526106a2928a928a926101009092049091169085613347565b3461169f85858561169a858761486e565b6136af565b5f8481526006860160205260409020600160028083015460ff16908111156116c9576116c961481f565b036118125781156117335760038601546040516342ef5fbb60e01b8152600481018790526001600160a01b03909116906342ef5fbb9084906024015f604051808303818588803b15801561171b575f5ffd5b505af115801561172d573d5f5f3e3d5ffd5b50505050505b821561180d576001860154611753906001600160a01b0316333086613992565b6001860154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d906024015f604051808303815f87803b158015611798575f5ffd5b505af11580156117aa573d5f5f3e3d5ffd5b5050505060038601546040516342ef5fbb60e01b8152600481018790526001600160a01b03909116906342ef5fbb9085906024015f604051808303818588803b1580156117f5575f5ffd5b505af1158015611807573d5f5f3e3d5ffd5b50505050505b6118e6565b60028181015460ff168181111561182b5761182b61481f565b036118de57811561184f5760405163429465b160e01b815260040160405180910390fd5b600281015461010090046001600160a01b031661186e81333087613992565b600387015461188a906001600160a01b038381169116866139ff565b600387015460405163030422ed60e61b8152600481018890526001600160a01b038381166024830152604482018790529091169063c108bb40906064015f604051808303815f87803b1580156117f5575f5ffd5b6118e6614833565b505050505050565b5f61192d83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611d9a92505050565b805180519192505f906119489082846102965761029661480b565b90505f5b828110156106a25781515f81815260068901602052604090206001600382015460ff1660048111156119805761198061481f565b1461199e5760405163407a5cc360e11b815260040160405180910390fd5b5f865f015184815181106119b4576119b461480b565b60200260200101515f01518051906020012090505f875f015185815181106119de576119de61480b565b6020026020010151602001519050611a01828285611ff69092919063ffffffff16565b611a1e5760405163b089d34760e01b815260040160405180910390fd5b5f611a368760200151856120bb90919063ffffffff16565b90505f846004018260028110611a4e57611a4e61480b565b60080201600301805460408a015191925090818111611a89576040516331c0b51760e11b8152600481019290925260248201526044016104b0565b5050604088015181556060880151602090810151015160018083019190915560c08901516004830155611abc908a61485b565b8703611b0757857fd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271611aed87613a8e565b604051611afa9190614a58565b60405180910390a2611b8f565b611b1260018a61485b565b871015611b87578951611b2a9061064389600161486e565b8051909850861115611b4e57604051626ffafb60e21b815260040160405180910390fd5b8751861015611b8257857fd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271611aed87613a8e565b611b8f565b611b8f614833565b50506001909401935061194c92505050565b5f81815260068301602052604090206001600382015460ff166004811115611bcb57611bcb61481f565b14611be95760405163407a5cc360e11b815260040160405180910390fd5b60158101546001600160a01b0316611c1457604051631358276360e11b815260040160405180910390fd5b611c1e8133611fc0565b611c3b5760405163082290dd60e31b815260040160405180910390fd5b6015810180546001600160a01b03191690555f60168201819055601782018190556018820181905560405183917f9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c91a2505050565b5f84815260068601602052604090206002600382015460ff166004811115611cba57611cba61481f565b14611cd85760405163326c5a6d60e01b815260040160405180910390fd5b5f611ce382866120bb565b90505f8484604051611cf6929190614a7a565b604051809103902090505f836004018360028110611d1657611d1661480b565b60080201600301905081816002015414611d43576040516327ff237960e21b815260040160405180910390fd5b5f611d8287878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613ab692505050565b6020810151600284015590506111218a8a8684612115565b60408051602080820183526060825282518084019093525f8084529083018490528351919291611dcc90600290614a89565b6001600160401b03811115611de357611de36148f7565b604051908082528060200260200182016040528015611e0c578160200160208202803683370190505b5090505f805b60208401515184511015611e8057611e2984613bbd565b905080600a03611e5c575f611e45611e4086613c2c565b613cce565b600584901b85016020015250600190910190611e12565b611e7b816007166005811115611e7457611e7461481f565b8590613dcd565b611e12565b508152825250919050565b611e9361458e565b604080518082019091525f808252602082018490525b60208201515182511015611fb957611ec082613bbd565b905080600a03611eda57611ed382613ead565b8352611ea9565b80601203611efe57611eeb82613f0a565b6001600160a01b03166020840152611ea9565b80601803611f1957611f0f82613bbd565b6040840152611ea9565b80602203611f3c57611f32611f2d83613c2c565b613f5d565b6060840152611ea9565b80602a03611f5f57611f55611f5083613c2c565b613ab6565b6080840152611ea9565b80603003611f7a57611f7082613bbd565b60a0840152611ea9565b80603a03611f9557611f8b82614018565b60c0840152611ea9565b611fb4816007166005811115611fad57611fad61481f565b8390613dcd565b611ea9565b5050919050565b60048201545f906001600160a01b0383811691161480611fef5750600c8301546001600160a01b038381169116145b9392505050565b5f815160021461200757505f611fef565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c849052603c812090805b60028110156120ae5761206d8582815181106120565761205661480b565b60200260200101518461406e90919063ffffffff16565b91508660040181600281106120845761208461480b565b60080201546001600160a01b038381169116146120a6575f9350505050611fef565b600101612038565b5060019695505050505050565b60048201545f906001600160a01b03908116908316036120dc57505f610b16565b600c8301546001600160a01b03908116908316036120fc57506001610b16565b60405163082290dd60e31b815260040160405180910390fd5b5f838152600685016020526040812060028087015484519293926001600160a01b0390911691637cac39cf91906004860190889081106121575761215761480b565b60080201600301600301546040518363ffffffff1660e01b815260040161217f929190614aa8565b5f60405180830381865afa158015612199573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526121c09190810190614af4565b90505f805b8251811015612292578281815181106121e0576121e061480b565b6020026020010151826121f3919061486e565b915083600401866002811061220a5761220a61480b565b6008020154855180516001600160a01b03909216918390811061222f5761222f61480b565b6020026020010151887f33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b877686858151811061226b5761226b61480b565b602002602001015160405161228291815260200190565b60405180910390a46001016121c5565b50808360040186600281106122a9576122a961480b565b60080201600301600101546122be919061486e565b8360040186600281106122d3576122d361480b565b6008020160040155602084015161230d575f8360040186600281106122fa576122fa61480b565b60080201600301600401819055506106a2565b808360040186600281106123235761232361480b565b6008020160030160040154612338919061485b565b83600401866002811061234d5761234d61480b565b600802016003016004018190555050505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c839052603c8120819061239e908461406e565b90506123aa8582611fc0565b95945050505050565b5f818152600683016020526040902060018101546123d1904261486e565b81556123df838260026127eb565b817f296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d6461240a83613a8e565b6040516124179190614a58565b60405180910390a2505050565b60408051808201909152606080825260208201525f61245583604080518082019091525f8152602081019190915290565b90505f600284516124669190614a89565b6001600160401b0381111561247d5761247d6148f7565b6040519080825280602002602001820160405280156124a6578160200160208202803683370190505b5090505f805b60208401515184511015612523576124c384613bbd565b905080600a036124dd576124d684613c2c565b85526124ac565b80601203612506575f6124ef85613c2c565b600584901b850160200152506001909101906124ac565b61251e816007166005811115611e7457611e7461481f565b6124ac565b508152602083015250919050565b61258f6040805161014081019091525f610100820181815261012083019190915260c08201908152606060e0830152819081526020015f81526020015f81526020015f81526020015f81526020015f6001600160a01b031681525090565b604080518082019091525f808252602082018490525b60208201515182511015611fb9576125bc82613bbd565b905080600a036125de576125d76125d283613c2c565b614096565b83526125a5565b806010036125f9576125ef82613bbd565b60208401526125a5565b806018036126145761260a82613bbd565b60408401526125a5565b8060200361262f5761262582613bbd565b60608401526125a5565b8060280361264a5761264082613bbd565b60808401526125a5565b8060320361266e5761265b82613f0a565b6001600160a01b031660a08401526125a5565b612686816007166005811115611fad57611fad61481f565b6125a5565b6040805160028082526060820183525f92839283929091602083019080368337505086518251929350918391505f906126c6576126c661480b565b6001600160a01b03929092166020928302919091018201528501518151829060019081106126f6576126f661480b565b6001600160a01b039283166020918202929092010152604051630d63a1fd60e01b81525f91881690630d63a1fd9061273690859030908a90600401614b9e565b6020604051808303815f875af1158015612752573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127769190614a41565b90508061279657604051637a48b66360e11b815260040160405180910390fd5b5f818152600689016020526040812090600382015460ff1660048111156127bf576127bf61481f565b146127dd576040516306fb701f60e21b815260040160405180910390fd5b909890975095505050505050565b8060048111156127fd576127fd61481f565b600383015460ff1660048111156128165761281661481f565b0361282057505050565b5f600383015460ff16600481111561283a5761283a61481f565b146128a557600382015460019084905f9060ff16600481111561285f5761285f61481f565b81526020019081526020015f2054612877919061485b565b600383015484905f9060ff1660048111156128945761289461481f565b815260208101919091526040015f20555b825f8260048111156128b9576128b961481f565b81526020019081526020015f205460016128d3919061486e565b835f8360048111156128e7576128e761481f565b815260208101919091526040015f205560038201805482919060ff191660018360048111156129185761291861481f565b0217905550505050565b604080518082019091525f808252602082015260018251600281111561294a5761294a61481f565b0361297f5760208201516001600160a01b03161561297b57604051630f58058360e11b815260040160405180910390fd5b5090565b6002825160028111156129945761299461481f565b036129f25760208201516001600160a01b03166129c457604051630f58058360e11b815260040160405180910390fd5b5f82602001516001600160a01b03163b1161297b57604051630fea47fd60e31b815260040160405180910390fd5b61297b614833565b600182516002811115612a0f57612a0f61481f565b03612bbe57838160028110612a2657612a2661480b565b60200201513414848260028110612a3f57612a3f61480b565b6020020151349091612a6d57604051634a09443160e01b8152600481019290925260248201526044016104b0565b505f9050612a7c82600161485b565b90505f858260028110612a9157612a9161480b565b60200201511115612b5a57612ae4868260028110612ab157612ab161480b565b602002015130878460028110612ac957612ac961480b565b602002015160018c01546001600160a01b0316929190613992565b60018801546001600160a01b0316632e1a7d4d868360028110612b0957612b0961480b565b60200201516040518263ffffffff1660e01b8152600401612b2c91815260200190565b5f604051808303815f87803b158015612b43575f5ffd5b505af1158015612b55573d5f5f3e3d5ffd5b505050505b60038801546040516342ef5fbb60e01b8152600481018990526001600160a01b03909116906342ef5fbb9086906024015f604051808303818588803b158015612ba1575f5ffd5b505af1158015612bb3573d5f5f3e3d5ffd5b5050505050506106a2565b600282516002811115612bd357612bd361481f565b03612cfc573415612bf75760405163429465b160e01b815260040160405180910390fd5b60208201515f5b6002811015612c6f57858160028110612c1957612c1961480b565b602002015115612c6757612c67878260028110612c3857612c3861480b565b602002015130888460028110612c5057612c5061480b565b60200201516001600160a01b038616929190613992565b600101612bfe565b506003880154612c8c906001600160a01b038381169116866139ff565b600388015460405163030422ed60e61b8152600481018990526001600160a01b038381166024830152604482018790529091169063c108bb40906064015f604051808303815f87803b158015612ce0575f5ffd5b505af1158015612cf2573d5f5f3e3d5ffd5b50505050506106a2565b6106a2614833565b60408051808201909152606080825260208201525f612d3583604080518082019091525f8152602081019190915290565b90505f60028451612d469190614a89565b6001600160401b03811115612d5d57612d5d6148f7565b604051908082528060200260200182016040528015612d86578160200160208202803683370190505b5090505f805b6020840151518451101561252357612da384613bbd565b905080600a03612dbd57612db684613c2c565b8552612d8c565b80601203612de6575f612dcf85613c2c565b600584901b85016020015250600190910190612d8c565b612dfe816007166005811115611e7457611e7461481f565b612d8c565b612e0b614621565b604080518082019091525f808252602082018490525b60208201515182511015611fb957612e3882613bbd565b905080600a03612e5257612e4b82613ead565b8352612e21565b80601003612e6d57612e6382613bbd565b6020840152612e21565b80601a03612e9057612e86612e8183613c2c565b6141a0565b6040840152612e21565b80602003612eab57612ea182613bbd565b6060840152612e21565b80602a03612ec657612ebc82613ead565b6080840152612e21565b612ede816007166005811115611fad57611fad61481f565b612e21565b5f612eee84846120bb565b905081846004018260028110612f0657612f0661480b565b6008020160020154612f18919061486e565b846004018260028110612f2d57612f2d61480b565b600802016002018190555050505050565b81156130f2575f848152600686016020526040902081612fd8576003860154600282015460405163470660bb60e11b8152600481018890526001600160a01b0361010090920482166024820152868216604482015260648101869052911690638e0cc176906084015f604051808303815f87803b158015612fbd575f5ffd5b505af1158015612fcf573d5f5f3e3d5ffd5b505050506118e6565b5f828152600687016020526040902060028082015460ff16908111156130005761300061481f565b60028084015460ff16908111156130195761301961481f565b148015613044575060028181015490830154610100918290046001600160a01b039081169290910416145b6130615760405163f176be9160e01b815260040160405180910390fd5b61306d878487876136af565b6003870154600283015460405163691c2b7b60e11b815260048101899052602481018690526001600160a01b036101009092048216604482015287821660648201526084810187905291169063d23856f69060a4015f604051808303815f87803b1580156130d9575f5ffd5b505af11580156130eb573d5f5f3e3d5ffd5b5050505050505b5050505050565b60408051808201909152606080825260208201525f61312a83604080518082019091525f8152602081019190915290565b90505f6002845161313b9190614a89565b6001600160401b03811115613152576131526148f7565b60405190808252806020026020018201604052801561317b578160200160208202803683370190505b5090505f805b602084015151845110156125235761319884613bbd565b905080600a036131b2576131ab84613c2c565b8552613181565b806012036131db575f6131c485613c2c565b600584901b85016020015250600190910190613181565b6131f3816007166005811115611e7457611e7461481f565b613181565b61322060405180608001604052805f81526020015f8152602001606081526020015f81525090565b604080518082019091525f80825260208201849052835161324390600290614a89565b6001600160401b0381111561325a5761325a6148f7565b604051908082528060200260200182016040528015613283578160200160208202803683370190505b5090505f805b60208401515184511015613339576132a084613bbd565b905080600a036132ba576132b384613ead565b8552613289565b806010036132d5576132cb84613bbd565b6020860152613289565b80601a03613301575f6132ea612e8186613c2c565b600584901b85016020015250600190910190613289565b8060200361331c5761331284613bbd565b6060860152613289565b613334816007166005811115611e7457611e7461481f565b613289565b508152604083015250919050565b5f5b60028110156118e6578181600281106133645761336461480b565b60200201511561341a5760038601546001600160a01b0316638e0cc17686868685600281106133955761339561480b565b60200201518686600281106133ac576133ac61480b565b60200201516040516001600160e01b031960e087901b16815260048101949094526001600160a01b0392831660248501529116604483015260648201526084015f604051808303815f87803b158015613403575f5ffd5b505af1158015613415573d5f5f3e3d5ffd5b505050505b600101613349565b5f61342b61465c565b604080518082019091525f9060048501600283835b828210156134d057604080516080808201835260088502870180546001600160a01b03168352600180820154602080860191909152600283015485870152855160a081018752600384015481526004840154818301526005840154968101969096526006830154606087810191909152600790930154938601939093529083019390935290835292019101613440565b5050505090505f6040518060400160405280836001600281106134f5576134f561480b565b60200201516060015160200151845f600281106135145761351461480b565b602002015160200151613527919061486e565b815283516060015160209081015181860151820151919092019161354a9161486e565b905290505f5b6002811015613623575f83826002811061356c5761356c61480b565b6020020151604001518483600281106135875761358761480b565b6020020151606001516020015161359e919061486e565b9050808383600281106135b3576135b361480b565b602002015110156135e1575f60405180604001604052805f81526020015f8152509550955050505050915091565b808383600281106135f4576135f461480b565b6020020151613603919061485b565b8383600281106136155761361561480b565b602002015250600101613550565b5060019590945092505050565b5f815561363f828260016127eb565b5f600782018190556008820181905560098201819055600a8201819055600b8201819055600f8201819055601082018190556011820181905560128201819055601382018190556015820180546001600160a01b0319169055601682018190556017820181905560189091015550565b5f83815260068501602052604090206001600382015460ff1660048111156136d9576136d961481f565b146136f75760405163407a5cc360e11b815260040160405180910390fd5b5f61370282856120bb565b600587015490915060ff161561388057600282015461010090046001600160a01b03165f9081526004878101602052604091829020549151636b5c4f1d60e11b815290810184905273__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015613784573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137a89190614a41565b6137b2908561486e565b604051636b5c4f1d60e11b8152600481018590529110159073__$13d4168a6482a4756bee5acfadcccc5f1f$__9063d6b89e3a90602401602060405180830381865af4158015613804573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138289190614a41565b613832908561486e565b600284015461010090046001600160a01b03165f908152600489016020526040902054909161387d57604051631c71225560e31b8152600481019290925260248201526044016104b0565b50505b828260040182600281106138965761389661480b565b60080201600101546138a8919061486e565b8260040182600281106138bd576138bd61480b565b60080201600101819055505f5f5f8473__$13d4168a6482a4756bee5acfadcccc5f1f$__63c8ed149e90916040518263ffffffff1660e01b815260040161390691815260200190565b60c060405180830381865af4158015613921573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613945919061498a565b925092509250877fb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c84848460405161397f93929190614bfe565b60405180910390a2505050505050505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526139f99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061423b565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613a5084826142a7565b6139f9576040516001600160a01b0384811660248301525f6044830152613a8491869182169063095ea7b3906064016139c7565b6139f9848261423b565b613a9661465c565b506040805180820190915260078201548152600f90910154602082015290565b604080518082018252606081525f6020808301829052835180850190945281845283018490528351919291613aed90602290614a89565b6001600160401b03811115613b0457613b046148f7565b604051908082528060200260200182016040528015613b2d578160200160208202803683370190505b5090505f805b60208401515184511015611e8057613b4a84613bbd565b905080600a03613b8557613b5d84613ead565b838381518110613b6f57613b6f61480b565b6020908102919091010152600190910190613b33565b80601203613ba057613b9684613ead565b6020860152613b33565b613bb8816007166005811115611e7457611e7461481f565b613b33565b602080820151825181515f938301845b600a8110156100bc57828410613be1575f5ffd5b838201515f1a607f8116600783021b96909617956001909401936080811015613c235781600903613c185760028110613c18575f5ffd5b505050935250919050565b50600101613bcd565b60605f613c3883613bbd565b90505f81845f0151613c4a919061486e565b9050836020015151811115613c5d575f5ffd5b816001600160401b03811115613c7557613c756148f7565b6040519080825280601f01601f191660200182016040528015613c9f576020820181803683370190505b5060208086015186519295509181860191908301015f5b85811015613c18578181015183820152602001613cb6565b60408051808201909152606080825260208201525f613cff83604080518082019091525f8152602081019190915290565b90505f60028451613d109190614a89565b6001600160401b03811115613d2757613d276148f7565b604051908082528060200260200182016040528015613d50578160200160208202803683370190505b5090505f805b6020840151518451101561252357613d6d84613bbd565b905080600a03613d8757613d8084613c2c565b8552613d56565b80601203613db0575f613d9985613c2c565b600584901b85016020015250600190910190613d56565b613dc8816007166005811115611e7457611e7461481f565b613d56565b5f816005811115613de057613de061481f565b03613df357613dee82613bbd565b505050565b6002816005811115613e0757613e0761481f565b03613e3e575f613e1683613bbd565b905080835f01818151613e29919061486e565b90525060208301515183511115613dee575f5ffd5b6001816005811115613e5257613e5261481f565b03613e82576008825f01818151613e69919061486e565b90525060208201515182511115613e7e575f5ffd5b5050565b6005816005811115613e9657613e9661481f565b036100bc576004825f01818151613e69919061486e565b5f5f613eb883613bbd565b905080602014613ec6575f5ffd5b82516020808501515190613edb90839061486e565b1115613ee5575f5ffd5b602080850151828101820151945090613eff90839061486e565b909452509092915050565b5f5f613f1583613bbd565b905080601414613f23575f5ffd5b8251602084015151613f3682601461486e565b1115613f40575f5ffd5b6020808501518281019091015160601c9350613eff82601461486e565b604080516080810182525f81830181815260608301829052825282518084018452818152602080820183905280840191909152835180850190945281845283018490529091905b60208201515182511015611fb957613fbb82613bbd565b905080600a03613fdd57613fd6613fd183613c2c565b6142f0565b8352613fa4565b80601203613ffb57613ff1612e8183613c2c565b6020840152613fa4565b614013816007166005811115611fad57611fad61481f565b613fa4565b5f5f61402383613bbd565b90506020811115614032575f5ffd5b82515f61403f838361486e565b9050846020015151811115614052575f5ffd5b602080860151929092018201519452036008029190911c919050565b5f5f5f5f61407c86866143c5565b92509250925061408c828261440e565b5090949350505050565b604080516080810182525f91810182815260608083019390935281526020810191909152604080518082019091525f8082526020820184905283516140dd90600290614a89565b6001600160401b038111156140f4576140f46148f7565b60405190808252806020026020018201604052801561411d578160200160208202803683370190505b5090505f805b602084015151845110156125235761413a84613bbd565b905080600a0361415757614150613fd185613c2c565b8552614123565b80601203614183575f61416c612e8186613c2c565b600584901b85016020015250600190910190614123565b61419b816007166005811115611e7457611e7461481f565b614123565b6040805180820182525f8082526020808301829052835180850190945281845283018490529091905b60208201515182511015611fb9576141e082613bbd565b905080600a03614203576141f382613f0a565b6001600160a01b031683526141c9565b8060120361421e5761421482614018565b60208401526141c9565b614236816007166005811115611fad57611fad61481f565b6141c9565b5f5f60205f8451602086015f885af18061425a576040513d5f823e3d81fd5b50505f513d9150811561427157806001141561427e565b6001600160a01b0384163b155b156139f957604051635274afe760e01b81526001600160a01b03851660048201526024016104b0565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156142e6575081156142d857806001146142e6565b5f866001600160a01b03163b115b9695505050505050565b604080518082019091525f8082526020820152604080518082019091525f80825260208201849052505f5b60208201515182511015611fb95761433282613bbd565b9050806008036143845761434582613bbd565b60028111156143565761435661481f565b839060028111156143695761436961481f565b9081600281111561437c5761437c61481f565b90525061431b565b806012036143a85761439582613f0a565b6001600160a01b0316602084015261431b565b6143c0816007166005811115611fad57611fad61481f565b61431b565b5f5f5f83516041036143fc576020840151604085015160608601515f1a6143ee888285856144c6565b955095509550505050614407565b505081515f91506002905b9250925092565b5f8260038111156144215761442161481f565b0361442a575050565b600182600381111561443e5761443e61481f565b0361445c5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156144705761447061481f565b036144915760405163fce698f760e01b8152600481018290526024016104b0565b60038260038111156144a5576144a561481f565b03613e7e576040516335e2f38360e21b8152600481018290526024016104b0565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156144ff57505f91506003905082614584565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015614550573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661457b57505f925060019150829050614584565b92505f91508190505b9450945094915050565b6040518060e001604052805f81526020015f6001600160a01b031681526020015f81526020016145ee604080516080810182525f818301818152606083018290528252825180840190935280835260208381019190915290919082015290565b815260200161460f6040518060400160405280606081526020015f81525090565b81526020015f81526020015f81525090565b6040518060a001604052805f81526020015f815260200161460f60405180604001604052805f6001600160a01b031681526020015f81525090565b60405180604001604052806002906020820280368337509192915050565b5f5f83601f84011261468a575f5ffd5b5081356001600160401b038111156146a0575f5ffd5b6020830191508360208285010111156146b7575f5ffd5b9250929050565b5f5f5f604084860312156146d0575f5ffd5b8335925060208401356001600160401b038111156146ec575f5ffd5b6146f88682870161467a565b9497909650939450505050565b5f5f60408385031215614716575f5ffd5b50508035926020909101359150565b5f5f5f5f60808587031215614738575f5ffd5b5050823594602084013594506040840135936060013592509050565b6001600160a01b0381168114614768575f5ffd5b50565b5f5f5f5f6080858703121561477e575f5ffd5b8435935060208501359250604085013561479781614754565b9396929550929360600135925050565b5f5f5f5f5f608086880312156147bb575f5ffd5b853594506020860135935060408601356147d481614754565b925060608601356001600160401b038111156147ee575f5ffd5b6147fa8882890161467a565b969995985093965092949392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52600160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610b1657610b16614847565b80820180821115610b1657610b16614847565b805f5b60028110156139f95781516001600160a01b0316845260209384019390910190600101614884565b805f5b60028110156139f95781518452602093840193909101906001016148af565b83815260a081016148e26020830185614881565b6148ef60608301846148ac565b949350505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715614933576149336148f7565b604052919050565b5f82601f83011261494a575f5ffd5b614954604061490b565b806040840185811115614965575f5ffd5b845b8181101561497f578051845260209384019301614967565b509095945050505050565b5f5f5f60c0848603121561499c575f5ffd5b84601f8501126149aa575f5ffd5b6149b4604061490b565b8060408601878111156149c5575f5ffd5b865b818110156149e85780516149da81614754565b8452602093840193016149c7565b508195506149f6888261493b565b9450505050614a08856080860161493b565b90509250925092565b84815260c08101614a2560208301866148ac565b614a3260608301856148ac565b8260a083015295945050505050565b5f60208284031215614a51575f5ffd5b5051919050565b60408101610b1682846148ac565b83815260a081016148e260208301856148ac565b818382375f9101908152919050565b5f82614aa357634e487b7160e01b5f52601260045260245ffd5b500490565b604080825283519082018190525f9060208501906060840190835b81811015614ae1578351835260209384019390920191600101614ac3565b5050602093909301939093525092915050565b5f60208284031215614b04575f5ffd5b81516001600160401b03811115614b19575f5ffd5b8201601f81018413614b29575f5ffd5b80516001600160401b03811115614b4257614b426148f7565b8060051b614b526020820161490b565b91825260208184018101929081019087841115614b6d575f5ffd5b6020850194505b83851015614b9357845180835260209586019590935090910190614b74565b979650505050505050565b606080825284519082018190525f9060208601906080840190835b81811015614be05783516001600160a01b0316835260209384019390920191600101614bb9565b50506001600160a01b03959095166020840152505060400152919050565b60c08101614c0c8286614881565b614c1960408301856148ac565b6148ef60808301846148ac56fea26469706673582212207681c866bf0b0b346f8243efeaf8e3123766d3d11146a4509be44cbf8fd5789264736f6c634300081e0033", } // LedgerOperationABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/payregistry/payregistry.go b/chain/channel-eth-go/payregistry/payregistry.go index eede76d..a987745 100644 --- a/chain/channel-eth-go/payregistry/payregistry.go +++ b/chain/channel-eth-go/payregistry/payregistry.go @@ -33,7 +33,7 @@ var ( // PayRegistryMetaData contains all meta data concerning the PayRegistry contract. var PayRegistryMetaData = &bind.MetaData{ ABI: "[{\"type\":\"function\",\"name\":\"calculatePayId\",\"inputs\":[{\"name\":\"_payHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_setter\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getPayAmounts\",\"inputs\":[{\"name\":\"_payIds\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_maxResolveDeadline\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPayInfo\",\"inputs\":[{\"name\":\"_payId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"payInfoMap\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"resolveDeadline\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setPayAmount\",\"inputs\":[{\"name\":\"_payHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_amt\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPayAmounts\",\"inputs\":[{\"name\":\"_payHashes\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_amts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPayDeadline\",\"inputs\":[{\"name\":\"_payHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_deadline\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPayDeadlines\",\"inputs\":[{\"name\":\"_payHashes\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_deadlines\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPayInfo\",\"inputs\":[{\"name\":\"_payHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_amt\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_deadline\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPayInfos\",\"inputs\":[{\"name\":\"_payHashes\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"_amts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"_deadlines\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"PayInfoUpdate\",\"inputs\":[{\"name\":\"payId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"resolveDeadline\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"LengthMismatch\",\"inputs\":[{\"name\":\"a\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"b\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"PaymentNotFinalized\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b50610a308061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061009b575f3560e01c80638f13b2f5116100635780638f13b2f51461013b57806396efe57314610161578063cdfa146b14610182578063e1e3549014610195578063f8fb012f146101a8575f5ffd5b80630daddd341461009f578063204a95ee146100b457806327b0e058146100c7578063414f7e0e146101085780637cac39cf1461011b575b5f5ffd5b6100b26100ad366004610784565b6101bb565b005b6100b26100c2366004610784565b6102a9565b6100ee6100d53660046107f0565b5f90815260208190526040902080546001909101549091565b604080519283526020830191909152015b60405180910390f35b6100b2610116366004610807565b61037a565b61012e6101293660046108a6565b6104b8565b6040516100ff91906108ee565b6100ee6101493660046107f0565b5f602081905290815260409020805460019091015482565b61017461016f366004610930565b610605565b6040519081526020016100ff565b6100b2610190366004610969565b610652565b6100b26101a3366004610989565b6106a4565b6100b26101b6366004610969565b6106f7565b82818181146101eb576040516355c5b3e360e11b8152600481019290925260248201526044015b60405180910390fd5b505f905033815b858110156102a05761021c87878381811061020f5761020f6109b2565b9050602002013583610605565b5f81815260208190526040902090935085858381811061023e5761023e6109b2565b6020029190910135600183015550805484905f5160206109db5f395f51905f5290888886818110610271576102716109b2565b9050602002013560405161028f929190918252602082015260400190565b60405180910390a2506001016101f2565b50505050505050565b82818181146102d4576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b505f905033815b858110156102a0576102f887878381811061020f5761020f6109b2565b5f81815260208190526040902090935085858381811061031a5761031a6109b2565b6020029190910135825550835f5160206109db5f395f51905f52878785818110610346576103466109b2565b905060200201358360010154604051610369929190918252602082015260400190565b60405180910390a2506001016102db565b84838181146103a5576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b50859050818181146103d3576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b505f905033815b878110156104ad576103f789898381811061020f5761020f6109b2565b5f818152602081905260409020909350878783818110610419576104196109b2565b6020029190910135825550858583818110610436576104366109b2565b6020029190910135600183015550835f5160206109db5f395f51905f52898985818110610465576104656109b2565b9050602002013588888681811061047e5761047e6109b2565b9050602002013560405161049c929190918252602082015260400190565b60405180910390a2506001016103da565b505050505050505050565b60605f8367ffffffffffffffff8111156104d4576104d46109c6565b6040519080825280602002602001820160405280156104fd578160200160208202803683370190505b5090505f5b848110156105fc575f5f87878481811061051e5761051e6109b2565b9050602002013581526020019081526020015f20600101545f036105615783421161055c57604051630d23801760e31b815260040160405180910390fd5b6105ac565b5f5f878784818110610575576105756109b2565b9050602002013581526020019081526020015f206001015442116105ac57604051630d23801760e31b815260040160405180910390fd5b5f5f8787848181106105c0576105c06109b2565b9050602002013581526020019081526020015f205f01548282815181106105e9576105e96109b2565b6020908102919091010152600101610502565b50949350505050565b5f828260405160200161063492919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b5f61065d8333610605565b5f8181526020818152604091829020600181018690558054835190815291820186905292935083915f5160206109db5f395f51905f5291015b60405180910390a250505050565b5f6106af8433610605565b5f818152602081815260409182902086815560018101869055825187815291820186905292935083915f5160206109db5f395f51905f52910160405180910390a25050505050565b5f6107028333610605565b5f8181526020818152604091829020858155600181015483518781529283015292935083915f5160206109db5f395f51905f529101610696565b5f5f83601f84011261074c575f5ffd5b50813567ffffffffffffffff811115610763575f5ffd5b6020830191508360208260051b850101111561077d575f5ffd5b9250929050565b5f5f5f5f60408587031215610797575f5ffd5b843567ffffffffffffffff8111156107ad575f5ffd5b6107b98782880161073c565b909550935050602085013567ffffffffffffffff8111156107d8575f5ffd5b6107e48782880161073c565b95989497509550505050565b5f60208284031215610800575f5ffd5b5035919050565b5f5f5f5f5f5f6060878903121561081c575f5ffd5b863567ffffffffffffffff811115610832575f5ffd5b61083e89828a0161073c565b909750955050602087013567ffffffffffffffff81111561085d575f5ffd5b61086989828a0161073c565b909550935050604087013567ffffffffffffffff811115610888575f5ffd5b61089489828a0161073c565b979a9699509497509295939492505050565b5f5f5f604084860312156108b8575f5ffd5b833567ffffffffffffffff8111156108ce575f5ffd5b6108da8682870161073c565b909790965060209590950135949350505050565b602080825282518282018190525f918401906040840190835b81811015610925578351835260209384019390920191600101610907565b509095945050505050565b5f5f60408385031215610941575f5ffd5b8235915060208301356001600160a01b038116811461095e575f5ffd5b809150509250929050565b5f5f6040838503121561097a575f5ffd5b50508035926020909101359150565b5f5f5f6060848603121561099b575f5ffd5b505081359360208301359350604090920135919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52604160045260245ffdfe9e9acc6d43d5d7bd6fa143ef0ee1d224cfe2bb010b7e3acf44878d6314ebc607a2646970667358221220ddbbf8cc3e251541eebf0ecef5b6c4447bf6c2220085805aac99626737eb82a464736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b50610a308061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061009b575f3560e01c80638f13b2f5116100635780638f13b2f51461013b57806396efe57314610161578063cdfa146b14610182578063e1e3549014610195578063f8fb012f146101a8575f5ffd5b80630daddd341461009f578063204a95ee146100b457806327b0e058146100c7578063414f7e0e146101085780637cac39cf1461011b575b5f5ffd5b6100b26100ad366004610784565b6101bb565b005b6100b26100c2366004610784565b6102a9565b6100ee6100d53660046107f0565b5f90815260208190526040902080546001909101549091565b604080519283526020830191909152015b60405180910390f35b6100b2610116366004610807565b61037a565b61012e6101293660046108a6565b6104b8565b6040516100ff91906108ee565b6100ee6101493660046107f0565b5f602081905290815260409020805460019091015482565b61017461016f366004610930565b610605565b6040519081526020016100ff565b6100b2610190366004610969565b610652565b6100b26101a3366004610989565b6106a4565b6100b26101b6366004610969565b6106f7565b82818181146101eb576040516355c5b3e360e11b8152600481019290925260248201526044015b60405180910390fd5b505f905033815b858110156102a05761021c87878381811061020f5761020f6109b2565b9050602002013583610605565b5f81815260208190526040902090935085858381811061023e5761023e6109b2565b6020029190910135600183015550805484905f5160206109db5f395f51905f5290888886818110610271576102716109b2565b9050602002013560405161028f929190918252602082015260400190565b60405180910390a2506001016101f2565b50505050505050565b82818181146102d4576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b505f905033815b858110156102a0576102f887878381811061020f5761020f6109b2565b5f81815260208190526040902090935085858381811061031a5761031a6109b2565b6020029190910135825550835f5160206109db5f395f51905f52878785818110610346576103466109b2565b905060200201358360010154604051610369929190918252602082015260400190565b60405180910390a2506001016102db565b84838181146103a5576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b50859050818181146103d3576040516355c5b3e360e11b8152600481019290925260248201526044016101e2565b505f905033815b878110156104ad576103f789898381811061020f5761020f6109b2565b5f818152602081905260409020909350878783818110610419576104196109b2565b6020029190910135825550858583818110610436576104366109b2565b6020029190910135600183015550835f5160206109db5f395f51905f52898985818110610465576104656109b2565b9050602002013588888681811061047e5761047e6109b2565b9050602002013560405161049c929190918252602082015260400190565b60405180910390a2506001016103da565b505050505050505050565b60605f8367ffffffffffffffff8111156104d4576104d46109c6565b6040519080825280602002602001820160405280156104fd578160200160208202803683370190505b5090505f5b848110156105fc575f5f87878481811061051e5761051e6109b2565b9050602002013581526020019081526020015f20600101545f036105615783421161055c57604051630d23801760e31b815260040160405180910390fd5b6105ac565b5f5f878784818110610575576105756109b2565b9050602002013581526020019081526020015f206001015442116105ac57604051630d23801760e31b815260040160405180910390fd5b5f5f8787848181106105c0576105c06109b2565b9050602002013581526020019081526020015f205f01548282815181106105e9576105e96109b2565b6020908102919091010152600101610502565b50949350505050565b5f828260405160200161063492919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b5f61065d8333610605565b5f8181526020818152604091829020600181018690558054835190815291820186905292935083915f5160206109db5f395f51905f5291015b60405180910390a250505050565b5f6106af8433610605565b5f818152602081815260409182902086815560018101869055825187815291820186905292935083915f5160206109db5f395f51905f52910160405180910390a25050505050565b5f6107028333610605565b5f8181526020818152604091829020858155600181015483518781529283015292935083915f5160206109db5f395f51905f529101610696565b5f5f83601f84011261074c575f5ffd5b50813567ffffffffffffffff811115610763575f5ffd5b6020830191508360208260051b850101111561077d575f5ffd5b9250929050565b5f5f5f5f60408587031215610797575f5ffd5b843567ffffffffffffffff8111156107ad575f5ffd5b6107b98782880161073c565b909550935050602085013567ffffffffffffffff8111156107d8575f5ffd5b6107e48782880161073c565b95989497509550505050565b5f60208284031215610800575f5ffd5b5035919050565b5f5f5f5f5f5f6060878903121561081c575f5ffd5b863567ffffffffffffffff811115610832575f5ffd5b61083e89828a0161073c565b909750955050602087013567ffffffffffffffff81111561085d575f5ffd5b61086989828a0161073c565b909550935050604087013567ffffffffffffffff811115610888575f5ffd5b61089489828a0161073c565b979a9699509497509295939492505050565b5f5f5f604084860312156108b8575f5ffd5b833567ffffffffffffffff8111156108ce575f5ffd5b6108da8682870161073c565b909790965060209590950135949350505050565b602080825282518282018190525f918401906040840190835b81811015610925578351835260209384019390920191600101610907565b509095945050505050565b5f5f60408385031215610941575f5ffd5b8235915060208301356001600160a01b038116811461095e575f5ffd5b809150509250929050565b5f5f6040838503121561097a575f5ffd5b50508035926020909101359150565b5f5f5f6060848603121561099b575f5ffd5b505081359360208301359350604090920135919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52604160045260245ffdfe9e9acc6d43d5d7bd6fa143ef0ee1d224cfe2bb010b7e3acf44878d6314ebc607a26469706673582212202dee3cbcb0dc25718aa3dfc5a534419d53ae8d01461cb643e6f7d03ba28f8fbf64736f6c634300081e0033", } // PayRegistryABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/payresolver/payresolver.go b/chain/channel-eth-go/payresolver/payresolver.go index d8db021..0fd576a 100644 --- a/chain/channel-eth-go/payresolver/payresolver.go +++ b/chain/channel-eth-go/payresolver/payresolver.go @@ -33,7 +33,7 @@ var ( // PayResolverMetaData contains all meta data concerning the PayResolver contract. var PayResolverMetaData = &bind.MetaData{ ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_registryAddr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_virtResolverAddr\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"payRegistry\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIPayRegistry\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"resolvePaymentByConditions\",\"inputs\":[{\"name\":\"_resolvePayRequest\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"resolvePaymentByVouchedResult\",\"inputs\":[{\"name\":\"_vouchedPayResult\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"virtResolver\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIVirtContractResolver\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"ResolvePayment\",\"inputs\":[{\"name\":\"payId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"resolveDeadline\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AmountNotGreater\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ChainIdMismatch\",\"inputs\":[{\"name\":\"expected\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ConditionNotFinalized\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DeadlinePassed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureLength\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ECDSAInvalidSignatureS\",\"inputs\":[{\"name\":\"s\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"InvalidCoSignatures\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidConditionType\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MaxTransferExceeded\",\"inputs\":[{\"name\":\"attempted\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"max\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"PreimageMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ResolveUpdateWindowClosed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ResolverAddressMismatch\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ZeroDeadline\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b50604051612250380380612250833981016040819052602b916074565b5f80546001600160a01b039384166001600160a01b0319918216179091556001805492909316911617905560a0565b80516001600160a01b0381168114606f575f5ffd5b919050565b5f5f604083850312156084575f5ffd5b608b83605a565b9150609760208401605a565b90509250929050565b6121a3806100ad5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80634367e45e1461004e57806353fc513f146100635780635fff88c814610091578063ead54c1b146100a4575b5f5ffd5b61006161005c366004611f9e565b6100b7565b005b5f54610075906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61006161009f366004611f9e565b6101a7565b600154610075906001600160a01b031681565b5f6100f683838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061032e92505050565b90505f610105825f0151610443565b6080810151519091505f90818160058111156101235761012361200c565b0361013d57610136838560200151610623565b9150610189565b60018160058111156101515761015161200c565b0361016457610136838560200151610866565b61016d81610ab8565b156101815761013683856020015183610b0b565b610189612020565b8351805160209091012061019e848285610f54565b50505050505050565b5f6101e683838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061130792505050565b90505f6101f5825f01516113d3565b90505f610204825f0151610443565b6080810151602090810151810151810151908401519192508082111561024b5760405163098420c960e11b8152600481019290925260248201526044015b60405180910390fd5b5050825180516020918201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c91909152603c812091850151610295908390611466565b90505f6102af86604001518461146690919063ffffffff16565b905083602001516001600160a01b0316826001600160a01b03161480156102eb575083604001516001600160a01b0316816001600160a01b0316145b6103085760405163b089d34760e01b815260040160405180910390fd5b84518051602091820120908601516103239086908390610f54565b505050505050505050565b60408051808201909152606080825260208201525f61035f83604080518082019091525f8152602081019190915290565b90505f600284516103709190612048565b67ffffffffffffffff81111561038857610388612067565b6040519080825280602002602001820160405280156103b1578160200160208202803683370190505b5090505f805b60208401515184511015610435576103ce8461148e565b905080600a036103e8576103e1846114fd565b85526103b7565b80601203610411575f6103fa856114fd565b600584901b850160200152506001909101906103b7565b6104308160071660058111156104295761042961200c565b85906115a0565b6103b7565b508152602083015250919050565b61044b611ee8565b604080518082019091525f80825260208201849052835161046e90600290612048565b67ffffffffffffffff81111561048657610486612067565b6040519080825280602002602001820160405280156104af578160200160208202803683370190505b5090505f805b60208401515184511015610615576104cc8461148e565b9050806008036104e6576104df8461148e565b85526104b5565b8060120361050a576104f784611680565b6001600160a01b031660208601526104b5565b80601a0361052e5761051b84611680565b6001600160a01b031660408601526104b5565b8060220361055f575f610548610543866114fd565b6116de565b600584901b850160200152506001909101906104b5565b80602a0361058257610578610573856114fd565b611849565b60808601526104b5565b8060300361059d576105938461148e565b60a08601526104b5565b806038036105b8576105ae8461148e565b60c08601526104b5565b806042036105dc576105c984611680565b6001600160a01b031660e08601526104b5565b806048036105f8576105ed8461148e565b6101008601526104b5565b6106108160071660058111156104295761042961200c565b6104b5565b508152606083015250919050565b5f8080805b856060015151811015610839575f8660600151828151811061064c5761064c61207b565b602002602001015190505f60028111156106685761066861200c565b8151600281111561067b5761067b61200c565b036106d65780602001518685815181106106975761069761207b565b602002602001015180519060200120146106c457604051636f43bb6360e01b815260040160405180910390fd5b836106ce8161208f565b945050610830565b6001815160028111156106eb576106eb61200c565b148061070957506002815160028111156107075761070761200c565b145b15610828575f61071882611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda949161074d91906004016120a7565b602060405180830381865afa158015610768573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078c91906120dc565b6107a9576040516340a4167b60e01b815260040160405180910390fd5b60a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb916107d991906004016120a7565b602060405180830381865afa1580156107f4573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081891906120dc565b61082157600194505b5050610830565b610830612020565b50600101610628565b50801561084a575f92505050610860565b8460800151602001516020015160200151925050505b92915050565b5f808080805b866060015151811015610a82575f876060015182815181106108905761089061207b565b602002602001015190505f60028111156108ac576108ac61200c565b815160028111156108bf576108bf61200c565b0361091a5780602001518786815181106108db576108db61207b565b6020026020010151805190602001201461090857604051636f43bb6360e01b815260040160405180910390fd5b846109128161208f565b955050610a79565b60018151600281111561092f5761092f61200c565b148061094d575060028151600281111561094b5761094b61200c565b145b15610a71575f61095c82611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda949161099191906004016120a7565b602060405180830381865afa1580156109ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d091906120dc565b6109ed576040516340a4167b60e01b815260040160405180910390fd5b60a083015160405163ea4ba8eb60e01b8152600197506001600160a01b0383169163ea4ba8eb91610a2191906004016120a7565b602060405180830381865afa158015610a3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6091906120dc565b15610a6a57600194505b5050610a79565b610a79612020565b5060010161086c565b50811580610a8d5750805b15610aad5785608001516020015160200151602001519350505050610860565b5f9350505050610860565b5f6003826005811115610acd57610acd61200c565b1480610aea57506004826005811115610ae857610ae861200c565b145b8061086057506005826005811115610b0457610b0461200c565b1492915050565b5f808080805b876060015151811015610ee6575f88606001518281518110610b3557610b3561207b565b602002602001015190505f6002811115610b5157610b5161200c565b81516002811115610b6457610b6461200c565b03610bbf578060200151888581518110610b8057610b8061207b565b60200260200101518051906020012014610bad57604051636f43bb6360e01b815260040160405180910390fd5b83610bb78161208f565b945050610edd565b600181516002811115610bd457610bd461200c565b1480610bf25750600281516002811115610bf057610bf061200c565b145b15610ed5575f610c0182611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda9491610c3691906004016120a7565b602060405180830381865afa158015610c51573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7591906120dc565b610c92576040516340a4167b60e01b815260040160405180910390fd5b6003896005811115610ca657610ca661200c565b03610d2b5760a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb91610cdb91906004016120a7565b602060405180830381865afa158015610cf6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1a91906120fb565b610d249088612112565b9650610eca565b6004896005811115610d3f57610d3f61200c565b03610dbc57610d2487826001600160a01b031663ea4ba8eb8660a001516040518263ffffffff1660e01b8152600401610d7891906120a7565b602060405180830381865afa158015610d93573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610db791906120fb565b6119dc565b6005896005811115610dd057610dd061200c565b03610ec2578415610e5357610d2487826001600160a01b031663ea4ba8eb8660a001516040518263ffffffff1660e01b8152600401610e0f91906120a7565b602060405180830381865afa158015610e2a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4e91906120fb565b6119eb565b60a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb91610e8391906004016120a7565b602060405180830381865afa158015610e9e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2491906120fb565b610eca612020565b600194505050610edd565b610edd612020565b50600101610b11565b508015610f365760808701516020908101518101510151839080821115610f295760405163098420c960e11b815260048101929092526024820152604401610242565b5050829350505050610f4d565b866080015160200151602001516020015193505050505b9392505050565b6101008301514690808214610f8557604051630432cec160e31b815260048101929092526024820152604401610242565b505060e08301516001600160a01b03163014610fb4576040516307f12de960e31b815260040160405180910390fd5b60a08301514290811115610fdb5760405163387b2e5560e11b815260040160405180910390fd5b5f610fe684306119fa565b5f80546040516304f61c0b60e31b815260048101849052929350909182916001600160a01b0316906327b0e058906024016040805180830381865afa158015611031573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110559190612125565b91509150805f14806110675750808411155b6110845760405163b03f424d60e01b815260040160405180910390fd5b80156111fe578185116110a9576040516252aa6160e51b815260040160405180910390fd5b86608001516020015160200151602001518503611167575f54604051630e1e354960e41b81526004810188905260248101879052604481018690526001600160a01b039091169063e1e35490906064015f604051808303815f87803b158015611110575f5ffd5b505af1158015611122573d5f5f3e3d5ffd5b505060408051888152602081018890528693507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb179250015b60405180910390a261019e565b5f5460405163f8fb012f60e01b815260048101889052602481018790526001600160a01b039091169063f8fb012f906044015f604051808303815f87803b1580156111b0575f5ffd5b505af11580156111c2573d5f5f3e3d5ffd5b505060408051888152602081018590528693507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb1792500161115a565b5f8760800151602001516020015160200151860361121d57508361125c565b61123a8860c00151866112309190612112565b8960a001516119eb565b90505f811161125c5760405163f728a30560e01b815260040160405180910390fd5b5f54604051630e1e354960e41b81526004810189905260248101889052604481018390526001600160a01b039091169063e1e35490906064015f604051808303815f87803b1580156112ac575f5ffd5b505af11580156112be573d5f5f3e3d5ffd5b505060408051898152602081018590528793507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb1792500160405180910390a25050505050505050565b61132b60405180606001604052806060815260200160608152602001606081525090565b604080518082019091525f808252602082018490525b602082015151825110156113cc576113588261148e565b905080600a036113725761136b826114fd565b8352611341565b8060120361138d57611383826114fd565b6020840152611341565b80601a036113a85761139e826114fd565b6040840152611341565b6113c78160071660058111156113c0576113c061200c565b83906115a0565b611341565b5050919050565b604080518082018252606081525f6020808301829052835180850190945281845283018490529091905b602082015151825110156113cc576114148261148e565b905080600a0361142e57611427826114fd565b83526113fd565b806012036114495761143f82611a47565b60208401526113fd565b6114618160071660058111156113c0576113c061200c565b6113fd565b5f5f5f5f6114748686611a9d565b9250925092506114848282611ae6565b5090949350505050565b602080820151825181515f938301845b600a81101561004a578284106114b2575f5ffd5b838201515f1a607f8116600783021b969096179560019094019360808110156114f457816009036114e957600281106114e9575f5ffd5b505050935250919050565b5060010161149e565b60605f6115098361148e565b90505f81845f015161151b9190612112565b905083602001515181111561152e575f5ffd5b8167ffffffffffffffff81111561154757611547612067565b6040519080825280601f01601f191660200182016040528015611571576020820181803683370190505b5060208086015186519295509181860191908301015f5b858110156114e9578181015183820152602001611588565b5f8160058111156115b3576115b361200c565b036115c6576115c18261148e565b505050565b60028160058111156115da576115da61200c565b03611611575f6115e98361148e565b905080835f018181516115fc9190612112565b905250602083015151835111156115c1575f5ffd5b60018160058111156116255761162561200c565b03611655576008825f0181815161163c9190612112565b90525060208201515182511115611651575f5ffd5b5050565b60058160058111156116695761166961200c565b0361004a576004825f0181815161163c9190612112565b5f5f61168b8361148e565b905080601414611699575f5ffd5b82516020840151516116ac826014612112565b11156116b6575f5ffd5b6020808501518281019091015160601c93506116d3826014612112565b909452509092915050565b61171d6040805160c08101909152805f81526020015f81526020015f6001600160a01b031681526020015f815260200160608152602001606081525090565b604080518082019091525f808252602082018490525b602082015151825110156113cc5761174a8261148e565b90508060080361179c5761175d8261148e565b600281111561176e5761176e61200c565b839060028111156117815761178161200c565b908160028111156117945761179461200c565b905250611733565b806012036117b7576117ad82611b9e565b6020840152611733565b80601a036117db576117c882611680565b6001600160a01b03166040840152611733565b806022036117f6576117ec82611b9e565b6060840152611733565b80602a0361181157611807826114fd565b6080840152611733565b8060320361182c57611822826114fd565b60a0840152611733565b6118448160071660058111156113c0576113c061200c565b611733565b611851611f4e565b604080518082019091525f808252602082018490525b602082015151825110156113cc5761187e8261148e565b9050806008036118d0576118918261148e565b60058111156118a2576118a261200c565b839060058111156118b5576118b561200c565b908160058111156118c8576118c861200c565b905250611867565b806012036118f3576118e96118e4836114fd565b611bf0565b6020840152611867565b61190b8160071660058111156113c0576113c061200c565b611867565b5f6001825160028111156119265761192661200c565b0361193357506040015190565b6002825160028111156119485761194861200c565b036119c3576001546060830151604051635c23bdf560e01b81526001600160a01b0390921691635c23bdf5916119849160040190815260200190565b602060405180830381865afa15801561199f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108609190612147565b604051631491062960e31b815260040160405180910390fd5b5f828218828411028218610f4d565b5f828218828410028218610f4d565b5f8282604051602001611a2992919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b5f5f611a528361148e565b90506020811115611a61575f5ffd5b82515f611a6e8383612112565b9050846020015151811115611a81575f5ffd5b602080860151929092018201519452036008029190911c919050565b5f5f5f8351604103611ad4576020840151604085015160608601515f1a611ac688828585611cb0565b955095509550505050611adf565b505081515f91506002905b9250925092565b5f826003811115611af957611af961200c565b03611b02575050565b6001826003811115611b1657611b1661200c565b03611b345760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611b4857611b4861200c565b03611b695760405163fce698f760e01b815260048101829052602401610242565b6003826003811115611b7d57611b7d61200c565b03611651576040516335e2f38360e21b815260048101829052602401610242565b5f5f611ba98361148e565b905080602014611bb7575f5ffd5b82516020808501515190611bcc908390612112565b1115611bd6575f5ffd5b6020808501518281018201519450906116d3908390612112565b604080516080810182525f81830181815260608301829052825282518084018452818152602080820183905280840191909152835180850190945281845283018490529091905b602082015151825110156113cc57611c4e8261148e565b905080600a03611c7057611c69611c64836114fd565b611d78565b8352611c37565b80601203611c9357611c89611c84836114fd565b611e4d565b6020840152611c37565b611cab8160071660058111156113c0576113c061200c565b611c37565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611ce957505f91506003905082611d6e565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611d3a573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b038116611d6557505f925060019150829050611d6e565b92505f91508190505b9450945094915050565b604080518082019091525f8082526020820152604080518082019091525f80825260208201849052505f5b602082015151825110156113cc57611dba8261148e565b905080600803611e0c57611dcd8261148e565b6002811115611dde57611dde61200c565b83906002811115611df157611df161200c565b90816002811115611e0457611e0461200c565b905250611da3565b80601203611e3057611e1d82611680565b6001600160a01b03166020840152611da3565b611e488160071660058111156113c0576113c061200c565b611da3565b6040805180820182525f8082526020808301829052835180850190945281845283018490529091905b602082015151825110156113cc57611e8d8261148e565b905080600a03611eb057611ea082611680565b6001600160a01b03168352611e76565b80601203611ecb57611ec182611a47565b6020840152611e76565b611ee38160071660058111156113c0576113c061200c565b611e76565b6040518061012001604052805f81526020015f6001600160a01b031681526020015f6001600160a01b0316815260200160608152602001611f27611f4e565b81526020015f81526020015f81526020015f6001600160a01b031681526020015f81525090565b60408051808201909152805f8152602001611f99604080516080810182525f818301818152606083018290528252825180840190935280835260208381019190915290919082015290565b905290565b5f5f60208385031215611faf575f5ffd5b823567ffffffffffffffff811115611fc5575f5ffd5b8301601f81018513611fd5575f5ffd5b803567ffffffffffffffff811115611feb575f5ffd5b856020828401011115611ffc575f5ffd5b6020919091019590945092505050565b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52600160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f8261206257634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f600182016120a0576120a0612034565b5060010190565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156120ec575f5ffd5b81518015158114610f4d575f5ffd5b5f6020828403121561210b575f5ffd5b5051919050565b8082018082111561086057610860612034565b5f5f60408385031215612136575f5ffd5b505080516020909101519092909150565b5f60208284031215612157575f5ffd5b81516001600160a01b0381168114610f4d575f5ffdfea26469706673582212203ea6cf12ec9199c5a11647455c72f5c96f5a672dc3d935e6c558b8c9f4d6c10664736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b50604051612250380380612250833981016040819052602b916074565b5f80546001600160a01b039384166001600160a01b0319918216179091556001805492909316911617905560a0565b80516001600160a01b0381168114606f575f5ffd5b919050565b5f5f604083850312156084575f5ffd5b608b83605a565b9150609760208401605a565b90509250929050565b6121a3806100ad5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80634367e45e1461004e57806353fc513f146100635780635fff88c814610091578063ead54c1b146100a4575b5f5ffd5b61006161005c366004611f9e565b6100b7565b005b5f54610075906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61006161009f366004611f9e565b6101a7565b600154610075906001600160a01b031681565b5f6100f683838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061032e92505050565b90505f610105825f0151610443565b6080810151519091505f90818160058111156101235761012361200c565b0361013d57610136838560200151610623565b9150610189565b60018160058111156101515761015161200c565b0361016457610136838560200151610866565b61016d81610ab8565b156101815761013683856020015183610b0b565b610189612020565b8351805160209091012061019e848285610f54565b50505050505050565b5f6101e683838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061130792505050565b90505f6101f5825f01516113d3565b90505f610204825f0151610443565b6080810151602090810151810151810151908401519192508082111561024b5760405163098420c960e11b8152600481019290925260248201526044015b60405180910390fd5b5050825180516020918201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c91909152603c812091850151610295908390611466565b90505f6102af86604001518461146690919063ffffffff16565b905083602001516001600160a01b0316826001600160a01b03161480156102eb575083604001516001600160a01b0316816001600160a01b0316145b6103085760405163b089d34760e01b815260040160405180910390fd5b84518051602091820120908601516103239086908390610f54565b505050505050505050565b60408051808201909152606080825260208201525f61035f83604080518082019091525f8152602081019190915290565b90505f600284516103709190612048565b67ffffffffffffffff81111561038857610388612067565b6040519080825280602002602001820160405280156103b1578160200160208202803683370190505b5090505f805b60208401515184511015610435576103ce8461148e565b905080600a036103e8576103e1846114fd565b85526103b7565b80601203610411575f6103fa856114fd565b600584901b850160200152506001909101906103b7565b6104308160071660058111156104295761042961200c565b85906115a0565b6103b7565b508152602083015250919050565b61044b611ee8565b604080518082019091525f80825260208201849052835161046e90600290612048565b67ffffffffffffffff81111561048657610486612067565b6040519080825280602002602001820160405280156104af578160200160208202803683370190505b5090505f805b60208401515184511015610615576104cc8461148e565b9050806008036104e6576104df8461148e565b85526104b5565b8060120361050a576104f784611680565b6001600160a01b031660208601526104b5565b80601a0361052e5761051b84611680565b6001600160a01b031660408601526104b5565b8060220361055f575f610548610543866114fd565b6116de565b600584901b850160200152506001909101906104b5565b80602a0361058257610578610573856114fd565b611849565b60808601526104b5565b8060300361059d576105938461148e565b60a08601526104b5565b806038036105b8576105ae8461148e565b60c08601526104b5565b806042036105dc576105c984611680565b6001600160a01b031660e08601526104b5565b806048036105f8576105ed8461148e565b6101008601526104b5565b6106108160071660058111156104295761042961200c565b6104b5565b508152606083015250919050565b5f8080805b856060015151811015610839575f8660600151828151811061064c5761064c61207b565b602002602001015190505f60028111156106685761066861200c565b8151600281111561067b5761067b61200c565b036106d65780602001518685815181106106975761069761207b565b602002602001015180519060200120146106c457604051636f43bb6360e01b815260040160405180910390fd5b836106ce8161208f565b945050610830565b6001815160028111156106eb576106eb61200c565b148061070957506002815160028111156107075761070761200c565b145b15610828575f61071882611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda949161074d91906004016120a7565b602060405180830381865afa158015610768573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078c91906120dc565b6107a9576040516340a4167b60e01b815260040160405180910390fd5b60a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb916107d991906004016120a7565b602060405180830381865afa1580156107f4573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081891906120dc565b61082157600194505b5050610830565b610830612020565b50600101610628565b50801561084a575f92505050610860565b8460800151602001516020015160200151925050505b92915050565b5f808080805b866060015151811015610a82575f876060015182815181106108905761089061207b565b602002602001015190505f60028111156108ac576108ac61200c565b815160028111156108bf576108bf61200c565b0361091a5780602001518786815181106108db576108db61207b565b6020026020010151805190602001201461090857604051636f43bb6360e01b815260040160405180910390fd5b846109128161208f565b955050610a79565b60018151600281111561092f5761092f61200c565b148061094d575060028151600281111561094b5761094b61200c565b145b15610a71575f61095c82611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda949161099191906004016120a7565b602060405180830381865afa1580156109ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d091906120dc565b6109ed576040516340a4167b60e01b815260040160405180910390fd5b60a083015160405163ea4ba8eb60e01b8152600197506001600160a01b0383169163ea4ba8eb91610a2191906004016120a7565b602060405180830381865afa158015610a3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6091906120dc565b15610a6a57600194505b5050610a79565b610a79612020565b5060010161086c565b50811580610a8d5750805b15610aad5785608001516020015160200151602001519350505050610860565b5f9350505050610860565b5f6003826005811115610acd57610acd61200c565b1480610aea57506004826005811115610ae857610ae861200c565b145b8061086057506005826005811115610b0457610b0461200c565b1492915050565b5f808080805b876060015151811015610ee6575f88606001518281518110610b3557610b3561207b565b602002602001015190505f6002811115610b5157610b5161200c565b81516002811115610b6457610b6461200c565b03610bbf578060200151888581518110610b8057610b8061207b565b60200260200101518051906020012014610bad57604051636f43bb6360e01b815260040160405180910390fd5b83610bb78161208f565b945050610edd565b600181516002811115610bd457610bd461200c565b1480610bf25750600281516002811115610bf057610bf061200c565b145b15610ed5575f610c0182611910565b6080830151604051632f36f6a560e21b815291925082916001600160a01b0383169163bcdbda9491610c3691906004016120a7565b602060405180830381865afa158015610c51573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7591906120dc565b610c92576040516340a4167b60e01b815260040160405180910390fd5b6003896005811115610ca657610ca661200c565b03610d2b5760a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb91610cdb91906004016120a7565b602060405180830381865afa158015610cf6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d1a91906120fb565b610d249088612112565b9650610eca565b6004896005811115610d3f57610d3f61200c565b03610dbc57610d2487826001600160a01b031663ea4ba8eb8660a001516040518263ffffffff1660e01b8152600401610d7891906120a7565b602060405180830381865afa158015610d93573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610db791906120fb565b6119dc565b6005896005811115610dd057610dd061200c565b03610ec2578415610e5357610d2487826001600160a01b031663ea4ba8eb8660a001516040518263ffffffff1660e01b8152600401610e0f91906120a7565b602060405180830381865afa158015610e2a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4e91906120fb565b6119eb565b60a083015160405163ea4ba8eb60e01b81526001600160a01b0383169163ea4ba8eb91610e8391906004016120a7565b602060405180830381865afa158015610e9e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2491906120fb565b610eca612020565b600194505050610edd565b610edd612020565b50600101610b11565b508015610f365760808701516020908101518101510151839080821115610f295760405163098420c960e11b815260048101929092526024820152604401610242565b5050829350505050610f4d565b866080015160200151602001516020015193505050505b9392505050565b6101008301514690808214610f8557604051630432cec160e31b815260048101929092526024820152604401610242565b505060e08301516001600160a01b03163014610fb4576040516307f12de960e31b815260040160405180910390fd5b60a08301514290811115610fdb5760405163387b2e5560e11b815260040160405180910390fd5b5f610fe684306119fa565b5f80546040516304f61c0b60e31b815260048101849052929350909182916001600160a01b0316906327b0e058906024016040805180830381865afa158015611031573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110559190612125565b91509150805f14806110675750808411155b6110845760405163b03f424d60e01b815260040160405180910390fd5b80156111fe578185116110a9576040516252aa6160e51b815260040160405180910390fd5b86608001516020015160200151602001518503611167575f54604051630e1e354960e41b81526004810188905260248101879052604481018690526001600160a01b039091169063e1e35490906064015f604051808303815f87803b158015611110575f5ffd5b505af1158015611122573d5f5f3e3d5ffd5b505060408051888152602081018890528693507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb179250015b60405180910390a261019e565b5f5460405163f8fb012f60e01b815260048101889052602481018790526001600160a01b039091169063f8fb012f906044015f604051808303815f87803b1580156111b0575f5ffd5b505af11580156111c2573d5f5f3e3d5ffd5b505060408051888152602081018590528693507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb1792500161115a565b5f8760800151602001516020015160200151860361121d57508361125c565b61123a8860c00151866112309190612112565b8960a001516119eb565b90505f811161125c5760405163f728a30560e01b815260040160405180910390fd5b5f54604051630e1e354960e41b81526004810189905260248101889052604481018390526001600160a01b039091169063e1e35490906064015f604051808303815f87803b1580156112ac575f5ffd5b505af11580156112be573d5f5f3e3d5ffd5b505060408051898152602081018590528793507fa87e293885636c5018108e8ee0e41d65206d1dfc0a9066f26f2a91a78b2beb1792500160405180910390a25050505050505050565b61132b60405180606001604052806060815260200160608152602001606081525090565b604080518082019091525f808252602082018490525b602082015151825110156113cc576113588261148e565b905080600a036113725761136b826114fd565b8352611341565b8060120361138d57611383826114fd565b6020840152611341565b80601a036113a85761139e826114fd565b6040840152611341565b6113c78160071660058111156113c0576113c061200c565b83906115a0565b611341565b5050919050565b604080518082018252606081525f6020808301829052835180850190945281845283018490529091905b602082015151825110156113cc576114148261148e565b905080600a0361142e57611427826114fd565b83526113fd565b806012036114495761143f82611a47565b60208401526113fd565b6114618160071660058111156113c0576113c061200c565b6113fd565b5f5f5f5f6114748686611a9d565b9250925092506114848282611ae6565b5090949350505050565b602080820151825181515f938301845b600a81101561004a578284106114b2575f5ffd5b838201515f1a607f8116600783021b969096179560019094019360808110156114f457816009036114e957600281106114e9575f5ffd5b505050935250919050565b5060010161149e565b60605f6115098361148e565b90505f81845f015161151b9190612112565b905083602001515181111561152e575f5ffd5b8167ffffffffffffffff81111561154757611547612067565b6040519080825280601f01601f191660200182016040528015611571576020820181803683370190505b5060208086015186519295509181860191908301015f5b858110156114e9578181015183820152602001611588565b5f8160058111156115b3576115b361200c565b036115c6576115c18261148e565b505050565b60028160058111156115da576115da61200c565b03611611575f6115e98361148e565b905080835f018181516115fc9190612112565b905250602083015151835111156115c1575f5ffd5b60018160058111156116255761162561200c565b03611655576008825f0181815161163c9190612112565b90525060208201515182511115611651575f5ffd5b5050565b60058160058111156116695761166961200c565b0361004a576004825f0181815161163c9190612112565b5f5f61168b8361148e565b905080601414611699575f5ffd5b82516020840151516116ac826014612112565b11156116b6575f5ffd5b6020808501518281019091015160601c93506116d3826014612112565b909452509092915050565b61171d6040805160c08101909152805f81526020015f81526020015f6001600160a01b031681526020015f815260200160608152602001606081525090565b604080518082019091525f808252602082018490525b602082015151825110156113cc5761174a8261148e565b90508060080361179c5761175d8261148e565b600281111561176e5761176e61200c565b839060028111156117815761178161200c565b908160028111156117945761179461200c565b905250611733565b806012036117b7576117ad82611b9e565b6020840152611733565b80601a036117db576117c882611680565b6001600160a01b03166040840152611733565b806022036117f6576117ec82611b9e565b6060840152611733565b80602a0361181157611807826114fd565b6080840152611733565b8060320361182c57611822826114fd565b60a0840152611733565b6118448160071660058111156113c0576113c061200c565b611733565b611851611f4e565b604080518082019091525f808252602082018490525b602082015151825110156113cc5761187e8261148e565b9050806008036118d0576118918261148e565b60058111156118a2576118a261200c565b839060058111156118b5576118b561200c565b908160058111156118c8576118c861200c565b905250611867565b806012036118f3576118e96118e4836114fd565b611bf0565b6020840152611867565b61190b8160071660058111156113c0576113c061200c565b611867565b5f6001825160028111156119265761192661200c565b0361193357506040015190565b6002825160028111156119485761194861200c565b036119c3576001546060830151604051635c23bdf560e01b81526001600160a01b0390921691635c23bdf5916119849160040190815260200190565b602060405180830381865afa15801561199f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108609190612147565b604051631491062960e31b815260040160405180910390fd5b5f828218828411028218610f4d565b5f828218828410028218610f4d565b5f8282604051602001611a2992919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b5f5f611a528361148e565b90506020811115611a61575f5ffd5b82515f611a6e8383612112565b9050846020015151811115611a81575f5ffd5b602080860151929092018201519452036008029190911c919050565b5f5f5f8351604103611ad4576020840151604085015160608601515f1a611ac688828585611cb0565b955095509550505050611adf565b505081515f91506002905b9250925092565b5f826003811115611af957611af961200c565b03611b02575050565b6001826003811115611b1657611b1661200c565b03611b345760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611b4857611b4861200c565b03611b695760405163fce698f760e01b815260048101829052602401610242565b6003826003811115611b7d57611b7d61200c565b03611651576040516335e2f38360e21b815260048101829052602401610242565b5f5f611ba98361148e565b905080602014611bb7575f5ffd5b82516020808501515190611bcc908390612112565b1115611bd6575f5ffd5b6020808501518281018201519450906116d3908390612112565b604080516080810182525f81830181815260608301829052825282518084018452818152602080820183905280840191909152835180850190945281845283018490529091905b602082015151825110156113cc57611c4e8261148e565b905080600a03611c7057611c69611c64836114fd565b611d78565b8352611c37565b80601203611c9357611c89611c84836114fd565b611e4d565b6020840152611c37565b611cab8160071660058111156113c0576113c061200c565b611c37565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611ce957505f91506003905082611d6e565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611d3a573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b038116611d6557505f925060019150829050611d6e565b92505f91508190505b9450945094915050565b604080518082019091525f8082526020820152604080518082019091525f80825260208201849052505f5b602082015151825110156113cc57611dba8261148e565b905080600803611e0c57611dcd8261148e565b6002811115611dde57611dde61200c565b83906002811115611df157611df161200c565b90816002811115611e0457611e0461200c565b905250611da3565b80601203611e3057611e1d82611680565b6001600160a01b03166020840152611da3565b611e488160071660058111156113c0576113c061200c565b611da3565b6040805180820182525f8082526020808301829052835180850190945281845283018490529091905b602082015151825110156113cc57611e8d8261148e565b905080600a03611eb057611ea082611680565b6001600160a01b03168352611e76565b80601203611ecb57611ec182611a47565b6020840152611e76565b611ee38160071660058111156113c0576113c061200c565b611e76565b6040518061012001604052805f81526020015f6001600160a01b031681526020015f6001600160a01b0316815260200160608152602001611f27611f4e565b81526020015f81526020015f81526020015f6001600160a01b031681526020015f81525090565b60408051808201909152805f8152602001611f99604080516080810182525f818301818152606083018290528252825180840190935280835260208381019190915290919082015290565b905290565b5f5f60208385031215611faf575f5ffd5b823567ffffffffffffffff811115611fc5575f5ffd5b8301601f81018513611fd5575f5ffd5b803567ffffffffffffffff811115611feb575f5ffd5b856020828401011115611ffc575f5ffd5b6020919091019590945092505050565b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52600160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f8261206257634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f600182016120a0576120a0612034565b5060010190565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156120ec575f5ffd5b81518015158114610f4d575f5ffd5b5f6020828403121561210b575f5ffd5b5051919050565b8082018082111561086057610860612034565b5f5f60408385031215612136575f5ffd5b505080516020909101519092909150565b5f60208284031215612157575f5ffd5b81516001600160a01b0381168114610f4d575f5ffdfea26469706673582212203eed019bbfc63e5ce293334ef4a9bea897631b61e8e196f74d5f140f49245fb864736f6c634300081e0033", } // PayResolverABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/routerregistry/routerregistry.go b/chain/channel-eth-go/routerregistry/routerregistry.go index 206545c..a20771d 100644 --- a/chain/channel-eth-go/routerregistry/routerregistry.go +++ b/chain/channel-eth-go/routerregistry/routerregistry.go @@ -33,7 +33,7 @@ var ( // RouterRegistryMetaData contains all meta data concerning the RouterRegistry contract. var RouterRegistryMetaData = &bind.MetaData{ ABI: "[{\"type\":\"function\",\"name\":\"deregisterRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"refreshRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"registerRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"routerInfo\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"RouterUpdated\",\"inputs\":[{\"name\":\"op\",\"type\":\"uint8\",\"indexed\":true,\"internalType\":\"enumIRouterRegistry.RouterOperation\"},{\"name\":\"routerAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"RouterAlreadyRegistered\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"RouterNotRegistered\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b506101ef8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c806324f277d21461004e5780632ff0282b146100585780637880945614610060578063d1cf70d114610091575b5f5ffd5b610056610099565b005b610056610102565b61007f61006e36600461018c565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b610056610148565b335f90815260208190526040902054156100c657604051633ba24ff960e11b815260040160405180910390fd5b335f8181526020819052604081204290555b6040517fed739f5df64012854c2039ba144af8e3af26211fc7f10a959c6a592ae58c4491905f90a3565b335f908152602081905260408120549003610130576040516315812c6160e11b815260040160405180910390fd5b335f81815260208190526040902042905560026100d8565b335f908152602081905260408120549003610176576040516315812c6160e11b815260040160405180910390fd5b335f8181526020819052604081205560016100d8565b5f6020828403121561019c575f5ffd5b81356001600160a01b03811681146101b2575f5ffd5b939250505056fea2646970667358221220c1173d557352a367c9a8f980f16d1e8ff288a407c589f0293ef5f4c317aab39164736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b506101ef8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c806324f277d21461004e5780632ff0282b146100585780637880945614610060578063d1cf70d114610091575b5f5ffd5b610056610099565b005b610056610102565b61007f61006e36600461018c565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b610056610148565b335f90815260208190526040902054156100c657604051633ba24ff960e11b815260040160405180910390fd5b335f8181526020819052604081204290555b6040517fed739f5df64012854c2039ba144af8e3af26211fc7f10a959c6a592ae58c4491905f90a3565b335f908152602081905260408120549003610130576040516315812c6160e11b815260040160405180910390fd5b335f81815260208190526040902042905560026100d8565b335f908152602081905260408120549003610176576040516315812c6160e11b815260040160405180910390fd5b335f8181526020819052604081205560016100d8565b5f6020828403121561019c575f5ffd5b81356001600160a01b03811681146101b2575f5ffd5b939250505056fea2646970667358221220940adbd524bc143f622dc5d98f54af5f299dc8ea70c00eecd0996ea649e6aea164736f6c634300081e0033", } // RouterRegistryABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/virtresolver/virtresolver.go b/chain/channel-eth-go/virtresolver/virtresolver.go index 4fc90fa..c154581 100644 --- a/chain/channel-eth-go/virtresolver/virtresolver.go +++ b/chain/channel-eth-go/virtresolver/virtresolver.go @@ -33,7 +33,7 @@ var ( // VirtContractResolverMetaData contains all meta data concerning the VirtContractResolver contract. var VirtContractResolverMetaData = &bind.MetaData{ ABI: "[{\"type\":\"function\",\"name\":\"deploy\",\"inputs\":[{\"name\":\"_code\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"_nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"resolve\",\"inputs\":[{\"name\":\"_virtAddr\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"Deploy\",\"inputs\":[{\"name\":\"virtAddr\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"CreateContractFailed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"VirtAddressOccupied\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"VirtAddressUnresolved\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b506102d28061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80635c23bdf5146100385780639c4ae2d014610068575b5f5ffd5b61004b610046366004610201565b61008b565b6040516001600160a01b0390911681526020015b60405180910390f35b61007b610076366004610218565b6100da565b604051901515815260200161005f565b5f818152602081905260408120546001600160a01b03166100bf5760405163c405fe3f60e01b815260040160405180910390fd5b505f908152602081905260409020546001600160a01b031690565b5f5f8484846040516020016100f19392919061028a565b6040516020818303038152906040528051906020012090505f85858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250868152602081905260409020549394505050506001600160a01b0316156101755760405163f57a482960e01b815260040160405180910390fd5b5f8151602083015ff090506001600160a01b0381166101a757604051635158948b60e01b815260040160405180910390fd5b5f8381526020819052604080822080546001600160a01b0319166001600160a01b0385161790555184917f149208daa30a9306858cc9c171c3510e0e50ab5d59ed2027a37a728430dd02e491a25060019695505050505050565b5f60208284031215610211575f5ffd5b5035919050565b5f5f5f6040848603121561022a575f5ffd5b833567ffffffffffffffff811115610240575f5ffd5b8401601f81018613610250575f5ffd5b803567ffffffffffffffff811115610266575f5ffd5b866020828401011115610277575f5ffd5b6020918201979096509401359392505050565b8284823790910190815260200191905056fea2646970667358221220ea66b3524774a14ad414aac6c9f17aa645e496844a4a3e425077631349919ca764736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b506102d28061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80635c23bdf5146100385780639c4ae2d014610068575b5f5ffd5b61004b610046366004610201565b61008b565b6040516001600160a01b0390911681526020015b60405180910390f35b61007b610076366004610218565b6100da565b604051901515815260200161005f565b5f818152602081905260408120546001600160a01b03166100bf5760405163c405fe3f60e01b815260040160405180910390fd5b505f908152602081905260409020546001600160a01b031690565b5f5f8484846040516020016100f19392919061028a565b6040516020818303038152906040528051906020012090505f85858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250868152602081905260409020549394505050506001600160a01b0316156101755760405163f57a482960e01b815260040160405180910390fd5b5f8151602083015ff090506001600160a01b0381166101a757604051635158948b60e01b815260040160405180910390fd5b5f8381526020819052604080822080546001600160a01b0319166001600160a01b0385161790555184917f149208daa30a9306858cc9c171c3510e0e50ab5d59ed2027a37a728430dd02e491a25060019695505050505050565b5f60208284031215610211575f5ffd5b5035919050565b5f5f5f6040848603121561022a575f5ffd5b833567ffffffffffffffff811115610240575f5ffd5b8401601f81018613610250575f5ffd5b803567ffffffffffffffff811115610266575f5ffd5b866020828401011115610277575f5ffd5b6020918201979096509401359392505050565b8284823790910190815260200191905056fea26469706673582212201f2144f6fa5685723db4518c2be5cb6414bce6214ad01209f687b610d8b4021a64736f6c634300081e0033", } // VirtContractResolverABI is the input ABI used to generate the binding from. diff --git a/chain/channel-eth-go/wallet/wallet.go b/chain/channel-eth-go/wallet/wallet.go index 8a232a8..68cd628 100644 --- a/chain/channel-eth-go/wallet/wallet.go +++ b/chain/channel-eth-go/wallet/wallet.go @@ -30,23 +30,23 @@ var ( _ = abi.ConvertType ) -// CelerWalletMetaData contains all meta data concerning the CelerWallet contract. -var CelerWalletMetaData = &bind.MetaData{ +// AgentPayWalletMetaData contains all meta data concerning the AgentPayWallet contract. +var AgentPayWalletMetaData = &bind.MetaData{ ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"MAX_OWNERS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_tokenAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"create\",\"inputs\":[{\"name\":\"_owners\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_nonce\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"depositERC20\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_tokenAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"depositNative\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"drainToken\",\"inputs\":[{\"name\":\"_tokenAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"hasVoted\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"paused\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pendingOperator\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferBetweenWallets\",\"inputs\":[{\"name\":\"_fromWalletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_toWalletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_tokenAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOperatorship\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_newOperator\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unpause\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"voteForOperator\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_candidate\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"walletCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"walletOperator\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"walletOwners\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdraw\",\"inputs\":[{\"name\":\"_walletId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"_tokenAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Deposited\",\"inputs\":[{\"name\":\"walletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OperatorChanged\",\"inputs\":[{\"name\":\"walletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"oldOperator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOperator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OperatorVoted\",\"inputs\":[{\"name\":\"walletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"candidate\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"voter\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Paused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TokenDrained\",\"inputs\":[{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TransferredBetweenWallets\",\"inputs\":[{\"name\":\"fromWalletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"toWalletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Unpaused\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"WalletCreated\",\"inputs\":[{\"name\":\"walletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"owners\",\"type\":\"address[]\",\"indexed\":true,\"internalType\":\"address[]\"},{\"name\":\"operator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Withdrawn\",\"inputs\":[{\"name\":\"walletId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"tokenAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"EnforcedPause\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ExpectedPause\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NativeTransferFailed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotOperator\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotWalletOwner\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"TooManyOwners\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WalletIdOccupied\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ZeroAddress\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b503380603357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b603a81603f565b506097565b5f80546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b61137d806100a45f395ff3fe608060405260043610610126575f3560e01c80638e0cc176116100a8578063bfa2c1d21161006d578063bfa2c1d214610324578063c108bb4014610343578063c203823614610362578063d23856f6146103a6578063e89a62ee146103c5578063f2fde38b146103e4575f5ffd5b80638e0cc176146102595780639dfaff8f14610278578063a0c89a8c146102af578063aadc3b72146102ce578063aee2e989146102ed575f5ffd5b80635c975abb116100ee5780635c975abb146101ae578063628c40eb146101d0578063715018a6146101fc5780638456cb59146102105780638da5cb5b14610224575f5ffd5b80630b8bb1461461012a5780630d63a1fd1461015157806329b57c69146101705780633f4ba83a1461018557806342ef5fbb1461019b575b5f5ffd5b348015610135575f5ffd5b5061013e600a81565b6040519081526020015b60405180910390f35b34801561015c575f5ffd5b5061013e61016b366004611093565b610403565b34801561017b575f5ffd5b5061013e60015481565b348015610190575f5ffd5b50610199610571565b005b6101996101a936600461111a565b610583565b3480156101b9575f5ffd5b505f5460ff165b6040519015158152602001610148565b3480156101db575f5ffd5b506101ef6101ea36600461111a565b6105f7565b6040516101489190611131565b348015610207575f5ffd5b50610199610660565b34801561021b575f5ffd5b50610199610671565b34801561022f575f5ffd5b505f5461010090046001600160a01b03165b6040516001600160a01b039091168152602001610148565b348015610264575f5ffd5b5061019961027336600461117c565b610681565b348015610283575f5ffd5b5061024161029236600461111a565b5f908152600260205260409020600301546001600160a01b031690565b3480156102ba575f5ffd5b506101996102c93660046111bd565b61073b565b3480156102d9575f5ffd5b506101c06102e83660046111bd565b61075c565b3480156102f8575f5ffd5b5061024161030736600461111a565b5f908152600260205260409020600101546001600160a01b031690565b34801561032f575f5ffd5b5061019961033e3660046111e7565b61078b565b34801561034e575f5ffd5b5061019961035d366004611221565b6107f3565b34801561036d575f5ffd5b5061013e61037c3660046111bd565b5f8281526002602081815260408084206001600160a01b0386168552909201905290205492915050565b3480156103b1575f5ffd5b506101996103c0366004611243565b610888565b3480156103d0575f5ffd5b506101996103df3660046111bd565b610978565b3480156103ef575f5ffd5b506101996103fe36600461128d565b610a63565b5f61040c610aa5565b6001600160a01b0383166104335760405163d92e233d60e01b815260040160405180910390fd5b600a84111561045557604051631785167360e21b815260040160405180910390fd5b60408051466020808301919091526bffffffffffffffffffffffff1930606090811b82168486015233901b166054830152606880830186905283518084039091018152608890920183528151918101919091205f818152600290925291902060018101546001600160a01b0316156104e057604051633ce274d560e21b815260040160405180910390fd5b6104eb818888611003565b50600181810180546001600160a01b0319166001600160a01b0388161790558054905f610517836112c1565b9190505550846001600160a01b031687876040516105369291906112d9565b6040519081900381209084907f8c665d417fd8d3d60d702a3d19dc8184b038e82487203ff32011555beb6cad90905f90a45095945050505050565b610579610ac8565b610581610afa565b565b61058b610aa5565b5f81815260026020818152604080842084805290920190528120805434928392916105b790849061130d565b90915550506040518181525f9083907f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9060200160405180910390a35050565b5f8181526002602090815260409182902080548351818402810184019094528084526060939283018282801561065457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610636575b50505050509050919050565b610668610ac8565b6105815f610b4b565b610679610ac8565b610581610ba3565b610689610aa5565b8361069381610bdf565b848361069f8282610c18565b5f8781526002602081815260408084206001600160a01b038b1685529092019052812080548692906106d2908490611320565b92505081905550846001600160a01b0316866001600160a01b0316887fa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb8760405161071f91815260200190565b60405180910390a4610732868686610c43565b50505050505050565b610743610aa5565b8161074d81610bdf565b6107578383610cdb565b505050565b5f8281526002602090815260408083206001600160a01b038516845260040190915290205460ff165b92915050565b610793610da1565b61079b610ac8565b816001600160a01b0316836001600160a01b03167fb9f4fab3dc87425962ebb52a84543eb50c90a808609ee6967a38308d6119c4bc836040516107e091815260200190565b60405180910390a3610757838383610c43565b6107fb610aa5565b5f8381526002602081815260408084206001600160a01b038716855290920190528120805483929061082e90849061130d565b90915550506040518181526001600160a01b0383169084907f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9060200160405180910390a36107576001600160a01b038316333084610dc3565b610890610aa5565b8461089a81610bdf565b85836108a68282610c18565b86856108b28282610c18565b5f8a81526002602081815260408084206001600160a01b038d1685529092019052812080548892906108e5908490611320565b90915550505f8981526002602081815260408084206001600160a01b038d16855290920190528120805488929061091d90849061130d565b9091555050604080516001600160a01b038981168252602082018990528a16918b918d917f181fa219f874a081d83f85e8c9afdc32ede9e7cc757b9537f9cd04f3417a6130910160405180910390a450505050505050505050565b81336109848282610c18565b6001600160a01b0383166109ab5760405163d92e233d60e01b815260040160405180910390fd5b5f84815260026020526040902060038101546001600160a01b038581169116146109f6576109d881610e2a565b6003810180546001600160a01b0319166001600160a01b0386161790555b335f818152600483016020526040808220805460ff19166001179055516001600160a01b0387169188917f9797c1a8248e0833cb5344fa29eb39f2de9bd4824b8ffa5d85faaed75d24e9ef9190a4610a4d81610e8b565b15610a5c57610a5c8585610cdb565b5050505050565b610a6b610ac8565b6001600160a01b038116610a9957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa281610b4b565b50565b5f5460ff16156105815760405163d93c066560e01b815260040160405180910390fd5b5f546001600160a01b036101009091041633146105815760405163118cdaa760e01b8152336004820152602401610a90565b610b02610da1565b5f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b5f80546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b610bab610aa5565b5f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b2e3390565b5f818152600260205260409020600101546001600160a01b03163314610aa257604051631f0853c160e21b815260040160405180910390fd5b610c228282610efc565b610c3f57604051633101cebf60e21b815260040160405180910390fd5b5050565b6001600160a01b038316610cc7575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610c9a576040519150601f19603f3d011682016040523d82523d5f602084013e610c9f565b606091505b5050905080610cc157604051633d2cec6f60e21b815260040160405180910390fd5b50505050565b6107576001600160a01b0384168383610f66565b6001600160a01b038116610d025760405163d92e233d60e01b815260040160405180910390fd5b5f8281526002602052604090206001810180546001600160a01b038481166001600160a01b03198316179092556003830154908216911615610d5a57610d4782610e2a565b6003820180546001600160a01b03191690555b826001600160a01b0316816001600160a01b0316857fca740bd5cca56b72a44eb89e8a703e2e1269576576b5b5ce52a1ba317d20d78d60405160405180910390a450505050565b5f5460ff1661058157604051638dfc202b60e01b815260040160405180910390fd5b6040516001600160a01b038481166024830152838116604483015260648201839052610cc19186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610f97565b80545f5b81811015610757575f836004015f855f018481548110610e5057610e50611333565b5f918252602080832091909101546001600160a01b031683528201929092526040019020805460ff1916911515919091179055600101610e2e565b80545f90815b81811015610ef257836004015f855f018381548110610eb257610eb2611333565b5f9182526020808320909101546001600160a01b0316835282019290925260400181205460ff1615159003610eea57505f9392505050565b600101610e91565b5060019392505050565b5f8281526002602052604081208054825b81811015610f5b57825f018181548110610f2957610f29611333565b5f918252602090912001546001600160a01b0390811690861603610f535760019350505050610785565b600101610f0d565b505f95945050505050565b6040516001600160a01b0383811660248301526044820183905261075791859182169063a9059cbb90606401610df8565b5f5f60205f8451602086015f885af180610fb6576040513d5f823e3d81fd5b50505f513d91508115610fcd578060011415610fda565b6001600160a01b0384163b155b15610cc157604051635274afe760e01b81526001600160a01b0385166004820152602401610a90565b828054828255905f5260205f20908101928215611054579160200282015b828111156110545781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611021565b50611060929150611064565b5090565b5b80821115611060575f8155600101611065565b80356001600160a01b038116811461108e575f5ffd5b919050565b5f5f5f5f606085870312156110a6575f5ffd5b843567ffffffffffffffff8111156110bc575f5ffd5b8501601f810187136110cc575f5ffd5b803567ffffffffffffffff8111156110e2575f5ffd5b8760208260051b84010111156110f6575f5ffd5b60209182019550935061110a908601611078565b9396929550929360400135925050565b5f6020828403121561112a575f5ffd5b5035919050565b602080825282518282018190525f918401906040840190835b818110156111715783516001600160a01b031683526020938401939092019160010161114a565b509095945050505050565b5f5f5f5f6080858703121561118f575f5ffd5b8435935061119f60208601611078565b92506111ad60408601611078565b9396929550929360600135925050565b5f5f604083850312156111ce575f5ffd5b823591506111de60208401611078565b90509250929050565b5f5f5f606084860312156111f9575f5ffd5b61120284611078565b925061121060208501611078565b929592945050506040919091013590565b5f5f5f60608486031215611233575f5ffd5b8335925061121060208501611078565b5f5f5f5f5f60a08688031215611257575f5ffd5b853594506020860135935061126e60408701611078565b925061127c60608701611078565b949793965091946080013592915050565b5f6020828403121561129d575f5ffd5b6112a682611078565b9392505050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016112d2576112d26112ad565b5060010190565b5f8184825b85811015611171576001600160a01b036112f783611078565b16835260209283019291909101906001016112de565b80820180821115610785576107856112ad565b81810381811115610785576107856112ad565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220f158f0d308786b8493ebf4e58e90818aa0f3dc99af4c42bd0f995acd49590a5464736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b503380603357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b603a81603f565b506097565b5f80546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b61137d806100a45f395ff3fe608060405260043610610126575f3560e01c80638e0cc176116100a8578063bfa2c1d21161006d578063bfa2c1d214610324578063c108bb4014610343578063c203823614610362578063d23856f6146103a6578063e89a62ee146103c5578063f2fde38b146103e4575f5ffd5b80638e0cc176146102595780639dfaff8f14610278578063a0c89a8c146102af578063aadc3b72146102ce578063aee2e989146102ed575f5ffd5b80635c975abb116100ee5780635c975abb146101ae578063628c40eb146101d0578063715018a6146101fc5780638456cb59146102105780638da5cb5b14610224575f5ffd5b80630b8bb1461461012a5780630d63a1fd1461015157806329b57c69146101705780633f4ba83a1461018557806342ef5fbb1461019b575b5f5ffd5b348015610135575f5ffd5b5061013e600a81565b6040519081526020015b60405180910390f35b34801561015c575f5ffd5b5061013e61016b366004611093565b610403565b34801561017b575f5ffd5b5061013e60015481565b348015610190575f5ffd5b50610199610571565b005b6101996101a936600461111a565b610583565b3480156101b9575f5ffd5b505f5460ff165b6040519015158152602001610148565b3480156101db575f5ffd5b506101ef6101ea36600461111a565b6105f7565b6040516101489190611131565b348015610207575f5ffd5b50610199610660565b34801561021b575f5ffd5b50610199610671565b34801561022f575f5ffd5b505f5461010090046001600160a01b03165b6040516001600160a01b039091168152602001610148565b348015610264575f5ffd5b5061019961027336600461117c565b610681565b348015610283575f5ffd5b5061024161029236600461111a565b5f908152600260205260409020600301546001600160a01b031690565b3480156102ba575f5ffd5b506101996102c93660046111bd565b61073b565b3480156102d9575f5ffd5b506101c06102e83660046111bd565b61075c565b3480156102f8575f5ffd5b5061024161030736600461111a565b5f908152600260205260409020600101546001600160a01b031690565b34801561032f575f5ffd5b5061019961033e3660046111e7565b61078b565b34801561034e575f5ffd5b5061019961035d366004611221565b6107f3565b34801561036d575f5ffd5b5061013e61037c3660046111bd565b5f8281526002602081815260408084206001600160a01b0386168552909201905290205492915050565b3480156103b1575f5ffd5b506101996103c0366004611243565b610888565b3480156103d0575f5ffd5b506101996103df3660046111bd565b610978565b3480156103ef575f5ffd5b506101996103fe36600461128d565b610a63565b5f61040c610aa5565b6001600160a01b0383166104335760405163d92e233d60e01b815260040160405180910390fd5b600a84111561045557604051631785167360e21b815260040160405180910390fd5b60408051466020808301919091526bffffffffffffffffffffffff1930606090811b82168486015233901b166054830152606880830186905283518084039091018152608890920183528151918101919091205f818152600290925291902060018101546001600160a01b0316156104e057604051633ce274d560e21b815260040160405180910390fd5b6104eb818888611003565b50600181810180546001600160a01b0319166001600160a01b0388161790558054905f610517836112c1565b9190505550846001600160a01b031687876040516105369291906112d9565b6040519081900381209084907f8c665d417fd8d3d60d702a3d19dc8184b038e82487203ff32011555beb6cad90905f90a45095945050505050565b610579610ac8565b610581610afa565b565b61058b610aa5565b5f81815260026020818152604080842084805290920190528120805434928392916105b790849061130d565b90915550506040518181525f9083907f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9060200160405180910390a35050565b5f8181526002602090815260409182902080548351818402810184019094528084526060939283018282801561065457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610636575b50505050509050919050565b610668610ac8565b6105815f610b4b565b610679610ac8565b610581610ba3565b610689610aa5565b8361069381610bdf565b848361069f8282610c18565b5f8781526002602081815260408084206001600160a01b038b1685529092019052812080548692906106d2908490611320565b92505081905550846001600160a01b0316866001600160a01b0316887fa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb8760405161071f91815260200190565b60405180910390a4610732868686610c43565b50505050505050565b610743610aa5565b8161074d81610bdf565b6107578383610cdb565b505050565b5f8281526002602090815260408083206001600160a01b038516845260040190915290205460ff165b92915050565b610793610da1565b61079b610ac8565b816001600160a01b0316836001600160a01b03167fb9f4fab3dc87425962ebb52a84543eb50c90a808609ee6967a38308d6119c4bc836040516107e091815260200190565b60405180910390a3610757838383610c43565b6107fb610aa5565b5f8381526002602081815260408084206001600160a01b038716855290920190528120805483929061082e90849061130d565b90915550506040518181526001600160a01b0383169084907f87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b9060200160405180910390a36107576001600160a01b038316333084610dc3565b610890610aa5565b8461089a81610bdf565b85836108a68282610c18565b86856108b28282610c18565b5f8a81526002602081815260408084206001600160a01b038d1685529092019052812080548892906108e5908490611320565b90915550505f8981526002602081815260408084206001600160a01b038d16855290920190528120805488929061091d90849061130d565b9091555050604080516001600160a01b038981168252602082018990528a16918b918d917f181fa219f874a081d83f85e8c9afdc32ede9e7cc757b9537f9cd04f3417a6130910160405180910390a450505050505050505050565b81336109848282610c18565b6001600160a01b0383166109ab5760405163d92e233d60e01b815260040160405180910390fd5b5f84815260026020526040902060038101546001600160a01b038581169116146109f6576109d881610e2a565b6003810180546001600160a01b0319166001600160a01b0386161790555b335f818152600483016020526040808220805460ff19166001179055516001600160a01b0387169188917f9797c1a8248e0833cb5344fa29eb39f2de9bd4824b8ffa5d85faaed75d24e9ef9190a4610a4d81610e8b565b15610a5c57610a5c8585610cdb565b5050505050565b610a6b610ac8565b6001600160a01b038116610a9957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa281610b4b565b50565b5f5460ff16156105815760405163d93c066560e01b815260040160405180910390fd5b5f546001600160a01b036101009091041633146105815760405163118cdaa760e01b8152336004820152602401610a90565b610b02610da1565b5f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b5f80546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b610bab610aa5565b5f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b2e3390565b5f818152600260205260409020600101546001600160a01b03163314610aa257604051631f0853c160e21b815260040160405180910390fd5b610c228282610efc565b610c3f57604051633101cebf60e21b815260040160405180910390fd5b5050565b6001600160a01b038316610cc7575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610c9a576040519150601f19603f3d011682016040523d82523d5f602084013e610c9f565b606091505b5050905080610cc157604051633d2cec6f60e21b815260040160405180910390fd5b50505050565b6107576001600160a01b0384168383610f66565b6001600160a01b038116610d025760405163d92e233d60e01b815260040160405180910390fd5b5f8281526002602052604090206001810180546001600160a01b038481166001600160a01b03198316179092556003830154908216911615610d5a57610d4782610e2a565b6003820180546001600160a01b03191690555b826001600160a01b0316816001600160a01b0316857fca740bd5cca56b72a44eb89e8a703e2e1269576576b5b5ce52a1ba317d20d78d60405160405180910390a450505050565b5f5460ff1661058157604051638dfc202b60e01b815260040160405180910390fd5b6040516001600160a01b038481166024830152838116604483015260648201839052610cc19186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610f97565b80545f5b81811015610757575f836004015f855f018481548110610e5057610e50611333565b5f918252602080832091909101546001600160a01b031683528201929092526040019020805460ff1916911515919091179055600101610e2e565b80545f90815b81811015610ef257836004015f855f018381548110610eb257610eb2611333565b5f9182526020808320909101546001600160a01b0316835282019290925260400181205460ff1615159003610eea57505f9392505050565b600101610e91565b5060019392505050565b5f8281526002602052604081208054825b81811015610f5b57825f018181548110610f2957610f29611333565b5f918252602090912001546001600160a01b0390811690861603610f535760019350505050610785565b600101610f0d565b505f95945050505050565b6040516001600160a01b0383811660248301526044820183905261075791859182169063a9059cbb90606401610df8565b5f5f60205f8451602086015f885af180610fb6576040513d5f823e3d81fd5b50505f513d91508115610fcd578060011415610fda565b6001600160a01b0384163b155b15610cc157604051635274afe760e01b81526001600160a01b0385166004820152602401610a90565b828054828255905f5260205f20908101928215611054579160200282015b828111156110545781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611021565b50611060929150611064565b5090565b5b80821115611060575f8155600101611065565b80356001600160a01b038116811461108e575f5ffd5b919050565b5f5f5f5f606085870312156110a6575f5ffd5b843567ffffffffffffffff8111156110bc575f5ffd5b8501601f810187136110cc575f5ffd5b803567ffffffffffffffff8111156110e2575f5ffd5b8760208260051b84010111156110f6575f5ffd5b60209182019550935061110a908601611078565b9396929550929360400135925050565b5f6020828403121561112a575f5ffd5b5035919050565b602080825282518282018190525f918401906040840190835b818110156111715783516001600160a01b031683526020938401939092019160010161114a565b509095945050505050565b5f5f5f5f6080858703121561118f575f5ffd5b8435935061119f60208601611078565b92506111ad60408601611078565b9396929550929360600135925050565b5f5f604083850312156111ce575f5ffd5b823591506111de60208401611078565b90509250929050565b5f5f5f606084860312156111f9575f5ffd5b61120284611078565b925061121060208501611078565b929592945050506040919091013590565b5f5f5f60608486031215611233575f5ffd5b8335925061121060208501611078565b5f5f5f5f5f60a08688031215611257575f5ffd5b853594506020860135935061126e60408701611078565b925061127c60608701611078565b949793965091946080013592915050565b5f6020828403121561129d575f5ffd5b6112a682611078565b9392505050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016112d2576112d26112ad565b5060010190565b5f8184825b85811015611171576001600160a01b036112f783611078565b16835260209283019291909101906001016112de565b80820180821115610785576107856112ad565b81810381811115610785576107856112ad565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220045c53c17643da6f79ff0e699d955a0f9697d96453e23d01cd2a87354438f42064736f6c634300081e0033", } -// CelerWalletABI is the input ABI used to generate the binding from. -// Deprecated: Use CelerWalletMetaData.ABI instead. -var CelerWalletABI = CelerWalletMetaData.ABI +// AgentPayWalletABI is the input ABI used to generate the binding from. +// Deprecated: Use AgentPayWalletMetaData.ABI instead. +var AgentPayWalletABI = AgentPayWalletMetaData.ABI -// CelerWalletBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use CelerWalletMetaData.Bin instead. -var CelerWalletBin = CelerWalletMetaData.Bin +// AgentPayWalletBin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use AgentPayWalletMetaData.Bin instead. +var AgentPayWalletBin = AgentPayWalletMetaData.Bin -// DeployCelerWallet deploys a new Ethereum contract, binding an instance of CelerWallet to it. -func DeployCelerWallet(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *CelerWallet, error) { - parsed, err := CelerWalletMetaData.GetAbi() +// DeployAgentPayWallet deploys a new Ethereum contract, binding an instance of AgentPayWallet to it. +func DeployAgentPayWallet(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AgentPayWallet, error) { + parsed, err := AgentPayWalletMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } @@ -54,111 +54,111 @@ func DeployCelerWallet(auth *bind.TransactOpts, backend bind.ContractBackend) (c return common.Address{}, nil, nil, errors.New("GetABI returned nil") } - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(CelerWalletBin), backend) + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AgentPayWalletBin), backend) if err != nil { return common.Address{}, nil, nil, err } - return address, tx, &CelerWallet{CelerWalletCaller: CelerWalletCaller{contract: contract}, CelerWalletTransactor: CelerWalletTransactor{contract: contract}, CelerWalletFilterer: CelerWalletFilterer{contract: contract}}, nil + return address, tx, &AgentPayWallet{AgentPayWalletCaller: AgentPayWalletCaller{contract: contract}, AgentPayWalletTransactor: AgentPayWalletTransactor{contract: contract}, AgentPayWalletFilterer: AgentPayWalletFilterer{contract: contract}}, nil } -// CelerWallet is an auto generated Go binding around an Ethereum contract. -type CelerWallet struct { - CelerWalletCaller // Read-only binding to the contract - CelerWalletTransactor // Write-only binding to the contract - CelerWalletFilterer // Log filterer for contract events +// AgentPayWallet is an auto generated Go binding around an Ethereum contract. +type AgentPayWallet struct { + AgentPayWalletCaller // Read-only binding to the contract + AgentPayWalletTransactor // Write-only binding to the contract + AgentPayWalletFilterer // Log filterer for contract events } -// CelerWalletCaller is an auto generated read-only Go binding around an Ethereum contract. -type CelerWalletCaller struct { +// AgentPayWalletCaller is an auto generated read-only Go binding around an Ethereum contract. +type AgentPayWalletCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerWalletTransactor is an auto generated write-only Go binding around an Ethereum contract. -type CelerWalletTransactor struct { +// AgentPayWalletTransactor is an auto generated write-only Go binding around an Ethereum contract. +type AgentPayWalletTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerWalletFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type CelerWalletFilterer struct { +// AgentPayWalletFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type AgentPayWalletFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } -// CelerWalletSession is an auto generated Go binding around an Ethereum contract, +// AgentPayWalletSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. -type CelerWalletSession struct { - Contract *CelerWallet // Generic contract binding to set the session for +type AgentPayWalletSession struct { + Contract *AgentPayWallet // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// CelerWalletCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// AgentPayWalletCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. -type CelerWalletCallerSession struct { - Contract *CelerWalletCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session +type AgentPayWalletCallerSession struct { + Contract *AgentPayWalletCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session } -// CelerWalletTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// AgentPayWalletTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. -type CelerWalletTransactorSession struct { - Contract *CelerWalletTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +type AgentPayWalletTransactorSession struct { + Contract *AgentPayWalletTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } -// CelerWalletRaw is an auto generated low-level Go binding around an Ethereum contract. -type CelerWalletRaw struct { - Contract *CelerWallet // Generic contract binding to access the raw methods on +// AgentPayWalletRaw is an auto generated low-level Go binding around an Ethereum contract. +type AgentPayWalletRaw struct { + Contract *AgentPayWallet // Generic contract binding to access the raw methods on } -// CelerWalletCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type CelerWalletCallerRaw struct { - Contract *CelerWalletCaller // Generic read-only contract binding to access the raw methods on +// AgentPayWalletCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type AgentPayWalletCallerRaw struct { + Contract *AgentPayWalletCaller // Generic read-only contract binding to access the raw methods on } -// CelerWalletTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type CelerWalletTransactorRaw struct { - Contract *CelerWalletTransactor // Generic write-only contract binding to access the raw methods on +// AgentPayWalletTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type AgentPayWalletTransactorRaw struct { + Contract *AgentPayWalletTransactor // Generic write-only contract binding to access the raw methods on } -// NewCelerWallet creates a new instance of CelerWallet, bound to a specific deployed contract. -func NewCelerWallet(address common.Address, backend bind.ContractBackend) (*CelerWallet, error) { - contract, err := bindCelerWallet(address, backend, backend, backend) +// NewAgentPayWallet creates a new instance of AgentPayWallet, bound to a specific deployed contract. +func NewAgentPayWallet(address common.Address, backend bind.ContractBackend) (*AgentPayWallet, error) { + contract, err := bindAgentPayWallet(address, backend, backend, backend) if err != nil { return nil, err } - return &CelerWallet{CelerWalletCaller: CelerWalletCaller{contract: contract}, CelerWalletTransactor: CelerWalletTransactor{contract: contract}, CelerWalletFilterer: CelerWalletFilterer{contract: contract}}, nil + return &AgentPayWallet{AgentPayWalletCaller: AgentPayWalletCaller{contract: contract}, AgentPayWalletTransactor: AgentPayWalletTransactor{contract: contract}, AgentPayWalletFilterer: AgentPayWalletFilterer{contract: contract}}, nil } -// NewCelerWalletCaller creates a new read-only instance of CelerWallet, bound to a specific deployed contract. -func NewCelerWalletCaller(address common.Address, caller bind.ContractCaller) (*CelerWalletCaller, error) { - contract, err := bindCelerWallet(address, caller, nil, nil) +// NewAgentPayWalletCaller creates a new read-only instance of AgentPayWallet, bound to a specific deployed contract. +func NewAgentPayWalletCaller(address common.Address, caller bind.ContractCaller) (*AgentPayWalletCaller, error) { + contract, err := bindAgentPayWallet(address, caller, nil, nil) if err != nil { return nil, err } - return &CelerWalletCaller{contract: contract}, nil + return &AgentPayWalletCaller{contract: contract}, nil } -// NewCelerWalletTransactor creates a new write-only instance of CelerWallet, bound to a specific deployed contract. -func NewCelerWalletTransactor(address common.Address, transactor bind.ContractTransactor) (*CelerWalletTransactor, error) { - contract, err := bindCelerWallet(address, nil, transactor, nil) +// NewAgentPayWalletTransactor creates a new write-only instance of AgentPayWallet, bound to a specific deployed contract. +func NewAgentPayWalletTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentPayWalletTransactor, error) { + contract, err := bindAgentPayWallet(address, nil, transactor, nil) if err != nil { return nil, err } - return &CelerWalletTransactor{contract: contract}, nil + return &AgentPayWalletTransactor{contract: contract}, nil } -// NewCelerWalletFilterer creates a new log filterer instance of CelerWallet, bound to a specific deployed contract. -func NewCelerWalletFilterer(address common.Address, filterer bind.ContractFilterer) (*CelerWalletFilterer, error) { - contract, err := bindCelerWallet(address, nil, nil, filterer) +// NewAgentPayWalletFilterer creates a new log filterer instance of AgentPayWallet, bound to a specific deployed contract. +func NewAgentPayWalletFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentPayWalletFilterer, error) { + contract, err := bindAgentPayWallet(address, nil, nil, filterer) if err != nil { return nil, err } - return &CelerWalletFilterer{contract: contract}, nil + return &AgentPayWalletFilterer{contract: contract}, nil } -// bindCelerWallet binds a generic wrapper to an already deployed contract. -func bindCelerWallet(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := CelerWalletMetaData.GetAbi() +// bindAgentPayWallet binds a generic wrapper to an already deployed contract. +func bindAgentPayWallet(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := AgentPayWalletMetaData.GetAbi() if err != nil { return nil, err } @@ -169,46 +169,46 @@ func bindCelerWallet(address common.Address, caller bind.ContractCaller, transac // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_CelerWallet *CelerWalletRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CelerWallet.Contract.CelerWalletCaller.contract.Call(opts, result, method, params...) +func (_AgentPayWallet *AgentPayWalletRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _AgentPayWallet.Contract.AgentPayWalletCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CelerWallet *CelerWalletRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerWallet.Contract.CelerWalletTransactor.contract.Transfer(opts) +func (_AgentPayWallet *AgentPayWalletRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayWallet.Contract.AgentPayWalletTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CelerWallet *CelerWalletRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CelerWallet.Contract.CelerWalletTransactor.contract.Transact(opts, method, params...) +func (_AgentPayWallet *AgentPayWalletRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _AgentPayWallet.Contract.AgentPayWalletTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. -func (_CelerWallet *CelerWalletCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _CelerWallet.Contract.contract.Call(opts, result, method, params...) +func (_AgentPayWallet *AgentPayWalletCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _AgentPayWallet.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. -func (_CelerWallet *CelerWalletTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerWallet.Contract.contract.Transfer(opts) +func (_AgentPayWallet *AgentPayWalletTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayWallet.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. -func (_CelerWallet *CelerWalletTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _CelerWallet.Contract.contract.Transact(opts, method, params...) +func (_AgentPayWallet *AgentPayWalletTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _AgentPayWallet.Contract.contract.Transact(opts, method, params...) } // MAXOWNERS is a free data retrieval call binding the contract method 0x0b8bb146. // // Solidity: function MAX_OWNERS() view returns(uint256) -func (_CelerWallet *CelerWalletCaller) MAXOWNERS(opts *bind.CallOpts) (*big.Int, error) { +func (_AgentPayWallet *AgentPayWalletCaller) MAXOWNERS(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "MAX_OWNERS") + err := _AgentPayWallet.contract.Call(opts, &out, "MAX_OWNERS") if err != nil { return *new(*big.Int), err @@ -223,23 +223,23 @@ func (_CelerWallet *CelerWalletCaller) MAXOWNERS(opts *bind.CallOpts) (*big.Int, // MAXOWNERS is a free data retrieval call binding the contract method 0x0b8bb146. // // Solidity: function MAX_OWNERS() view returns(uint256) -func (_CelerWallet *CelerWalletSession) MAXOWNERS() (*big.Int, error) { - return _CelerWallet.Contract.MAXOWNERS(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletSession) MAXOWNERS() (*big.Int, error) { + return _AgentPayWallet.Contract.MAXOWNERS(&_AgentPayWallet.CallOpts) } // MAXOWNERS is a free data retrieval call binding the contract method 0x0b8bb146. // // Solidity: function MAX_OWNERS() view returns(uint256) -func (_CelerWallet *CelerWalletCallerSession) MAXOWNERS() (*big.Int, error) { - return _CelerWallet.Contract.MAXOWNERS(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletCallerSession) MAXOWNERS() (*big.Int, error) { + return _AgentPayWallet.Contract.MAXOWNERS(&_AgentPayWallet.CallOpts) } // BalanceOf is a free data retrieval call binding the contract method 0xc2038236. // // Solidity: function balanceOf(bytes32 _walletId, address _tokenAddress) view returns(uint256) -func (_CelerWallet *CelerWalletCaller) BalanceOf(opts *bind.CallOpts, _walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { +func (_AgentPayWallet *AgentPayWalletCaller) BalanceOf(opts *bind.CallOpts, _walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "balanceOf", _walletId, _tokenAddress) + err := _AgentPayWallet.contract.Call(opts, &out, "balanceOf", _walletId, _tokenAddress) if err != nil { return *new(*big.Int), err @@ -254,23 +254,23 @@ func (_CelerWallet *CelerWalletCaller) BalanceOf(opts *bind.CallOpts, _walletId // BalanceOf is a free data retrieval call binding the contract method 0xc2038236. // // Solidity: function balanceOf(bytes32 _walletId, address _tokenAddress) view returns(uint256) -func (_CelerWallet *CelerWalletSession) BalanceOf(_walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { - return _CelerWallet.Contract.BalanceOf(&_CelerWallet.CallOpts, _walletId, _tokenAddress) +func (_AgentPayWallet *AgentPayWalletSession) BalanceOf(_walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { + return _AgentPayWallet.Contract.BalanceOf(&_AgentPayWallet.CallOpts, _walletId, _tokenAddress) } // BalanceOf is a free data retrieval call binding the contract method 0xc2038236. // // Solidity: function balanceOf(bytes32 _walletId, address _tokenAddress) view returns(uint256) -func (_CelerWallet *CelerWalletCallerSession) BalanceOf(_walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { - return _CelerWallet.Contract.BalanceOf(&_CelerWallet.CallOpts, _walletId, _tokenAddress) +func (_AgentPayWallet *AgentPayWalletCallerSession) BalanceOf(_walletId [32]byte, _tokenAddress common.Address) (*big.Int, error) { + return _AgentPayWallet.Contract.BalanceOf(&_AgentPayWallet.CallOpts, _walletId, _tokenAddress) } // HasVoted is a free data retrieval call binding the contract method 0xaadc3b72. // // Solidity: function hasVoted(bytes32 _walletId, address _owner) view returns(bool) -func (_CelerWallet *CelerWalletCaller) HasVoted(opts *bind.CallOpts, _walletId [32]byte, _owner common.Address) (bool, error) { +func (_AgentPayWallet *AgentPayWalletCaller) HasVoted(opts *bind.CallOpts, _walletId [32]byte, _owner common.Address) (bool, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "hasVoted", _walletId, _owner) + err := _AgentPayWallet.contract.Call(opts, &out, "hasVoted", _walletId, _owner) if err != nil { return *new(bool), err @@ -285,23 +285,23 @@ func (_CelerWallet *CelerWalletCaller) HasVoted(opts *bind.CallOpts, _walletId [ // HasVoted is a free data retrieval call binding the contract method 0xaadc3b72. // // Solidity: function hasVoted(bytes32 _walletId, address _owner) view returns(bool) -func (_CelerWallet *CelerWalletSession) HasVoted(_walletId [32]byte, _owner common.Address) (bool, error) { - return _CelerWallet.Contract.HasVoted(&_CelerWallet.CallOpts, _walletId, _owner) +func (_AgentPayWallet *AgentPayWalletSession) HasVoted(_walletId [32]byte, _owner common.Address) (bool, error) { + return _AgentPayWallet.Contract.HasVoted(&_AgentPayWallet.CallOpts, _walletId, _owner) } // HasVoted is a free data retrieval call binding the contract method 0xaadc3b72. // // Solidity: function hasVoted(bytes32 _walletId, address _owner) view returns(bool) -func (_CelerWallet *CelerWalletCallerSession) HasVoted(_walletId [32]byte, _owner common.Address) (bool, error) { - return _CelerWallet.Contract.HasVoted(&_CelerWallet.CallOpts, _walletId, _owner) +func (_AgentPayWallet *AgentPayWalletCallerSession) HasVoted(_walletId [32]byte, _owner common.Address) (bool, error) { + return _AgentPayWallet.Contract.HasVoted(&_AgentPayWallet.CallOpts, _walletId, _owner) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerWallet *CelerWalletCaller) Owner(opts *bind.CallOpts) (common.Address, error) { +func (_AgentPayWallet *AgentPayWalletCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "owner") + err := _AgentPayWallet.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err @@ -316,23 +316,23 @@ func (_CelerWallet *CelerWalletCaller) Owner(opts *bind.CallOpts) (common.Addres // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerWallet *CelerWalletSession) Owner() (common.Address, error) { - return _CelerWallet.Contract.Owner(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletSession) Owner() (common.Address, error) { + return _AgentPayWallet.Contract.Owner(&_AgentPayWallet.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) -func (_CelerWallet *CelerWalletCallerSession) Owner() (common.Address, error) { - return _CelerWallet.Contract.Owner(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletCallerSession) Owner() (common.Address, error) { + return _AgentPayWallet.Contract.Owner(&_AgentPayWallet.CallOpts) } // Paused is a free data retrieval call binding the contract method 0x5c975abb. // // Solidity: function paused() view returns(bool) -func (_CelerWallet *CelerWalletCaller) Paused(opts *bind.CallOpts) (bool, error) { +func (_AgentPayWallet *AgentPayWalletCaller) Paused(opts *bind.CallOpts) (bool, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "paused") + err := _AgentPayWallet.contract.Call(opts, &out, "paused") if err != nil { return *new(bool), err @@ -347,23 +347,23 @@ func (_CelerWallet *CelerWalletCaller) Paused(opts *bind.CallOpts) (bool, error) // Paused is a free data retrieval call binding the contract method 0x5c975abb. // // Solidity: function paused() view returns(bool) -func (_CelerWallet *CelerWalletSession) Paused() (bool, error) { - return _CelerWallet.Contract.Paused(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletSession) Paused() (bool, error) { + return _AgentPayWallet.Contract.Paused(&_AgentPayWallet.CallOpts) } // Paused is a free data retrieval call binding the contract method 0x5c975abb. // // Solidity: function paused() view returns(bool) -func (_CelerWallet *CelerWalletCallerSession) Paused() (bool, error) { - return _CelerWallet.Contract.Paused(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletCallerSession) Paused() (bool, error) { + return _AgentPayWallet.Contract.Paused(&_AgentPayWallet.CallOpts) } // PendingOperator is a free data retrieval call binding the contract method 0x9dfaff8f. // // Solidity: function pendingOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletCaller) PendingOperator(opts *bind.CallOpts, _walletId [32]byte) (common.Address, error) { +func (_AgentPayWallet *AgentPayWalletCaller) PendingOperator(opts *bind.CallOpts, _walletId [32]byte) (common.Address, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "pendingOperator", _walletId) + err := _AgentPayWallet.contract.Call(opts, &out, "pendingOperator", _walletId) if err != nil { return *new(common.Address), err @@ -378,23 +378,23 @@ func (_CelerWallet *CelerWalletCaller) PendingOperator(opts *bind.CallOpts, _wal // PendingOperator is a free data retrieval call binding the contract method 0x9dfaff8f. // // Solidity: function pendingOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletSession) PendingOperator(_walletId [32]byte) (common.Address, error) { - return _CelerWallet.Contract.PendingOperator(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletSession) PendingOperator(_walletId [32]byte) (common.Address, error) { + return _AgentPayWallet.Contract.PendingOperator(&_AgentPayWallet.CallOpts, _walletId) } // PendingOperator is a free data retrieval call binding the contract method 0x9dfaff8f. // // Solidity: function pendingOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletCallerSession) PendingOperator(_walletId [32]byte) (common.Address, error) { - return _CelerWallet.Contract.PendingOperator(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletCallerSession) PendingOperator(_walletId [32]byte) (common.Address, error) { + return _AgentPayWallet.Contract.PendingOperator(&_AgentPayWallet.CallOpts, _walletId) } // WalletCount is a free data retrieval call binding the contract method 0x29b57c69. // // Solidity: function walletCount() view returns(uint256) -func (_CelerWallet *CelerWalletCaller) WalletCount(opts *bind.CallOpts) (*big.Int, error) { +func (_AgentPayWallet *AgentPayWalletCaller) WalletCount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "walletCount") + err := _AgentPayWallet.contract.Call(opts, &out, "walletCount") if err != nil { return *new(*big.Int), err @@ -409,23 +409,23 @@ func (_CelerWallet *CelerWalletCaller) WalletCount(opts *bind.CallOpts) (*big.In // WalletCount is a free data retrieval call binding the contract method 0x29b57c69. // // Solidity: function walletCount() view returns(uint256) -func (_CelerWallet *CelerWalletSession) WalletCount() (*big.Int, error) { - return _CelerWallet.Contract.WalletCount(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletSession) WalletCount() (*big.Int, error) { + return _AgentPayWallet.Contract.WalletCount(&_AgentPayWallet.CallOpts) } // WalletCount is a free data retrieval call binding the contract method 0x29b57c69. // // Solidity: function walletCount() view returns(uint256) -func (_CelerWallet *CelerWalletCallerSession) WalletCount() (*big.Int, error) { - return _CelerWallet.Contract.WalletCount(&_CelerWallet.CallOpts) +func (_AgentPayWallet *AgentPayWalletCallerSession) WalletCount() (*big.Int, error) { + return _AgentPayWallet.Contract.WalletCount(&_AgentPayWallet.CallOpts) } // WalletOperator is a free data retrieval call binding the contract method 0xaee2e989. // // Solidity: function walletOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletCaller) WalletOperator(opts *bind.CallOpts, _walletId [32]byte) (common.Address, error) { +func (_AgentPayWallet *AgentPayWalletCaller) WalletOperator(opts *bind.CallOpts, _walletId [32]byte) (common.Address, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "walletOperator", _walletId) + err := _AgentPayWallet.contract.Call(opts, &out, "walletOperator", _walletId) if err != nil { return *new(common.Address), err @@ -440,23 +440,23 @@ func (_CelerWallet *CelerWalletCaller) WalletOperator(opts *bind.CallOpts, _wall // WalletOperator is a free data retrieval call binding the contract method 0xaee2e989. // // Solidity: function walletOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletSession) WalletOperator(_walletId [32]byte) (common.Address, error) { - return _CelerWallet.Contract.WalletOperator(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletSession) WalletOperator(_walletId [32]byte) (common.Address, error) { + return _AgentPayWallet.Contract.WalletOperator(&_AgentPayWallet.CallOpts, _walletId) } // WalletOperator is a free data retrieval call binding the contract method 0xaee2e989. // // Solidity: function walletOperator(bytes32 _walletId) view returns(address) -func (_CelerWallet *CelerWalletCallerSession) WalletOperator(_walletId [32]byte) (common.Address, error) { - return _CelerWallet.Contract.WalletOperator(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletCallerSession) WalletOperator(_walletId [32]byte) (common.Address, error) { + return _AgentPayWallet.Contract.WalletOperator(&_AgentPayWallet.CallOpts, _walletId) } // WalletOwners is a free data retrieval call binding the contract method 0x628c40eb. // // Solidity: function walletOwners(bytes32 _walletId) view returns(address[]) -func (_CelerWallet *CelerWalletCaller) WalletOwners(opts *bind.CallOpts, _walletId [32]byte) ([]common.Address, error) { +func (_AgentPayWallet *AgentPayWalletCaller) WalletOwners(opts *bind.CallOpts, _walletId [32]byte) ([]common.Address, error) { var out []interface{} - err := _CelerWallet.contract.Call(opts, &out, "walletOwners", _walletId) + err := _AgentPayWallet.contract.Call(opts, &out, "walletOwners", _walletId) if err != nil { return *new([]common.Address), err @@ -471,272 +471,272 @@ func (_CelerWallet *CelerWalletCaller) WalletOwners(opts *bind.CallOpts, _wallet // WalletOwners is a free data retrieval call binding the contract method 0x628c40eb. // // Solidity: function walletOwners(bytes32 _walletId) view returns(address[]) -func (_CelerWallet *CelerWalletSession) WalletOwners(_walletId [32]byte) ([]common.Address, error) { - return _CelerWallet.Contract.WalletOwners(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletSession) WalletOwners(_walletId [32]byte) ([]common.Address, error) { + return _AgentPayWallet.Contract.WalletOwners(&_AgentPayWallet.CallOpts, _walletId) } // WalletOwners is a free data retrieval call binding the contract method 0x628c40eb. // // Solidity: function walletOwners(bytes32 _walletId) view returns(address[]) -func (_CelerWallet *CelerWalletCallerSession) WalletOwners(_walletId [32]byte) ([]common.Address, error) { - return _CelerWallet.Contract.WalletOwners(&_CelerWallet.CallOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletCallerSession) WalletOwners(_walletId [32]byte) ([]common.Address, error) { + return _AgentPayWallet.Contract.WalletOwners(&_AgentPayWallet.CallOpts, _walletId) } // Create is a paid mutator transaction binding the contract method 0x0d63a1fd. // // Solidity: function create(address[] _owners, address _operator, bytes32 _nonce) returns(bytes32) -func (_CelerWallet *CelerWalletTransactor) Create(opts *bind.TransactOpts, _owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "create", _owners, _operator, _nonce) +func (_AgentPayWallet *AgentPayWalletTransactor) Create(opts *bind.TransactOpts, _owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "create", _owners, _operator, _nonce) } // Create is a paid mutator transaction binding the contract method 0x0d63a1fd. // // Solidity: function create(address[] _owners, address _operator, bytes32 _nonce) returns(bytes32) -func (_CelerWallet *CelerWalletSession) Create(_owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { - return _CelerWallet.Contract.Create(&_CelerWallet.TransactOpts, _owners, _operator, _nonce) +func (_AgentPayWallet *AgentPayWalletSession) Create(_owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.Contract.Create(&_AgentPayWallet.TransactOpts, _owners, _operator, _nonce) } // Create is a paid mutator transaction binding the contract method 0x0d63a1fd. // // Solidity: function create(address[] _owners, address _operator, bytes32 _nonce) returns(bytes32) -func (_CelerWallet *CelerWalletTransactorSession) Create(_owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { - return _CelerWallet.Contract.Create(&_CelerWallet.TransactOpts, _owners, _operator, _nonce) +func (_AgentPayWallet *AgentPayWalletTransactorSession) Create(_owners []common.Address, _operator common.Address, _nonce [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.Contract.Create(&_AgentPayWallet.TransactOpts, _owners, _operator, _nonce) } // DepositERC20 is a paid mutator transaction binding the contract method 0xc108bb40. // // Solidity: function depositERC20(bytes32 _walletId, address _tokenAddress, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactor) DepositERC20(opts *bind.TransactOpts, _walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "depositERC20", _walletId, _tokenAddress, _amount) +func (_AgentPayWallet *AgentPayWalletTransactor) DepositERC20(opts *bind.TransactOpts, _walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "depositERC20", _walletId, _tokenAddress, _amount) } // DepositERC20 is a paid mutator transaction binding the contract method 0xc108bb40. // // Solidity: function depositERC20(bytes32 _walletId, address _tokenAddress, uint256 _amount) returns() -func (_CelerWallet *CelerWalletSession) DepositERC20(_walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.DepositERC20(&_CelerWallet.TransactOpts, _walletId, _tokenAddress, _amount) +func (_AgentPayWallet *AgentPayWalletSession) DepositERC20(_walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DepositERC20(&_AgentPayWallet.TransactOpts, _walletId, _tokenAddress, _amount) } // DepositERC20 is a paid mutator transaction binding the contract method 0xc108bb40. // // Solidity: function depositERC20(bytes32 _walletId, address _tokenAddress, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactorSession) DepositERC20(_walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.DepositERC20(&_CelerWallet.TransactOpts, _walletId, _tokenAddress, _amount) +func (_AgentPayWallet *AgentPayWalletTransactorSession) DepositERC20(_walletId [32]byte, _tokenAddress common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DepositERC20(&_AgentPayWallet.TransactOpts, _walletId, _tokenAddress, _amount) } // DepositNative is a paid mutator transaction binding the contract method 0x42ef5fbb. // // Solidity: function depositNative(bytes32 _walletId) payable returns() -func (_CelerWallet *CelerWalletTransactor) DepositNative(opts *bind.TransactOpts, _walletId [32]byte) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "depositNative", _walletId) +func (_AgentPayWallet *AgentPayWalletTransactor) DepositNative(opts *bind.TransactOpts, _walletId [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "depositNative", _walletId) } // DepositNative is a paid mutator transaction binding the contract method 0x42ef5fbb. // // Solidity: function depositNative(bytes32 _walletId) payable returns() -func (_CelerWallet *CelerWalletSession) DepositNative(_walletId [32]byte) (*types.Transaction, error) { - return _CelerWallet.Contract.DepositNative(&_CelerWallet.TransactOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletSession) DepositNative(_walletId [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DepositNative(&_AgentPayWallet.TransactOpts, _walletId) } // DepositNative is a paid mutator transaction binding the contract method 0x42ef5fbb. // // Solidity: function depositNative(bytes32 _walletId) payable returns() -func (_CelerWallet *CelerWalletTransactorSession) DepositNative(_walletId [32]byte) (*types.Transaction, error) { - return _CelerWallet.Contract.DepositNative(&_CelerWallet.TransactOpts, _walletId) +func (_AgentPayWallet *AgentPayWalletTransactorSession) DepositNative(_walletId [32]byte) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DepositNative(&_AgentPayWallet.TransactOpts, _walletId) } // DrainToken is a paid mutator transaction binding the contract method 0xbfa2c1d2. // // Solidity: function drainToken(address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactor) DrainToken(opts *bind.TransactOpts, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "drainToken", _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactor) DrainToken(opts *bind.TransactOpts, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "drainToken", _tokenAddress, _receiver, _amount) } // DrainToken is a paid mutator transaction binding the contract method 0xbfa2c1d2. // // Solidity: function drainToken(address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletSession) DrainToken(_tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.DrainToken(&_CelerWallet.TransactOpts, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletSession) DrainToken(_tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DrainToken(&_AgentPayWallet.TransactOpts, _tokenAddress, _receiver, _amount) } // DrainToken is a paid mutator transaction binding the contract method 0xbfa2c1d2. // // Solidity: function drainToken(address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactorSession) DrainToken(_tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.DrainToken(&_CelerWallet.TransactOpts, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactorSession) DrainToken(_tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.DrainToken(&_AgentPayWallet.TransactOpts, _tokenAddress, _receiver, _amount) } // Pause is a paid mutator transaction binding the contract method 0x8456cb59. // // Solidity: function pause() returns() -func (_CelerWallet *CelerWalletTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "pause") +func (_AgentPayWallet *AgentPayWalletTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "pause") } // Pause is a paid mutator transaction binding the contract method 0x8456cb59. // // Solidity: function pause() returns() -func (_CelerWallet *CelerWalletSession) Pause() (*types.Transaction, error) { - return _CelerWallet.Contract.Pause(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletSession) Pause() (*types.Transaction, error) { + return _AgentPayWallet.Contract.Pause(&_AgentPayWallet.TransactOpts) } // Pause is a paid mutator transaction binding the contract method 0x8456cb59. // // Solidity: function pause() returns() -func (_CelerWallet *CelerWalletTransactorSession) Pause() (*types.Transaction, error) { - return _CelerWallet.Contract.Pause(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletTransactorSession) Pause() (*types.Transaction, error) { + return _AgentPayWallet.Contract.Pause(&_AgentPayWallet.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerWallet *CelerWalletTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "renounceOwnership") +func (_AgentPayWallet *AgentPayWalletTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerWallet *CelerWalletSession) RenounceOwnership() (*types.Transaction, error) { - return _CelerWallet.Contract.RenounceOwnership(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletSession) RenounceOwnership() (*types.Transaction, error) { + return _AgentPayWallet.Contract.RenounceOwnership(&_AgentPayWallet.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() -func (_CelerWallet *CelerWalletTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _CelerWallet.Contract.RenounceOwnership(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletTransactorSession) RenounceOwnership() (*types.Transaction, error) { + return _AgentPayWallet.Contract.RenounceOwnership(&_AgentPayWallet.TransactOpts) } // TransferBetweenWallets is a paid mutator transaction binding the contract method 0xd23856f6. // // Solidity: function transferBetweenWallets(bytes32 _fromWalletId, bytes32 _toWalletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactor) TransferBetweenWallets(opts *bind.TransactOpts, _fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "transferBetweenWallets", _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactor) TransferBetweenWallets(opts *bind.TransactOpts, _fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "transferBetweenWallets", _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) } // TransferBetweenWallets is a paid mutator transaction binding the contract method 0xd23856f6. // // Solidity: function transferBetweenWallets(bytes32 _fromWalletId, bytes32 _toWalletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletSession) TransferBetweenWallets(_fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferBetweenWallets(&_CelerWallet.TransactOpts, _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletSession) TransferBetweenWallets(_fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferBetweenWallets(&_AgentPayWallet.TransactOpts, _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) } // TransferBetweenWallets is a paid mutator transaction binding the contract method 0xd23856f6. // // Solidity: function transferBetweenWallets(bytes32 _fromWalletId, bytes32 _toWalletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactorSession) TransferBetweenWallets(_fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferBetweenWallets(&_CelerWallet.TransactOpts, _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactorSession) TransferBetweenWallets(_fromWalletId [32]byte, _toWalletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferBetweenWallets(&_AgentPayWallet.TransactOpts, _fromWalletId, _toWalletId, _tokenAddress, _receiver, _amount) } // TransferOperatorship is a paid mutator transaction binding the contract method 0xa0c89a8c. // // Solidity: function transferOperatorship(bytes32 _walletId, address _newOperator) returns() -func (_CelerWallet *CelerWalletTransactor) TransferOperatorship(opts *bind.TransactOpts, _walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "transferOperatorship", _walletId, _newOperator) +func (_AgentPayWallet *AgentPayWalletTransactor) TransferOperatorship(opts *bind.TransactOpts, _walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "transferOperatorship", _walletId, _newOperator) } // TransferOperatorship is a paid mutator transaction binding the contract method 0xa0c89a8c. // // Solidity: function transferOperatorship(bytes32 _walletId, address _newOperator) returns() -func (_CelerWallet *CelerWalletSession) TransferOperatorship(_walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferOperatorship(&_CelerWallet.TransactOpts, _walletId, _newOperator) +func (_AgentPayWallet *AgentPayWalletSession) TransferOperatorship(_walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferOperatorship(&_AgentPayWallet.TransactOpts, _walletId, _newOperator) } // TransferOperatorship is a paid mutator transaction binding the contract method 0xa0c89a8c. // // Solidity: function transferOperatorship(bytes32 _walletId, address _newOperator) returns() -func (_CelerWallet *CelerWalletTransactorSession) TransferOperatorship(_walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferOperatorship(&_CelerWallet.TransactOpts, _walletId, _newOperator) +func (_AgentPayWallet *AgentPayWalletTransactorSession) TransferOperatorship(_walletId [32]byte, _newOperator common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferOperatorship(&_AgentPayWallet.TransactOpts, _walletId, _newOperator) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerWallet *CelerWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "transferOwnership", newOwner) +func (_AgentPayWallet *AgentPayWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerWallet *CelerWalletSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferOwnership(&_CelerWallet.TransactOpts, newOwner) +func (_AgentPayWallet *AgentPayWalletSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferOwnership(&_AgentPayWallet.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() -func (_CelerWallet *CelerWalletTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.TransferOwnership(&_CelerWallet.TransactOpts, newOwner) +func (_AgentPayWallet *AgentPayWalletTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.TransferOwnership(&_AgentPayWallet.TransactOpts, newOwner) } // Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. // // Solidity: function unpause() returns() -func (_CelerWallet *CelerWalletTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "unpause") +func (_AgentPayWallet *AgentPayWalletTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "unpause") } // Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. // // Solidity: function unpause() returns() -func (_CelerWallet *CelerWalletSession) Unpause() (*types.Transaction, error) { - return _CelerWallet.Contract.Unpause(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletSession) Unpause() (*types.Transaction, error) { + return _AgentPayWallet.Contract.Unpause(&_AgentPayWallet.TransactOpts) } // Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. // // Solidity: function unpause() returns() -func (_CelerWallet *CelerWalletTransactorSession) Unpause() (*types.Transaction, error) { - return _CelerWallet.Contract.Unpause(&_CelerWallet.TransactOpts) +func (_AgentPayWallet *AgentPayWalletTransactorSession) Unpause() (*types.Transaction, error) { + return _AgentPayWallet.Contract.Unpause(&_AgentPayWallet.TransactOpts) } // VoteForOperator is a paid mutator transaction binding the contract method 0xe89a62ee. // // Solidity: function voteForOperator(bytes32 _walletId, address _candidate) returns() -func (_CelerWallet *CelerWalletTransactor) VoteForOperator(opts *bind.TransactOpts, _walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "voteForOperator", _walletId, _candidate) +func (_AgentPayWallet *AgentPayWalletTransactor) VoteForOperator(opts *bind.TransactOpts, _walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "voteForOperator", _walletId, _candidate) } // VoteForOperator is a paid mutator transaction binding the contract method 0xe89a62ee. // // Solidity: function voteForOperator(bytes32 _walletId, address _candidate) returns() -func (_CelerWallet *CelerWalletSession) VoteForOperator(_walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.VoteForOperator(&_CelerWallet.TransactOpts, _walletId, _candidate) +func (_AgentPayWallet *AgentPayWalletSession) VoteForOperator(_walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.VoteForOperator(&_AgentPayWallet.TransactOpts, _walletId, _candidate) } // VoteForOperator is a paid mutator transaction binding the contract method 0xe89a62ee. // // Solidity: function voteForOperator(bytes32 _walletId, address _candidate) returns() -func (_CelerWallet *CelerWalletTransactorSession) VoteForOperator(_walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { - return _CelerWallet.Contract.VoteForOperator(&_CelerWallet.TransactOpts, _walletId, _candidate) +func (_AgentPayWallet *AgentPayWalletTransactorSession) VoteForOperator(_walletId [32]byte, _candidate common.Address) (*types.Transaction, error) { + return _AgentPayWallet.Contract.VoteForOperator(&_AgentPayWallet.TransactOpts, _walletId, _candidate) } // Withdraw is a paid mutator transaction binding the contract method 0x8e0cc176. // // Solidity: function withdraw(bytes32 _walletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactor) Withdraw(opts *bind.TransactOpts, _walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.contract.Transact(opts, "withdraw", _walletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactor) Withdraw(opts *bind.TransactOpts, _walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.contract.Transact(opts, "withdraw", _walletId, _tokenAddress, _receiver, _amount) } // Withdraw is a paid mutator transaction binding the contract method 0x8e0cc176. // // Solidity: function withdraw(bytes32 _walletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletSession) Withdraw(_walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.Withdraw(&_CelerWallet.TransactOpts, _walletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletSession) Withdraw(_walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.Withdraw(&_AgentPayWallet.TransactOpts, _walletId, _tokenAddress, _receiver, _amount) } // Withdraw is a paid mutator transaction binding the contract method 0x8e0cc176. // // Solidity: function withdraw(bytes32 _walletId, address _tokenAddress, address _receiver, uint256 _amount) returns() -func (_CelerWallet *CelerWalletTransactorSession) Withdraw(_walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { - return _CelerWallet.Contract.Withdraw(&_CelerWallet.TransactOpts, _walletId, _tokenAddress, _receiver, _amount) +func (_AgentPayWallet *AgentPayWalletTransactorSession) Withdraw(_walletId [32]byte, _tokenAddress common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error) { + return _AgentPayWallet.Contract.Withdraw(&_AgentPayWallet.TransactOpts, _walletId, _tokenAddress, _receiver, _amount) } -// CelerWalletDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the CelerWallet contract. -type CelerWalletDepositedIterator struct { - Event *CelerWalletDeposited // Event containing the contract specifics and raw log +// AgentPayWalletDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the AgentPayWallet contract. +type AgentPayWalletDepositedIterator struct { + Event *AgentPayWalletDeposited // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -750,7 +750,7 @@ type CelerWalletDepositedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletDepositedIterator) Next() bool { +func (it *AgentPayWalletDepositedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -759,7 +759,7 @@ func (it *CelerWalletDepositedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletDeposited) + it.Event = new(AgentPayWalletDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -774,7 +774,7 @@ func (it *CelerWalletDepositedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletDeposited) + it.Event = new(AgentPayWalletDeposited) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -790,19 +790,19 @@ func (it *CelerWalletDepositedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletDepositedIterator) Error() error { +func (it *AgentPayWalletDepositedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletDepositedIterator) Close() error { +func (it *AgentPayWalletDepositedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletDeposited represents a Deposited event raised by the CelerWallet contract. -type CelerWalletDeposited struct { +// AgentPayWalletDeposited represents a Deposited event raised by the AgentPayWallet contract. +type AgentPayWalletDeposited struct { WalletId [32]byte TokenAddress common.Address Amount *big.Int @@ -812,7 +812,7 @@ type CelerWalletDeposited struct { // FilterDeposited is a free log retrieval operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b. // // Solidity: event Deposited(bytes32 indexed walletId, address indexed tokenAddress, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) FilterDeposited(opts *bind.FilterOpts, walletId [][32]byte, tokenAddress []common.Address) (*CelerWalletDepositedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterDeposited(opts *bind.FilterOpts, walletId [][32]byte, tokenAddress []common.Address) (*AgentPayWalletDepositedIterator, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -823,17 +823,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterDeposited(opts *bind.FilterOpts, tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "Deposited", walletIdRule, tokenAddressRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "Deposited", walletIdRule, tokenAddressRule) if err != nil { return nil, err } - return &CelerWalletDepositedIterator{contract: _CelerWallet.contract, event: "Deposited", logs: logs, sub: sub}, nil + return &AgentPayWalletDepositedIterator{contract: _AgentPayWallet.contract, event: "Deposited", logs: logs, sub: sub}, nil } // WatchDeposited is a free log subscription operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b. // // Solidity: event Deposited(bytes32 indexed walletId, address indexed tokenAddress, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *CelerWalletDeposited, walletId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *AgentPayWalletDeposited, walletId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -844,7 +844,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchDeposited(opts *bind.WatchOpts, si tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "Deposited", walletIdRule, tokenAddressRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "Deposited", walletIdRule, tokenAddressRule) if err != nil { return nil, err } @@ -854,8 +854,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchDeposited(opts *bind.WatchOpts, si select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletDeposited) - if err := _CelerWallet.contract.UnpackLog(event, "Deposited", log); err != nil { + event := new(AgentPayWalletDeposited) + if err := _AgentPayWallet.contract.UnpackLog(event, "Deposited", log); err != nil { return err } event.Raw = log @@ -879,18 +879,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchDeposited(opts *bind.WatchOpts, si // ParseDeposited is a log parse operation binding the contract event 0x87d4c0b5e30d6808bc8a94ba1c4d839b29d664151551a31753387ee9ef48429b. // // Solidity: event Deposited(bytes32 indexed walletId, address indexed tokenAddress, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) ParseDeposited(log types.Log) (*CelerWalletDeposited, error) { - event := new(CelerWalletDeposited) - if err := _CelerWallet.contract.UnpackLog(event, "Deposited", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseDeposited(log types.Log) (*AgentPayWalletDeposited, error) { + event := new(AgentPayWalletDeposited) + if err := _AgentPayWallet.contract.UnpackLog(event, "Deposited", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletOperatorChangedIterator is returned from FilterOperatorChanged and is used to iterate over the raw logs and unpacked data for OperatorChanged events raised by the CelerWallet contract. -type CelerWalletOperatorChangedIterator struct { - Event *CelerWalletOperatorChanged // Event containing the contract specifics and raw log +// AgentPayWalletOperatorChangedIterator is returned from FilterOperatorChanged and is used to iterate over the raw logs and unpacked data for OperatorChanged events raised by the AgentPayWallet contract. +type AgentPayWalletOperatorChangedIterator struct { + Event *AgentPayWalletOperatorChanged // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -904,7 +904,7 @@ type CelerWalletOperatorChangedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletOperatorChangedIterator) Next() bool { +func (it *AgentPayWalletOperatorChangedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -913,7 +913,7 @@ func (it *CelerWalletOperatorChangedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletOperatorChanged) + it.Event = new(AgentPayWalletOperatorChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -928,7 +928,7 @@ func (it *CelerWalletOperatorChangedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletOperatorChanged) + it.Event = new(AgentPayWalletOperatorChanged) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -944,19 +944,19 @@ func (it *CelerWalletOperatorChangedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletOperatorChangedIterator) Error() error { +func (it *AgentPayWalletOperatorChangedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletOperatorChangedIterator) Close() error { +func (it *AgentPayWalletOperatorChangedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletOperatorChanged represents a OperatorChanged event raised by the CelerWallet contract. -type CelerWalletOperatorChanged struct { +// AgentPayWalletOperatorChanged represents a OperatorChanged event raised by the AgentPayWallet contract. +type AgentPayWalletOperatorChanged struct { WalletId [32]byte OldOperator common.Address NewOperator common.Address @@ -966,7 +966,7 @@ type CelerWalletOperatorChanged struct { // FilterOperatorChanged is a free log retrieval operation binding the contract event 0xca740bd5cca56b72a44eb89e8a703e2e1269576576b5b5ce52a1ba317d20d78d. // // Solidity: event OperatorChanged(bytes32 indexed walletId, address indexed oldOperator, address indexed newOperator) -func (_CelerWallet *CelerWalletFilterer) FilterOperatorChanged(opts *bind.FilterOpts, walletId [][32]byte, oldOperator []common.Address, newOperator []common.Address) (*CelerWalletOperatorChangedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterOperatorChanged(opts *bind.FilterOpts, walletId [][32]byte, oldOperator []common.Address, newOperator []common.Address) (*AgentPayWalletOperatorChangedIterator, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -981,17 +981,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterOperatorChanged(opts *bind.Filter newOperatorRule = append(newOperatorRule, newOperatorItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "OperatorChanged", walletIdRule, oldOperatorRule, newOperatorRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "OperatorChanged", walletIdRule, oldOperatorRule, newOperatorRule) if err != nil { return nil, err } - return &CelerWalletOperatorChangedIterator{contract: _CelerWallet.contract, event: "OperatorChanged", logs: logs, sub: sub}, nil + return &AgentPayWalletOperatorChangedIterator{contract: _AgentPayWallet.contract, event: "OperatorChanged", logs: logs, sub: sub}, nil } // WatchOperatorChanged is a free log subscription operation binding the contract event 0xca740bd5cca56b72a44eb89e8a703e2e1269576576b5b5ce52a1ba317d20d78d. // // Solidity: event OperatorChanged(bytes32 indexed walletId, address indexed oldOperator, address indexed newOperator) -func (_CelerWallet *CelerWalletFilterer) WatchOperatorChanged(opts *bind.WatchOpts, sink chan<- *CelerWalletOperatorChanged, walletId [][32]byte, oldOperator []common.Address, newOperator []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchOperatorChanged(opts *bind.WatchOpts, sink chan<- *AgentPayWalletOperatorChanged, walletId [][32]byte, oldOperator []common.Address, newOperator []common.Address) (event.Subscription, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -1006,7 +1006,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorChanged(opts *bind.WatchOp newOperatorRule = append(newOperatorRule, newOperatorItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "OperatorChanged", walletIdRule, oldOperatorRule, newOperatorRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "OperatorChanged", walletIdRule, oldOperatorRule, newOperatorRule) if err != nil { return nil, err } @@ -1016,8 +1016,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorChanged(opts *bind.WatchOp select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletOperatorChanged) - if err := _CelerWallet.contract.UnpackLog(event, "OperatorChanged", log); err != nil { + event := new(AgentPayWalletOperatorChanged) + if err := _AgentPayWallet.contract.UnpackLog(event, "OperatorChanged", log); err != nil { return err } event.Raw = log @@ -1041,18 +1041,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorChanged(opts *bind.WatchOp // ParseOperatorChanged is a log parse operation binding the contract event 0xca740bd5cca56b72a44eb89e8a703e2e1269576576b5b5ce52a1ba317d20d78d. // // Solidity: event OperatorChanged(bytes32 indexed walletId, address indexed oldOperator, address indexed newOperator) -func (_CelerWallet *CelerWalletFilterer) ParseOperatorChanged(log types.Log) (*CelerWalletOperatorChanged, error) { - event := new(CelerWalletOperatorChanged) - if err := _CelerWallet.contract.UnpackLog(event, "OperatorChanged", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseOperatorChanged(log types.Log) (*AgentPayWalletOperatorChanged, error) { + event := new(AgentPayWalletOperatorChanged) + if err := _AgentPayWallet.contract.UnpackLog(event, "OperatorChanged", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletOperatorVotedIterator is returned from FilterOperatorVoted and is used to iterate over the raw logs and unpacked data for OperatorVoted events raised by the CelerWallet contract. -type CelerWalletOperatorVotedIterator struct { - Event *CelerWalletOperatorVoted // Event containing the contract specifics and raw log +// AgentPayWalletOperatorVotedIterator is returned from FilterOperatorVoted and is used to iterate over the raw logs and unpacked data for OperatorVoted events raised by the AgentPayWallet contract. +type AgentPayWalletOperatorVotedIterator struct { + Event *AgentPayWalletOperatorVoted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1066,7 +1066,7 @@ type CelerWalletOperatorVotedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletOperatorVotedIterator) Next() bool { +func (it *AgentPayWalletOperatorVotedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1075,7 +1075,7 @@ func (it *CelerWalletOperatorVotedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletOperatorVoted) + it.Event = new(AgentPayWalletOperatorVoted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1090,7 +1090,7 @@ func (it *CelerWalletOperatorVotedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletOperatorVoted) + it.Event = new(AgentPayWalletOperatorVoted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1106,19 +1106,19 @@ func (it *CelerWalletOperatorVotedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletOperatorVotedIterator) Error() error { +func (it *AgentPayWalletOperatorVotedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletOperatorVotedIterator) Close() error { +func (it *AgentPayWalletOperatorVotedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletOperatorVoted represents a OperatorVoted event raised by the CelerWallet contract. -type CelerWalletOperatorVoted struct { +// AgentPayWalletOperatorVoted represents a OperatorVoted event raised by the AgentPayWallet contract. +type AgentPayWalletOperatorVoted struct { WalletId [32]byte Candidate common.Address Voter common.Address @@ -1128,7 +1128,7 @@ type CelerWalletOperatorVoted struct { // FilterOperatorVoted is a free log retrieval operation binding the contract event 0x9797c1a8248e0833cb5344fa29eb39f2de9bd4824b8ffa5d85faaed75d24e9ef. // // Solidity: event OperatorVoted(bytes32 indexed walletId, address indexed candidate, address indexed voter) -func (_CelerWallet *CelerWalletFilterer) FilterOperatorVoted(opts *bind.FilterOpts, walletId [][32]byte, candidate []common.Address, voter []common.Address) (*CelerWalletOperatorVotedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterOperatorVoted(opts *bind.FilterOpts, walletId [][32]byte, candidate []common.Address, voter []common.Address) (*AgentPayWalletOperatorVotedIterator, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -1143,17 +1143,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterOperatorVoted(opts *bind.FilterOp voterRule = append(voterRule, voterItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "OperatorVoted", walletIdRule, candidateRule, voterRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "OperatorVoted", walletIdRule, candidateRule, voterRule) if err != nil { return nil, err } - return &CelerWalletOperatorVotedIterator{contract: _CelerWallet.contract, event: "OperatorVoted", logs: logs, sub: sub}, nil + return &AgentPayWalletOperatorVotedIterator{contract: _AgentPayWallet.contract, event: "OperatorVoted", logs: logs, sub: sub}, nil } // WatchOperatorVoted is a free log subscription operation binding the contract event 0x9797c1a8248e0833cb5344fa29eb39f2de9bd4824b8ffa5d85faaed75d24e9ef. // // Solidity: event OperatorVoted(bytes32 indexed walletId, address indexed candidate, address indexed voter) -func (_CelerWallet *CelerWalletFilterer) WatchOperatorVoted(opts *bind.WatchOpts, sink chan<- *CelerWalletOperatorVoted, walletId [][32]byte, candidate []common.Address, voter []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchOperatorVoted(opts *bind.WatchOpts, sink chan<- *AgentPayWalletOperatorVoted, walletId [][32]byte, candidate []common.Address, voter []common.Address) (event.Subscription, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -1168,7 +1168,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorVoted(opts *bind.WatchOpts voterRule = append(voterRule, voterItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "OperatorVoted", walletIdRule, candidateRule, voterRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "OperatorVoted", walletIdRule, candidateRule, voterRule) if err != nil { return nil, err } @@ -1178,8 +1178,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorVoted(opts *bind.WatchOpts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletOperatorVoted) - if err := _CelerWallet.contract.UnpackLog(event, "OperatorVoted", log); err != nil { + event := new(AgentPayWalletOperatorVoted) + if err := _AgentPayWallet.contract.UnpackLog(event, "OperatorVoted", log); err != nil { return err } event.Raw = log @@ -1203,18 +1203,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchOperatorVoted(opts *bind.WatchOpts // ParseOperatorVoted is a log parse operation binding the contract event 0x9797c1a8248e0833cb5344fa29eb39f2de9bd4824b8ffa5d85faaed75d24e9ef. // // Solidity: event OperatorVoted(bytes32 indexed walletId, address indexed candidate, address indexed voter) -func (_CelerWallet *CelerWalletFilterer) ParseOperatorVoted(log types.Log) (*CelerWalletOperatorVoted, error) { - event := new(CelerWalletOperatorVoted) - if err := _CelerWallet.contract.UnpackLog(event, "OperatorVoted", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseOperatorVoted(log types.Log) (*AgentPayWalletOperatorVoted, error) { + event := new(AgentPayWalletOperatorVoted) + if err := _AgentPayWallet.contract.UnpackLog(event, "OperatorVoted", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the CelerWallet contract. -type CelerWalletOwnershipTransferredIterator struct { - Event *CelerWalletOwnershipTransferred // Event containing the contract specifics and raw log +// AgentPayWalletOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the AgentPayWallet contract. +type AgentPayWalletOwnershipTransferredIterator struct { + Event *AgentPayWalletOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1228,7 +1228,7 @@ type CelerWalletOwnershipTransferredIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletOwnershipTransferredIterator) Next() bool { +func (it *AgentPayWalletOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1237,7 +1237,7 @@ func (it *CelerWalletOwnershipTransferredIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletOwnershipTransferred) + it.Event = new(AgentPayWalletOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1252,7 +1252,7 @@ func (it *CelerWalletOwnershipTransferredIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletOwnershipTransferred) + it.Event = new(AgentPayWalletOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1268,19 +1268,19 @@ func (it *CelerWalletOwnershipTransferredIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletOwnershipTransferredIterator) Error() error { +func (it *AgentPayWalletOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletOwnershipTransferredIterator) Close() error { +func (it *AgentPayWalletOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletOwnershipTransferred represents a OwnershipTransferred event raised by the CelerWallet contract. -type CelerWalletOwnershipTransferred struct { +// AgentPayWalletOwnershipTransferred represents a OwnershipTransferred event raised by the AgentPayWallet contract. +type AgentPayWalletOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos @@ -1289,7 +1289,7 @@ type CelerWalletOwnershipTransferred struct { // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerWallet *CelerWalletFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CelerWalletOwnershipTransferredIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentPayWalletOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -1300,17 +1300,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterOwnershipTransferred(opts *bind.F newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } - return &CelerWalletOwnershipTransferredIterator{contract: _CelerWallet.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil + return &AgentPayWalletOwnershipTransferredIterator{contract: _AgentPayWallet.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerWallet *CelerWalletFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CelerWalletOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentPayWalletOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { @@ -1321,7 +1321,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchOwnershipTransferred(opts *bind.Wa newOwnerRule = append(newOwnerRule, newOwnerItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } @@ -1331,8 +1331,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchOwnershipTransferred(opts *bind.Wa select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletOwnershipTransferred) - if err := _CelerWallet.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + event := new(AgentPayWalletOwnershipTransferred) + if err := _AgentPayWallet.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log @@ -1356,18 +1356,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchOwnershipTransferred(opts *bind.Wa // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_CelerWallet *CelerWalletFilterer) ParseOwnershipTransferred(log types.Log) (*CelerWalletOwnershipTransferred, error) { - event := new(CelerWalletOwnershipTransferred) - if err := _CelerWallet.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseOwnershipTransferred(log types.Log) (*AgentPayWalletOwnershipTransferred, error) { + event := new(AgentPayWalletOwnershipTransferred) + if err := _AgentPayWallet.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the CelerWallet contract. -type CelerWalletPausedIterator struct { - Event *CelerWalletPaused // Event containing the contract specifics and raw log +// AgentPayWalletPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the AgentPayWallet contract. +type AgentPayWalletPausedIterator struct { + Event *AgentPayWalletPaused // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1381,7 +1381,7 @@ type CelerWalletPausedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletPausedIterator) Next() bool { +func (it *AgentPayWalletPausedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1390,7 +1390,7 @@ func (it *CelerWalletPausedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletPaused) + it.Event = new(AgentPayWalletPaused) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1405,7 +1405,7 @@ func (it *CelerWalletPausedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletPaused) + it.Event = new(AgentPayWalletPaused) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1421,19 +1421,19 @@ func (it *CelerWalletPausedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletPausedIterator) Error() error { +func (it *AgentPayWalletPausedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletPausedIterator) Close() error { +func (it *AgentPayWalletPausedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletPaused represents a Paused event raised by the CelerWallet contract. -type CelerWalletPaused struct { +// AgentPayWalletPaused represents a Paused event raised by the AgentPayWallet contract. +type AgentPayWalletPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos } @@ -1441,21 +1441,21 @@ type CelerWalletPaused struct { // FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. // // Solidity: event Paused(address account) -func (_CelerWallet *CelerWalletFilterer) FilterPaused(opts *bind.FilterOpts) (*CelerWalletPausedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterPaused(opts *bind.FilterOpts) (*AgentPayWalletPausedIterator, error) { - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "Paused") + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "Paused") if err != nil { return nil, err } - return &CelerWalletPausedIterator{contract: _CelerWallet.contract, event: "Paused", logs: logs, sub: sub}, nil + return &AgentPayWalletPausedIterator{contract: _AgentPayWallet.contract, event: "Paused", logs: logs, sub: sub}, nil } // WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. // // Solidity: event Paused(address account) -func (_CelerWallet *CelerWalletFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *CelerWalletPaused) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *AgentPayWalletPaused) (event.Subscription, error) { - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "Paused") + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "Paused") if err != nil { return nil, err } @@ -1465,8 +1465,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchPaused(opts *bind.WatchOpts, sink select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletPaused) - if err := _CelerWallet.contract.UnpackLog(event, "Paused", log); err != nil { + event := new(AgentPayWalletPaused) + if err := _AgentPayWallet.contract.UnpackLog(event, "Paused", log); err != nil { return err } event.Raw = log @@ -1490,18 +1490,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchPaused(opts *bind.WatchOpts, sink // ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. // // Solidity: event Paused(address account) -func (_CelerWallet *CelerWalletFilterer) ParsePaused(log types.Log) (*CelerWalletPaused, error) { - event := new(CelerWalletPaused) - if err := _CelerWallet.contract.UnpackLog(event, "Paused", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParsePaused(log types.Log) (*AgentPayWalletPaused, error) { + event := new(AgentPayWalletPaused) + if err := _AgentPayWallet.contract.UnpackLog(event, "Paused", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletTokenDrainedIterator is returned from FilterTokenDrained and is used to iterate over the raw logs and unpacked data for TokenDrained events raised by the CelerWallet contract. -type CelerWalletTokenDrainedIterator struct { - Event *CelerWalletTokenDrained // Event containing the contract specifics and raw log +// AgentPayWalletTokenDrainedIterator is returned from FilterTokenDrained and is used to iterate over the raw logs and unpacked data for TokenDrained events raised by the AgentPayWallet contract. +type AgentPayWalletTokenDrainedIterator struct { + Event *AgentPayWalletTokenDrained // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1515,7 +1515,7 @@ type CelerWalletTokenDrainedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletTokenDrainedIterator) Next() bool { +func (it *AgentPayWalletTokenDrainedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1524,7 +1524,7 @@ func (it *CelerWalletTokenDrainedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletTokenDrained) + it.Event = new(AgentPayWalletTokenDrained) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1539,7 +1539,7 @@ func (it *CelerWalletTokenDrainedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletTokenDrained) + it.Event = new(AgentPayWalletTokenDrained) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1555,19 +1555,19 @@ func (it *CelerWalletTokenDrainedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletTokenDrainedIterator) Error() error { +func (it *AgentPayWalletTokenDrainedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletTokenDrainedIterator) Close() error { +func (it *AgentPayWalletTokenDrainedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletTokenDrained represents a TokenDrained event raised by the CelerWallet contract. -type CelerWalletTokenDrained struct { +// AgentPayWalletTokenDrained represents a TokenDrained event raised by the AgentPayWallet contract. +type AgentPayWalletTokenDrained struct { TokenAddress common.Address Receiver common.Address Amount *big.Int @@ -1577,7 +1577,7 @@ type CelerWalletTokenDrained struct { // FilterTokenDrained is a free log retrieval operation binding the contract event 0xb9f4fab3dc87425962ebb52a84543eb50c90a808609ee6967a38308d6119c4bc. // // Solidity: event TokenDrained(address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) FilterTokenDrained(opts *bind.FilterOpts, tokenAddress []common.Address, receiver []common.Address) (*CelerWalletTokenDrainedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterTokenDrained(opts *bind.FilterOpts, tokenAddress []common.Address, receiver []common.Address) (*AgentPayWalletTokenDrainedIterator, error) { var tokenAddressRule []interface{} for _, tokenAddressItem := range tokenAddress { @@ -1588,17 +1588,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterTokenDrained(opts *bind.FilterOpt receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "TokenDrained", tokenAddressRule, receiverRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "TokenDrained", tokenAddressRule, receiverRule) if err != nil { return nil, err } - return &CelerWalletTokenDrainedIterator{contract: _CelerWallet.contract, event: "TokenDrained", logs: logs, sub: sub}, nil + return &AgentPayWalletTokenDrainedIterator{contract: _AgentPayWallet.contract, event: "TokenDrained", logs: logs, sub: sub}, nil } // WatchTokenDrained is a free log subscription operation binding the contract event 0xb9f4fab3dc87425962ebb52a84543eb50c90a808609ee6967a38308d6119c4bc. // // Solidity: event TokenDrained(address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) WatchTokenDrained(opts *bind.WatchOpts, sink chan<- *CelerWalletTokenDrained, tokenAddress []common.Address, receiver []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchTokenDrained(opts *bind.WatchOpts, sink chan<- *AgentPayWalletTokenDrained, tokenAddress []common.Address, receiver []common.Address) (event.Subscription, error) { var tokenAddressRule []interface{} for _, tokenAddressItem := range tokenAddress { @@ -1609,7 +1609,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchTokenDrained(opts *bind.WatchOpts, receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "TokenDrained", tokenAddressRule, receiverRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "TokenDrained", tokenAddressRule, receiverRule) if err != nil { return nil, err } @@ -1619,8 +1619,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchTokenDrained(opts *bind.WatchOpts, select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletTokenDrained) - if err := _CelerWallet.contract.UnpackLog(event, "TokenDrained", log); err != nil { + event := new(AgentPayWalletTokenDrained) + if err := _AgentPayWallet.contract.UnpackLog(event, "TokenDrained", log); err != nil { return err } event.Raw = log @@ -1644,18 +1644,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchTokenDrained(opts *bind.WatchOpts, // ParseTokenDrained is a log parse operation binding the contract event 0xb9f4fab3dc87425962ebb52a84543eb50c90a808609ee6967a38308d6119c4bc. // // Solidity: event TokenDrained(address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) ParseTokenDrained(log types.Log) (*CelerWalletTokenDrained, error) { - event := new(CelerWalletTokenDrained) - if err := _CelerWallet.contract.UnpackLog(event, "TokenDrained", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseTokenDrained(log types.Log) (*AgentPayWalletTokenDrained, error) { + event := new(AgentPayWalletTokenDrained) + if err := _AgentPayWallet.contract.UnpackLog(event, "TokenDrained", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletTransferredBetweenWalletsIterator is returned from FilterTransferredBetweenWallets and is used to iterate over the raw logs and unpacked data for TransferredBetweenWallets events raised by the CelerWallet contract. -type CelerWalletTransferredBetweenWalletsIterator struct { - Event *CelerWalletTransferredBetweenWallets // Event containing the contract specifics and raw log +// AgentPayWalletTransferredBetweenWalletsIterator is returned from FilterTransferredBetweenWallets and is used to iterate over the raw logs and unpacked data for TransferredBetweenWallets events raised by the AgentPayWallet contract. +type AgentPayWalletTransferredBetweenWalletsIterator struct { + Event *AgentPayWalletTransferredBetweenWallets // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1669,7 +1669,7 @@ type CelerWalletTransferredBetweenWalletsIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletTransferredBetweenWalletsIterator) Next() bool { +func (it *AgentPayWalletTransferredBetweenWalletsIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1678,7 +1678,7 @@ func (it *CelerWalletTransferredBetweenWalletsIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletTransferredBetweenWallets) + it.Event = new(AgentPayWalletTransferredBetweenWallets) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1693,7 +1693,7 @@ func (it *CelerWalletTransferredBetweenWalletsIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletTransferredBetweenWallets) + it.Event = new(AgentPayWalletTransferredBetweenWallets) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1709,19 +1709,19 @@ func (it *CelerWalletTransferredBetweenWalletsIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletTransferredBetweenWalletsIterator) Error() error { +func (it *AgentPayWalletTransferredBetweenWalletsIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletTransferredBetweenWalletsIterator) Close() error { +func (it *AgentPayWalletTransferredBetweenWalletsIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletTransferredBetweenWallets represents a TransferredBetweenWallets event raised by the CelerWallet contract. -type CelerWalletTransferredBetweenWallets struct { +// AgentPayWalletTransferredBetweenWallets represents a TransferredBetweenWallets event raised by the AgentPayWallet contract. +type AgentPayWalletTransferredBetweenWallets struct { FromWalletId [32]byte ToWalletId [32]byte TokenAddress common.Address @@ -1733,7 +1733,7 @@ type CelerWalletTransferredBetweenWallets struct { // FilterTransferredBetweenWallets is a free log retrieval operation binding the contract event 0x181fa219f874a081d83f85e8c9afdc32ede9e7cc757b9537f9cd04f3417a6130. // // Solidity: event TransferredBetweenWallets(bytes32 indexed fromWalletId, bytes32 indexed toWalletId, address indexed tokenAddress, address receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) FilterTransferredBetweenWallets(opts *bind.FilterOpts, fromWalletId [][32]byte, toWalletId [][32]byte, tokenAddress []common.Address) (*CelerWalletTransferredBetweenWalletsIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterTransferredBetweenWallets(opts *bind.FilterOpts, fromWalletId [][32]byte, toWalletId [][32]byte, tokenAddress []common.Address) (*AgentPayWalletTransferredBetweenWalletsIterator, error) { var fromWalletIdRule []interface{} for _, fromWalletIdItem := range fromWalletId { @@ -1748,17 +1748,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterTransferredBetweenWallets(opts *b tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "TransferredBetweenWallets", fromWalletIdRule, toWalletIdRule, tokenAddressRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "TransferredBetweenWallets", fromWalletIdRule, toWalletIdRule, tokenAddressRule) if err != nil { return nil, err } - return &CelerWalletTransferredBetweenWalletsIterator{contract: _CelerWallet.contract, event: "TransferredBetweenWallets", logs: logs, sub: sub}, nil + return &AgentPayWalletTransferredBetweenWalletsIterator{contract: _AgentPayWallet.contract, event: "TransferredBetweenWallets", logs: logs, sub: sub}, nil } // WatchTransferredBetweenWallets is a free log subscription operation binding the contract event 0x181fa219f874a081d83f85e8c9afdc32ede9e7cc757b9537f9cd04f3417a6130. // // Solidity: event TransferredBetweenWallets(bytes32 indexed fromWalletId, bytes32 indexed toWalletId, address indexed tokenAddress, address receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) WatchTransferredBetweenWallets(opts *bind.WatchOpts, sink chan<- *CelerWalletTransferredBetweenWallets, fromWalletId [][32]byte, toWalletId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchTransferredBetweenWallets(opts *bind.WatchOpts, sink chan<- *AgentPayWalletTransferredBetweenWallets, fromWalletId [][32]byte, toWalletId [][32]byte, tokenAddress []common.Address) (event.Subscription, error) { var fromWalletIdRule []interface{} for _, fromWalletIdItem := range fromWalletId { @@ -1773,7 +1773,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchTransferredBetweenWallets(opts *bi tokenAddressRule = append(tokenAddressRule, tokenAddressItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "TransferredBetweenWallets", fromWalletIdRule, toWalletIdRule, tokenAddressRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "TransferredBetweenWallets", fromWalletIdRule, toWalletIdRule, tokenAddressRule) if err != nil { return nil, err } @@ -1783,8 +1783,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchTransferredBetweenWallets(opts *bi select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletTransferredBetweenWallets) - if err := _CelerWallet.contract.UnpackLog(event, "TransferredBetweenWallets", log); err != nil { + event := new(AgentPayWalletTransferredBetweenWallets) + if err := _AgentPayWallet.contract.UnpackLog(event, "TransferredBetweenWallets", log); err != nil { return err } event.Raw = log @@ -1808,18 +1808,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchTransferredBetweenWallets(opts *bi // ParseTransferredBetweenWallets is a log parse operation binding the contract event 0x181fa219f874a081d83f85e8c9afdc32ede9e7cc757b9537f9cd04f3417a6130. // // Solidity: event TransferredBetweenWallets(bytes32 indexed fromWalletId, bytes32 indexed toWalletId, address indexed tokenAddress, address receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) ParseTransferredBetweenWallets(log types.Log) (*CelerWalletTransferredBetweenWallets, error) { - event := new(CelerWalletTransferredBetweenWallets) - if err := _CelerWallet.contract.UnpackLog(event, "TransferredBetweenWallets", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseTransferredBetweenWallets(log types.Log) (*AgentPayWalletTransferredBetweenWallets, error) { + event := new(AgentPayWalletTransferredBetweenWallets) + if err := _AgentPayWallet.contract.UnpackLog(event, "TransferredBetweenWallets", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the CelerWallet contract. -type CelerWalletUnpausedIterator struct { - Event *CelerWalletUnpaused // Event containing the contract specifics and raw log +// AgentPayWalletUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the AgentPayWallet contract. +type AgentPayWalletUnpausedIterator struct { + Event *AgentPayWalletUnpaused // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1833,7 +1833,7 @@ type CelerWalletUnpausedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletUnpausedIterator) Next() bool { +func (it *AgentPayWalletUnpausedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1842,7 +1842,7 @@ func (it *CelerWalletUnpausedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletUnpaused) + it.Event = new(AgentPayWalletUnpaused) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1857,7 +1857,7 @@ func (it *CelerWalletUnpausedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletUnpaused) + it.Event = new(AgentPayWalletUnpaused) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1873,19 +1873,19 @@ func (it *CelerWalletUnpausedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletUnpausedIterator) Error() error { +func (it *AgentPayWalletUnpausedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletUnpausedIterator) Close() error { +func (it *AgentPayWalletUnpausedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletUnpaused represents a Unpaused event raised by the CelerWallet contract. -type CelerWalletUnpaused struct { +// AgentPayWalletUnpaused represents a Unpaused event raised by the AgentPayWallet contract. +type AgentPayWalletUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos } @@ -1893,21 +1893,21 @@ type CelerWalletUnpaused struct { // FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. // // Solidity: event Unpaused(address account) -func (_CelerWallet *CelerWalletFilterer) FilterUnpaused(opts *bind.FilterOpts) (*CelerWalletUnpausedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterUnpaused(opts *bind.FilterOpts) (*AgentPayWalletUnpausedIterator, error) { - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "Unpaused") + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "Unpaused") if err != nil { return nil, err } - return &CelerWalletUnpausedIterator{contract: _CelerWallet.contract, event: "Unpaused", logs: logs, sub: sub}, nil + return &AgentPayWalletUnpausedIterator{contract: _AgentPayWallet.contract, event: "Unpaused", logs: logs, sub: sub}, nil } // WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. // // Solidity: event Unpaused(address account) -func (_CelerWallet *CelerWalletFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *CelerWalletUnpaused) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *AgentPayWalletUnpaused) (event.Subscription, error) { - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "Unpaused") + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "Unpaused") if err != nil { return nil, err } @@ -1917,8 +1917,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchUnpaused(opts *bind.WatchOpts, sin select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletUnpaused) - if err := _CelerWallet.contract.UnpackLog(event, "Unpaused", log); err != nil { + event := new(AgentPayWalletUnpaused) + if err := _AgentPayWallet.contract.UnpackLog(event, "Unpaused", log); err != nil { return err } event.Raw = log @@ -1942,18 +1942,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchUnpaused(opts *bind.WatchOpts, sin // ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. // // Solidity: event Unpaused(address account) -func (_CelerWallet *CelerWalletFilterer) ParseUnpaused(log types.Log) (*CelerWalletUnpaused, error) { - event := new(CelerWalletUnpaused) - if err := _CelerWallet.contract.UnpackLog(event, "Unpaused", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseUnpaused(log types.Log) (*AgentPayWalletUnpaused, error) { + event := new(AgentPayWalletUnpaused) + if err := _AgentPayWallet.contract.UnpackLog(event, "Unpaused", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletWalletCreatedIterator is returned from FilterWalletCreated and is used to iterate over the raw logs and unpacked data for WalletCreated events raised by the CelerWallet contract. -type CelerWalletWalletCreatedIterator struct { - Event *CelerWalletWalletCreated // Event containing the contract specifics and raw log +// AgentPayWalletWalletCreatedIterator is returned from FilterWalletCreated and is used to iterate over the raw logs and unpacked data for WalletCreated events raised by the AgentPayWallet contract. +type AgentPayWalletWalletCreatedIterator struct { + Event *AgentPayWalletWalletCreated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -1967,7 +1967,7 @@ type CelerWalletWalletCreatedIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletWalletCreatedIterator) Next() bool { +func (it *AgentPayWalletWalletCreatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -1976,7 +1976,7 @@ func (it *CelerWalletWalletCreatedIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletWalletCreated) + it.Event = new(AgentPayWalletWalletCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -1991,7 +1991,7 @@ func (it *CelerWalletWalletCreatedIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletWalletCreated) + it.Event = new(AgentPayWalletWalletCreated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2007,19 +2007,19 @@ func (it *CelerWalletWalletCreatedIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletWalletCreatedIterator) Error() error { +func (it *AgentPayWalletWalletCreatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletWalletCreatedIterator) Close() error { +func (it *AgentPayWalletWalletCreatedIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletWalletCreated represents a WalletCreated event raised by the CelerWallet contract. -type CelerWalletWalletCreated struct { +// AgentPayWalletWalletCreated represents a WalletCreated event raised by the AgentPayWallet contract. +type AgentPayWalletWalletCreated struct { WalletId [32]byte Owners []common.Address Operator common.Address @@ -2029,7 +2029,7 @@ type CelerWalletWalletCreated struct { // FilterWalletCreated is a free log retrieval operation binding the contract event 0x8c665d417fd8d3d60d702a3d19dc8184b038e82487203ff32011555beb6cad90. // // Solidity: event WalletCreated(bytes32 indexed walletId, address[] indexed owners, address indexed operator) -func (_CelerWallet *CelerWalletFilterer) FilterWalletCreated(opts *bind.FilterOpts, walletId [][32]byte, owners [][]common.Address, operator []common.Address) (*CelerWalletWalletCreatedIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterWalletCreated(opts *bind.FilterOpts, walletId [][32]byte, owners [][]common.Address, operator []common.Address) (*AgentPayWalletWalletCreatedIterator, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -2044,17 +2044,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterWalletCreated(opts *bind.FilterOp operatorRule = append(operatorRule, operatorItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "WalletCreated", walletIdRule, ownersRule, operatorRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "WalletCreated", walletIdRule, ownersRule, operatorRule) if err != nil { return nil, err } - return &CelerWalletWalletCreatedIterator{contract: _CelerWallet.contract, event: "WalletCreated", logs: logs, sub: sub}, nil + return &AgentPayWalletWalletCreatedIterator{contract: _AgentPayWallet.contract, event: "WalletCreated", logs: logs, sub: sub}, nil } // WatchWalletCreated is a free log subscription operation binding the contract event 0x8c665d417fd8d3d60d702a3d19dc8184b038e82487203ff32011555beb6cad90. // // Solidity: event WalletCreated(bytes32 indexed walletId, address[] indexed owners, address indexed operator) -func (_CelerWallet *CelerWalletFilterer) WatchWalletCreated(opts *bind.WatchOpts, sink chan<- *CelerWalletWalletCreated, walletId [][32]byte, owners [][]common.Address, operator []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchWalletCreated(opts *bind.WatchOpts, sink chan<- *AgentPayWalletWalletCreated, walletId [][32]byte, owners [][]common.Address, operator []common.Address) (event.Subscription, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -2069,7 +2069,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchWalletCreated(opts *bind.WatchOpts operatorRule = append(operatorRule, operatorItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "WalletCreated", walletIdRule, ownersRule, operatorRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "WalletCreated", walletIdRule, ownersRule, operatorRule) if err != nil { return nil, err } @@ -2079,8 +2079,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchWalletCreated(opts *bind.WatchOpts select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletWalletCreated) - if err := _CelerWallet.contract.UnpackLog(event, "WalletCreated", log); err != nil { + event := new(AgentPayWalletWalletCreated) + if err := _AgentPayWallet.contract.UnpackLog(event, "WalletCreated", log); err != nil { return err } event.Raw = log @@ -2104,18 +2104,18 @@ func (_CelerWallet *CelerWalletFilterer) WatchWalletCreated(opts *bind.WatchOpts // ParseWalletCreated is a log parse operation binding the contract event 0x8c665d417fd8d3d60d702a3d19dc8184b038e82487203ff32011555beb6cad90. // // Solidity: event WalletCreated(bytes32 indexed walletId, address[] indexed owners, address indexed operator) -func (_CelerWallet *CelerWalletFilterer) ParseWalletCreated(log types.Log) (*CelerWalletWalletCreated, error) { - event := new(CelerWalletWalletCreated) - if err := _CelerWallet.contract.UnpackLog(event, "WalletCreated", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseWalletCreated(log types.Log) (*AgentPayWalletWalletCreated, error) { + event := new(AgentPayWalletWalletCreated) + if err := _AgentPayWallet.contract.UnpackLog(event, "WalletCreated", log); err != nil { return nil, err } event.Raw = log return event, nil } -// CelerWalletWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the CelerWallet contract. -type CelerWalletWithdrawnIterator struct { - Event *CelerWalletWithdrawn // Event containing the contract specifics and raw log +// AgentPayWalletWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the AgentPayWallet contract. +type AgentPayWalletWithdrawnIterator struct { + Event *AgentPayWalletWithdrawn // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data @@ -2129,7 +2129,7 @@ type CelerWalletWithdrawnIterator struct { // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. -func (it *CelerWalletWithdrawnIterator) Next() bool { +func (it *AgentPayWalletWithdrawnIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false @@ -2138,7 +2138,7 @@ func (it *CelerWalletWithdrawnIterator) Next() bool { if it.done { select { case log := <-it.logs: - it.Event = new(CelerWalletWithdrawn) + it.Event = new(AgentPayWalletWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2153,7 +2153,7 @@ func (it *CelerWalletWithdrawnIterator) Next() bool { // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: - it.Event = new(CelerWalletWithdrawn) + it.Event = new(AgentPayWalletWithdrawn) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false @@ -2169,19 +2169,19 @@ func (it *CelerWalletWithdrawnIterator) Next() bool { } // Error returns any retrieval or parsing error occurred during filtering. -func (it *CelerWalletWithdrawnIterator) Error() error { +func (it *AgentPayWalletWithdrawnIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. -func (it *CelerWalletWithdrawnIterator) Close() error { +func (it *AgentPayWalletWithdrawnIterator) Close() error { it.sub.Unsubscribe() return nil } -// CelerWalletWithdrawn represents a Withdrawn event raised by the CelerWallet contract. -type CelerWalletWithdrawn struct { +// AgentPayWalletWithdrawn represents a Withdrawn event raised by the AgentPayWallet contract. +type AgentPayWalletWithdrawn struct { WalletId [32]byte TokenAddress common.Address Receiver common.Address @@ -2192,7 +2192,7 @@ type CelerWalletWithdrawn struct { // FilterWithdrawn is a free log retrieval operation binding the contract event 0xa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb. // // Solidity: event Withdrawn(bytes32 indexed walletId, address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) FilterWithdrawn(opts *bind.FilterOpts, walletId [][32]byte, tokenAddress []common.Address, receiver []common.Address) (*CelerWalletWithdrawnIterator, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) FilterWithdrawn(opts *bind.FilterOpts, walletId [][32]byte, tokenAddress []common.Address, receiver []common.Address) (*AgentPayWalletWithdrawnIterator, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -2207,17 +2207,17 @@ func (_CelerWallet *CelerWalletFilterer) FilterWithdrawn(opts *bind.FilterOpts, receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerWallet.contract.FilterLogs(opts, "Withdrawn", walletIdRule, tokenAddressRule, receiverRule) + logs, sub, err := _AgentPayWallet.contract.FilterLogs(opts, "Withdrawn", walletIdRule, tokenAddressRule, receiverRule) if err != nil { return nil, err } - return &CelerWalletWithdrawnIterator{contract: _CelerWallet.contract, event: "Withdrawn", logs: logs, sub: sub}, nil + return &AgentPayWalletWithdrawnIterator{contract: _AgentPayWallet.contract, event: "Withdrawn", logs: logs, sub: sub}, nil } // WatchWithdrawn is a free log subscription operation binding the contract event 0xa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb. // // Solidity: event Withdrawn(bytes32 indexed walletId, address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *CelerWalletWithdrawn, walletId [][32]byte, tokenAddress []common.Address, receiver []common.Address) (event.Subscription, error) { +func (_AgentPayWallet *AgentPayWalletFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *AgentPayWalletWithdrawn, walletId [][32]byte, tokenAddress []common.Address, receiver []common.Address) (event.Subscription, error) { var walletIdRule []interface{} for _, walletIdItem := range walletId { @@ -2232,7 +2232,7 @@ func (_CelerWallet *CelerWalletFilterer) WatchWithdrawn(opts *bind.WatchOpts, si receiverRule = append(receiverRule, receiverItem) } - logs, sub, err := _CelerWallet.contract.WatchLogs(opts, "Withdrawn", walletIdRule, tokenAddressRule, receiverRule) + logs, sub, err := _AgentPayWallet.contract.WatchLogs(opts, "Withdrawn", walletIdRule, tokenAddressRule, receiverRule) if err != nil { return nil, err } @@ -2242,8 +2242,8 @@ func (_CelerWallet *CelerWalletFilterer) WatchWithdrawn(opts *bind.WatchOpts, si select { case log := <-logs: // New log arrived, parse the event and forward to the user - event := new(CelerWalletWithdrawn) - if err := _CelerWallet.contract.UnpackLog(event, "Withdrawn", log); err != nil { + event := new(AgentPayWalletWithdrawn) + if err := _AgentPayWallet.contract.UnpackLog(event, "Withdrawn", log); err != nil { return err } event.Raw = log @@ -2267,9 +2267,9 @@ func (_CelerWallet *CelerWalletFilterer) WatchWithdrawn(opts *bind.WatchOpts, si // ParseWithdrawn is a log parse operation binding the contract event 0xa6786aab7dbbc48b4b0387488b407bd81448030ab207b50bea7dbb5fbc1cd9eb. // // Solidity: event Withdrawn(bytes32 indexed walletId, address indexed tokenAddress, address indexed receiver, uint256 amount) -func (_CelerWallet *CelerWalletFilterer) ParseWithdrawn(log types.Log) (*CelerWalletWithdrawn, error) { - event := new(CelerWalletWithdrawn) - if err := _CelerWallet.contract.UnpackLog(event, "Withdrawn", log); err != nil { +func (_AgentPayWallet *AgentPayWalletFilterer) ParseWithdrawn(log types.Log) (*AgentPayWalletWithdrawn, error) { + event := new(AgentPayWalletWithdrawn) + if err := _AgentPayWallet.contract.UnpackLog(event, "Withdrawn", log); err != nil { return nil, err } event.Raw = log diff --git a/chain/erc20.go b/chain/erc20.go index 749fa7e..19b886f 100644 --- a/chain/erc20.go +++ b/chain/erc20.go @@ -33,7 +33,7 @@ var ( // ERC20MetaData contains all meta data concerning the ERC20 contract. var ERC20MetaData = &bind.MetaData{ ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"DECIMALS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"INITIAL_SUPPLY\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ERC20InsufficientAllowance\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"allowance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InsufficientBalance\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidApprover\",\"inputs\":[{\"name\":\"approver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidReceiver\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSender\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ERC20InvalidSpender\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"}]}]", - Bin: "0x608060405234801561000f575f5ffd5b506040518060400160405280601181526020017022a921991822bc30b6b83632aa37b5b2b760791b81525060405180604001604052806005815260200164045455432360dc1b81525081600390816100679190610293565b5060046100748282610293565b505050610093336b204fce5e3e2502611000000061009860201b60201c565b610372565b6001600160a01b0382166100c65760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6100d15f83836100d5565b5050565b6001600160a01b0383166100ff578060025f8282546100f4919061034d565b9091555061016f9050565b6001600160a01b0383165f90815260208190526040902054818110156101515760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100bd565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661018b576002805482900390556101a9565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516101ee91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061022357607f821691505b60208210810361024157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561028e57805f5260205f20601f840160051c8101602085101561026c5750805b601f840160051c820191505b8181101561028b575f8155600101610278565b50505b505050565b81516001600160401b038111156102ac576102ac6101fb565b6102c0816102ba845461020f565b84610247565b6020601f8211600181146102f2575f83156102db5750848201515b5f19600385901b1c1916600184901b17845561028b565b5f84815260208120601f198516915b828110156103215787850151825560209485019460019092019101610301565b508482101561033e57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8082018082111561036c57634e487b7160e01b5f52601160045260245ffd5b92915050565b61071f8061037f5f395ff3fe608060405234801561000f575f5ffd5b50600436106100a6575f3560e01c80632ff2e9dc1161006e5780632ff2e9dc1461012a578063313ce5671461013d57806370a082311461014457806395d89b411461016c578063a9059cbb14610174578063dd62ed3e14610187575f5ffd5b806306fdde03146100aa578063095ea7b3146100c857806318160ddd146100eb57806323b872dd146100fd5780632e0f262514610110575b5f5ffd5b6100b26101bf565b6040516100bf919061058f565b60405180910390f35b6100db6100d63660046105df565b61024f565b60405190151581526020016100bf565b6002545b6040519081526020016100bf565b6100db61010b366004610607565b610268565b610118601281565b60405160ff90911681526020016100bf565b6100ef6b204fce5e3e2502611000000081565b6012610118565b6100ef610152366004610641565b6001600160a01b03165f9081526020819052604090205490565b6100b261028b565b6100db6101823660046105df565b61029a565b6100ef610195366004610661565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101ce90610692565b80601f01602080910402602001604051908101604052809291908181526020018280546101fa90610692565b80156102455780601f1061021c57610100808354040283529160200191610245565b820191905f5260205f20905b81548152906001019060200180831161022857829003601f168201915b5050505050905090565b5f3361025c8185856102a7565b60019150505b92915050565b5f336102758582856102b9565b61028085858561033a565b506001949350505050565b6060600480546101ce90610692565b5f3361025c81858561033a565b6102b48383836001610397565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610334578181101561032657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61033484848484035f610397565b50505050565b6001600160a01b03831661036357604051634b637e8f60e11b81525f600482015260240161031d565b6001600160a01b03821661038c5760405163ec442f0560e01b81525f600482015260240161031d565b6102b4838383610469565b6001600160a01b0384166103c05760405163e602df0560e01b81525f600482015260240161031d565b6001600160a01b0383166103e957604051634a1406b160e11b81525f600482015260240161031d565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561033457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161045b91815260200190565b60405180910390a350505050565b6001600160a01b038316610493578060025f82825461048891906106ca565b909155506105039050565b6001600160a01b0383165f90815260208190526040902054818110156104e55760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161031d565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661051f5760028054829003905561053d565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161058291815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146105da575f5ffd5b919050565b5f5f604083850312156105f0575f5ffd5b6105f9836105c4565b946020939093013593505050565b5f5f5f60608486031215610619575f5ffd5b610622846105c4565b9250610630602085016105c4565b929592945050506040919091013590565b5f60208284031215610651575f5ffd5b61065a826105c4565b9392505050565b5f5f60408385031215610672575f5ffd5b61067b836105c4565b9150610689602084016105c4565b90509250929050565b600181811c908216806106a657607f821691505b6020821081036106c457634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561026257634e487b7160e01b5f52601160045260245ffdfea2646970667358221220b66ff1335969fa88994db59732210752c1d5e29322ed74d08c5da55377bfd14364736f6c634300081e0033", + Bin: "0x608060405234801561000f575f5ffd5b506040518060400160405280601181526020017022a921991822bc30b6b83632aa37b5b2b760791b81525060405180604001604052806005815260200164045455432360dc1b81525081600390816100679190610293565b5060046100748282610293565b505050610093336b204fce5e3e2502611000000061009860201b60201c565b610372565b6001600160a01b0382166100c65760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6100d15f83836100d5565b5050565b6001600160a01b0383166100ff578060025f8282546100f4919061034d565b9091555061016f9050565b6001600160a01b0383165f90815260208190526040902054818110156101515760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100bd565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661018b576002805482900390556101a9565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516101ee91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061022357607f821691505b60208210810361024157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561028e57805f5260205f20601f840160051c8101602085101561026c5750805b601f840160051c820191505b8181101561028b575f8155600101610278565b50505b505050565b81516001600160401b038111156102ac576102ac6101fb565b6102c0816102ba845461020f565b84610247565b6020601f8211600181146102f2575f83156102db5750848201515b5f19600385901b1c1916600184901b17845561028b565b5f84815260208120601f198516915b828110156103215787850151825560209485019460019092019101610301565b508482101561033e57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8082018082111561036c57634e487b7160e01b5f52601160045260245ffd5b92915050565b61071f8061037f5f395ff3fe608060405234801561000f575f5ffd5b50600436106100a6575f3560e01c80632ff2e9dc1161006e5780632ff2e9dc1461012a578063313ce5671461013d57806370a082311461014457806395d89b411461016c578063a9059cbb14610174578063dd62ed3e14610187575f5ffd5b806306fdde03146100aa578063095ea7b3146100c857806318160ddd146100eb57806323b872dd146100fd5780632e0f262514610110575b5f5ffd5b6100b26101bf565b6040516100bf919061058f565b60405180910390f35b6100db6100d63660046105df565b61024f565b60405190151581526020016100bf565b6002545b6040519081526020016100bf565b6100db61010b366004610607565b610268565b610118601281565b60405160ff90911681526020016100bf565b6100ef6b204fce5e3e2502611000000081565b6012610118565b6100ef610152366004610641565b6001600160a01b03165f9081526020819052604090205490565b6100b261028b565b6100db6101823660046105df565b61029a565b6100ef610195366004610661565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101ce90610692565b80601f01602080910402602001604051908101604052809291908181526020018280546101fa90610692565b80156102455780601f1061021c57610100808354040283529160200191610245565b820191905f5260205f20905b81548152906001019060200180831161022857829003601f168201915b5050505050905090565b5f3361025c8185856102a7565b60019150505b92915050565b5f336102758582856102b9565b61028085858561033a565b506001949350505050565b6060600480546101ce90610692565b5f3361025c81858561033a565b6102b48383836001610397565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610334578181101561032657604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61033484848484035f610397565b50505050565b6001600160a01b03831661036357604051634b637e8f60e11b81525f600482015260240161031d565b6001600160a01b03821661038c5760405163ec442f0560e01b81525f600482015260240161031d565b6102b4838383610469565b6001600160a01b0384166103c05760405163e602df0560e01b81525f600482015260240161031d565b6001600160a01b0383166103e957604051634a1406b160e11b81525f600482015260240161031d565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561033457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161045b91815260200190565b60405180910390a350505050565b6001600160a01b038316610493578060025f82825461048891906106ca565b909155506105039050565b6001600160a01b0383165f90815260208190526040902054818110156104e55760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161031d565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661051f5760028054829003905561053d565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161058291815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146105da575f5ffd5b919050565b5f5f604083850312156105f0575f5ffd5b6105f9836105c4565b946020939093013593505050565b5f5f5f60608486031215610619575f5ffd5b610622846105c4565b9250610630602085016105c4565b929592945050506040919091013590565b5f60208284031215610651575f5ffd5b61065a826105c4565b9392505050565b5f5f60408385031215610672575f5ffd5b61067b836105c4565b9150610689602084016105c4565b90509250929050565b600181811c908216806106a657607f821691505b6020821081036106c457634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561026257634e487b7160e01b5f52601160045260245ffdfea2646970667358221220cd27de9f7cbee984e8201007ea382f4eaa4b920eac4ffeb0b1cf5f779c7a637d64736f6c634300081e0033", } // ERC20ABI is the input ABI used to generate the binding from. diff --git a/cnode/cnode.go b/cnode/cnode.go index b85d895..b2e688b 100644 --- a/cnode/cnode.go +++ b/cnode/cnode.go @@ -499,8 +499,8 @@ func (c *CNode) initialize( c.EthAddress, c.ethclient, profile, - wallet.CelerWalletABI, - ledger.CelerLedgerABI, + wallet.AgentPayWalletABI, + ledger.AgentPayLedgerABI, virtresolver.VirtContractResolverABI, payresolver.PayResolverABI, payregistry.PayRegistryABI, diff --git a/cnode/cooperativewithdraw/common.go b/cnode/cooperativewithdraw/common.go index 4939a53..ace9918 100644 --- a/cnode/cooperativewithdraw/common.go +++ b/cnode/cooperativewithdraw/common.go @@ -110,7 +110,7 @@ func (p *Processor) maybeHandleEvent(eLog *types.Log) bool { if ledgerContract == nil { return false } - e := &ledger.CelerLedgerCooperativeWithdraw{} + e := &ledger.AgentPayLedgerCooperativeWithdraw{} err := ledgerContract.ParseEvent(event.CooperativeWithdraw, *eLog, e) if err != nil { if strings.Contains(err.Error(), "event signature mismatch") { @@ -204,7 +204,7 @@ func (p *Processor) updateOnChainBalance( cid ctype.CidType, self ctype.Addr, peer ctype.Addr, - e *ledger.CelerLedgerCooperativeWithdraw, + e *ledger.AgentPayLedgerCooperativeWithdraw, txHash string) { if len(e.Deposits) != 2 || len(e.Withdrawals) != 2 { log.Error("on chain balances length not match") diff --git a/cnode/cooperativewithdraw/common_test.go b/cnode/cooperativewithdraw/common_test.go index 85192f7..feecb15 100644 --- a/cnode/cooperativewithdraw/common_test.go +++ b/cnode/cooperativewithdraw/common_test.go @@ -139,7 +139,7 @@ func TestUpdateOnChainBalanceAdvancesJobForOsp(t *testing.T) { } p.registerCallback(withdrawHash, cb) - event := &ledgerbinding.CelerLedgerCooperativeWithdraw{ + event := &ledgerbinding.AgentPayLedgerCooperativeWithdraw{ ChannelId: cid, Receiver: self, Deposits: [2]*big.Int{big.NewInt(5), big.NewInt(5)}, diff --git a/cnode/cooperativewithdraw/proposer.go b/cnode/cooperativewithdraw/proposer.go index 22e7723..61ce18f 100644 --- a/cnode/cooperativewithdraw/proposer.go +++ b/cnode/cooperativewithdraw/proposer.go @@ -77,9 +77,9 @@ func (p *Processor) prepareJob(cid ctype.CidType, amount *big.Int) (*structs.Coo return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } contract, err := - ledger.NewCelerLedgerCaller(chanLedger.GetAddr(), p.transactorPool.ContractCaller()) + ledger.NewAgentPayLedgerCaller(chanLedger.GetAddr(), p.transactorPool.ContractCaller()) if err != nil { - return nil, fmt.Errorf("NewCelerLedgerCaller err: %w", err) + return nil, fmt.Errorf("NewAgentPayLedgerCaller err: %w", err) } seqNum, err := contract.GetCooperativeWithdrawSeqNum(&bind.CallOpts{}, cid) if err != nil { @@ -230,7 +230,7 @@ func (p *Processor) sendCooperativeWithdrawTx( return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } contract, contractErr := - ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if contractErr != nil { return nil, contractErr } diff --git a/cnode/open_channel.go b/cnode/open_channel.go index e5f6b54..78f7d33 100644 --- a/cnode/open_channel.go +++ b/cnode/open_channel.go @@ -162,7 +162,7 @@ func (p *openChannelProcessor) prepareChannelInitializer( DisputeTimeout: config.ChannelDisputeTimeout, MsgValueReceiver: msgValueReceiver, // chain id + ledger address bind the signed initializer to a specific - // (chain, CelerLedger) pair so it can't be replayed cross-chain or + // (chain, AgentPayLedger) pair so it can't be replayed cross-chain or // against a different ledger contract on the same chain. ChainId: config.ChainId.Uint64(), LedgerAddress: p.nodeConfig.GetLedgerContract().GetAddr().Bytes(), @@ -472,7 +472,7 @@ func (p *openChannelProcessor) sendOpenChannelTransaction( }, }, func(transactor bind.ContractTransactor, opts *bind.TransactOpts) (*types.Transaction, error) { - contract, err2 := ledger.NewCelerLedgerTransactor(ledgerAddr, transactor) + contract, err2 := ledger.NewAgentPayLedgerTransactor(ledgerAddr, transactor) if err2 != nil { p.processOpenError(openCallback, ledgerAddr, err2) return nil, err2 @@ -506,7 +506,7 @@ func (p *openChannelProcessor) processTcbRequest(in *rpc.OpenChannelRequest, oce ocem.ReadableInitializer = utils.PrintChannelInitializer(pscInitializer) log.Infoln("process tcb openchannel request", utils.PrintChannelInitializer(pscInitializer)) // chain id + ledger address bind the signed initializer to a specific - // (chain, CelerLedger) pair. Same check as the regular open-channel + // (chain, AgentPayLedger) pair. Same check as the regular open-channel // path; without it a TCB approval could be replayed cross-chain or // against a different ledger contract. if pscInitializer.GetChainId() != config.ChainId.Uint64() { @@ -705,7 +705,7 @@ func (p *openChannelProcessor) processOpenChannelRequest(req *rpc.OpenChannelReq ocem.ReadableInitializer = utils.PrintChannelInitializer(&initializer) log.Infoln("process openchannel request", utils.PrintChannelInitializer(&initializer)) // chain id + ledger address bind the signed initializer to a specific - // (chain, CelerLedger) pair. CelerLedger.openChannel does the same check + // (chain, AgentPayLedger) pair. AgentPayLedger.openChannel does the same check // on-chain; rejecting here closes off cross-chain and same-chain // wrong-ledger replay before signing or forwarding. if initializer.GetChainId() != config.ChainId.Uint64() { @@ -807,10 +807,10 @@ func (p *openChannelProcessor) processOpenChannelRequest(req *rpc.OpenChannelReq } func (p *openChannelProcessor) computePscID( channelInitializerBytes []byte, ledgerAdr, walletAddr ctype.Addr) (ctype.CidType, error) { - // Mirror the on-chain CelerWallet.create derivation: + // Mirror the on-chain AgentPayWallet.create derivation: // walletId = keccak256(abi.encodePacked(block.chainid, address(this), msg.sender, _nonce)) // where address(this) is the wallet contract and msg.sender is the - // CelerLedger calling create. _nonce is keccak256(channelInitializerBytes). + // AgentPayLedger calling create. _nonce is keccak256(channelInitializerBytes). nonce := crypto.Keccak256(channelInitializerBytes) chainIdBytes := make([]byte, 32) config.ChainId.FillBytes(chainIdBytes) @@ -1016,7 +1016,7 @@ func (p *openChannelProcessor) monitorEvent(ledgerContract chain.Contract) { func(id monitor.CallbackID, eLog types.Log) bool { ocem := pem.NewOcem(p.nodeConfig.GetRPCAddr()) ocem.Type = pem.OpenChannelEventType_CHANNEL_MINED - e := &ledger.CelerLedgerOpenChannel{} + e := &ledger.AgentPayLedgerOpenChannel{} if err := ledgerContract.ParseEvent(event.OpenChannel, eLog, e); err != nil { log.Error(err) return false @@ -1080,7 +1080,7 @@ func (p *openChannelProcessor) monitorSingleEvent(ledgerContract chain.Contract, func(id monitor.CallbackID, eLog types.Log) bool { ocem := pem.NewOcem(p.nodeConfig.GetRPCAddr()) ocem.Type = pem.OpenChannelEventType_CHANNEL_MINED - e := &ledger.CelerLedgerOpenChannel{} + e := &ledger.AgentPayLedgerOpenChannel{} if err := ledgerContract.ParseEvent(event.OpenChannel, eLog, e); err != nil { log.Error(err) return false diff --git a/cnode/policy_engine.go b/cnode/policy_engine.go index 2fcde21..9692f45 100644 --- a/cnode/policy_engine.go +++ b/cnode/policy_engine.go @@ -204,7 +204,7 @@ func getDepositCapacity(nodeConfig common.GlobalNodeConfig, tokenAddr string) (* conn := nodeConfig.GetEthConn() tokenAddrToCheck := ctype.Hex2Addr(tokenAddr) // Native channels are funded via the chain's wrapped-native (WETH-style) - // contract — pre-approved WETH balance is what CelerLedger pulls when + // contract — pre-approved WETH balance is what AgentPayLedger pulls when // the OSP is the non-msgValueReceiver peer. Capacity therefore lives at // the wrapped-native address's allowance row, not the OSP address. if tokenAddr == ctype.NativeTokenAddrStr { diff --git a/common/cobj/celer_global_node_config_test.go b/common/cobj/celer_global_node_config_test.go index b89593b..79d9fa2 100644 --- a/common/cobj/celer_global_node_config_test.go +++ b/common/cobj/celer_global_node_config_test.go @@ -38,8 +38,8 @@ func TestGnrLedgers(t *testing.T) { onchainAddr, nil, /*ethconn*/ profile, - wallet.CelerWalletABI, - ledger.CelerLedgerABI, + wallet.AgentPayWalletABI, + ledger.AgentPayLedgerABI, virtresolver.VirtContractResolverABI, payresolver.PayResolverABI, payregistry.PayRegistryABI, diff --git a/deposit/deposit_client_mode.go b/deposit/deposit_client_mode.go index 3898da9..ab5a6f2 100644 --- a/deposit/deposit_client_mode.go +++ b/deposit/deposit_client_mode.go @@ -210,7 +210,7 @@ func (p *Processor) sendDepositTx( return nil, fmt.Errorf("no channel found: %x", cid) } contract, contractErr := - ledger.NewCelerLedgerTransactor(ledgerAddr, transactor) + ledger.NewAgentPayLedgerTransactor(ledgerAddr, transactor) if contractErr != nil { return nil, contractErr } diff --git a/deposit/deposit_server_mode.go b/deposit/deposit_server_mode.go index 319acd1..277173c 100644 --- a/deposit/deposit_server_mode.go +++ b/deposit/deposit_server_mode.go @@ -224,7 +224,7 @@ func (p *Processor) depositInBatch(chanDeposits []*channelDeposit, ledgerAddr ct tx, err = p.transactor.Transact( nil, func(transactor bind.ContractTransactor, opts *bind.TransactOpts) (*types.Transaction, error) { - contract, contractErr := ledger.NewCelerLedgerTransactor(ledgerAddr, transactor) + contract, contractErr := ledger.NewAgentPayLedgerTransactor(ledgerAddr, transactor) if contractErr != nil { return nil, contractErr } @@ -462,7 +462,7 @@ func (p *Processor) monitorEvent(ledgerContract chain.Contract) { } p.monitorService.Monitor(monitorCfg, func(id monitor.CallbackID, eLog types.Log) bool { - e := &ledger.CelerLedgerDeposit{} + e := &ledger.AgentPayLedgerDeposit{} err := ledgerContract.ParseEvent(event.Deposit, eLog, e) if err != nil { log.Error(err) @@ -480,7 +480,7 @@ func (p *Processor) monitorEvent(ledgerContract chain.Contract) { } // Update balance and deposit jobs according to an on-chain Deposit event. -func (p *Processor) handleEvent(event *ledger.CelerLedgerDeposit, txHash ctype.Hash) { +func (p *Processor) handleEvent(event *ledger.AgentPayLedgerDeposit, txHash ctype.Hash) { metrics.IncDepositEventCnt() cid := ctype.CidType(event.ChannelId) updateOnChainBalanceTx := func(tx *storage.DALTx, args ...interface{}) error { diff --git a/dispute/dispute_channel.go b/dispute/dispute_channel.go index 4113fed..3b84395 100644 --- a/dispute/dispute_channel.go +++ b/dispute/dispute_channel.go @@ -249,7 +249,7 @@ func (p *Processor) intendSettleTxMethod(cid ctype.CidType, stateArrayBytes []by if chanLedger == nil { return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } - contract, err2 := ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + contract, err2 := ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if err2 != nil { return nil, err2 } @@ -263,7 +263,7 @@ func (p *Processor) confirmSettleTxMethod(cid ctype.CidType) eth.TxMethod { if chanLedger == nil { return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } - contract, err2 := ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + contract, err2 := ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if err2 != nil { return nil, err2 } @@ -370,7 +370,7 @@ func (p *Processor) monitorPaymentChannelSettleEvent(ledgerContract chain.Contra func(id monitor.CallbackID, eLog types.Log) bool { // CAVEAT!!!: suppose we have the same struct of event. // If event struct changes, this monitor does not work. - e := &ledger.CelerLedgerIntendSettle{} + e := &ledger.AgentPayLedgerIntendSettle{} if err := ledgerContract.ParseEvent(event.IntendSettle, eLog, e); err != nil { log.Error(err) return false @@ -409,7 +409,7 @@ func (p *Processor) monitorPaymentChannelSettleEvent(ledgerContract chain.Contra func(id monitor.CallbackID, eLog types.Log) bool { // CAVEAT!!!: suppose we have the same struct of event. // If event struct changes, this monitor does not work. - e := &ledger.CelerLedgerConfirmSettle{} + e := &ledger.AgentPayLedgerConfirmSettle{} if err := ledgerContract.ParseEvent(event.ConfirmSettle, eLog, e); err != nil { log.Error(err) return false diff --git a/dispute/dispute_withdraw.go b/dispute/dispute_withdraw.go index 1e2aabf..6bd87bb 100644 --- a/dispute/dispute_withdraw.go +++ b/dispute/dispute_withdraw.go @@ -61,7 +61,7 @@ func (p *Processor) IntendWithdraw(cidFrom ctype.CidType, amount *big.Int, cidTo return nil, fmt.Errorf("Fail to get ledger for channel: %x", cidFrom) } contract, err2 := - ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if err2 != nil { return nil, err2 } @@ -111,7 +111,7 @@ func (p *Processor) ConfirmWithdraw(cid ctype.CidType) error { return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } contract, err2 := - ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if err2 != nil { return nil, err2 } @@ -144,7 +144,7 @@ func (p *Processor) VetoWithdraw(cid ctype.CidType) error { return nil, fmt.Errorf("Fail to get ledger for channel: %x", cid) } contract, err2 := - ledger.NewCelerLedgerTransactor(chanLedger.GetAddr(), transactor) + ledger.NewAgentPayLedgerTransactor(chanLedger.GetAddr(), transactor) if err2 != nil { return nil, err2 } @@ -173,7 +173,7 @@ func (p *Processor) monitorNoncooperativeWithdrawEvent(ledgerContract chain.Cont func(id monitor.CallbackID, eLog types.Log) bool { // CAVEAT!!!: suppose we have the same struct of event. // If event struct changes, this monitor does not work. - e := &ledger.CelerLedgerIntendWithdraw{} + e := &ledger.AgentPayLedgerIntendWithdraw{} if err := ledgerContract.ParseEvent(event.IntendWithdraw, eLog, e); err != nil { log.Error(err) return false @@ -213,7 +213,7 @@ func (p *Processor) monitorNoncooperativeWithdrawEvent(ledgerContract chain.Cont func(id monitor.CallbackID, eLog types.Log) bool { // CAVEAT!!!: suppose we have the same struct of event. // If event struct changes, this monitor does not work. - e := &ledger.CelerLedgerConfirmWithdraw{} + e := &ledger.AgentPayLedgerConfirmWithdraw{} if err := ledgerContract.ParseEvent(event.ConfirmWithdraw, eLog, e); err != nil { log.Error(err) return false diff --git a/docs/backend-crossnet.md b/docs/backend-crossnet.md index c6de589..75b0968 100644 --- a/docs/backend-crossnet.md +++ b/docs/backend-crossnet.md @@ -18,18 +18,18 @@ where it interacts with the off-chain flow but does not restate it. ## What a "net" is -A net is identified by `(chainId, CelerLedger)`. Given a `CelerLedger` +A net is identified by `(chainId, AgentPayLedger)`. Given a `AgentPayLedger` deployment on a chain, every other contract in the net is derivable: the ledger's constructor binds `NativeWrap` (the chain's WETH-style wrapped- -native contract), `PayRegistry`, and `CelerWallet`, and the `PayResolver` +native contract), `PayRegistry`, and `AgentPayWallet`, and the `PayResolver` that feeds that `PayRegistry` (with its bound `VirtResolver`) is uniquely determined per deployment. -Two OSPs are in the same net iff they boot against the same `CelerLedger` +Two OSPs are in the same net iff they boot against the same `AgentPayLedger` address on the same chain. Channels can only be opened within a single net; cross-net pays travel between OSPs in different nets via bridge OSPs. -Two `CelerLedger`s on the same chain are independent state machines with +Two `AgentPayLedger`s on the same chain are independent state machines with disjoint channel namespaces — so they are different nets even though they share `chainId`. @@ -44,7 +44,7 @@ short-circuit (e.g. `if dstNetId != 0` in Why `netId` is decoupled from `block.chainid`: -1. **Contract upgrades on the same chain.** A `CelerLedger` redeployment +1. **Contract upgrades on the same chain.** A `AgentPayLedger` redeployment produces a new net even though `chainId` is unchanged — the new ledger enforces `initializer.ledger_address == address(this)` and the matching `PayResolver` enforces `pay.payResolver == address(this)`, so signed @@ -52,7 +52,7 @@ Why `netId` is decoupled from `block.chainid`: pair can carry pays across the upgrade window with each side configured for a different net that happens to share `chainId`. 2. **Test harnesses.** `TestE2ECrossNet` deploys three independent - `CelerLedger`s on a single geth instance and routes pays across them as + `AgentPayLedger`s on a single geth instance and routes pays across them as three distinct nets. Without the netId / chainId decoupling, the test couldn't exist without spinning up three geth processes. @@ -69,7 +69,7 @@ means same business entity, or two entities with strong off-chain agreement (escrow, periodic net-out, etc.). The cross-bridge link is **not a payment channel**. The two bridges live on -different chains and cannot share a `CelerLedger` channel. They communicate +different chains and cannot share a `AgentPayLedger` channel. They communicate over a direct gRPC stream (the `CelerStream` they hold for normal peer messaging, with the `MultiServer.FwdMsg` RPC as a fallback for messages that need to land on a specific OSP host within a multi-host deployment). diff --git a/entity/entity.pb.go b/entity/entity.pb.go index 9c705f3..8907c5e 100644 --- a/entity/entity.pb.go +++ b/entity/entity.pb.go @@ -1033,7 +1033,7 @@ type PaymentChannelInitializer struct { // chain id of the intended target chain; binds the signed initializer // against cross-chain replay ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // address of the intended target CelerLedger; binds the signed initializer + // address of the intended target AgentPayLedger; binds the signed initializer // against same-chain wrong-ledger replay LedgerAddress []byte `protobuf:"bytes,6,opt,name=ledger_address,json=ledgerAddress,proto3" json:"ledger_address,omitempty"` unknownFields protoimpl.UnknownFields diff --git a/ledgerview/onchainview.go b/ledgerview/onchainview.go index 1e6d784..8c6eacb 100644 --- a/ledgerview/onchainview.go +++ b/ledgerview/onchainview.go @@ -46,7 +46,7 @@ func ChanStatusName(status uint8) string { } func GetOnChainChannelStatusOnLedger(cid ctype.CidType, nodeConfig common.GlobalNodeConfig, ledgerAddr ctype.Addr) (uint8, error) { - contract, err := ledger.NewCelerLedgerCaller(ledgerAddr, nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(ledgerAddr, nodeConfig.GetEthConn()) if err != nil { return 0, fmt.Errorf("GetOnChainChannelStatusOnLedger new caller failed %w", err) } @@ -70,7 +70,7 @@ func GetOnChainSettleFinalizedTime(cid ctype.CidType, nodeConfig common.GlobalNo if chanLedger == nil { return big.NewInt(0), fmt.Errorf("Fail to get ledger for channel: %x", cid) } - contract, err := ledger.NewCelerLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) if err != nil { return big.NewInt(0), fmt.Errorf("GetOnChainSettleFinalizedTime new caller failed %w", err) } @@ -87,7 +87,7 @@ func GetOnChainWithdrawIntent(cid ctype.CidType, nodeConfig common.GlobalNodeCon if chanLedger == nil { return ctype.ZeroAddr, big.NewInt(0), 0, ctype.ZeroCid, fmt.Errorf("Fail to get ledger for channel: %x", cid) } - contract, err := ledger.NewCelerLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) if err != nil { return ctype.ZeroAddr, big.NewInt(0), 0, ctype.ZeroCid, fmt.Errorf("GetWithdrawIntent new caller failed %w", err) } @@ -103,7 +103,7 @@ func GetOnChainDisputeTimeout(cid ctype.CidType, nodeConfig common.GlobalNodeCon if chanLedger == nil { return 0, fmt.Errorf("Fail to get ledger for channel: %x", cid) } - contract, err := ledger.NewCelerLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(chanLedger.GetAddr(), nodeConfig.GetEthConn()) if err != nil { return 0, fmt.Errorf("GetOnChainSettleFinalizedTime new caller failed %w", err) } @@ -169,7 +169,7 @@ func SyncOnChainBalanceTx(tx *storage.DALTx, cid ctype.CidType, nodeConfig commo // GetOnChainChannelBalance queries the ledger contract for channel balance func GetOnChainChannelBalance(cid ctype.CidType, ledgerAddr ctype.Addr, nodeConfig common.GlobalNodeConfig) (*structs.OnChainBalance, error) { log.Debugln("query contract for channel balance", cid.Hex()) - contract, err := ledger.NewCelerLedgerCaller(ledgerAddr, nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(ledgerAddr, nodeConfig.GetEthConn()) if err != nil { return nil, err } @@ -212,7 +212,7 @@ func GetMigratedTo(dal *storage.DAL, cid ctype.CidType, nodeConfig common.Global return ctype.ZeroAddr, common.ErrChannelNotFound } // Suppose all the ledger has compatible new caller function - contract, err := ledger.NewCelerLedgerCaller(currentLedger, nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(currentLedger, nodeConfig.GetEthConn()) if err != nil { return ctype.ZeroAddr, fmt.Errorf("Fail to new ledger caller: %w", err) } diff --git a/messager/send_cond_pay_request.go b/messager/send_cond_pay_request.go index 04fcbf9..e58fd1a 100644 --- a/messager/send_cond_pay_request.go +++ b/messager/send_cond_pay_request.go @@ -292,7 +292,7 @@ func (m *Messager) runCondPayTx(tx *storage.DALTx, args ...interface{}) error { // single-segment lists, so the literal max is sufficient. If // multi-segment pay lists are ever introduced, fold in a clearMargin // here that reserves wall-clock time for recipients to call - // CelerLedger.clearPays on every segment before confirmSettle. + // AgentPayLedger.clearPays on every segment before confirmSettle. if pay.GetResolveDeadline() > workingSimplex.GetPayClearDeadline() { workingSimplex.PayClearDeadline = pay.GetResolveDeadline() } diff --git a/migrate/migrate_channel.go b/migrate/migrate_channel.go index cb7c126..6bb82b0 100644 --- a/migrate/migrate_channel.go +++ b/migrate/migrate_channel.go @@ -36,7 +36,7 @@ const ( MigrationStateSubmitted int = 1 ) -// MigrateChannelProcessor defines the structure of channel's CelerLedger migration processor +// MigrateChannelProcessor defines the structure of channel's AgentPayLedger migration processor type MigrateChannelProcessor struct { nodeConfig common.GlobalNodeConfig signer eth.Signer @@ -308,7 +308,7 @@ func (p *MigrateChannelProcessor) monitorOnDeprecatedLedgers() { } } -// monitorMigrateChannelEvent monitors onchain event emitted from CelerLedger +// monitorMigrateChannelEvent monitors onchain event emitted from AgentPayLedger func (p *MigrateChannelProcessor) monitorMigrateChannelEvent(contract chain.Contract) { monitorCfg := &monitor.Config{ ChainId: config.ChainId.Uint64(), @@ -321,7 +321,7 @@ func (p *MigrateChannelProcessor) monitorMigrateChannelEvent(contract chain.Cont func(id monitor.CallbackID, eLog types.Log) bool { // CAVEAT!!!: suppose we have the same struct for all migration event. // If migration event struct changes, this monitor does not work. - e := &ledger.CelerLedgerMigrateChannelTo{} + e := &ledger.AgentPayLedgerMigrateChannelTo{} if err := contract.ParseEvent(event.MigrateChannelTo, eLog, e); err != nil { log.Error(err) return false diff --git a/proto/entity.proto b/proto/entity.proto index 53a0da8..5b2d795 100644 --- a/proto/entity.proto +++ b/proto/entity.proto @@ -186,7 +186,7 @@ message PaymentChannelInitializer { // chain id of the intended target chain; binds the signed initializer // against cross-chain replay uint64 chain_id = 5 [(soltype) = "uint"]; - // address of the intended target CelerLedger; binds the signed initializer + // address of the intended target AgentPayLedger; binds the signed initializer // against same-chain wrong-ledger replay bytes ledger_address = 6 [(soltype) = "address"]; } diff --git a/route/routerregistry/routerregistry.go b/route/routerregistry/routerregistry.go index 206545c..a20771d 100644 --- a/route/routerregistry/routerregistry.go +++ b/route/routerregistry/routerregistry.go @@ -33,7 +33,7 @@ var ( // RouterRegistryMetaData contains all meta data concerning the RouterRegistry contract. var RouterRegistryMetaData = &bind.MetaData{ ABI: "[{\"type\":\"function\",\"name\":\"deregisterRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"refreshRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"registerRouter\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"routerInfo\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"RouterUpdated\",\"inputs\":[{\"name\":\"op\",\"type\":\"uint8\",\"indexed\":true,\"internalType\":\"enumIRouterRegistry.RouterOperation\"},{\"name\":\"routerAddress\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"RouterAlreadyRegistered\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"RouterNotRegistered\",\"inputs\":[]}]", - Bin: "0x6080604052348015600e575f5ffd5b506101ef8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c806324f277d21461004e5780632ff0282b146100585780637880945614610060578063d1cf70d114610091575b5f5ffd5b610056610099565b005b610056610102565b61007f61006e36600461018c565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b610056610148565b335f90815260208190526040902054156100c657604051633ba24ff960e11b815260040160405180910390fd5b335f8181526020819052604081204290555b6040517fed739f5df64012854c2039ba144af8e3af26211fc7f10a959c6a592ae58c4491905f90a3565b335f908152602081905260408120549003610130576040516315812c6160e11b815260040160405180910390fd5b335f81815260208190526040902042905560026100d8565b335f908152602081905260408120549003610176576040516315812c6160e11b815260040160405180910390fd5b335f8181526020819052604081205560016100d8565b5f6020828403121561019c575f5ffd5b81356001600160a01b03811681146101b2575f5ffd5b939250505056fea2646970667358221220c1173d557352a367c9a8f980f16d1e8ff288a407c589f0293ef5f4c317aab39164736f6c634300081e0033", + Bin: "0x6080604052348015600e575f5ffd5b506101ef8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c806324f277d21461004e5780632ff0282b146100585780637880945614610060578063d1cf70d114610091575b5f5ffd5b610056610099565b005b610056610102565b61007f61006e36600461018c565b5f6020819052908152604090205481565b60405190815260200160405180910390f35b610056610148565b335f90815260208190526040902054156100c657604051633ba24ff960e11b815260040160405180910390fd5b335f8181526020819052604081204290555b6040517fed739f5df64012854c2039ba144af8e3af26211fc7f10a959c6a592ae58c4491905f90a3565b335f908152602081905260408120549003610130576040516315812c6160e11b815260040160405180910390fd5b335f81815260208190526040902042905560026100d8565b335f908152602081905260408120549003610176576040516315812c6160e11b815260040160405180910390fd5b335f8181526020819052604081205560016100d8565b5f6020828403121561019c575f5ffd5b81356001600160a01b03811681146101b2575f5ffd5b939250505056fea2646970667358221220940adbd524bc143f622dc5d98f54af5f299dc8ea70c00eecd0996ea649e6aea164736f6c634300081e0033", } // RouterRegistryABI is the input ABI used to generate the binding from. diff --git a/route/rt_recover.go b/route/rt_recover.go index 921c989..c8d5e76 100644 --- a/route/rt_recover.go +++ b/route/rt_recover.go @@ -125,7 +125,7 @@ func (p *Controller) startRoutingRecoverProcess( for _, eLog := range logs { switch eLog.Topics[0].Hex() { case openChanString: - e := &ledger.CelerLedgerOpenChannel{} + e := &ledger.AgentPayLedgerOpenChannel{} if err := contract.ParseEvent(event.OpenChannel, eLog, e); err != nil { log.Errorln(err) return err @@ -138,7 +138,7 @@ func (p *Controller) startRoutingRecoverProcess( } } case settleChanString: - e := &ledger.CelerLedgerConfirmSettle{} + e := &ledger.AgentPayLedgerConfirmSettle{} if err := contract.ParseEvent(event.ConfirmSettle, eLog, e); err != nil { log.Errorln(err) return err diff --git a/test/e2e/e2e_chanmigration_test.go b/test/e2e/e2e_chanmigration_test.go index cf39717..12e3d99 100644 --- a/test/e2e/e2e_chanmigration_test.go +++ b/test/e2e/e2e_chanmigration_test.go @@ -200,7 +200,7 @@ func TestE2EChannelMigrationTool(t *testing.T) { t.Error(err) return } - walletContract, err := wallet.NewCelerWalletCaller(ctype.Hex2Addr(tf.E2eProfile.Ethereum.Contracts.Wallet), conn) + walletContract, err := wallet.NewAgentPayWalletCaller(ctype.Hex2Addr(tf.E2eProfile.Ethereum.Contracts.Wallet), conn) if err != nil { t.Error(err) return diff --git a/test/e2e/setup_onchain.go b/test/e2e/setup_onchain.go index 9b0759c..09923ad 100644 --- a/test/e2e/setup_onchain.go +++ b/test/e2e/setup_onchain.go @@ -74,7 +74,7 @@ func SetupOnChain(appMap map[string]ctype.Addr, groupId uint64, autofund bool) ( routerRegistryAddr := deploy.DeployRouterRegistry(ctx, etherBaseAuth, conclient, 0) // NativeWrap (WETH-style) is used later when each OSP wraps its own - // native balance and pre-approves CelerLedger so the open-channel / + // native balance and pre-approves AgentPayLedger so the open-channel / // deposit funding-flow path can pull pre-wrapped native via // `WETH.transferFrom` + `WETH.withdraw` for the non-msgValueReceiver peer. nativeWrapContract, err = nativewrap.NewNativeWrap(channelAddrBundle.NativeWrapAddr, conclient) @@ -83,7 +83,7 @@ func SetupOnChain(appMap map[string]ctype.Addr, groupId uint64, autofund bool) ( } // Disable channel deposit limit - ledgerContract, err := ledger.NewCelerLedger(channelAddrBundle.CelerLedgerAddr, conclient) + ledgerContract, err := ledger.NewAgentPayLedger(channelAddrBundle.AgentPayLedgerAddr, conclient) if err != nil { log.Fatal(err) } @@ -124,13 +124,13 @@ func SetupOnChain(appMap map[string]ctype.Addr, groupId uint64, autofund bool) ( chkTxStatus(receipt.Status, "Deploy BooleanCondMock "+ctype.Addr2Hex(appAddr1)) appMap["BooleanCondMock"] = appAddr1 - // Deploy a new Celer Ledger for channel migration test - log.Infoln("Deploying new CelerLedger contract...") + // Deploy a new AgentPayLedger for channel migration test + log.Infoln("Deploying new AgentPayLedger contract...") newLedgerAddr, tx6, _, err := deploy.DeployContractWithLinks( etherBaseAuth, conclient, - ledger.CelerLedgerABI, - ledger.CelerLedgerBin, + ledger.AgentPayLedgerABI, + ledger.AgentPayLedgerBin, map[string]ctype.Addr{ "LedgerStruct": channelAddrBundle.LedgerStructAddr, "LedgerOperation": channelAddrBundle.OperationAddr, @@ -140,14 +140,14 @@ func SetupOnChain(appMap map[string]ctype.Addr, groupId uint64, autofund bool) ( }, channelAddrBundle.NativeWrapAddr, channelAddrBundle.PayRegistryAddr, - channelAddrBundle.CelerWalletAddr, + channelAddrBundle.AgentPayWalletAddr, ) if err != nil { - log.Fatalf("Failed to deploy new CelerLedger contract: %v", err) + log.Fatalf("Failed to deploy new AgentPayLedger contract: %v", err) } receipt, err = eth.WaitMined(ctx, conclient, tx6, eth.WithPollingInterval(time.Second)) if err != nil { - log.Fatalf("Failed to WaitMined v2 CelerLedger: %v", err) + log.Fatalf("Failed to WaitMined v2 AgentPayLedger: %v", err) } chkTxStatus(receipt.Status, "Deploy v2 Ledger contract at "+ctype.Addr2Hex(newLedgerAddr)) @@ -158,13 +158,13 @@ func SetupOnChain(appMap map[string]ctype.Addr, groupId uint64, autofund bool) ( // contruct ledger map ledgers := map[string]string{ - ctype.Addr2Hex(channelAddrBundle.CelerLedgerAddr): "ledger1", + ctype.Addr2Hex(channelAddrBundle.AgentPayLedgerAddr): "ledger1", ctype.Addr2Hex(newLedgerAddr): "ledger2", } profileContracts := common.ProfileContracts{ - Wallet: ctype.Addr2Hex(channelAddrBundle.CelerWalletAddr), - Ledger: ctype.Addr2Hex(channelAddrBundle.CelerLedgerAddr), + Wallet: ctype.Addr2Hex(channelAddrBundle.AgentPayWalletAddr), + Ledger: ctype.Addr2Hex(channelAddrBundle.AgentPayLedgerAddr), VirtResolver: ctype.Addr2Hex(channelAddrBundle.VirtResolverAddr), NativeWrap: ctype.Addr2Hex(channelAddrBundle.NativeWrapAddr), PayResolver: ctype.Addr2Hex(channelAddrBundle.PayResolverAddr), @@ -270,8 +270,8 @@ func fundEthAddrStep1(addrStr string) *ethtypes.Transaction { // msg.sender, so the OSP must self-wrap — the contract's funding-flow // path requires WETH already in place when the OSP is the // non-msgValueReceiver peer); -// - approves CelerLedger to transferFrom the OSP's WETH balance; -// - approves CelerLedger to transferFrom the OSP's MOON ERC20 balance. +// - approves AgentPayLedger to transferFrom the OSP's WETH balance; +// - approves AgentPayLedger to transferFrom the OSP's MOON ERC20 balance. func fundEthAddrStep2(addrStr, privKeyStr string) (*ethtypes.Transaction, *ethtypes.Transaction, *ethtypes.Transaction) { privKey, err := crypto.HexToECDSA(privKeyStr) if err != nil { @@ -299,16 +299,16 @@ func fundEthAddrStep2(addrStr, privKeyStr string) (*ethtypes.Transaction, *ethty wrapAmt := new(big.Int) wrapAmt.SetString("999000000000000000000000", 10) // 999_000 wrapped native - tx2, err := nativeWrapContract.Approve(auth, channelAddrBundle.CelerLedgerAddr, wrapAmt) + tx2, err := nativeWrapContract.Approve(auth, channelAddrBundle.AgentPayLedgerAddr, wrapAmt) if err != nil { - log.Fatalln("failed to approve native-wrap to celerLedger for", addrStr, err) + log.Fatalln("failed to approve native-wrap to AgentPayLedger for", addrStr, err) } moonAmt := new(big.Int) moonAmt.SetString("1000000000000000000000000000", 10) // 1 billion Moon - tx3, err := erc20Contract.Approve(auth, channelAddrBundle.CelerLedgerAddr, moonAmt) + tx3, err := erc20Contract.Approve(auth, channelAddrBundle.AgentPayLedgerAddr, moonAmt) if err != nil { - log.Fatalln("failed to approve MOON to celerLedger for", addrStr, err) + log.Fatalln("failed to approve MOON to AgentPayLedger for", addrStr, err) } return tx1, tx2, tx3 diff --git a/test/manual/README.md b/test/manual/README.md index 9517ce8..0f7b629 100644 --- a/test/manual/README.md +++ b/test/manual/README.md @@ -28,7 +28,7 @@ Take a look at the constants in [setup.go](./setup.go). In addition to start a t ## 3. Prepare two OSP accounts -Open a new terminal for CLI commands, run **`./osp-cli -profile $AGENTPAY_MANUAL_ROOT/profile/o1_profile.json -ks $AGENTPAY/testing/env/keystore/osp1.json -wrapdeposit -amount 10000 -register -nopassword`** to wrap 10000 native of OSP1 into the chain's wrapped-native (WETH-style) contract and approve CelerLedger to transferFrom that balance, then register OSP1 as a state channel network router. +Open a new terminal for CLI commands, run **`./osp-cli -profile $AGENTPAY_MANUAL_ROOT/profile/o1_profile.json -ks $AGENTPAY/testing/env/keystore/osp1.json -wrapdeposit -amount 10000 -register -nopassword`** to wrap 10000 native of OSP1 into the chain's wrapped-native (WETH-style) contract and approve AgentPayLedger to transferFrom that balance, then register OSP1 as a state channel network router. Then do the same for OSP2, run **`./osp-cli -profile $AGENTPAY_MANUAL_ROOT/profile/o2_profile.json -ks $AGENTPAY/testing/env/keystore/osp2.json -wrapdeposit -amount 10000 -register -nopassword`** diff --git a/tools/channel-migration/channel_migrate.go b/tools/channel-migration/channel_migrate.go index e09479a..6f75455 100644 --- a/tools/channel-migration/channel_migrate.go +++ b/tools/channel-migration/channel_migrate.go @@ -112,7 +112,7 @@ func main() { ksFile.Close() latestLedger := ctype.Hex2Addr(cp.LedgerAddr) - ledgerContract, err := ledger.NewCelerLedger(latestLedger, client) + ledgerContract, err := ledger.NewAgentPayLedger(latestLedger, client) if err != nil { log.Fatalln(err) } @@ -157,7 +157,7 @@ func handleSingleOnchainTx( deadlines map[ctype.CidType]uint64, auth *bind.TransactOpts, client *ethclient.Client, - contract *ledger.CelerLedger, + contract *ledger.AgentPayLedger, blockDelay uint64, dal *storage.DAL, latestLedger ctype.Addr, @@ -234,7 +234,7 @@ func processChannelMigrationTx(tx *storage.DALTx, args ...interface{}) error { return nil } -func migrateChannelFrom(auth *bind.TransactOpts, onchainReq []byte, ledgerContract *ledger.CelerLedger) (*types.Transaction, error) { +func migrateChannelFrom(auth *bind.TransactOpts, onchainReq []byte, ledgerContract *ledger.AgentPayLedger) (*types.Transaction, error) { fromLedger, err := getFromLedger(onchainReq) if err != nil { return nil, err diff --git a/tools/fetch-channels/main.go b/tools/fetch-channels/main.go index 27beac5..156c933 100644 --- a/tools/fetch-channels/main.go +++ b/tools/fetch-channels/main.go @@ -56,7 +56,7 @@ func main() { } // prepare the contract related objects - ledgerABI := ledger.CelerLedgerABI + ledgerABI := ledger.AgentPayLedgerABI ledgerAddr := ctype.Hex2Addr(cp.LedgerAddr) parsedABI, err := abi.JSON(strings.NewReader(ledgerABI)) if err != nil { @@ -124,13 +124,13 @@ func main() { for _, eLog := range logs { switch eLog.Topics[0].Hex() { case openChanString: - e := &ledger.CelerLedgerOpenChannel{} + e := &ledger.AgentPayLedgerOpenChannel{} if err = contract.ParseEvent(event.OpenChannel, eLog, e); err != nil { log.Error(err) } handleOpenChannel(e) case settleChanString: - e := &ledger.CelerLedgerConfirmSettle{} + e := &ledger.AgentPayLedgerConfirmSettle{} if err = contract.ParseEvent(event.ConfirmSettle, eLog, e); err != nil { log.Error(err) } @@ -176,7 +176,7 @@ func keepValidChannel() { data.Channels = channels } -func handleOpenChannel(e *ledger.CelerLedgerOpenChannel) { +func handleOpenChannel(e *ledger.AgentPayLedgerOpenChannel) { cid := ctype.CidType(e.ChannelId).Hex() edge := &route.Channel{ P1: e.PeerAddrs[0], @@ -188,14 +188,14 @@ func handleOpenChannel(e *ledger.CelerLedgerOpenChannel) { openChannelNum++ } -func handleSettleChannel(e *ledger.CelerLedgerConfirmSettle) { +func handleSettleChannel(e *ledger.AgentPayLedgerConfirmSettle) { cid := ctype.CidType(e.ChannelId).Hex() settleChannelInfo[cid] = true settleChannelNum++ } func bindLedgerContract(conn *ethclient.Client, address ec.Address) *chain.BoundContract { - ledgerABI := ledger.CelerLedgerABI + ledgerABI := ledger.AgentPayLedgerABI contract, _ := chain.NewBoundContract(conn, address, ledgerABI) return contract diff --git a/tools/osp-cli/README.md b/tools/osp-cli/README.md index ce445f8..2b1aac2 100644 --- a/tools/osp-cli/README.md +++ b/tools/osp-cli/README.md @@ -45,7 +45,7 @@ Note: `chanstate` is enum integer, valid states for commands above include 3 for ### Query information from blockchain `osp-cli -profile [profile file]` followed by: -* `-onchainview channel -cid [channel ID]`: get onchain channel info from CelerLedger contract +* `-onchainview channel -cid [channel ID]`: get onchain channel info from AgentPayLedger contract * `-onchainview pay -payid [payment ID]`: get onchain payment info from PayRegistry contract * `-onchainview tx -txhash [transaction hash]`: get on-chain transaction information * `-onchainview app -appaddr [app contract addr] -outcome [arg for query outcome] -finalize [arg for query finalization]`: query an `IBooleanCond` condition contract on-chain (`isFinalized` and `getOutcome`) @@ -65,7 +65,7 @@ Note: `chanstate` is enum integer, valid states for commands above include 3 for `osp-cli -profile [profile file] -ks [keystore file]` followed by: -* `-wrapdeposit -amount [amount]`: wrap native into the chain's wrapped-native (WETH-style) contract and approve CelerLedger to transferFrom the wrapped balance +* `-wrapdeposit -amount [amount]`: wrap native into the chain's wrapped-native (WETH-style) contract and approve AgentPayLedger to transferFrom the wrapped balance * `-wrapwithdraw -amount [amount]`: unwrap from the chain's wrapped-native contract back to native * `-register`: register OSP as a state channel router * `-deregister`: deregister OSP as a state channel router diff --git a/tools/osp-cli/cli/cli_db_update_xnet.go b/tools/osp-cli/cli/cli_db_update_xnet.go index ff71897..824610f 100644 --- a/tools/osp-cli/cli/cli_db_update_xnet.go +++ b/tools/osp-cli/cli/cli_db_update_xnet.go @@ -13,12 +13,12 @@ import ( // XnetConfig is the operator-supplied cross-net routing configuration. // -// A "net" is identified by (chainId, CelerLedger): the CelerLedger's +// A "net" is identified by (chainId, AgentPayLedger): the AgentPayLedger's // constructor binds NativeWrap (the chain's WETH-style wrapped-native -// contract), PayRegistry, and CelerWallet, and the PayResolver feeding that +// contract), PayRegistry, and AgentPayWallet, and the PayResolver feeding that // PayRegistry (with its bound VirtResolver) is uniquely determined per // deployment, so the full contract set is derivable from the ledger. Two -// OSPs sharing a netId must boot against the same CelerLedger address on +// OSPs sharing a netId must boot against the same AgentPayLedger address on // the same chain; otherwise channels and signed messages won't validate // across them. // diff --git a/tools/osp-cli/cli/cli_onchain_op.go b/tools/osp-cli/cli/cli_onchain_op.go index e729739..f056871 100644 --- a/tools/osp-cli/cli/cli_onchain_op.go +++ b/tools/osp-cli/cli/cli_onchain_op.go @@ -19,8 +19,8 @@ import ( // NativeWrapDeposit wraps native (e.g., ETH) into the chain's // canonical wrapped-native (WETH-style) contract under the OSP's own -// balance, then approves CelerLedger to transferFrom that wrapped balance -// — the funding-flow shape CelerLedger expects when the OSP is the +// balance, then approves AgentPayLedger to transferFrom that wrapped balance +// — the funding-flow shape AgentPayLedger expects when the OSP is the // non-msgValueReceiver peer of an open-channel call. func (p *Processor) NativeWrapDeposit() { if err := p.depositNativeWrap(); err != nil { @@ -97,7 +97,7 @@ func (p *Processor) depositNativeWrap() error { } func (p *Processor) approveNativeWrapToLedger() error { - log.Info("approve NativeWrap balance to CelerLedger and wait transaction to be mined...") + log.Info("approve NativeWrap balance to AgentPayLedger and wait transaction to be mined...") balance, err := p.queryNativeWrapBalance() if err != nil { return err diff --git a/tools/osp-cli/cli/cli_onchain_view.go b/tools/osp-cli/cli/cli_onchain_view.go index ce0d0d9..3f0e0ab 100644 --- a/tools/osp-cli/cli/cli_onchain_view.go +++ b/tools/osp-cli/cli/cli_onchain_view.go @@ -53,9 +53,9 @@ func (p *Processor) printChannelLedgerInfo(cid ctype.CidType) { fmt.Println("") fmt.Println("-- channel ID:", ctype.Cid2Hex(cid)) chanLedger := p.nodeConfig.GetLedgerContract() - contract, err := ledger.NewCelerLedgerCaller(chanLedger.GetAddr(), p.nodeConfig.GetEthConn()) + contract, err := ledger.NewAgentPayLedgerCaller(chanLedger.GetAddr(), p.nodeConfig.GetEthConn()) if err != nil { - log.Fatal("NewCelerLedgerCaller error", err) + log.Fatal("NewAgentPayLedgerCaller error", err) } status, err := contract.GetChannelStatus(&bind.CallOpts{}, cid) if err != nil { diff --git a/tools/scripts/regenerate-go-bindings.sh b/tools/scripts/regenerate-go-bindings.sh index 5f11117..aa2571a 100755 --- a/tools/scripts/regenerate-go-bindings.sh +++ b/tools/scripts/regenerate-go-bindings.sh @@ -82,7 +82,7 @@ generate_binding() { generate_binding out/LedgerBalanceLimit.sol/LedgerBalanceLimit.json chain/channel-eth-go/balancelimit/balancelimit.go balancelimit LedgerBalanceLimit generate_binding out/LedgerChannel.sol/LedgerChannel.json chain/channel-eth-go/channel/channel.go channel LedgerChannel generate_binding out/NativeWrapMock.sol/NativeWrapMock.json chain/channel-eth-go/nativewrap/nativewrap.go nativewrap NativeWrap -generate_binding out/CelerLedger.sol/CelerLedger.json chain/channel-eth-go/ledger/ledger.go ledger CelerLedger +generate_binding out/AgentPayLedger.sol/AgentPayLedger.json chain/channel-eth-go/ledger/ledger.go ledger AgentPayLedger generate_binding out/LedgerStruct.sol/LedgerStruct.json chain/channel-eth-go/ledgerstruct/ledgerstruct.go ledgerstruct LedgerStruct generate_binding out/LedgerMigrate.sol/LedgerMigrate.json chain/channel-eth-go/migrate/migrate.go migrate LedgerMigrate generate_binding out/LedgerOperation.sol/LedgerOperation.json chain/channel-eth-go/operation/operation.go operation LedgerOperation @@ -90,7 +90,7 @@ generate_binding out/PayRegistry.sol/PayRegistry.json chain/channel-eth-go/payre generate_binding out/PayResolver.sol/PayResolver.json chain/channel-eth-go/payresolver/payresolver.go payresolver PayResolver generate_binding out/RouterRegistry.sol/RouterRegistry.json chain/channel-eth-go/routerregistry/routerregistry.go routerregistry RouterRegistry generate_binding out/VirtContractResolver.sol/VirtContractResolver.json chain/channel-eth-go/virtresolver/virtresolver.go virtresolver VirtContractResolver -generate_binding out/CelerWallet.sol/CelerWallet.json chain/channel-eth-go/wallet/wallet.go wallet CelerWallet +generate_binding out/AgentPayWallet.sol/AgentPayWallet.json chain/channel-eth-go/wallet/wallet.go wallet AgentPayWallet generate_binding out/ERC20ExampleToken.sol/ERC20ExampleToken.json chain/erc20.go chain ERC20 generate_binding out/RouterRegistry.sol/RouterRegistry.json route/routerregistry/routerregistry.go routerregistry RouterRegistry generate_binding out/IBooleanCond.sol/IBooleanCond.json app/booleancond.go app IBooleanCond diff --git a/tools/toolsetup/toolsetup.go b/tools/toolsetup/toolsetup.go index a54a547..0423a47 100644 --- a/tools/toolsetup/toolsetup.go +++ b/tools/toolsetup/toolsetup.go @@ -98,8 +98,8 @@ func NewNodeConfig(profile *common.CProfile, ethclient *ethclient.Client, dal *s addr, ethclient, profile, - wallet.CelerWalletABI, - ledger.CelerLedgerABI, + wallet.AgentPayWalletABI, + ledger.AgentPayLedgerABI, virtresolver.VirtContractResolverABI, payresolver.PayResolverABI, payregistry.PayRegistryABI,