-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cmd
committed
Feb 23, 2024
1 parent
79be324
commit f878780
Showing
73 changed files
with
2,007 additions
and
281 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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,16 @@ | ||
import { print_banner } from '@scrow/test' | ||
import { client } from '@scrow/demo/01_create_client.js' | ||
import { new_contract } from '@scrow/demo/05_create_contract.js' | ||
|
||
// Define the contract id we will use. | ||
const cid = new_contract.cid | ||
// Fetch a contract from the server by cid. | ||
const res = await client.contract.status(cid) | ||
// Check the response is valid. | ||
if (!res.ok) throw new Error(res.error) | ||
// Unpack the data object. | ||
const status = res.data.contract | ||
|
||
print_banner('contract status') | ||
console.dir(status, { depth : null }) | ||
console.log('\n') |
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,16 @@ | ||
import { DraftSession } from '@scrow/core' | ||
|
||
import { signer } from './config.js' | ||
|
||
/** ========== [ Draft Session ] ========== **/ | ||
|
||
// Create a draft session | ||
const session = new DraftSession(signer, { | ||
socket_config : { verbose : true, debug : true }, | ||
store_config : { verbose : true, debug : false }, | ||
verbose : true | ||
}) | ||
|
||
const drafts = await session.list('wss://relay.damus.io') | ||
|
||
console.dir(drafts, { depth : null }) |
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
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,8 @@ | ||
{ | ||
"label": "API Interfaces", | ||
"position": 1, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Reference list for BitEscrow API interfaces." | ||
} | ||
} |
Oops, something went wrong.