Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: directly generate js libs to node_modules #130

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# paths = ["/path/to/override"] # path dependency overrides

[alias] # command aliases
install_soroban = "install --git https://github.com/stellar/soroban-tools --rev cb3c44f9d8080917a7cb019d6be25019f6cf78c3 --root ./target soroban-cli --debug"
install_soroban = "install --version 0.9.1 --root ./target soroban-cli --debug"
b = "build --target wasm32-unknown-unknown --release"
# c = "check"
# t = "test"
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json linguist-generated=true -diff
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- run: cargo install_soroban
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18.14.2
cache: 'npm'
- run: |
mkdir -p .soroban-example-dapp
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
18.17
8 changes: 3 additions & 5 deletions components/molecules/form-pledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ function MintButton({ account, symbol, onComplete, decimals }: { decimals: numbe
const [isSubmitting, setSubmitting] = useState(false)

const displayAmount = 100
const amount = BigInt(displayAmount * 10**decimals)
const amount = BigInt(displayAmount * 10 ** decimals)

return (
<Button
title={`Mint ${displayAmount} ${symbol}`}
onClick={async () => {
setSubmitting(true)
await abundance.mint({ to: account, amount }, { signAndSend: true })
await abundance.mint({ to: account, amount })
setSubmitting(false)
onComplete()
}}
Expand Down Expand Up @@ -80,9 +80,7 @@ const FormPledge: FunctionComponent<IFormPledgeProps> = props => {
try {
await deposit({
user: props.account,
amount: BigInt(amount * 10**decimals),
}, {
signAndSend: true
amount: BigInt(amount * 10 ** decimals),
})

setResultSubmit({
Expand Down
Loading
Loading