Hot answers tagged

18

Inline actions sent by a contract are executed with a virtual "signature" that satisfies the contract@code permission where contract is the account where the code is installed. Your inline action declares the permission rider@active however, contract@code does not satisfy rider@active by default. In order to prevent nefarious contracts from doing "bad ...


11

Chintai is building a dApp (decentralized app) on the EOS blockchain that will allow you to lease your tokens. You can view it here: https://chintai-eos.io/ They will likely be on the Chintai marketplace, or other similar marketplaces. You will be compensated in EOS tokens. It will likely be an automated process on leasing marketplaces. You will likely be ...


9

The first line of token::create is require_auth( _self );. So I think only the contract account eosio.token can create the tokens. What you can always do is to reutilize this contract in an account that belongs to you: cleos set contract your.account $EOSPATH/build/contracts/eosio.token So you have control of all the features and can create all the tokens ...


9

The eosio.token contract implements what will become the standard. In the future eosio.token will allow users to create their own tokens that it manages.


8

This answer probably will change over time, but you should be able to find a list of wallets on: https://eosprojects.org/categories/wallet/ Currently listed are: http://scatter-eos.com/ https://play.google.com/store/apps/details?id=io.mithrilcoin.eoscommander https://github.com/PearlWallet/Pearl // disclaimer: I am creator of eosprojects


8

Declare the following struct in your contract struct account { asset balance; uint64_t primary_key()const { return balance.symbol.name(); } }; typedef eosio::multi_index<N(accounts), account> accounts; Write the following in one of the action of contract. It is reading the accounts table of eosio.token contract and printing ...


7

An EOS wallet is in the making by 3rd party developers recognized by Block.one. You can find details about 'EOSWallet' under EOS Essentials here https://github.com/EOSEssentials.


7

It will be the native token symbol. It has been renamed from EOS to SYS. This is to prevent confusion (even though it might add to it). The intention is that if you start a test net or fork the project, you will not use the EOS token name by default just by running the code. In the Dawn 4.2 version, it states that it can be configured prior to running the ...


6

Here's a post outlining a hypothetical example of how the chain will be launched written by the VP of Product at block.one: https://medium.com/@thomas.cox_39839/magic-15-unlocking-the-eosio-blockchain-91ec54f7b48d In the post Thomas walks through a hypothetical main net release whereby "a self-selected group of Block Producer candidates" start up a chain. ...


5

Users of the EOS network will not require any holdings to interface with dApps. As you mentioned Airdrops are certainly a benefit of owning EOS, many companies are using this as a way to circumvent the ICO restrictions by the SEC and also by the large tech companies banning ICO advertisements. Once the Everipedia airdrops ends, there will be more, ...


5

They need to protect themselves from the SEC which is in the middle of determining a classification for crypto currencies and ICOs. They have no means of actually preventing you from purchasing, owning or otherwise transacting in EOS on the ICO or from a 3rd party exchange. Further, some have expressed concerns that users from these countries who ...


4

EOS tokens traded on exchanges are tokens that were purchased from the EOS ICO. The price of a token when buying from the ICO is determined at the end of the 24 hour period, meaning you can expect the price to climb through the day. The value of the ICO tokens for that 24 hour period is relative to the value at which speculators are trading the tokens on ...


4

