Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@weavery/clarity
Advanced tools
We thank Arweave and Blockstack for sponsoring the development of this project as part of the development of Sworn.
Clarity | TypeScript | JavaScript | Notes |
---|---|---|---|
bool | boolean | boolean | |
(buff N) | Uint8Array | Uint8Array | |
err | Err<T> | Err | |
int | number or bigint | number or BigInt | |
(list N T) | Array<T> | Array | |
(optional T) | T or null | T or null | |
principal | String | String | |
(response T E) | T or Err<E> | T or Err | |
(string-ascii N) | String | String | |
(string-utf8 N) | String | String | |
(tuple ...) | Map<String, any> | Map | |
uint | number or bigint | number or BigInt |
Clarity | Type | TypeScript | Status | Notes |
---|---|---|---|---|
* | function | mul() | ✅ | |
+ | function | add() | ✅ | |
- | function | sub() | ✅ | |
/ | function | div() | ✅ | |
< | function | lt<T>() | ✅ | |
<= | function | le<T>() | ✅ | |
> | function | gt<T>() | ✅ | |
>= | function | ge<T>() | ✅ | |
append | function | append() | ✅ | |
as-contract | syntax | asContract<A>() | ⓐ | |
as-max-len? | syntax | asMaxLen<T>() | ✅ | |
at-block | syntax | atBlock<A>() | ❌ | Not supported by SmartWeave. |
block-height | keyword | blockHeight() | ⓐ | |
concat | function | concat() | ✅ | |
contract-call? | function | contractCall<A, B>() | ❌ | Not supported by SmartWeave. |
contract-caller | keyword | contractCaller() | ⓐ | |
contract-of | function | contractOf() | ❌ | Not supported by SmartWeave. |
default-to | function | defaultTo<T>() | ✅ | |
err | function | err<T() | ✅ | |
filter | function | filter<A>() | ✅ | |
fold | function | fold<A, B>() | ✅ | |
ft-get-balance | function | ftGetBalance() | 🚧 | |
ft-mint? | function | ftMint() | 🚧 | |
ft-transfer? | function | ftTransfer() | 🚧 | |
get | function | get<T>() | ✅ | |
get-block-info? | function | getBlockInfo() | ❌ | Not supported by SmartWeave. |
hash160 | function | hash160() | ❌ | |
is-eq | function | isEq() | ✅ | |
is-err | function | isErr() | ✅ | |
is-none | function | isNone() | ✅ | |
is-ok | function | isOk() | ✅ | |
is-some | function | isSome() | ✅ | |
keccak256 | function | keccak256() | ❌ | |
len | function | len<T>() | ✅ | |
list | function | list<T>() | ✅ | |
map | function | map<A, B>() | ✅ | |
map-delete | function | mapDelete() | ✅ | |
map-get? | function | mapGet() | ✅ | |
map-insert | function | mapInsert() | ✅ | |
map-set | function | mapSet() | ✅ | |
match | syntax | match<T, E>() | ✅ | |
mod | function | mod() | ✅ | |
nft-get-owner? | function | nftGetOwner() | 🚧 | |
nft-mint? | function | nftMint() | 🚧 | |
nft-transfer? | function | nftTransfer() | 🚧 | |
none | constant | none | ✅ | |
not | function | not() | ✅ | |
ok | function | ok<T, E>() | ✅ | |
pow | function | pow() | ✅ | |
print | function | print<T>() | ✅ | |
sha256 | function | sha256() | ❌ | |
sha512 | function | sha512() | ❌ | |
sha512/256 | function | sha512_256() | ❌ | |
some | function | some() | ✅ | |
to-int | function | toInt() | 🚧 | |
to-uint | function | toUint() | 🚧 | |
try! | syntax | tryUnwrap<A, B>() | ✅ | |
tuple | function | tuple() | ✅ | |
tx-sender | keyword | txSender() | ⓐ | |
unwrap! | syntax | unwrap<A, B>() | ✅ | |
unwrap-err! | syntax | unwrapErr<A, B>() | ✅ | |
unwrap-err-panic | function | unwrapErrPanic<A, B>() | ✅ | |
unwrap-panic | function | unwrapPanic<A, B>() | ✅ | |
xor | function | xor() | ✅ |
Legend: ❌ = not supported. 🚧 = work in progress. ✅ = supported. ⓐ = supported on SmartWeave (Arweave).
FAQs
Clarity smart contract runtime for JavaScript.
The npm package @weavery/clarity receives a total of 5,880 weekly downloads. As such, @weavery/clarity popularity was classified as popular.
We found that @weavery/clarity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.