Skip to content

Commit

Permalink
feat: provider models for signing transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Aug 26, 2024
1 parent 108d57f commit 820d2e3
Show file tree
Hide file tree
Showing 25 changed files with 1,334 additions and 21 deletions.
3 changes: 2 additions & 1 deletion examples/cjs/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { AlgorandTransactionCrafter } = require('@algorandfoundation/algo-models')

const {SignTransactionsParams} = require('@algorandfoundation/algo-models/provider')
let atc = new AlgorandTransactionCrafter('testnet-v1.0', 'SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=')
let pay = atc.pay(123, 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4', 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4')
//console.log(Buffer.from(pay.get().encode()).toString('base64'))
console.log(pay)
console.log(SignTransactionsParams)
13 changes: 9 additions & 4 deletions examples/cjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/esm/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

import { AlgorandTransactionCrafter } from '@algorandfoundation/algo-models'
import {SignTransactionsParams} from "@algorandfoundation/algo-models/provider";

let atc = new AlgorandTransactionCrafter('testnet-v1.0', 'SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=')
let pay = atc.pay(123, 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4', 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4')
//console.log(Buffer.from(pay.get().encode()).toString('base64'))
console.log(pay)
console.log(SignTransactionsParams)
13 changes: 9 additions & 4 deletions examples/esm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { AlgorandTransactionCrafter } from '@algorandfoundation/algo-models'
import {SignTransactionsParams} from "@algorandfoundation/algo-models/provider";

const atc = new AlgorandTransactionCrafter("testnet-v1.0", "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=")
let pay = atc.pay(123, 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4', 'R2HYOMCQIIVZLYYSVQ7RRDME5QB2NNACNIYEYIIN3NCTEKHEVE4RJRNWN4')
//console.log(Buffer.from(pay.get().encode()).toString('base64'))
console.log(pay)

console.log(SignTransactionsParams)
Loading

0 comments on commit 820d2e3

Please sign in to comment.