The account name is converted into an integer uint64 using the function string_to_name defined in types.hpp file static constexpr uint64_t string_to_name( const char* str ) { uint32_t len = 0; while( str[len] ) ++len; uint64_t value = 0; for( uint32_t i = 0; i <= 12; ++i ) { uint64_t c = 0; if( i < len && i <= 12 ) c ...


4

They are not strings, but rather base32 string representations of the uint64s. That’s why they are limited to 12 chars length and only the characters a-z, 1-5 and . When ever you see the preprocessor function N(something) being called is actually doing the conversion https://github.com/EOSIO/eos/blob/9be89106da1d6a1543eb19dd0f3b96a53e286088/libraries/chain/...


4

Token precision (number of decimal places) is defined when executing the create function on the eosio.token contract. You pass max supply to the token contract, which will include the precision. In the case of the EOS token, it is divisiable up to 4 decimal places. 0.0001 Is the smallest unit of EOS.


3

You can view the eosdactoken contract here - https://github.com/eosdac/eosdactoken We've implemented some extra functions for membership which will tie into our forthcoming DAC voting and worker proposal contracts.


3

Some airdrops like HorusPay will airdrop only to genesis block holders. That means If you had your tokens the day of the snapshot, you will get 1:1 ratio according to your eos tokens. Otherwise like said on https://www.chintai-eos.io/, your tokens are moved to a leasing contract address. That means you're not in control of your tokens while they're being ...


3

Among other things EOS.CYBEX claims they will launch the world's first hardware cold wallet for EOS. They state on their home page, linked, that "transactions happening on EOS are rather big in data volume, which will translate into a problem in embedded devices like hardware wallet, for the length of signature accounts hugely for hardware storage capacity."...


3

It's the same token. It's likely throttled throughout the day. The most accurate depiction of cost is closer to the end of the sale period. No matter when you submit your ether during the sale period it will always go with the rate at the end of the period. The rate is based on demand during the specific sale period, but will likely be close to the price on ...


3

Their are various legal reasons why it is more difficult to accept direct investment in direct ICO purchases for EOS. Many projects choose to exclude US or Chinese citizens because the law under which the government will enforce rules is not fully codified and therefore creates uncertainty, or the laws and regulations are more stringent than other countries. ...


3

Q1/2. Don't connect to an API when dealing with private keys. It is completely unnecessary, and I don't think it will do anything anyway. Wallets are made to be locally stored, not on chain, so I would recommend --wallet-url localhost:8080 (8080 as nodeos comes pre configured to 8888). You can configure this in your wallet's config file or set the flag ...


3

You need to call the transfer action of eosio.token contract with the appropriate arguments after your preferred delay: void send(account_name from, account_name to, asset amount, string memo, uint64_t delay) { eosio::transaction t{}; t.actions.emplace_back( eosio::permission_level(from, N(active)), // with `from@active` permission ...


3

Why does it seem that there are hardly any ICO for EOS projects? But there are many AirDrops on EOS? I believe there are a few aspects that led to this phenomenon: Regulatory risk. ICOs have seen quite a bit regulatory scrutiny lately, and selling/advertising securities to (non-accredited) investors can expose you to legal risks, unless you are willing to ...


3

You would add a transfer command to your token's contract as can be seen here. There is also a simple token contract example here if you don't need all the bells and whistles. .hpp void transfer( account_name from, account_name to, asset quantity, string memo ); .cpp void token::transfer( account_name from, ...


3

I don't think the other answers clarify this aspect, so I'll post this as well: I just can't figure out why token transfers on EOS are stored in (expensive) RAM and not just simply in the blockchain? Token transfers are stored in the blockchain, not in RAM. The balances for tokens are stored in RAM for the reasons mentioned in other answers, but the ...


3

Do I need to shift to a standard like erc-20 ? This really depends on what you're trying to achieve. The NFT and ERC-20 are fundamentally different. Do you understand the difference? Non fungible tokens are used to manage ownership of unique items which are not equal in properties and value. An example for a non fungible item is when your friend lends you ...


2

There will come a time when EOS will have to take a snapshot of all Ethereum wallets that are registered before launching their mainnet. To ensure that there are no new EOS tokens being purchased and to limit trading of tokens owned by speculators, it is important to freeze all tokens for a smooth swap. It is not clear at this moment if exchanges like ...


2

The chain which is selected by the majority will inevitably have to honor the snapshot, otherwise users will not: a) Choose the chain to vote on. b) have the tokens to support the vote-in for the chain to be raised.


2

There could be benefits yes, depending on which dApps a user might interact with. It might be possible that a dApp will require a user to stake tokens to the dApp to power it, and/or for storage, either for access, or to gain access to additional features/capacity. This will depend on the business model a particular dApp chooses to adopt of course, and ...


2

Lots of ways, apparently. Here is one. https://github.com/unicoeos/eosio.nft


Only top voted, non community-wiki answers of a minimum length are eligible