Code Monkey home page Code Monkey logo

cep18's People

Contributors

acstonecl avatar alexanderlimonov avatar arcolife avatar bors[bot] avatar buddhika-pathirathna avatar darthsiroftardis avatar davidatwhiletrue avatar davidtai avatar deuszex avatar fraser999 avatar groussac avatar hoffmannjan avatar ipopescu avatar levike34 avatar mpapierski avatar sacherjj avatar shalmalicl avatar tomvasile avatar zeusmonkey avatar zie1ony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cep18's Issues

Add change_security event

Please see this comment. #69 (comment)

I am creating this ticket to separate out the task so we do not hold up the release of 1.0. 1.0 is needed by Astronomica/Beastleague so we must release on time. This work is requested by a valued partner, MAKE. Once our lead engineers give the approval to do this, we will continue development.

Additional note: If we can include this change without delaying the scheduled release, we will.

API Table Namings

To validate the namings of entry points and DB Schema aligned with EquityBrix

Release Checklist CEP18 v1.0

  • (DEV) Close or defer all tickets in the epics (code complete/scope closure) - code freeze
  • (DEV) Create release candidate branch (branching, tagging)
  • (Business Owner) Identify destination & distribution targets (communications, announcements)
  • (SRE) Ensure SRE pipelines are in place
  • (DEV) unit & Integration tests have passed
  • (DEV) Create readme in git repo (scope closure)
  • (DEV) ensure changelog is in place
  • (SRE) acceptance tests in a production environment has passed
  • (DEV) Documentation updates are in place (docs team)

Time box for audit responses

We are having an independent agency do an audit review of the contract. This ticket allows us time to make the appropriate changes based on their findings. allowing for half a sprint and will adjust based on findings

fix for CES events

entry points in the contract are calling the emit function, but during installation the CES library is not initialized.

RPC error Invalid params from transfer deploy

Hi,
I'm sending a transfer deploy using the JS CEP18Client from here and I got the following error from RPC, could you please clarify what it means as it doesn't tell anything specific.

{
  "jsonrpc": "2.0",
  "id": "0",
  "error": {
    "code": -32602,
    "message": "Invalid params",
    "data": null
  }
}

Here is the deploy generated from the CEP18Client:

{"jsonrpc":"2.0","id":"0","method":"account_put_deploy","params":{"deploy":{"hash":"32c38ee2f2fb611ea02f52603aeed79865097f8adb165a0f169afec1722b7dde","header":{"account":"020304Bb523043dec125E3f31efA82fF2B8E30dF97211bcf87CDb3B6BaE6586AdD4A","timestamp":"2023-06-23T13:54:52.666Z","ttl":"30m","gas_price":1,"body_hash":"b61f918d9f7d788b619da298651b3b82c98fb01dc1574ed6b84d22cae0e37b4f","dependencies":[],"chain_name":"casper-test"},"payment":{"ModuleBytes":{"module_bytes":"","args":[["amount",{"bytes":"0480f0fa02","cl_type":"U512"}]]}},"session":{"StoredContractByHash":{"hash":"","entry_point":"transfer","args":[["recipient",{"bytes":"00f98f2ed4ea79f13cf3e5681e5b2dfbb2b9ef48770a76f04f2f934503522a44f5","cl_type":"Key"}],["amount",{"bytes":"0103","cl_type":"U256"}]]}},"approvals":[{"signer":"020304Bb523043dec125E3f31efA82fF2B8E30dF97211bcf87CDb3B6BaE6586AdD4A","signature":"0222d7ae442bf1cb244aea8536aea3b6b507b2a7f1614a02d0f3d3cbbd36435813651ba04d19f1b8ba4b5c5db481016874027c5a1a97c9911f4c877add5806cb33"}]}}}

Could you please advise what is wrong?

API Tests

Includes Unit and Integration tests.

Update READMEs

While working on #75 and talking with our developers, I see that we need to update a few more sections:

  • the tutorials under the /docs folder need to be checked and refreshed see #1115 Update CEP18 Tutorials
  • the README in the contract directory needs to be populated (see reference)
  • the main readme needs to be updated

Usage in README.md doesn't work

cargo casper --erc20 <PATH TO NEW PROJECT> returns

error: Found argument '--erc20' which wasn't expected, or isn't valid in this context

        If you tried to supply `--erc20` as a value rather than a flag, use `-- --erc20`

USAGE:
    cargo casper [FLAGS] <path>
    cd <path>
    make prepare
    make test

For more information try --help

Should ERC20 repo be used like this?
. forking our erc20 repo if working on an erc20 token.

