@vordium/sdk 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -5
- package/dist/cjs/client.js +257 -52
- package/dist/cjs/http.js +46 -0
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/network.js +150 -10
- package/dist/cjs/nonce.js +7 -3
- package/dist/cjs/outcome.js +649 -0
- package/dist/cjs/outcomeWords.js +172 -0
- package/dist/cjs/pins.js +5 -0
- package/dist/cjs/releaseRecord.js +870 -0
- package/dist/cjs/types.js +2 -1
- package/dist/esm/client.d.ts +92 -9
- package/dist/esm/client.js +257 -52
- package/dist/esm/http.d.ts +6 -0
- package/dist/esm/http.js +46 -0
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/network.d.ts +66 -12
- package/dist/esm/network.js +148 -9
- package/dist/esm/nonce.d.ts +3 -1
- package/dist/esm/nonce.js +7 -3
- package/dist/esm/outcome.d.ts +201 -0
- package/dist/esm/outcome.js +623 -0
- package/dist/esm/outcomeWords.d.ts +168 -0
- package/dist/esm/outcomeWords.js +169 -0
- package/dist/esm/pins.d.ts +8 -1
- package/dist/esm/pins.js +5 -0
- package/dist/esm/releaseRecord.d.ts +147 -0
- package/dist/esm/releaseRecord.js +856 -0
- package/dist/esm/types.d.ts +1 -0
- package/dist/esm/types.js +2 -1
- package/package.json +3 -1
package/dist/esm/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare const TYPE_STRINGS: {
|
|
|
32
32
|
readonly RevokeAgent: "RevokeAgent(address owner,address agent,uint64 nonce)";
|
|
33
33
|
readonly SessionCreate: "SessionCreate(address sessionKey,uint256 expiresAt,uint256 nonce)";
|
|
34
34
|
readonly SessionRevoke: "SessionRevoke(address owner,uint256 nonce)";
|
|
35
|
+
readonly StopAllSigners: "StopAllSigners(address owner,uint256 nonce,uint256 validUntil)";
|
|
35
36
|
};
|
|
36
37
|
export type PrimaryType = Exclude<keyof typeof TYPE_STRINGS, 'BatchAction'>;
|
|
37
38
|
export declare function parseTypeString(s: string): {
|
package/dist/esm/types.js
CHANGED
|
@@ -27,6 +27,7 @@ export const TYPE_STRINGS = {
|
|
|
27
27
|
// VordexSession
|
|
28
28
|
SessionCreate: 'SessionCreate(address sessionKey,uint256 expiresAt,uint256 nonce)',
|
|
29
29
|
SessionRevoke: 'SessionRevoke(address owner,uint256 nonce)',
|
|
30
|
+
StopAllSigners: 'StopAllSigners(address owner,uint256 nonce,uint256 validUntil)',
|
|
30
31
|
};
|
|
31
32
|
export function parseTypeString(s) {
|
|
32
33
|
const m = /^([A-Za-z0-9]+)\(([^()]*)\)$/.exec(s);
|
|
@@ -51,5 +52,5 @@ export function typesFor(primary) {
|
|
|
51
52
|
}
|
|
52
53
|
/** Which domain each operation is signed in. */
|
|
53
54
|
export function domainOf(primary) {
|
|
54
|
-
return primary === 'SessionCreate' || primary === 'SessionRevoke' ? 'VordexSession' : 'VordCore';
|
|
55
|
+
return primary === 'SessionCreate' || primary === 'SessionRevoke' || primary === 'StopAllSigners' ? 'VordexSession' : 'VordCore';
|
|
55
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vordium/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "TypeScript and JavaScript SDK for Vordium Chain and the Vordex perpetuals exchange: signing, orders, session keys, agents, TWAP, margin mode and live feeds.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vordium <dev@vordium.com>",
|
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
"test": "node --test test/*.test.mjs"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@noble/curves": "1.2.0",
|
|
45
|
+
"@noble/hashes": "1.3.2",
|
|
44
46
|
"ethers": "^6.13.0",
|
|
45
47
|
"ws": "^8.18.0"
|
|
46
48
|
},
|