Versions in this module Expand all Collapse all v1 v1.0.1 Mar 22, 2023 v1.0.0 Mar 3, 2023 Changes in this version + var CPolygonidABI = CPolygonidMetaData.ABI + var CPolygonidBin = CPolygonidMetaData.Bin + var CPolygonidMetaData = &bind.MetaData + func ProofFromSmartContract(scProof SmartContractProof) (*merkletree.Proof, *merkletree.Hash, error) + type AtomicQueryInputsResponse struct + Inputs circuits.InputsMarshaller + VerifiablePresentation map[string]any + func AtomicQueryMtpV2InputsFromJson(ctx context.Context, cfg EnvConfig, in []byte) (AtomicQueryInputsResponse, error) + func AtomicQueryMtpV2OnChainInputsFromJson(ctx context.Context, cfg EnvConfig, in []byte) (AtomicQueryInputsResponse, error) + func AtomicQuerySigV2InputsFromJson(ctx context.Context, cfg EnvConfig, in []byte) (AtomicQueryInputsResponse, error) + func AtomicQuerySigV2OnChainInputsFromJson(ctx context.Context, cfg EnvConfig, in []byte) (AtomicQueryInputsResponse, error) + type CPolygonid struct + func DeployCPolygonid(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *CPolygonid, error) + func NewCPolygonid(address common.Address, backend bind.ContractBackend) (*CPolygonid, error) + type CPolygonidCaller struct + func NewCPolygonidCaller(address common.Address, caller bind.ContractCaller) (*CPolygonidCaller, error) + func (_CPolygonid *CPolygonidCaller) GetGISTProof(opts *bind.CallOpts, id *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCaller) GetGISTProofByBlock(opts *bind.CallOpts, id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCaller) GetGISTProofByRoot(opts *bind.CallOpts, id *big.Int, root *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCaller) GetGISTProofByTime(opts *bind.CallOpts, id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRoot(opts *bind.CallOpts) (*big.Int, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRootHistory(opts *bind.CallOpts, start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRootHistoryLength(opts *bind.CallOpts) (*big.Int, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRootInfo(opts *bind.CallOpts, root *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRootInfoByBlock(opts *bind.CallOpts, blockNumber *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCaller) GetGISTRootInfoByTime(opts *bind.CallOpts, timestamp *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCaller) GetStateInfoById(opts *bind.CallOpts, id *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCaller) GetStateInfoByState(opts *bind.CallOpts, state *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCaller) GetStateInfoHistoryById(opts *bind.CallOpts, id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCaller) GetStateInfoHistoryLengthById(opts *bind.CallOpts, id *big.Int) (*big.Int, error) + func (_CPolygonid *CPolygonidCaller) GetVerifier(opts *bind.CallOpts) (common.Address, error) + func (_CPolygonid *CPolygonidCaller) IDHISTORYRETURNLIMIT(opts *bind.CallOpts) (*big.Int, error) + func (_CPolygonid *CPolygonidCaller) IdExists(opts *bind.CallOpts, id *big.Int) (bool, error) + func (_CPolygonid *CPolygonidCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_CPolygonid *CPolygonidCaller) StateExists(opts *bind.CallOpts, state *big.Int) (bool, error) + type CPolygonidCallerRaw struct + Contract *CPolygonidCaller + func (_CPolygonid *CPolygonidCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type CPolygonidCallerSession struct + CallOpts bind.CallOpts + Contract *CPolygonidCaller + func (_CPolygonid *CPolygonidCallerSession) GetGISTProof(id *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTProofByBlock(id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTProofByRoot(id *big.Int, root *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTProofByTime(id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRoot() (*big.Int, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRootHistory(start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRootHistoryLength() (*big.Int, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRootInfo(root *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRootInfoByBlock(blockNumber *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetGISTRootInfoByTime(timestamp *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetStateInfoById(id *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetStateInfoByState(state *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetStateInfoHistoryById(id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_CPolygonid *CPolygonidCallerSession) GetStateInfoHistoryLengthById(id *big.Int) (*big.Int, error) + func (_CPolygonid *CPolygonidCallerSession) GetVerifier() (common.Address, error) + func (_CPolygonid *CPolygonidCallerSession) IDHISTORYRETURNLIMIT() (*big.Int, error) + func (_CPolygonid *CPolygonidCallerSession) IdExists(id *big.Int) (bool, error) + func (_CPolygonid *CPolygonidCallerSession) Owner() (common.Address, error) + func (_CPolygonid *CPolygonidCallerSession) StateExists(state *big.Int) (bool, error) + type CPolygonidFilterer struct + func NewCPolygonidFilterer(address common.Address, filterer bind.ContractFilterer) (*CPolygonidFilterer, error) + func (_CPolygonid *CPolygonidFilterer) FilterInitialized(opts *bind.FilterOpts) (*CPolygonidInitializedIterator, error) + func (_CPolygonid *CPolygonidFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*CPolygonidOwnershipTransferredIterator, error) + func (_CPolygonid *CPolygonidFilterer) FilterStateUpdated(opts *bind.FilterOpts) (*CPolygonidStateUpdatedIterator, error) + func (_CPolygonid *CPolygonidFilterer) ParseInitialized(log types.Log) (*CPolygonidInitialized, error) + func (_CPolygonid *CPolygonidFilterer) ParseOwnershipTransferred(log types.Log) (*CPolygonidOwnershipTransferred, error) + func (_CPolygonid *CPolygonidFilterer) ParseStateUpdated(log types.Log) (*CPolygonidStateUpdated, error) + func (_CPolygonid *CPolygonidFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *CPolygonidInitialized) (event.Subscription, error) + func (_CPolygonid *CPolygonidFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CPolygonidOwnershipTransferred, ...) (event.Subscription, error) + func (_CPolygonid *CPolygonidFilterer) WatchStateUpdated(opts *bind.WatchOpts, sink chan<- *CPolygonidStateUpdated) (event.Subscription, error) + type CPolygonidInitialized struct + Raw types.Log + Version uint8 + type CPolygonidInitializedIterator struct + Event *CPolygonidInitialized + func (it *CPolygonidInitializedIterator) Close() error + func (it *CPolygonidInitializedIterator) Error() error + func (it *CPolygonidInitializedIterator) Next() bool + type CPolygonidOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type CPolygonidOwnershipTransferredIterator struct + Event *CPolygonidOwnershipTransferred + func (it *CPolygonidOwnershipTransferredIterator) Close() error + func (it *CPolygonidOwnershipTransferredIterator) Error() error + func (it *CPolygonidOwnershipTransferredIterator) Next() bool + type CPolygonidRaw struct + Contract *CPolygonid + func (_CPolygonid *CPolygonidRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_CPolygonid *CPolygonidRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_CPolygonid *CPolygonidRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type CPolygonidSession struct + CallOpts bind.CallOpts + Contract *CPolygonid + TransactOpts bind.TransactOpts + func (_CPolygonid *CPolygonidSession) GetGISTProof(id *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidSession) GetGISTProofByBlock(id *big.Int, blockNumber *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidSession) GetGISTProofByRoot(id *big.Int, root *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidSession) GetGISTProofByTime(id *big.Int, timestamp *big.Int) (SmtProof, error) + func (_CPolygonid *CPolygonidSession) GetGISTRoot() (*big.Int, error) + func (_CPolygonid *CPolygonidSession) GetGISTRootHistory(start *big.Int, length *big.Int) ([]SmtRootInfo, error) + func (_CPolygonid *CPolygonidSession) GetGISTRootHistoryLength() (*big.Int, error) + func (_CPolygonid *CPolygonidSession) GetGISTRootInfo(root *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidSession) GetGISTRootInfoByBlock(blockNumber *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidSession) GetGISTRootInfoByTime(timestamp *big.Int) (SmtRootInfo, error) + func (_CPolygonid *CPolygonidSession) GetStateInfoById(id *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidSession) GetStateInfoByState(state *big.Int) (StateV2StateInfo, error) + func (_CPolygonid *CPolygonidSession) GetStateInfoHistoryById(id *big.Int, startIndex *big.Int, length *big.Int) ([]StateV2StateInfo, error) + func (_CPolygonid *CPolygonidSession) GetStateInfoHistoryLengthById(id *big.Int) (*big.Int, error) + func (_CPolygonid *CPolygonidSession) GetVerifier() (common.Address, error) + func (_CPolygonid *CPolygonidSession) IDHISTORYRETURNLIMIT() (*big.Int, error) + func (_CPolygonid *CPolygonidSession) IdExists(id *big.Int) (bool, error) + func (_CPolygonid *CPolygonidSession) Initialize(verifierContractAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidSession) Owner() (common.Address, error) + func (_CPolygonid *CPolygonidSession) RenounceOwnership() (*types.Transaction, error) + func (_CPolygonid *CPolygonidSession) SetVerifier(newVerifierAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidSession) StateExists(state *big.Int) (bool, error) + func (_CPolygonid *CPolygonidSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidSession) TransitState(id *big.Int, oldState *big.Int, newState *big.Int, isOldStateGenesis bool, ...) (*types.Transaction, error) + type CPolygonidStateUpdated struct + BlockN *big.Int + Id *big.Int + Raw types.Log + State *big.Int + Timestamp *big.Int + type CPolygonidStateUpdatedIterator struct + Event *CPolygonidStateUpdated + func (it *CPolygonidStateUpdatedIterator) Close() error + func (it *CPolygonidStateUpdatedIterator) Error() error + func (it *CPolygonidStateUpdatedIterator) Next() bool + type CPolygonidTransactor struct + func NewCPolygonidTransactor(address common.Address, transactor bind.ContractTransactor) (*CPolygonidTransactor, error) + func (_CPolygonid *CPolygonidTransactor) Initialize(opts *bind.TransactOpts, verifierContractAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactor) SetVerifier(opts *bind.TransactOpts, newVerifierAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactor) TransitState(opts *bind.TransactOpts, id *big.Int, oldState *big.Int, newState *big.Int, ...) (*types.Transaction, error) + type CPolygonidTransactorRaw struct + Contract *CPolygonidTransactor + func (_CPolygonid *CPolygonidTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type CPolygonidTransactorSession struct + Contract *CPolygonidTransactor + TransactOpts bind.TransactOpts + func (_CPolygonid *CPolygonidTransactorSession) Initialize(verifierContractAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactorSession) SetVerifier(newVerifierAddr common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_CPolygonid *CPolygonidTransactorSession) TransitState(id *big.Int, oldState *big.Int, newState *big.Int, isOldStateGenesis bool, ...) (*types.Transaction, error) + type EnvConfig struct + EthereumURL string + ReverseHashServiceUrl string + StateContractAddr common.Address + type JsonBigInt big.Int + func (j *JsonBigInt) BigInt() *big.Int + func (j *JsonBigInt) MarshalJSON() ([]byte, error) + func (j *JsonBigInt) UnmarshalJSON(bytes []byte) error + type SmartContractProof struct + AuxExistence bool + AuxIndex *big.Int + AuxValue *big.Int + Existence bool + Root *big.Int + Siblings []*big.Int + func (s *SmartContractProof) UnmarshalJSON(bytes []byte) error + type SmtProof struct + AuxExistence bool + AuxIndex *big.Int + AuxValue *big.Int + Existence bool + Index *big.Int + Root *big.Int + Siblings [64]*big.Int + Value *big.Int + type SmtRootInfo struct + CreatedAtBlock *big.Int + CreatedAtTimestamp *big.Int + ReplacedAtBlock *big.Int + ReplacedAtTimestamp *big.Int + ReplacedByRoot *big.Int + Root *big.Int + type StateV2StateInfo struct + CreatedAtBlock *big.Int + CreatedAtTimestamp *big.Int + Id *big.Int + ReplacedAtBlock *big.Int + ReplacedAtTimestamp *big.Int + ReplacedByState *big.Int + State *big.Int