@avaprotocol/sdk-js 2.0.4 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @avaprotocol/sdk-js
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ef05955: Updated the request interface of ContractRead
8
+
9
+ ## 2.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2fe0498: Update interface of event trigger to use queries
14
+
3
15
  ## 2.0.4
4
16
 
5
17
  ### Patch Changes
package/dist/auth.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const getKeyRequestMessage: (chainId: number, address: string, issuedAt: Date, expiredAt: Date) => string;
2
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,IAAI,EAAE,WAAW,IAAI,KAAG,MAUxG,CAAA"}
package/dist/auth.js ADDED
@@ -0,0 +1,10 @@
1
+ export const getKeyRequestMessage = (chainId, address, issuedAt, expiredAt) => {
2
+ return `Please sign the below text for ownership verification.
3
+
4
+ URI: https://app.avaprotocol.org
5
+ Chain ID: ${chainId}
6
+ Version: 1
7
+ Issued At: ${issuedAt.toISOString()}
8
+ Expire At: ${expiredAt.toISOString()}
9
+ Wallet: ${address}`;
10
+ };
@@ -0,0 +1,9 @@
1
+ import { Environment } from "@avaprotocol/types";
2
+ export declare const DEFAULT_JWT_EXPIRATION: number;
3
+ interface Config {
4
+ AVS_RPC_URL: string;
5
+ }
6
+ declare const configs: Record<Environment, Config>;
7
+ export declare function getRpcEndpoint(env: Environment): string;
8
+ export { configs };
9
+ //# sourceMappingURL=config.d.ts.map