Blockwell

Book Playground

About

Stats

Public Functions 42
Event Types 5
Code Size 24,207 bytes

Library Use

Uses SafeMath for uint256.
Uses StringUtil for string.

Events (5) keyboard_arrow_up

AddedToGroup Event

Parameters help
groupId
uint8 help
account
address help

FileChanged Event

Parameters help
indexedFolder
string help
indexedFile
string help
folderName
string help
fileName
string help
data
string help

FileRemoved Event

Parameters help
indexedFolder
string help
indexedFile
string help
folderName
string help
fileName
string help

FileRenamed Event

Parameters help
indexedFolder
string help
indexedFile
string help
folderName
string help
fileName
string help
newName
string help

RemovedFromGroup Event

Parameters help
groupId
uint8 help
account
address help

File Struct

Members
exists
bool help
index
uint64 help
name
string help
data
string help
creator
address help

Folder Struct

Members
exists
bool help
index
uint64 help
accessToken
Erc20Subset help
name
string help
metadata
string help
encoding
string help
fileNames
string[] help
files
mapping(string => File) help

ADMIN Constant

uint8 help
1

WRITER Constant

uint8 help
10

EDITOR Constant

uint8 help
11

bwtype Variable

uint256 help

bwver Variable

uint256 help

name Variable

string help

defaultEncoding Variable

string help

defaultAccessToken Variable

address help

authoringRestricted Variable

bool help

creatorEditing Variable

bool help

directEditing Variable

bool help

bookExtension Variable

address help

folderNames Variable

string[] help
Internal Variable

folders Variable

mapping(string => Folder) help
Internal Variable

groups Variable

Groups.GroupMap help
Internal Variable

Functions Expand All Collapse All

addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

removeAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

addWriter keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

One or more of the following: -null - ORnull

removeWriter keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

One or more of the following: -null - ORnull

addEditor keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

removeEditor keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

isAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

isWriter keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

isWriterOrEditor keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

isEditor keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

isEditorOrAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view

setBookExtension keyboard_arrow_up

Parameters help

Name Type
extension
BookExtension help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setAuthoringRestricted keyboard_arrow_up

Parameters help

Name Type
restricted
bool help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setDirectEditing keyboard_arrow_up

Parameters help

Name Type
allowed
bool help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setCreatorEditing keyboard_arrow_up

Parameters help

Name Type
enabled
bool help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setDefaultEncoding keyboard_arrow_up

Parameters help

Name Type
encoding
string help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setDefaultAccessToken keyboard_arrow_up

Parameters help

Name Type
token
Erc20Subset help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

updateAccessTokens keyboard_arrow_up

Parameters help

Name Type
fromToken
Erc20Subset help
toToken
Erc20Subset help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

setAccessToken keyboard_arrow_up

Parameters help

Name Type
folderName
string help
token
Erc20Subset help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

setMetadata keyboard_arrow_up

setEncoding keyboard_arrow_up

Parameters help

Name Type
folderName
string help
encoding
string help

Properties

Visibility help public
Mutability help transaction

Requirements help

null

set keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help
data
string help

Properties

Visibility help public
Mutability help transaction

Requirements help

extensionSet keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help
data
string help
creator
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

remove keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help transaction

Requirements help

rename keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help
newName
string help

Properties

Visibility help public
Mutability help transaction

get keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

fileExists keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

getAddress keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

getUint keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

getFileCreator keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

getFolderCount keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

getFolderSize keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help public
Mutability help view

getFolderSizeByIndex keyboard_arrow_up

Parameters help

Name Type
index
uint64 help

Properties

Visibility help public
Mutability help view

getFolderName keyboard_arrow_up

Parameters help

Name Type
index
uint64 help

Properties

Visibility help public
Mutability help view

getFolderIndex keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help public
Mutability help view

getFileName keyboard_arrow_up

Parameters help

Name Type
folderName
string help
index
uint64 help

Properties

Visibility help public
Mutability help view

getFileIndex keyboard_arrow_up

Parameters help

Name Type
folderName
string help
fileName
string help

Properties

Visibility help public
Mutability help view

getAccessToken keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help public
Mutability help view

getMetadata keyboard_arrow_up

getMetadataByIndex keyboard_arrow_up

Parameters help

Name Type
index
uint64 help

Properties

Visibility help public
Mutability help view

getEncoding keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help public
Mutability help view

getEncodingByIndex keyboard_arrow_up

Parameters help

Name Type
index
uint64 help

Properties

Visibility help public
Mutability help view

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.

internal BaseBook.init keyboard_arrow_up

Parameters help

Name Type
sender
address help

Properties

Visibility help internal
Mutability help transaction

internal BaseBook.requireWriteAccess keyboard_arrow_up

Parameters help

Name Type
account
address help
folder
Folder help
fileName
string help

Properties

Visibility help internal
Mutability help view

internal BaseBook.getOrCreateFolder keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help internal
Mutability help transaction

Requirements help

internal BaseBook.getFolder keyboard_arrow_up

Parameters help

Name Type
folderName
string help

Properties

Visibility help internal
Mutability help view

internal BaseBook.setFileValue keyboard_arrow_up

Parameters help

Name Type
folder
Folder help
fileName
string help
data
string help
creator
address help

Properties

Visibility help internal
Mutability help transaction

internal ContractGroups._addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help internal
Mutability help transaction

internal ContractGroups._add keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction

internal ContractGroups._remove keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction

internal ContractGroups._contains keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help view