-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into add-observation
- Loading branch information
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: ./coverage/coverage_report.out | ||
files: ./coverage/coverage_report.out,./coverage/luacov.stats.out | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
createDataItemSigner, | ||
connect, | ||
} from "@permaweb/aoconnect"; | ||
|
||
import fs from 'fs' | ||
import path from 'path' | ||
|
||
const processId = 'Wq0LrvyY9tqRtQcxQcKAYfa0F1Yp9Uomkio4PrUlugE' | ||
const jwk = JSON.parse(fs.readFileSync(path.join(__dirname, 'wallet.json')).toString()) | ||
|
||
const main = async () => { | ||
const { message, result } = await connect(jwk) | ||
const messageTxId = await message({ | ||
process: processId, | ||
tags: [ | ||
{ name: 'ProcessId', value: processId}, | ||
{ name: 'Action', value: 'BuyRecord' }, | ||
{ name: 'Name', value: 'dylan' }, | ||
{ name: 'PurchaseType', value: 'lease'}, | ||
], | ||
signer: createDataItemSigner(jwk), | ||
}); | ||
console.log('Sent data to process', messageTxId) | ||
const res = await result({ | ||
message: messageTxId, | ||
process: processId | ||
}) | ||
console.log('Result:', res) | ||
} | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
createDataItemSigner, | ||
connect, | ||
spawn, | ||
} from "@permaweb/aoconnect"; | ||
|
||
import fs from 'fs' | ||
import path from 'path' | ||
|
||
const jwk = JSON.parse(fs.readFileSync(path.join(__dirname, 'wallet.json')).toString()) | ||
|
||
const main = async () => { | ||
const module = 'GRqfUmY_2QnqgmG9s3C9P3uSy01GRWjaPstNWwVEfJ8' | ||
const scheduler = 'uW1Qm8BRsfj-tjip0BkVV-CHy6sBPF0Db0H8b15rsD8' | ||
const processId = await spawn({ | ||
// The Arweave TXID of the ao Module | ||
module: module, | ||
// The Arweave wallet address of a Scheduler Unit | ||
scheduler: scheduler, | ||
tags: [ | ||
{ name: "Memory-Limit", value: "500-mb" }, | ||
{ name: "Compute-Limit", value: "9000000000000" }, | ||
], | ||
// A signer function containing your wallet | ||
signer: createDataItemSigner(jwk), | ||
}); | ||
console.log(processId) | ||
} | ||
|
||
main() |