enssubdomain.models

Define economy related models.

Copyright (C) 2018 Gitcoin Core

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

get_time

get_time()

Get the local time.

ENSSubdomainRegistration

ENSSubdomainRegistration(self, *args, **kwargs)

Define the schema for storing ENS sub-domain registration info.

comments

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

end_nonce

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

gas_cost_eth

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

_method

ENSSubdomainRegistration._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)

_method

ENSSubdomainRegistration._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)

_method

ENSSubdomainRegistration._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)

_method

ENSSubdomainRegistration._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

pending

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

profile

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example::

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

profile_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

signed_msg

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

start_nonce

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

subdomain_wallet_address

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

txn_hash_1

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

txn_hash_2

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

txn_hash_3

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

reprocess

ENSSubdomainRegistration.reprocess(self, gas_multiplier=1.101, override_nonce=None)

Reprocess the registration request.