Release checklist cep18 v1.1

  • (DEV) Close or defer all tickets in the epics (code complete/scope closure) - code freeze
  • (DEV) Create release candidate branch (branching, tagging)
  • (Business Owner) Identify destination & distribution targets (communications, announcements)
  • (SRE) Ensure SRE pipelines are in place
  • (DEV) unit & Integration tests have passed
  • (DEV) Create readme in git repo (scope closure)
  • (DEV) ensure changelog is in place
  • (SRE) acceptance tests in a production environment has passed
  • (DEV) Documentation updates are in place (docs team)

Is it production ready?

Hi
Is this library production ready? Does anyone use it in their apps/projects so we can look at how to use it?
Is there some reference implementation with a real-life usage example as we did in the Casper Wallet playground?
It would be really helpful, thanks :)

JS SDK usage example

There must be comprehensive example code illustrating the installation & invocation of all example smart contracts within eco-system. Also if in the example smart contracts there are no examples with optional arguments then a new example smart contract should be created.

Cannot install

Hi
I'm trying to install the "cep-18" client using the official installation readme guide.
There is an error in the installation script while using "npm i casper-erc20-js-client".

What is your advice here so we can use it properly in the Casper Wallet product?

npm i casper-cep18-js-client
npm ERR! code 1
npm ERR! path /Users/piotrek/Dev/casper-wallet/node_modules/casper-cep18-js-client
npm ERR! command failed
npm ERR! command sh -c -- npm run generate:wasm
npm ERR! > casper-cep18-js-client@1.0.0 generate:wasm
npm ERR! > ts-node "src/scripts/copy-and-convert-wasms.ts"
npm ERR! node:internal/modules/cjs/loader:988
npm ERR!   throw err;
npm ERR!   ^
npm ERR! 
npm ERR! Error: Cannot find module './copy-and-convert-wasms.ts'
npm ERR! Require stack:
npm ERR! - /Users/piotrek/Dev/casper-wallet/node_modules/casper-cep18-js-client/src/scripts/imaginaryUncacheableRequireResolveScript
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
npm ERR!     at Function.resolve (node:internal/modules/cjs/helpers:109:19)
npm ERR!     at requireResolveNonCached (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:549:16)
npm ERR!     at getProjectSearchDir (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:519:40)
npm ERR!     at phase3 (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:267:27)
npm ERR!     at bootstrap (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:47:30)
npm ERR!     at main (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:33:12)
npm ERR!     at Object.<anonymous> (/Users/piotrek/Dev/casper-wallet/node_modules/ts-node/dist/bin.js:579:5)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1155:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     '/Users/piotrek/Dev/casper-wallet/node_modules/casper-cep18-js-client/src/scripts/imaginaryUncacheableRequireResolveScript'
npm ERR!   ]
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/piotrek/.npm/_logs/2023-06-09T13_23_33_383Z-debug-0.log

Clean up the ERC20 contract

Currently, the ERC20 test contract in the ERC20 Repo contains unsafe code. The below comments from the contract contains the details.

The aim of this ticket is to analyse the contract, remove unsafe code and update the example contract to align to Casper's Token Standards.

Comments in the example contract;

This can all be addressed if we flatten ERC20 implementation in the style of the cep-78 implementation i.e. a simple contract and no library.

the deliverable should be a contract repo with one straightforward contract implementation and integration tests

Full CEP-78 Use Tutorial

Create a tutorial in a similar manner to the existing CEP18 documentation that outlines the use of each aspect of CEP78 in a more direct and user-friendly way.

Update SDK documentation

with this PR #69 we brought our CEP 18 contract up to be consistent with CEP78 and added CES events. (events modality). We need to follow up with the appropriate documentation updates.

Receiving "Out of gas error" while deploying

Been trying to deploy this to testnet and keep getting "Out of gas error"

https://testnet.cspr.live/account/01b202457a136b9acb8a03760797ed2e6c5ee486c367371043369a9a572dc833cb

On Ubuntu 18 LTS
Casper client 1.1.1

Ran the commands:

git clone https://github.com/casper-ecosystem/erc20 && cd erc20
make prepare
make build-contract
casper-client put-deploy --chain-name casper-test --node-address http://173.249.29.90:7777 --secret-key ./keys/secret_key.pem --session-path ./target/wasm32-unknown-unknown/release/contract.wasm   --payment-amount 3000000000 --session-arg "token_name:string='GAP CSPR-ETH'" --session-arg "token_symbol:string='GAP'" --session-arg "token_decimals:u8='2'"  --session-arg "token_total_supply:u256='100000000'"

Error unresolved imports

error[E0432]: unresolved imports libc::sysconf, libc::_SC_PAGESIZE

getting this error while make test .

UAT Test Plan

Generate a step by step guide for the EB team to reference for UAT.

---------

An AWS connected environment to int-test .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.