Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/smartcontract
/ functions
Functions
346 in github.com/ardanlabs/smartcontract
⨍
Functions
346
◇
Types & classes
95
↓ 62 callers
Method
Address
Address is a free data retrieval call binding the contract method 0xabbddf3b. Solidity: function Address(string id, address participant, uint256 nonc
app/signature/contract/go/verify/verify.go:208
↓ 23 callers
Method
Balance
Balance is a free data retrieval call binding the contract method 0x0ef67887. Solidity: function Balance() view returns(uint256)
app/bank/proxy/contract/go/bank/bank.go:270
↓ 13 callers
Method
CheckBalance
============================================================================= Helper functions CheckBalance pulls and compares the specified balance f
app/book/pkg/book/book.go:420
↓ 10 callers
Method
Balance
Balance will return the balance for the connected account.
app/book/pkg/book/book.go:352
↓ 10 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/book/contract/go/book/book.go:191
↓ 8 callers
Method
Balance
Balance is a free data retrieval call binding the contract method 0x0ef67887. Solidity: function Balance() view returns(uint256)
app/bank/single/contract/go/bank/bank.go:239
↓ 7 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
app/bank/proxy/contract/go/bank/bank.go:506
↓ 7 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
app/simplecoin/contract/go/simplecoin/simplecoin.go:558
↓ 7 callers
Method
CoinBalance
CoinBalance is a free data retrieval call binding the contract method 0x8bdf1534. Solidity: function CoinBalance(address ) view returns(uint256)
app/simplecoin/contract/go/simplecoin/simplecoin.go:208
↓ 6 callers
Method
Call
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 sim
app/book/contract/go/book/book.go:180
↓ 6 callers
Method
Call
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 sim
app/bank/proxy/contract/go/bank/bank.go:171
↓ 6 callers
Function
NewBank
NewBank creates a new instance of Bank, bound to a specific deployed contract.
app/bank/proxy/contract/go/bank/bank.go:123
↓ 6 callers
Method
Sign
Sign produces a signature for use with the smart contract call.
app/book/pkg/book/book.go:434
↓ 6 callers
Function
checkBetState
(t *testing.T, ctx context.Context, b *book.Book, betID string, check book.BetInfo)
app/book/pkg/book/book_test.go:592
↓ 6 callers
Function
placeBet
(t *testing.T)
app/book/pkg/book/book_test.go:168
↓ 5 callers
Method
Call
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 sim
app/bank/single/contract/go/bank/bank.go:171
↓ 5 callers
Method
FrozenAccount
FrozenAccount is a free data retrieval call binding the contract method 0xab31471e. Solidity: function FrozenAccount(address ) view returns(bool)
app/simplecoin/contract/go/simplecoin/simplecoin.go:239
↓ 5 callers
Function
New
New returns a new bank with the ability to manage the game money.
app/book/pkg/book/book.go:53
↓ 5 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/bank/proxy/contract/go/bank/bank.go:182
↓ 5 callers
Method
Transfer
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
app/simplecoin/contract/go/simplecoin/simplecoin.go:177
↓ 5 callers
Method
Validate
Validate verifies the new bet value is properly initialized.
app/book/pkg/book/models.go:31
↓ 5 callers
Method
Version
Version is a free data retrieval call binding the contract method 0xbb62860d. Solidity: function Version() view returns(string)
app/basic/contract/go/basic/basic.go:239
↓ 4 callers
Method
Call
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 sim
app/bank/proxy/contract/go/bankapi/bankapi.go:171
↓ 4 callers
Method
Call
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 sim
app/simplecoin/contract/go/simplecoin/simplecoin.go:171
↓ 4 callers
Method
Client
Client returns the underlying contract client.
app/book/pkg/book/book.go:79
↓ 4 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
app/basic/contract/go/basic/basic.go:350
↓ 4 callers
Method
Items
Items is a free data retrieval call binding the contract method 0x4547a6b3. Solidity: function Items(string ) view returns(uint256)
app/basic/contract/go/basic/basic.go:208
↓ 4 callers
Method
MatchSender
MatchSender is a free data retrieval call binding the contract method 0x406b5523. Solidity: function MatchSender(string id, address participant, uint
app/signature/contract/go/verify/verify.go:239
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/bank/proxy/contract/go/bankapi/bankapi.go:182
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/bank/single/contract/go/bank/bank.go:182
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/simplecoin/contract/go/simplecoin/simplecoin.go:182
↓ 4 callers
Method
Version
Version is a free data retrieval call binding the contract method 0xbb62860d. Solidity: function Version() view returns(string)
app/bank/proxy/contract/go/bank/bank.go:332
↓ 4 callers
Method
Version
Version is a free data retrieval call binding the contract method 0xbb62860d. Solidity: function Version() view returns(string)
app/bank/single/contract/go/bank/bank.go:301
↓ 4 callers
Function
bindBank
bindBank binds a generic wrapper to an already deployed contract.
app/bank/proxy/contract/go/bank/bank.go:159
↓ 4 callers
Function
bindBank
bindBank binds a generic wrapper to an already deployed contract.
app/bank/single/contract/go/bank/bank.go:159
↓ 4 callers
Function
bindBankapi
bindBankapi binds a generic wrapper to an already deployed contract.
app/bank/proxy/contract/go/bankapi/bankapi.go:159
↓ 4 callers
Function
bindBasic
bindBasic binds a generic wrapper to an already deployed contract.
app/basic/contract/go/basic/basic.go:159
↓ 4 callers
Function
bindBook
bindBook binds a generic wrapper to an already deployed contract.
app/book/contract/go/book/book.go:168
↓ 4 callers
Function
bindSimplecoin
bindSimplecoin binds a generic wrapper to an already deployed contract.
app/simplecoin/contract/go/simplecoin/simplecoin.go:159
↓ 4 callers
Function
bindVerify
bindVerify binds a generic wrapper to an already deployed contract.
app/signature/contract/go/verify/verify.go:159
↓ 3 callers
Method
API
API is a free data retrieval call binding the contract method 0x7d7b0099. Solidity: function API() view returns(address)
app/bank/proxy/contract/go/bank/bank.go:208
↓ 3 callers
Method
Call
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 sim
app/basic/contract/go/basic/basic.go:171
↓ 3 callers
Method
Call
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 sim
app/signature/contract/go/verify/verify.go:171
↓ 3 callers
Method
Deposit
Deposit will add the given amount to the account's contract balance.
app/book/pkg/book/book.go:367
↓ 3 callers
Method
Deposit
Deposit is a paid mutator transaction binding the contract method 0xed21248c. Solidity: function Deposit() payable returns()
app/bank/proxy/contract/go/bank/bank.go:370
↓ 3 callers
Method
EthereumBalance
EthereumBalance returns the current balance for the account connecting this book.
app/book/pkg/book/book.go:407
↓ 3 callers
Method
FreezeAccount
FreezeAccount is a paid mutator transaction binding the contract method 0xd16a7a4b. Solidity: function FreezeAccount(address target, bool freeze) ret
app/simplecoin/contract/go/simplecoin/simplecoin.go:308
↓ 3 callers
Function
NewBasic
NewBasic creates a new instance of Basic, bound to a specific deployed contract.
app/basic/contract/go/basic/basic.go:123
↓ 3 callers
Function
NewSimplecoin
NewSimplecoin creates a new instance of Simplecoin, bound to a specific deployed contract.
app/simplecoin/contract/go/simplecoin/simplecoin.go:123
↓ 3 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0xb4a99a4e. Solidity: function Owner() view returns(address)
app/bank/proxy/contract/go/bank/bank.go:301
↓ 3 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0xb4a99a4e. Solidity: function Owner() view returns(address)
app/bank/single/contract/go/bank/bank.go:270
↓ 3 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0xb4a99a4e. Solidity: function Owner() view returns(address)
app/simplecoin/contract/go/simplecoin/simplecoin.go:270
↓ 3 callers
Method
Reconcile
Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e. Solidity: function Reconcile(address winner, address[] losers, uint25
app/bank/proxy/contract/go/bank/bank.go:391
↓ 3 callers
Method
SetContract
SetContract is a paid mutator transaction binding the contract method 0xd2aadb3c. Solidity: function SetContract(address contractAddr) returns()
app/bank/proxy/contract/go/bank/bank.go:412
↓ 3 callers
Method
SetItem
SetItem is a paid mutator transaction binding the contract method 0x8c5cf3ed. Solidity: function SetItem(string key, uint256 value) returns()
app/basic/contract/go/basic/basic.go:277
↓ 3 callers
Method
Withdraw
Withdraw is a paid mutator transaction binding the contract method 0x57ea89b6. Solidity: function Withdraw() payable returns()
app/bank/proxy/contract/go/bank/bank.go:433
↓ 2 callers
Method
API
API is a free data retrieval call binding the contract method 0x7d7b0099. Solidity: function API() view returns(address)
app/bank/proxy/contract/go/bankapi/bankapi.go:208
↓ 2 callers
Method
AccountBalance
AccountBalance is a free data retrieval call binding the contract method 0xe63f341f. Solidity: function AccountBalance(address account) view returns(
app/book/contract/go/book/book.go:217
↓ 2 callers
Method
AccountBalance
AccountBalance is a free data retrieval call binding the contract method 0xe63f341f. Solidity: function AccountBalance(address account) view returns(
app/bank/proxy/contract/go/bank/bank.go:239
↓ 2 callers
Method
AccountBalance
AccountBalance is a free data retrieval call binding the contract method 0xe63f341f. Solidity: function AccountBalance(address account) view returns(
app/bank/single/contract/go/bank/bank.go:208
↓ 2 callers
Method
Balance
Balance is a free data retrieval call binding the contract method 0x0ef67887. Solidity: function Balance() view returns(uint256)
app/book/contract/go/book/book.go:248
↓ 2 callers
Method
BetDetails
BetDetails is a free data retrieval call binding the contract method 0x364529e5. Solidity: function BetDetails(string betID) view returns((uint8,addr
app/book/contract/go/book/book.go:279
↓ 2 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
app/bank/single/contract/go/bank/bank.go:454
↓ 2 callers
Function
DeployBank
DeployBank deploys a new Ethereum contract, binding an instance of Bank to it.
app/bank/proxy/contract/go/bank/bank.go:47
↓ 2 callers
Function
DeployBank
DeployBank deploys a new Ethereum contract, binding an instance of Bank to it.
app/bank/single/contract/go/bank/bank.go:47
↓ 2 callers
Function
DeployBankapi
DeployBankapi deploys a new Ethereum contract, binding an instance of Bankapi to it.
app/bank/proxy/contract/go/bankapi/bankapi.go:47
↓ 2 callers
Function
DeployBasic
DeployBasic deploys a new Ethereum contract, binding an instance of Basic to it.
app/basic/contract/go/basic/basic.go:47
↓ 2 callers
Function
DeploySimplecoin
DeploySimplecoin deploys a new Ethereum contract, binding an instance of Simplecoin to it.
app/simplecoin/contract/go/simplecoin/simplecoin.go:47
↓ 2 callers
Function
DeployVerify
DeployVerify deploys a new Ethereum contract, binding an instance of Verify to it.
app/signature/contract/go/verify/verify.go:47
↓ 2 callers
Method
Deposit
Deposit is a paid mutator transaction binding the contract method 0xed21248c. Solidity: function Deposit() payable returns()
app/bank/single/contract/go/bank/bank.go:339
↓ 2 callers
Method
Mint
Mint is a paid mutator transaction binding the contract method 0x0f6798a5. Solidity: function Mint(address recipient, uint256 mintedAmount) returns()
app/simplecoin/contract/go/simplecoin/simplecoin.go:329
↓ 2 callers
Function
NewBank
NewBank creates a new instance of Bank, bound to a specific deployed contract.
app/bank/single/contract/go/bank/bank.go:123
↓ 2 callers
Function
NewVerify
NewVerify creates a new instance of Verify, bound to a specific deployed contract.
app/signature/contract/go/verify/verify.go:123
↓ 2 callers
Method
Nonce
Nonce is a free data retrieval call binding the contract method 0x30d0cee9. Solidity: function Nonce(address account) view returns(uint256)
app/book/contract/go/book/book.go:310
↓ 2 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0xb4a99a4e. Solidity: function Owner() view returns(address)
app/book/contract/go/book/book.go:341
↓ 2 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0xb4a99a4e. Solidity: function Owner() view returns(address)
app/bank/proxy/contract/go/bankapi/bankapi.go:239
↓ 2 callers
Method
Reconcile
Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e. Solidity: function Reconcile(address winner, address[] losers, uint25
app/bank/single/contract/go/bank/bank.go:360
↓ 2 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
app/basic/contract/go/basic/basic.go:182
↓ 2 callers
Method
Version
Version is a free data retrieval call binding the contract method 0xbb62860d. Solidity: function Version() view returns(string)
app/bank/proxy/contract/go/bankapi/bankapi.go:270
↓ 2 callers
Method
Withdraw
Withdraw is a paid mutator transaction binding the contract method 0x57ea89b6. Solidity: function Withdraw() payable returns()
app/bank/single/contract/go/bank/bank.go:381
↓ 2 callers
Function
deployContract
=============================================================================
app/book/pkg/book/book_test.go:558
↓ 1 callers
Method
BetDetails
BetDetails will the details for the specied betID.
app/book/pkg/book/book.go:139
↓ 1 callers
Method
CancelBetExpired
CancelBetExpired is a paid mutator transaction binding the contract method 0xf8856b88. Solidity: function CancelBetExpired(string betID) returns()
app/book/contract/go/book/book.go:379
↓ 1 callers
Method
CancelBetExpired
============================================================================= Account Calls CancelBetExpired allows any participant to cancel the bet
app/book/pkg/book/book.go:329
↓ 1 callers
Method
CancelBetModerator
CancelBetModerator is a paid mutator transaction binding the contract method 0x7c64ce36. Solidity: function CancelBetModerator(string betID, uint256
app/book/contract/go/book/book.go:400
↓ 1 callers
Method
CancelBetModerator
CancelBetModerator allows the moderator to sign off on cancelling the bet.
app/book/pkg/book/book.go:237
↓ 1 callers
Method
CancelBetOwner
CancelBetOwner is a paid mutator transaction binding the contract method 0x0ee216b7. Solidity: function CancelBetOwner(string betID, uint256 amountFe
app/book/contract/go/book/book.go:421
↓ 1 callers
Method
CancelBetOwner
CancelBetOwner allows the owner to sign off on cancelling the bet.
app/book/pkg/book/book.go:297
↓ 1 callers
Method
CancelBetParticipants
CancelBetParticipants is a paid mutator transaction binding the contract method 0x221da6a5. Solidity: function CancelBetParticipants(string betID, ui
app/book/contract/go/book/book.go:442
↓ 1 callers
Method
CancelBetParticipants
CancelBetParticipants allows the participants to sign off on cancelling the bet.
app/book/pkg/book/book.go:267
↓ 1 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
app/book/contract/go/book/book.go:620
↓ 1 callers
Method
Deposit
Deposit is a paid mutator transaction binding the contract method 0xed21248c. Solidity: function Deposit() payable returns()
app/book/contract/go/book/book.go:463
↓ 1 callers
Method
Deposit
Deposit is a paid mutator transaction binding the contract method 0xed21248c. Solidity: function Deposit() payable returns()
app/bank/proxy/contract/go/bankapi/bankapi.go:308
↓ 1 callers
Method
Drain
Drain is a paid mutator transaction binding the contract method 0xd67a073f. Solidity: function Drain() payable returns()
app/book/contract/go/book/book.go:484
↓ 1 callers
Function
NewBook
NewBook creates a new instance of Book, bound to a specific deployed contract.
app/book/contract/go/book/book.go:132
↓ 1 callers
Method
PlaceBet
PlaceBet is a paid mutator transaction binding the contract method 0xe2a06aca. Solidity: function PlaceBet(string betID, uint256 amountBetWei, uint25
app/book/contract/go/book/book.go:505
↓ 1 callers
Method
PlaceBet
PlaceBet adds a new bet to the smart contract. This bet will be live if accepted by the smart contract and all participants will be bound to the bet.
app/book/pkg/book/book.go:166
↓ 1 callers
Method
Reconcile
Reconcile is a paid mutator transaction binding the contract method 0xfa84fd8e. Solidity: function Reconcile(address winner, address[] losers, uint25
app/bank/proxy/contract/go/bankapi/bankapi.go:329
↓ 1 callers
Method
ReconcileBet
ReconcileBet is a paid mutator transaction binding the contract method 0x0e302132. Solidity: function ReconcileBet(string betID, uint256 nonce, bytes
app/book/contract/go/book/book.go:526
↓ 1 callers
Method
ReconcileBet
ReconcileBet allows the moderator to sign off on the live bet and provide the winning accounts.
app/book/pkg/book/book.go:204
next →
1–100 of 346, ranked by callers