From 859a4226e5e9d27a37de1d397fa2541c99e9f0ef Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 25 Aug 2023 16:24:39 +0200 Subject: [PATCH 1/3] export solidity_compact functions and objects --- assembly/std/index.ts | 2 ++ assembly/std/solidity_compat/index.ts | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 assembly/std/solidity_compat/index.ts diff --git a/assembly/std/index.ts b/assembly/std/index.ts index 21b6a08d..ea8c2f68 100644 --- a/assembly/std/index.ts +++ b/assembly/std/index.ts @@ -31,3 +31,5 @@ export * from './utils'; * @module Coins */ export * from './coins'; + +export * from './solidity_compat'; diff --git a/assembly/std/solidity_compat/index.ts b/assembly/std/solidity_compat/index.ts new file mode 100644 index 00000000..f5888544 --- /dev/null +++ b/assembly/std/solidity_compat/index.ts @@ -0,0 +1,3 @@ +export * from './bytes'; +export * from './encode'; +export * from './misc'; From 60a9c64c426b8fefea0b3e1ed42443312d2038aa Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 25 Aug 2023 16:26:28 +0200 Subject: [PATCH 2/3] patch version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d265cef3..53e4060f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@massalabs/massa-as-sdk", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@massalabs/massa-as-sdk", - "version": "2.5.0", + "version": "2.5.1", "license": "(MIT AND Apache-2.0)", "devDependencies": { "@as-pect/cli": "^8.0.1", diff --git a/package.json b/package.json index 80ef654e..2ddabacd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@massalabs/massa-as-sdk", - "version": "2.5.0", + "version": "2.5.1", "description": "Massa assemblyscript sdk", "main": "assembly/index.ts", "types": "assembly/index.ts", From e9332bc796884ba1f8849e4cf52ffcdeb6fb3414 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 25 Aug 2023 16:37:52 +0200 Subject: [PATCH 3/3] add SolidityCompat namespace --- assembly/std/index.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/assembly/std/index.ts b/assembly/std/index.ts index ea8c2f68..b6fcf05c 100644 --- a/assembly/std/index.ts +++ b/assembly/std/index.ts @@ -5,8 +5,18 @@ import * as OpDatastore from './op-datastore'; import * as Contract from './contract'; import * as Utilities from './utils'; import * as Coins from './coins'; +import * as SolidityCompat from './solidity_compat'; -export { Address, Storage, Context, OpDatastore, Contract, Utilities, Coins }; +export { + Address, + Storage, + Context, + OpDatastore, + Contract, + Utilities, + Coins, + SolidityCompat, +}; // op-datastore/index.ts /** @@ -31,5 +41,3 @@ export * from './utils'; * @module Coins */ export * from './coins'; - -export * from './solidity_compat';