@o2exchange/contracts 0.1.9 → 0.1.10

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.
Files changed (65) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/margin-account/MarginAccount.d.ts +38 -0
  6. package/dist/margin-account/MarginAccount.d.ts.map +1 -0
  7. package/dist/margin-account/MarginAccount.js +47 -0
  8. package/dist/margin-account/MarginAccount.js.map +1 -0
  9. package/dist/margin-account/MarginAccountFactory.d.ts +9 -0
  10. package/dist/margin-account/MarginAccountFactory.d.ts.map +1 -0
  11. package/dist/margin-account/MarginAccountFactory.js +21 -0
  12. package/dist/margin-account/MarginAccountFactory.js.map +1 -0
  13. package/dist/margin-account/index.d.ts +3 -0
  14. package/dist/margin-account/index.d.ts.map +1 -0
  15. package/dist/margin-account/index.js +10 -0
  16. package/dist/margin-account/index.js.map +1 -0
  17. package/dist/margin-account-oracle/MarginAccountOracle.d.ts +161 -0
  18. package/dist/margin-account-oracle/MarginAccountOracle.d.ts.map +1 -0
  19. package/dist/margin-account-oracle/MarginAccountOracle.js +1013 -0
  20. package/dist/margin-account-oracle/MarginAccountOracle.js.map +1 -0
  21. package/dist/margin-account-oracle/MarginAccountOracleFactory.d.ts +9 -0
  22. package/dist/margin-account-oracle/MarginAccountOracleFactory.d.ts.map +1 -0
  23. package/dist/margin-account-oracle/MarginAccountOracleFactory.js +21 -0
  24. package/dist/margin-account-oracle/MarginAccountOracleFactory.js.map +1 -0
  25. package/dist/margin-account-oracle/common.d.ts +24 -0
  26. package/dist/margin-account-oracle/common.d.ts.map +1 -0
  27. package/dist/margin-account-oracle/common.js +3 -0
  28. package/dist/margin-account-oracle/common.js.map +1 -0
  29. package/dist/margin-account-oracle/index.d.ts +3 -0
  30. package/dist/margin-account-oracle/index.d.ts.map +1 -0
  31. package/dist/margin-account-oracle/index.js +10 -0
  32. package/dist/margin-account-oracle/index.js.map +1 -0
  33. package/dist/risk-manager/RiskManager.d.ts +193 -0
  34. package/dist/risk-manager/RiskManager.d.ts.map +1 -0
  35. package/dist/risk-manager/RiskManager.js +721 -0
  36. package/dist/risk-manager/RiskManager.js.map +1 -0
  37. package/dist/risk-manager/RiskManagerFactory.d.ts +9 -0
  38. package/dist/risk-manager/RiskManagerFactory.d.ts.map +1 -0
  39. package/dist/risk-manager/RiskManagerFactory.js +21 -0
  40. package/dist/risk-manager/RiskManagerFactory.js.map +1 -0
  41. package/dist/risk-manager/common.d.ts +24 -0
  42. package/dist/risk-manager/common.d.ts.map +1 -0
  43. package/dist/risk-manager/common.js +3 -0
  44. package/dist/risk-manager/common.js.map +1 -0
  45. package/dist/risk-manager/index.d.ts +3 -0
  46. package/dist/risk-manager/index.d.ts.map +1 -0
  47. package/dist/risk-manager/index.js +10 -0
  48. package/dist/risk-manager/index.js.map +1 -0
  49. package/dist/risk-manager-proxy/RiskManagerProxy.d.ts +192 -0
  50. package/dist/risk-manager-proxy/RiskManagerProxy.d.ts.map +1 -0
  51. package/dist/risk-manager-proxy/RiskManagerProxy.js +850 -0
  52. package/dist/risk-manager-proxy/RiskManagerProxy.js.map +1 -0
  53. package/dist/risk-manager-proxy/RiskManagerProxyFactory.d.ts +9 -0
  54. package/dist/risk-manager-proxy/RiskManagerProxyFactory.d.ts.map +1 -0
  55. package/dist/risk-manager-proxy/RiskManagerProxyFactory.js +21 -0
  56. package/dist/risk-manager-proxy/RiskManagerProxyFactory.js.map +1 -0
  57. package/dist/risk-manager-proxy/common.d.ts +24 -0
  58. package/dist/risk-manager-proxy/common.d.ts.map +1 -0
  59. package/dist/risk-manager-proxy/common.js +3 -0
  60. package/dist/risk-manager-proxy/common.js.map +1 -0
  61. package/dist/risk-manager-proxy/index.d.ts +3 -0
  62. package/dist/risk-manager-proxy/index.d.ts.map +1 -0
  63. package/dist/risk-manager-proxy/index.js +10 -0
  64. package/dist/risk-manager-proxy/index.js.map +1 -0
  65. package/package.json +17 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,13 @@
