![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
soliscript - run blockchain contracts in rubidity (with 100%-solidity compatible data types & abis) on an ethereum simulacrum in your own home for fun & profit (for free)
See Solidity - Contract Application Binary Interface (ABI) Specification »
See Rubidity - Ruby for Layer 1 (L1) Contracts / Protocols with "Off-Chain" Indexer »
Let's try the contract samples from the free (online) booklet titled "Programming Crypto Blockchain Contracts Step-by-Step Book / Guide" in Soliscript (Rubidity with Ethereum Simulacrum)!
Let's start with a simple ponzi scheme contract:
class SimplePonzi < Contract
storage current_investor: Address,
current_investment: UInt
sig []
def constructor
@current_investor = msg.sender
end
sig []
def receive # @payable default function
minimum_investment = @current_investment * 11/10
assert msg.value >= minimum_investment,
'new investments must be 10% greater than current'
# record new investor
previous_investor = @current_investor
@current_investor = msg.sender
@current_investment = msg.value
# pay out previous investor
previous_investor.send( msg.value )
end
end # class SimplPonzi
(Source: ponzi_simple.rb
)
Let's look at the first simple ponzi contract script. The idea is:
The money sent in by the latest investor gets paid out to the previous investor and because every new investment must be at least 10% larger than the last investment - EVERY INVESTOR WINS! (*)
(*): Except the last "sucker" is HODLing the bag waiting for a greater fool.
Let's setup some test accounts with funny money:
genesis = '0x'+'11'*20 #=> '0x1111111111111111111111111111111111111111'
alice = '0x'+'aa'*20 #=> '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
bob = '0x'+'bb'*20 #=> '0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
charlie = '0x'+'cc'*20 #=> '0xcccccccccccccccccccccccccccccccccccccccc'
## setup test accounts with starter balance
Account[ genesis ].balance = 0
Account[ alice ].balance = 1_000_000
Account[ bob ].balance = 1_000_000
Account[ charlie ].balance = 1_000_000
## (pp) pretty print all known accounts with balance
pp Account.all
(Source: run_ponzi_simple.rb
)
printing:
[#<account 0x1111...111111 @balance=0, @nonce=0,
#<account 0xaaaa...aaaaaa @balance=1000000, @nonce=0,
#<account 0xbbbb...bbbbbb @balance=1000000, @nonce=0,
#<account 0xcccc...cccccc @balance=1000000, @nonce=0]
And let's invest:
## genesis - create contract
ponzi = Simulacrum.send_transaction( from: genesis, data: SimplePonzi ).contract
#=> #<SimplePonzi @current_investment=0, @current_investor="0x1111">
Simulacrum.send_transaction( from: alice, to: ponzi, value: 100_000 )
#=> #<SimplePonzi @current_investment=100000, @current_investor="0xaaaa">
Simulacrum.send_transaction( from: bob, to: ponzi, value: 111_000 )
#=> #<SimplePonzi @current_investment=111000, @current_investor="0xbbbb">
Simulacrum.send_transaction( from: charlie, to: ponzi, value: 200_000 )
#=> #<SimplePonzi @current_investment=200000, @current_investor="0xcccc">
## (pp) pretty print all known accounts with balance
pp Account.all
Resulting in:
[#<account 0x1111...111111 @balance=100000, @nonce=1,
#<account 0xaaaa...aaaaaa @balance=1011000, @nonce=1,
#<account 0xbbbb...bbbbbb @balance=1089000, @nonce=1,
#<account 0xcccc...cccccc @balance=800000, @nonce=1]
The "Genesis" 0x1111
account made a 100000 X profit of 100000 out-of-thin air.
The "Alice" 0xaaaa
account made an investment of 100000 and got 111000. 11000 profit! Yes, it works!
The "Bob" 0xbbbb
account made an investment of 111000 and got 200000. 89000 profit! Yes, it works!
The "Charlie" 0xcccc
account is still waiting for a greater fool and is HODLing the bag.
To the moon!
And so on. To be continued ...
See /rubidity at the small, smart, secure, safe, solid & sound ruby (s6ruby) org.
See /blockchain at the ruby code commons (rubycocos) org.
FAQs
Unknown package
We found that soliscript 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.