Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename PerunToken to ERC20Token #35

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bindings/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ import (
"github.com/perun-network/perun-eth-backend/bindings/assetholder"
"github.com/perun-network/perun-eth-backend/bindings/assetholdererc20"
"github.com/perun-network/perun-eth-backend/bindings/assetholdereth"
"github.com/perun-network/perun-eth-backend/bindings/peruntoken"
"github.com/perun-network/perun-eth-backend/bindings/erc20token"
"github.com/perun-network/perun-eth-backend/bindings/trivialapp"
)

// ABI contains all the parsed ABI definitions of our contracts.
// Use it together with `bind.NewBoundContract` to create a bound contract.
var ABI = struct {
// PerunToken is the parsed ABI definition of contract PerunToken.
PerunToken abi.ABI
// ERC20Token is the parsed ABI definition of contract ERC20Token.
ERC20Token abi.ABI
// Adjudicator is the parsed ABI definition of contract Adjudicator.
Adjudicator abi.ABI
// AssetHolder is the parsed ABI definition of contract AssetHolder.
Expand All @@ -53,8 +53,8 @@ var Events = struct {
AhDeposited string
// AhWithdrawn is the Withdrawn event of the Assetholder contract.
AhWithdrawn string
// PerunTokenApproval is the Approval event of the PerunToken contract.
PerunTokenApproval string
// ERC20TokenApproval is the Approval event of the ERC20Token contract.
ERC20TokenApproval string
}{}

func init() {
Expand All @@ -71,7 +71,7 @@ func parseABIs() {
return abi
}

ABI.PerunToken = parse(peruntoken.PeruntokenMetaData.ABI)
ABI.ERC20Token = parse(erc20token.Erc20tokenMetaData.ABI)
ABI.Adjudicator = parse(adjudicator.AdjudicatorMetaData.ABI)
ABI.AssetHolder = parse(assetholder.AssetholderMetaData.ABI)
ABI.ETHAssetHolder = parse(assetholdereth.AssetholderethMetaData.ABI)
Expand All @@ -92,5 +92,5 @@ func extractEvents() {
Events.AdjChannelUpdate = extract(ABI.Adjudicator, "ChannelUpdate")
Events.AhDeposited = extract(ABI.AssetHolder, "Deposited")
Events.AhWithdrawn = extract(ABI.AssetHolder, "Withdrawn")
Events.PerunTokenApproval = extract(ABI.PerunToken, "Approval")
Events.ERC20TokenApproval = extract(ABI.ERC20Token, "Approval")
}
2 changes: 1 addition & 1 deletion bindings/adjudicator/Adjudicator.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/adjudicator/AdjudicatorBinRuntime.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/assetholdererc20/AssetHolderERC20.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/assetholdererc20/AssetHolderERC20BinRuntime.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/assetholdereth/AssetHolderETH.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/assetholdereth/AssetHolderETHBinRuntime.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package assetholdereth // import "github.com/perun-network/perun-eth-backend/bindings/assetholdereth"

// AssetHolderETHBinRuntime is the runtime part of the compiled bytecode used for deploying new contracts.
var AssetHolderETHBinRuntime = "6080604052600436106100555760003560e01c80631de26e161461005a5780634ed4283c1461006f57806353c2ed8e1461008f578063ae9ee18c146100cc578063d945af1d14610107578063fc79a66d14610147575b600080fd5b61006d610068366004610c01565b610167565b005b34801561007b57600080fd5b5061006d61008a366004610c23565b6101d7565b34801561009b57600080fd5b506002546100af906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d857600080fd5b506100f96100e7366004610cae565b60006020819052908152604090205481565b6040519081526020016100c3565b34801561011357600080fd5b50610137610122366004610cae565b60016020526000908152604090205460ff1681565b60405190151581526020016100c3565b34801561015357600080fd5b5061006d610162366004610d0c565b6103ef565b61017182826106fe565b60008281526020819052604090205461018a9082610751565b600083815260208190526040902055817fcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9826040516101cb91815260200190565b60405180910390a25050565b823560009081526001602052604090205460ff166102325760405162461bcd60e51b815260206004820152601360248201527218da185b9b995b081b9bdd081cd95d1d1b1959606a1b60448201526064015b60405180910390fd5b61029a836040516020016102469190610d9b565b60408051601f198184030181526020601f860181900481028401810190925284835291908590859081908401838280828437600092019190915250610295925050506040870160208801610de7565b610764565b6102e65760405162461bcd60e51b815260206004820152601d60248201527f7369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610229565b600061030284356102fd6040870160208801610de7565b6107ed565b6000818152602081905260409020549091506060850135111561035c5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610229565b600081815260208190526040902054610379906060860135610832565b60008281526020819052604090205561039384848461083e565b807fd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81606086018035906103c99060408901610de7565b604080519283526001600160a01b0390911660208301520160405180910390a250505050565b6002546001600160a01b031633146104575760405162461bcd60e51b815260206004820152602560248201527f63616e206f6e6c792062652063616c6c6564206279207468652061646a75646960448201526431b0ba37b960d91b6064820152608401610229565b8281146104b85760405162461bcd60e51b815260206004820152602960248201527f7061727469636970616e7473206c656e6774682073686f756c6420657175616c6044820152682062616c616e63657360b81b6064820152608401610229565b60008581526001602052604090205460ff16156105255760405162461bcd60e51b815260206004820152602560248201527f747279696e6720746f2073657420616c726561647920736574746c6564206368604482015264185b9b995b60da1b6064820152608401610229565b600085815260208190526040812080549082905590808567ffffffffffffffff81111561055457610554610e04565b60405190808252806020026020018201604052801561057d578160200160208202803683370190505b50905060005b868110156106415760006105b88a8a8a858181106105a3576105a3610e1a565b90506020020160208101906102fd9190610de7565b9050808383815181106105cd576105cd610e1a565b6020026020010181815250506105fe600080838152602001908152602001600020548661075190919063ffffffff16565b945061062b87878481811061061557610615610e1a565b905060200201358561075190919063ffffffff16565b935050808061063990610e46565b915050610583565b508183106106b15760005b868110156106af5785858281811061066657610666610e1a565b9050602002013560008084848151811061068257610682610e1a565b602002602001015181526020019081526020016000208190555080806106a790610e46565b91505061064c565b505b6000888152600160208190526040808320805460ff19169092179091555189917fef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b891a25050505050505050565b80341461074d5760405162461bcd60e51b815260206004820152601f60248201527f77726f6e6720616d6f756e74206f662045544820666f72206465706f736974006044820152606401610229565b5050565b600061075d8284610e5f565b9392505050565b6000806107c585805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006107d38286610890565b6001600160a01b0390811690851614925050509392505050565b600082826040516020016108149291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b600061075d8284610e77565b61084e6060840160408501610de7565b6001600160a01b03166108fc84606001359081150290604051600060405180830381858888f1935050505015801561088a573d6000803e3d6000fd5b50505050565b600080600061089f85856108b4565b915091506108ac81610922565b509392505050565b60008082516041036108ea5760208301516040840151606085015160001a6108de87828585610adb565b9450945050505061091b565b82516040036109135760208301516040840151610908868383610bc8565b93509350505061091b565b506000905060025b9250929050565b600081600481111561093657610936610e8e565b0361093e5750565b600181600481111561095257610952610e8e565b0361099f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610229565b60028160048111156109b3576109b3610e8e565b03610a005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610229565b6003816004811115610a1457610a14610e8e565b03610a6c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610229565b6004816004811115610a8057610a80610e8e565b03610ad85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610229565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610b125750600090506003610bbf565b8460ff16601b14158015610b2a57508460ff16601c14155b15610b3b5750600090506004610bbf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b8f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610bb857600060019250925050610bbf565b9150600090505b94509492505050565b6000806001600160ff1b03831681610be560ff86901c601b610e5f565b9050610bf387828885610adb565b935093505050935093915050565b60008060408385031215610c1457600080fd5b50508035926020909101359150565b600080600083850360a0811215610c3957600080fd5b6080811215610c4757600080fd5b50839250608084013567ffffffffffffffff80821115610c6657600080fd5b818601915086601f830112610c7a57600080fd5b813581811115610c8957600080fd5b876020828501011115610c9b57600080fd5b6020830194508093505050509250925092565b600060208284031215610cc057600080fd5b5035919050565b60008083601f840112610cd957600080fd5b50813567ffffffffffffffff811115610cf157600080fd5b6020830191508360208260051b850101111561091b57600080fd5b600080600080600060608688031215610d2457600080fd5b85359450602086013567ffffffffffffffff80821115610d4357600080fd5b610d4f89838a01610cc7565b90965094506040880135915080821115610d6857600080fd5b50610d7588828901610cc7565b969995985093965092949392505050565b6001600160a01b0381168114610ad857600080fd5b81358152608081016020830135610db181610d86565b6001600160a01b039081166020840152604084013590610dd082610d86565b166040830152606092830135929091019190915290565b600060208284031215610df957600080fd5b813561075d81610d86565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610e5857610e58610e30565b5060010190565b60008219821115610e7257610e72610e30565b500190565b600082821015610e8957610e89610e30565b500390565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220df92b0589592e9d602db203fd2c442c58a0361e07939b2d86fba6fd1e84ae1bd64736f6c634300080e0033"
var AssetHolderETHBinRuntime = "6080604052600436106100555760003560e01c80631de26e161461005a5780634ed4283c1461006f57806353c2ed8e1461008f578063ae9ee18c146100cc578063d945af1d14610107578063fc79a66d14610147575b600080fd5b61006d610068366004610c01565b610167565b005b34801561007b57600080fd5b5061006d61008a366004610c23565b6101d7565b34801561009b57600080fd5b506002546100af906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d857600080fd5b506100f96100e7366004610cae565b60006020819052908152604090205481565b6040519081526020016100c3565b34801561011357600080fd5b50610137610122366004610cae565b60016020526000908152604090205460ff1681565b60405190151581526020016100c3565b34801561015357600080fd5b5061006d610162366004610d0c565b6103ef565b61017182826106fe565b60008281526020819052604090205461018a9082610751565b600083815260208190526040902055817fcd2fe07293de5928c5df9505b65a8d6506f8668dfe81af09090920687edc48a9826040516101cb91815260200190565b60405180910390a25050565b823560009081526001602052604090205460ff166102325760405162461bcd60e51b815260206004820152601360248201527218da185b9b995b081b9bdd081cd95d1d1b1959606a1b60448201526064015b60405180910390fd5b61029a836040516020016102469190610d9b565b60408051601f198184030181526020601f860181900481028401810190925284835291908590859081908401838280828437600092019190915250610295925050506040870160208801610de7565b610764565b6102e65760405162461bcd60e51b815260206004820152601d60248201527f7369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610229565b600061030284356102fd6040870160208801610de7565b6107ed565b6000818152602081905260409020549091506060850135111561035c5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610229565b600081815260208190526040902054610379906060860135610832565b60008281526020819052604090205561039384848461083e565b807fd0b6e7d0170f56c62f87de6a8a47a0ccf41c86ffb5084d399d8eb62e823f2a81606086018035906103c99060408901610de7565b604080519283526001600160a01b0390911660208301520160405180910390a250505050565b6002546001600160a01b031633146104575760405162461bcd60e51b815260206004820152602560248201527f63616e206f6e6c792062652063616c6c6564206279207468652061646a75646960448201526431b0ba37b960d91b6064820152608401610229565b8281146104b85760405162461bcd60e51b815260206004820152602960248201527f7061727469636970616e7473206c656e6774682073686f756c6420657175616c6044820152682062616c616e63657360b81b6064820152608401610229565b60008581526001602052604090205460ff16156105255760405162461bcd60e51b815260206004820152602560248201527f747279696e6720746f2073657420616c726561647920736574746c6564206368604482015264185b9b995b60da1b6064820152608401610229565b600085815260208190526040812080549082905590808567ffffffffffffffff81111561055457610554610e04565b60405190808252806020026020018201604052801561057d578160200160208202803683370190505b50905060005b868110156106415760006105b88a8a8a858181106105a3576105a3610e1a565b90506020020160208101906102fd9190610de7565b9050808383815181106105cd576105cd610e1a565b6020026020010181815250506105fe600080838152602001908152602001600020548661075190919063ffffffff16565b945061062b87878481811061061557610615610e1a565b905060200201358561075190919063ffffffff16565b935050808061063990610e46565b915050610583565b508183106106b15760005b868110156106af5785858281811061066657610666610e1a565b9050602002013560008084848151811061068257610682610e1a565b602002602001015181526020019081526020016000208190555080806106a790610e46565b91505061064c565b505b6000888152600160208190526040808320805460ff19169092179091555189917fef898d6cd3395b6dfe67a3c1923e5c726c1b154e979fb0a25a9c41d0093168b891a25050505050505050565b80341461074d5760405162461bcd60e51b815260206004820152601f60248201527f77726f6e6720616d6f756e74206f662045544820666f72206465706f736974006044820152606401610229565b5050565b600061075d8284610e5f565b9392505050565b6000806107c585805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006107d38286610890565b6001600160a01b0390811690851614925050509392505050565b600082826040516020016108149291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120905092915050565b600061075d8284610e77565b61084e6060840160408501610de7565b6001600160a01b03166108fc84606001359081150290604051600060405180830381858888f1935050505015801561088a573d6000803e3d6000fd5b50505050565b600080600061089f85856108b4565b915091506108ac81610922565b509392505050565b60008082516041036108ea5760208301516040840151606085015160001a6108de87828585610adb565b9450945050505061091b565b82516040036109135760208301516040840151610908868383610bc8565b93509350505061091b565b506000905060025b9250929050565b600081600481111561093657610936610e8e565b0361093e5750565b600181600481111561095257610952610e8e565b0361099f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610229565b60028160048111156109b3576109b3610e8e565b03610a005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610229565b6003816004811115610a1457610a14610e8e565b03610a6c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610229565b6004816004811115610a8057610a80610e8e565b03610ad85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610229565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610b125750600090506003610bbf565b8460ff16601b14158015610b2a57508460ff16601c14155b15610b3b5750600090506004610bbf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b8f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610bb857600060019250925050610bbf565b9150600090505b94509492505050565b6000806001600160ff1b03831681610be560ff86901c601b610e5f565b9050610bf387828885610adb565b935093505050935093915050565b60008060408385031215610c1457600080fd5b50508035926020909101359150565b600080600083850360a0811215610c3957600080fd5b6080811215610c4757600080fd5b50839250608084013567ffffffffffffffff80821115610c6657600080fd5b818601915086601f830112610c7a57600080fd5b813581811115610c8957600080fd5b876020828501011115610c9b57600080fd5b6020830194508093505050509250925092565b600060208284031215610cc057600080fd5b5035919050565b60008083601f840112610cd957600080fd5b50813567ffffffffffffffff811115610cf157600080fd5b6020830191508360208260051b850101111561091b57600080fd5b600080600080600060608688031215610d2457600080fd5b85359450602086013567ffffffffffffffff80821115610d4357600080fd5b610d4f89838a01610cc7565b90965094506040880135915080821115610d6857600080fd5b50610d7588828901610cc7565b969995985093965092949392505050565b6001600160a01b0381168114610ad857600080fd5b81358152608081016020830135610db181610d86565b6001600160a01b039081166020840152604084013590610dd082610d86565b166040830152606092830135929091019190915290565b600060208284031215610df957600080fd5b813561075d81610d86565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610e5857610e58610e30565b5060010190565b60008219821115610e7257610e72610e30565b500190565b600082821015610e8957610e89610e30565b500390565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e67f794b0375e592581f6c9457e01b34a1c4011a9c0093598bcd7f4a9bd29f6864736f6c634300080f0033"
Loading