1
+ export * from './margin-account-oracle/index.js';
2
+ export * from './margin-account/index.js';
1
3
  export * from './order-book-blacklist/index.js';
2
4
  export * from './order-book-proxy/index.js';
3
5
  export * from './order-book-registry-proxy/index.js';
4
6
  export * from './order-book-registry/index.js';
5
7
  export * from './order-book-whitelist/index.js';
6
8
  export * from './order-book/index.js';
9
+ export * from './risk-manager-proxy/index.js';
10
+ export * from './risk-manager/index.js';
7
11
  export * from './trade-account-oracle/index.js';
8
12
  export * from './trade-account-proxy/index.js';
9
13
  export * from './trade-account-registry-proxy/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -1,10 +1,14 @@
1
1
  /* Autogenerated — do not edit */
2
+ export * from './margin-account-oracle/index.js';
3
+ export * from './margin-account/index.js';
2
4
  export * from './order-book-blacklist/index.js';
3
5
  export * from './order-book-proxy/index.js';
4
6
  export * from './order-book-registry-proxy/index.js';
5
7
  export * from './order-book-registry/index.js';
6
8
  export * from './order-book-whitelist/index.js';
7
9
  export * from './order-book/index.js';
10
+ export * from './risk-manager-proxy/index.js';
11
+ export * from './risk-manager/index.js';
8
12
  export * from './trade-account-oracle/index.js';
9
13
  export * from './trade-account-proxy/index.js';
10
14
  export * from './trade-account-registry-proxy/index.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Contract as __Contract, Interface } from "fuels";
