@casual-simulation/crypto
Advanced tools
Changelog
V2.0.22
os.publishRecord()
os.getRecords()
os.destroyRecord()
byAuthID()
withAuthToken()
byAddress()
byPrefix()
os.publishRecord()
) and introduces a new paradigm.os.getPublicRecordKey(recordName)
has been added as a way to retrieve a key that can be used to write data and files to a public record.os.recordData(recordKey, address, data)
can be used to store a piece of data at an address inside a record. This data can later be retrieved with os.getData(recordKeyOrName, address)
.os.getData(recordKeyOrName, address)
can be used to retrieve data that was stored in a record.os.recordFile(recordKey, data, options?)
can be used to store a file inside a record. Files can be any size and can be accessed via webhook()
or os.getFile(url)
.os.getFile(urlOrRecordFileResult)
can be used to easily retrieve a file.os.isRecordKey(value)
is useful for determining if a value represents a record key.Changelog
V2.0.14
local
space to delete the oldest inst when localStorage is full.pointerPixelX
and pointerPixelY
tags to the gridPortalBot to track the mouse pointer position on the screen.dataURL
instead of data
that points to where the record can be downloaded from.os.getFocusPoint()
) would always return null data..getMoreRecords()
function did not work.Changelog
V2.0.12
os.createDebugger(options?)
function.
os.createDebugger()
can be used to create a separate sandbox area where bots can be tested without causing external effects.create()
and getBots()
) that can be used like normal.
For example:
const debug = os.createDebugger();
const debugBot = debug.create({ home: true, color: 'red' });
Creates a bot that is contained in the debugger. Therefore, scripts on the debugBot
will only affect bots that were created in the debugger.assert(condition, message?)
and assertEqual(received, expected)
functions.
meetPortalAnchorPoint
to left
or right
would not shift the gridPortal
to the remaining space.