crossbar.network._mailgw

Attributes

Classes

Module Contents

class MailGateway(mailgun_url, mailgun_key, mailgun_from, website_url)[source]

Bases: object

_mailgun_from[source]
_mailgun_key[source]
_mailgun_url[source]
_website_url[source]
send_create_market_verification(receiver_email, vaction_oid, vaction_code, expiration_date='')[source]
Parameters:
  • receiver_email

  • vaction_oid

  • vaction_code

Returns:

send_join_market_verification(receiver_email, vaction_oid, vaction_code, expiration_date='', member_id=None, market_id=None, roles=None)[source]
Parameters:
  • receiver_email

  • vaction_oid

  • vaction_code

Returns:

send_login_verification(receiver_email, vaction_oid, vaction_code, wallet_address, expiration_date='', was_signup_request=False)[source]
Parameters:
  • receiver_email

  • vaction_oid

  • vaction_code

Returns:

send_onboard_verification(receiver_email, vaction_oid, vaction_code, expiration_date='')[source]
Parameters:
  • receiver_email

  • vaction_oid

  • vaction_code

Returns:

send_wrong_wallet_email(receiver_email, actual_address, address_used)[source]
_ACCOUNT_EXISTS_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request to create a user account
signed by ethereum wallet with the following address

{address_used}

However it seems your email address ({email}) is already registered
on XBR Network using the following address

{address_associated}

Kindly use the correct email and wallet address combination to login
to XBR Network.

Go to login page: {website_url}/login
"""
_ACCOUNT_EXISTS_EMAIL_TITLE = 'XBR Network: account already exists'[source]
_CREATE_CATALOG_LOG_VERIFICATION_CODE_END = '<<<<< CREATE_CATALOG_VERIFICATION_CODE_END <<<<<'[source]
_CREATE_CATALOG_LOG_VERIFICATION_CODE_START = '>>>>> CREATE_CATALOG_VERIFICATION_CODE_START >>>>>'[source]
_CREATE_CATALOG_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request for you ({member_id}) to create an api catalog {catalog_id}.

To complete this, please open the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}
"""
_CREATE_CATALOG_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm catalog creation {catalog_id}'[source]
_CREATE_MARKET_LOG_VERIFICATION_CODE_END = '<<<<< CREATE_MARKET_VERIFICATION_CODE_END <<<<<'[source]
_CREATE_MARKET_LOG_VERIFICATION_CODE_START = '>>>>> CREATE_MARKET_VERIFICATION_CODE_START >>>>>'[source]
_CREATE_MARKET_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request to create a data market.

To complete this, please open the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}
"""
_CREATE_MARKET_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm market creation'[source]
_JOIN_MARKET_LOG_VERIFICATION_CODE_END = '<<<<< JOIN_MARKET_VERIFICATION_CODE_END <<<<<'[source]
_JOIN_MARKET_LOG_VERIFICATION_CODE_START = '>>>>> JOIN_MARKET_VERIFICATION_CODE_START >>>>>'[source]
_JOIN_MARKET_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request for you ({member_id}) to join a data market {market_id} with roles {roles}.

To complete this, please open the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}
"""
_JOIN_MARKET_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm joining market {market_id}'[source]
_LOGIN_MEMBER_LOG_VERIFICATION_CODE_END = '<<<<< LOGIN_MEMBER_VERIFICATION_CODE_END <<<<<'[source]
_LOGIN_MEMBER_LOG_VERIFICATION_CODE_START = '>>>>> LOGIN_MEMBER_VERIFICATION_CODE_START >>>>>'[source]
_LOGIN_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request to login as your user account from a new device.

To continue to log in from the device, visit the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}

or complete the login using the CLI with this verification code

xbrnetwork --url <URL> login-member-verify --vaction={vaction_oid} --vcode={vaction_code}
"""
_LOGIN_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm login'[source]
_ONBOARD_MEMBER_LOG_VERIFICATION_CODE_END = '<<<<< ONBOARD_MEMBER_VERIFICATION_CODE_END <<<<<'[source]
_ONBOARD_MEMBER_LOG_VERIFICATION_CODE_START = '>>>>> ONBOARD_MEMBER_VERIFICATION_CODE_START >>>>>'[source]
_ONBOARD_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request to create a user account
using your email address ({member_email}).

To continue creating an account using this email address, visit the
following link in the browser you used to start the action

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}

or complete the on-boarding using the CLI with this verification code

xbrnetwork --url <URL> register-member-verify --vaction={vaction_oid} --vcode={vaction_code}

If you did not receive this email before {expiration_date} or
you wish to create an account using a different email address you can begin
again by going to:

{website_url}/register

PRIVACY NOTICE: XBR Network is an open decentralized data exchange. Activity
on most of XBR Network, including email addresses, will be visible to the public.
We recommend using a secondary account or free web email service (such as Gmail, Yahoo,
Hotmail, or similar) to avoid receiving spam at your primary email address.

If you do not wish to create an account, or if this request was made in
error you can do nothing or visit the following link:

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&cancel=true

If the above links do not work, or you have any other issues regarding
your account, please contact administration at {operator_email}.
"""
_ONBOARD_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm account creation'[source]
_PUBLISH_API_LOG_VERIFICATION_CODE_END = '<<<<< PUBLISH_API_VERIFICATION_CODE_END <<<<<'[source]
_PUBLISH_API_LOG_VERIFICATION_CODE_START = '>>>>> PUBLISH_API_VERIFICATION_CODE_START >>>>>'[source]
_PUBLISH_API_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request for you ({member_id}) to publish an api {api_id}.

To complete this, please open the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}

"""
_PUBLISH_API_VERIFICATION_EMAIL_TITLE = 'XBR Network: confirm catalog creation {catalog_id}'[source]
_SIGNUP_TO_LOGIN_VERIFICATION_EMAIL_BODY = Multiline-String[source]
Show Value
"""
XBR Network has received a request to create a user account
signed by your ethereum wallet with the following address

{wallet_address}

Since you already have an account we are sending you the login link instead

To continue to log in from the device, visit the following link in the browser you used to start the action!

{website_url}/verify-action?action={vaction_oid}&code={vaction_code}&action_type={vaction_type}&was_signup=1

or complete the login using the CLI with this verification code

xbrnetwork --url <URL> login-member-verify --vaction={vaction_oid} --vcode={vaction_code}
"""
_USERNAME_PAT[source]
_USERNAME_PAT_STR = '^[a-z][a-z0-9_]{4,14}$'[source]