![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
pipeline-express-react
Advanced tools
Pipeline UI lite for quickly connecting to MyAlgo and sending transactions in React apps
Pipeline Express is an ultra-light version of Pipeline UI React Library. The library provides two button components with hard-coded onClick events to greatly simplify the process of retrieving a wallet address from MyAlgo connect, signing and sending transactions.
npm install pipeline-express-react
After downloading the example folder, from within the folder run:
npm install
npm run start
See included example.
Copy and paste the following code, install the dependencies and send an Algorand transaction in seconds!
import React, {Component} from 'react'
import { AlgoButton, AlgoSendButton, Pipeline} from 'pipeline-express-react'
import 'pipeline-express-react/dist/index.css';
const myAlgoWallet = Pipeline.init();
class App extends Component {
constructor(props) {
super(props);
this.state = {
myAddress: "",
recipient: "",
amount: 0,
note: "",
txID: ""
}
}
inputRecipient = (event) => {
this.setState({ recipient: event.target.value });
}
inputAmount = (event) => {
this.setState({amount: event.target.value});
}
inputNote = (event) => {
this.setState({note: event.target.value});
}
render() {
return <div align="center"><br></br>
<AlgoButton wallet={myAlgoWallet} context={this} returnTo={"myAddress"} />
<h3>{"My Address: " + this.state.myAddress}</h3>
<form >
<label>
Recipient:
<input type="text" onChange={this.inputRecipient} />
</label><br></br>
<label>
Amount:
<input type="number" onChange={this.inputAmount} />
</label>
<label><br></br>
Note:
<input type="text" onChange={this.inputNote} />
</label>
</form>
<AlgoSendButton
index={0} //If ASA, must be a numeric index value > 0
recipient={this.state.recipient} //string value
amount={this.state.amount} //integer value in micro Algos
note={this.state.note} //string value
myAddress={this.state.myAddress} //string value
wallet={myAlgoWallet} //reference to an instance of Pipeline.init(); that is called once when the app is initialized
context={this}
returnTo={"txID"}// string value of state key to return the transaction id
/>
<h3>{"Transaction ID: " + this.state.txID}</h3>
</div>
}
}
export default App;
MIT © headline-design
FAQs
Pipeline UI lite for quickly connecting to MyAlgo and sending transactions in React apps
The npm package pipeline-express-react receives a total of 0 weekly downloads. As such, pipeline-express-react popularity was classified as not popular.
We found that pipeline-express-react 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.