2
+ import type { Provider, Account, StorageSlot, Address, FunctionFragment, InvokeFunction } from 'fuels';
3
+ export declare class MarginAccountInterface extends Interface {
4
+ constructor();
5
+ functions: {
6
+ test_function: FunctionFragment;
7
+ };
8
+ }
9
+ export declare class MarginAccount extends __Contract {
10
+ static readonly abi: {
11
+ programType: string;
12
+ specVersion: string;
13
+ encodingVersion: string;
14
+ concreteTypes: {
15
+ type: string;
16
+ concreteTypeId: string;
17
+ }[];
18
+ metadataTypes: never[];
19
+ functions: {
20
+ name: string;
21
+ inputs: never[];
22
+ output: string;
23
+ attributes: null;
24
+ }[];
25
+ loggedTypes: never[];
26
+ messagesTypes: never[];
27
+ configurables: never[];
28
+ errorCodes: {};
29
+ panickingCalls: {};
30
+ };
31
+ static readonly storageSlots: StorageSlot[];
32
+ interface: MarginAccountInterface;
33
+ functions: {
34
+ test_function: InvokeFunction<[], boolean>;
35
+ };
36
+ constructor(id: string | Address, accountOrProvider: Account | Provider);
37
+ }
38
+ //# sourceMappingURL=MarginAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarginAccount.d.ts","sourceRoot":"","sources":["../../src/margin-account/MarginAccount.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,cAAc,EACf,MAAM,OAAO,CAAC;AA8Bf,qBAAa,sBAAuB,SAAQ,SAAS;;IAK3C,SAAS,EAAE;QACjB,aAAa,EAAE,gBAAgB,CAAC;KACjC,CAAC;CACH;AAED,qBAAa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;MAAO;IAC1B,MAAM,CAAC,QAAQ,CAAC,YAAY,gBAAgB;IAEpC,SAAS,EAAE,sBAAsB,CAAC;IAClC,SAAS,EAAE;QACjB,aAAa,EAAE,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;KAC5C,CAAC;gBAGA,EAAE,EAAE,MAAM,GAAG,OAAO,EACpB,iBAAiB,EAAE,OAAO,GAAG,QAAQ;CAIxC"}
@@ -0,0 +1,47 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* eslint-disable max-classes-per-file */
3
+ /* eslint-disable @typescript-eslint/no-unused-vars */
4
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
5
+ /*
6
+ Fuels version: 0.103.0
7
+ */
8
+ import { Contract as __Contract, Interface } from "fuels";
9
+ const abi = {
10
+ "programType": "contract",
11
+ "specVersion": "1.2",
12
+ "encodingVersion": "1",
13
+ "concreteTypes": [
14
+ {
15
+ "type": "bool",
16
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
17
+ }
18
+ ],
19
+ "metadataTypes": [],
20
+ "functions": [
21
+ {
22
+ "name": "test_function",
23
+ "inputs": [],
24
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
25
+ "attributes": null
26
+ }
27
+ ],
28
+ "loggedTypes": [],
29
+ "messagesTypes": [],
30
+ "configurables": [],
31
+ "errorCodes": {},
32
+ "panickingCalls": {}
33
+ };
34
+ const storageSlots = [];
35
+ export class MarginAccountInterface extends Interface {
36
+ constructor() {
37
+ super(abi);
38
+ }
39
+ }
40
+ export class MarginAccount extends __Contract {
41
+ static abi = abi;
42
+ static storageSlots = storageSlots;
43
+ constructor(id, accountOrProvider) {
44
+ super(id, abi, accountOrProvider);
45
+ }
46
+ }
47
+ //# sourceMappingURL=MarginAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarginAccount.js","sourceRoot":"","sources":["../../src/margin-account/MarginAccount.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,yCAAyC;AACzC,sDAAsD;AACtD,+DAA+D;AAE/D;;EAEE;AAEF,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU1D,MAAM,GAAG,GAAG;IACV,aAAa,EAAE,UAAU;IACzB,aAAa,EAAE,KAAK;IACpB,iBAAiB,EAAE,GAAG;IACtB,eAAe,EAAE;QACf;YACE,MAAM,EAAE,MAAM;YACd,gBAAgB,EAAE,kEAAkE;SACrF;KACF;IACD,eAAe,EAAE,EAAE;IACnB,WAAW,EAAE;QACX;YACE,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,kEAAkE;YAC5E,YAAY,EAAE,IAAI;SACnB;KACF;IACD,aAAa,EAAE,EAAE;IACjB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;CACrB,CAAC;AAEF,MAAM,YAAY,GAAkB,EAAE,CAAC;AAEvC,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACnD;QACE,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CAKF;AAED,MAAM,OAAO,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAU,GAAG,GAAG,GAAG,CAAC;IAC1B,MAAM,CAAU,YAAY,GAAG,YAAY,CAAC;IAO5C,YACE,EAAoB,EACpB,iBAAqC;QAErC,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAAC;IACpC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ContractFactory as __ContractFactory } from "fuels";
2
+ import type { Provider, Account, DeployContractOptions } from "fuels";
3
+ import { MarginAccount } from "./MarginAccount";
4
+ export declare class MarginAccountFactory extends __ContractFactory<MarginAccount> {
5
+ static readonly bytecode: Uint8Array<ArrayBufferLike>;
6
+ constructor(accountOrProvider: Account | Provider);
7
+ static deploy(wallet: Account, options?: DeployContractOptions): Promise<import("fuels").DeployContractResult<MarginAccount>>;
8
+ }
9
+ //# sourceMappingURL=MarginAccountFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarginAccountFactory.d.ts","sourceRoot":"","sources":["../../src/margin-account/MarginAccountFactory.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,IAAI,iBAAiB,EAAsB,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,qBAAa,oBAAqB,SAAQ,iBAAiB,CAAC,aAAa,CAAC;IAExE,MAAM,CAAC,QAAQ,CAAC,QAAQ,8BAAY;gBAExB,iBAAiB,EAAE,OAAO,GAAG,QAAQ;IASjD,MAAM,CAAC,MAAM,CACX,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,qBAA0B;CAKtC"}
@@ -0,0 +1,21 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* eslint-disable max-classes-per-file */
3
+ /* eslint-disable @typescript-eslint/no-unused-vars */
4
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
5
+ /*
6
+ Fuels version: 0.103.0
7
+ */
8
+ import { ContractFactory as __ContractFactory, decompressBytecode } from "fuels";
9
+ import { MarginAccount } from "./MarginAccount";
10
+ const bytecode = decompressBytecode("H4sIAAAAAAAAAy1QO07DQBR8RinCJ/BQIqREQrgBQeeKelchMsGgbEljvBICiSZEwdDQ5AjhBjnC8w1cpswRcoBYSklnZo23mdmZKWZebxtQStSg6nnzGhdxmXtcls6j3sbQD3lmqohYH+UmFJUU1MS/Bdw1fZlbzQx9ZQfEsbJ34AbeHrwcXhPaENojtH1oy0rrSzfWRHEo3ektNXnQmSUFd5Fbmkh+7RCZUM7AV2aUkX3w2UTAwqEsbCQVmpGI8+JITqb31GrrRv6lyHO73N9on650pw1tB52/r7EDHbZPiivs3TBd4AKXpw2Fv002k4Nkwy30YLcH2rraBzRhVmsZ9mZBzQNk/To7cVlsO4S2Rl8fO1zWB8cVKq7QO/jnMrMDdA/l+FwzpS8fafL6OX5O397HuP0fREISRKABAAA=");
11
+ export class MarginAccountFactory extends __ContractFactory {
12
+ static bytecode = bytecode;
13
+ constructor(accountOrProvider) {
14
+ super(bytecode, MarginAccount.abi, accountOrProvider, MarginAccount.storageSlots);
15
+ }
16
+ static deploy(wallet, options = {}) {
17
+ const factory = new MarginAccountFactory(wallet);
18
+ return factory.deploy(options);
19
+ }
20
+ }
21
+ //# sourceMappingURL=MarginAccountFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarginAccountFactory.js","sourceRoot":"","sources":["../../src/margin-account/MarginAccountFactory.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,yCAAyC;AACzC,sDAAsD;AACtD,+DAA+D;AAE/D;;EAEE;AAEF,OAAO,EAAE,eAAe,IAAI,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,8aAA8a,CAAC,CAAC;AAEpd,MAAM,OAAO,oBAAqB,SAAQ,iBAAgC;IAExE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC;IAEpC,YAAY,iBAAqC;QAC/C,KAAK,CACH,QAAQ,EACR,aAAa,CAAC,GAAG,EACjB,iBAAiB,EACjB,aAAa,CAAC,YAAY,CAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,MAAM,CACX,MAAe,EACf,UAAiC,EAAE;QAEnC,MAAM,OAAO,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { MarginAccount } from './MarginAccount';
2
+ export { MarginAccountFactory } from './MarginAccountFactory';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/margin-account/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* eslint-disable max-classes-per-file */
3
+ /* eslint-disable @typescript-eslint/no-unused-vars */
4
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
5
+ /*
6
+ Fuels version: 0.103.0
7
+ */
8
+ export { MarginAccount } from './MarginAccount';
9
+ export { MarginAccountFactory } from './MarginAccountFactory';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/margin-account/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,yCAAyC;AACzC,sDAAsD;AACtD,+DAA+D;AAE/D;;EAEE;AAEF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,161 @@
1
+ import { Contract as __Contract, Interface } from "fuels";
2
+ import type { Provider, Account, StorageSlot, Address, FunctionFragment, InvokeFunction } from 'fuels';
3
+ import type { Option, Enum } from "./common";
4
+ export declare enum AccessErrorInput {
5
+ NotOwner = "NotOwner"
6
+ }
7
+ export declare enum AccessErrorOutput {
8
+ NotOwner = "NotOwner"
9
+ }
10
+ export type IdentityInput = Enum<{
11
+ Address: AddressInput;
12
+ ContractId: ContractIdInput;
13
+ }>;
14
+ export type IdentityOutput = Enum<{
15
+ Address: AddressOutput;
16
+ ContractId: ContractIdOutput;
17
+ }>;
18
+ export declare enum InitializationErrorInput {
19
+ CannotReinitialized = "CannotReinitialized"
20
+ }
21
+ export declare enum InitializationErrorOutput {
22
+ CannotReinitialized = "CannotReinitialized"
23
+ }
24
+ export declare enum PauseErrorInput {
25
+ Paused = "Paused",
26
+ NotPaused = "NotPaused"
27
+ }
28
+ export declare enum PauseErrorOutput {
29
+ Paused = "Paused",
30
+ NotPaused = "NotPaused"
31
+ }
32
+ export type StateInput = Enum<{
33
+ Uninitialized: undefined;
34
+ Initialized: IdentityInput;
35
+ Revoked: undefined;
36
+ }>;
37
+ export type StateOutput = Enum<{
38
+ Uninitialized: void;
39
+ Initialized: IdentityOutput;
40
+ Revoked: void;
41
+ }>;
42
+ export type AddressInput = {
43
+ bits: string;
44
+ };
45
+ export type AddressOutput = AddressInput;
46
+ export type ContractIdInput = {
47
+ bits: string;
48
+ };
49
+ export type ContractIdOutput = ContractIdInput;
50
+ export type OwnershipSetInput = {
51
+ new_owner: IdentityInput;
52
+ };
53
+ export type OwnershipSetOutput = {
54
+ new_owner: IdentityOutput;
55
+ };
56
+ export type OwnershipTransferredInput = {
57
+ new_owner: IdentityInput;
58
+ previous_owner: IdentityInput;
59
+ };
60
+ export type OwnershipTransferredOutput = {
61
+ new_owner: IdentityOutput;
62
+ previous_owner: IdentityOutput;
63
+ };
64
+ export declare class MarginAccountOracleInterface extends Interface {
65
+ constructor();
66
+ functions: {
67
+ get_margin_account_impl: FunctionFragment;
68
+ initialize: FunctionFragment;
69
+ set_margin_account_impl: FunctionFragment;
70
+ transfer_ownership: FunctionFragment;
71
+ owner: FunctionFragment;
72
+ is_paused: FunctionFragment;
73
+ pause: FunctionFragment;
74
+ unpause: FunctionFragment;
75
+ };
76
+ }
77
+ export declare class MarginAccountOracle extends __Contract {
78
+ static readonly abi: {
79
+ programType: string;
80
+ specVersion: string;
81
+ encodingVersion: string;
82
+ concreteTypes: ({
83
+ type: string;
84
+ concreteTypeId: string;
85
+ metadataTypeId?: undefined;
86
+ typeArguments?: undefined;
87
+ } | {
88
+ type: string;
89
+ concreteTypeId: string;
90
+ metadataTypeId: number;
91
+ typeArguments?: undefined;
92
+ } | {
93
+ type: string;
94
+ concreteTypeId: string;
95
+ metadataTypeId: number;
96
+ typeArguments: string[];
97
+ })[];
98
+ metadataTypes: ({
99
+ type: string;
100
+ metadataTypeId: number;
101
+ components?: undefined;
102
+ typeParameters?: undefined;
103
+ } | {
104
+ type: string;
105
+ metadataTypeId: number;
106
+ components: ({
107
+ name: string;
108
+ typeId: string;
109
+ } | {
110
+ name: string;
111
+ typeId: number;
112
+ })[];
113
+ typeParameters?: undefined;
114
+ } | {
115
+ type: string;
116
+ metadataTypeId: number;
117
+ components: ({
118
+ name: string;
119
+ typeId: string;
120
+ } | {
121
+ name: string;
122
+ typeId: number;
123
+ })[];
124
+ typeParameters: number[];
125
+ })[];
126
+ functions: {
127
+ name: string;
128
+ inputs: {
129
+ name: string;
130
+ concreteTypeId: string;
131
+ }[];
132
+ output: string;
133
+ attributes: {
134
+ name: string;
135
+ arguments: string[];
136
+ }[];
137
+ }[];
138
+ loggedTypes: {
139
+ logId: string;
140
+ concreteTypeId: string;
141
+ }[];
142
+ messagesTypes: never[];
143
+ configurables: never[];
144
+ errorCodes: {};
145
+ panickingCalls: {};
146
+ };
147
+ static readonly storageSlots: StorageSlot[];
148
+ interface: MarginAccountOracleInterface;
149
+ functions: {
150
+ get_margin_account_impl: InvokeFunction<[], Option<ContractIdOutput>>;
151
+ initialize: InvokeFunction<[owner: IdentityInput, margin_account_impl: ContractIdInput], void>;
152
+ set_margin_account_impl: InvokeFunction<[contract_id: ContractIdInput], boolean>;
153
+ transfer_ownership: InvokeFunction<[new_owner: IdentityInput], void>;
154
+ owner: InvokeFunction<[], StateOutput>;
155
+ is_paused: InvokeFunction<[], boolean>;
156
+ pause: InvokeFunction<[], void>;
157
+ unpause: InvokeFunction<[], void>;
158
+ };
159
+ constructor(id: string | Address, accountOrProvider: Account | Provider);
160
+ }
161
+ //# sourceMappingURL=MarginAccountOracle.d.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