Skip to main content
Version: Next

Interface: ProtocolReturnedDropConfig

Drop config returned from the Protocol. This interface is exactly the same as the DropConfig, except all the fields are snake cased instead of camel cased due to what the Protocol returns.

Properties

root_account_id

Optional root_account_id: string

Override the global root account that all created sub-accounts will have (currently near or testnet). This allows users to drops that have a custom root. For example, Fayyr could specify a root of fayyr.near By which all sub-accounts will then be ACCOUNT.fayyr.near. It's important to note that this root account MUST have a smart contract deployed that has a method create_account.

Defined in

lib/types/protocol.ts:83


sale

Optional sale: ProtocolReturnedPublicSaleConfig

Defined in

lib/types/protocol.ts:76


time

Optional time: ProtocolReturnedTimeConfig

Any information related to time-based configurations such as a starting date for keys etc.

Defined in

lib/types/protocol.ts:71


usage

Optional usage: ProtocolReturnedUsageConfig

Any information related to how access keys are used such as which methods they can call or whether an empty drop should be automatically deleted etc.

Defined in

lib/types/protocol.ts:74


uses_per_key

Optional uses_per_key: number

How many uses can each key have before it's deleted. If this isn't specified, it defaults to 1 use per key.

Defined in

lib/types/protocol.ts:68