@glowlabs-org/utils 0.2.15 → 0.2.17

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.
@@ -1,57 +1,153 @@
1
- export declare const FORWARDER_ABI: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- name?: undefined;
10
- anonymous?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- inputs: {
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- }[];
18
- name: string;
19
- type: string;
20
- stateMutability?: undefined;
21
- anonymous?: undefined;
22
- outputs?: undefined;
23
- } | {
24
- anonymous: boolean;
25
- inputs: {
26
- indexed: boolean;
27
- internalType: string;
28
- name: string;
29
- type: string;
30
- }[];
31
- name: string;
32
- type: string;
33
- stateMutability?: undefined;
34
- outputs?: undefined;
35
- } | {
36
- inputs: {
37
- internalType: string;
38
- name: string;
39
- type: string;
40
- }[];
41
- name: string;
42
- outputs: never[];
43
- stateMutability: string;
44
- type: string;
45
- anonymous?: undefined;
46
- } | {
47
- inputs: never[];
48
- name: string;
49
- outputs: {
50
- internalType: string;
51
- name: string;
52
- type: string;
53
- }[];
54
- stateMutability: string;
55
- type: string;
56
- anonymous?: undefined;
57
- })[];
1
+ export declare const FORWARDER_ABI: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "contract USDG";
4
+ readonly name: "_usdg";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "contract IERC20";
8
+ readonly name: "_usdc";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "payable";
12
+ readonly type: "constructor";
13
+ }, {
14
+ readonly inputs: readonly [{
15
+ readonly internalType: "address";
16
+ readonly name: "target";
17
+ readonly type: "address";
18
+ }];
19
+ readonly name: "AddressEmptyCode";
20
+ readonly type: "error";
21
+ }, {
22
+ readonly inputs: readonly [{
23
+ readonly internalType: "address";
24
+ readonly name: "account";
25
+ readonly type: "address";
26
+ }];
27
+ readonly name: "AddressInsufficientBalance";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [];
31
+ readonly name: "FailedInnerCall";
32
+ readonly type: "error";
33
+ }, {
34
+ readonly inputs: readonly [];
35
+ readonly name: "MaxLengthExceeded";
36
+ readonly type: "error";
37
+ }, {
38
+ readonly inputs: readonly [];
39
+ readonly name: "ReentrancyGuardReentrantCall";
40
+ readonly type: "error";
41
+ }, {
42
+ readonly inputs: readonly [{
43
+ readonly internalType: "address";
44
+ readonly name: "token";
45
+ readonly type: "address";
46
+ }];
47
+ readonly name: "SafeERC20FailedOperation";
48
+ readonly type: "error";
49
+ }, {
50
+ readonly inputs: readonly [];
51
+ readonly name: "ZeroAmount";
52
+ readonly type: "error";
53
+ }, {
54
+ readonly anonymous: false;
55
+ readonly inputs: readonly [{
56
+ readonly indexed: true;
57
+ readonly internalType: "address";
58
+ readonly name: "from";
59
+ readonly type: "address";
60
+ }, {
61
+ readonly indexed: true;
62
+ readonly internalType: "address";
63
+ readonly name: "to";
64
+ readonly type: "address";
65
+ }, {
66
+ readonly indexed: true;
67
+ readonly internalType: "address";
68
+ readonly name: "token";
69
+ readonly type: "address";
70
+ }, {
71
+ readonly indexed: false;
72
+ readonly internalType: "uint256";
73
+ readonly name: "amount";
74
+ readonly type: "uint256";
75
+ }, {
76
+ readonly indexed: false;
77
+ readonly internalType: "string";
78
+ readonly name: "message";
79
+ readonly type: "string";
80
+ }];
81
+ readonly name: "Forward";
82
+ readonly type: "event";
83
+ }, {
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "address";
86
+ readonly name: "token";
87
+ readonly type: "address";
88
+ }, {
89
+ readonly internalType: "address";
90
+ readonly name: "to";
91
+ readonly type: "address";
92
+ }, {
93
+ readonly internalType: "uint256";
94
+ readonly name: "amount";
95
+ readonly type: "uint256";
96
+ }, {
97
+ readonly internalType: "string";
98
+ readonly name: "message";
99
+ readonly type: "string";
100
+ }];
101
+ readonly name: "forward";
102
+ readonly outputs: readonly [];
103
+ readonly stateMutability: "nonpayable";
104
+ readonly type: "function";
105
+ }, {
106
+ readonly inputs: readonly [];
107
+ readonly name: "i_USDC";
108
+ readonly outputs: readonly [{
109
+ readonly internalType: "contract IERC20";
110
+ readonly name: "";
111
+ readonly type: "address";
112
+ }];
113
+ readonly stateMutability: "view";
114
+ readonly type: "function";
115
+ }, {
116
+ readonly inputs: readonly [];
117
+ readonly name: "i_USDG";
118
+ readonly outputs: readonly [{
119
+ readonly internalType: "contract USDG";
120
+ readonly name: "";
121
+ readonly type: "address";
122
+ }];
123
+ readonly stateMutability: "view";
124
+ readonly type: "function";
125
+ }, {
126
+ readonly inputs: readonly [];
127
+ readonly name: "nextNonce";
128
+ readonly outputs: readonly [{
129
+ readonly internalType: "uint256";
130
+ readonly name: "";
131
+ readonly type: "uint256";
132
+ }];
133
+ readonly stateMutability: "view";
134
+ readonly type: "function";
135
+ }, {
136
+ readonly inputs: readonly [{
137
+ readonly internalType: "uint256";
138
+ readonly name: "amount";
139
+ readonly type: "uint256";
140
+ }, {
141
+ readonly internalType: "address";
142
+ readonly name: "to";
143
+ readonly type: "address";
144
+ }, {
145
+ readonly internalType: "string";
146
+ readonly name: "message";
147
+ readonly type: "string";
148
+ }];
149
+ readonly name: "swapUSDCAndForwardUSDG";
150
+ readonly outputs: readonly [];
151
+ readonly stateMutability: "nonpayable";
152
+ readonly type: "function";
153
+ }];
@@ -1,8 +1,8 @@
1
1
  import type { MintedEvent, StakedEvent, PendingTransfer, FailedOperation, RegionStake, WalletRegionStake, WalletRegionUnlocked, Region, TransferDetails } from "../types";
2
2
  export declare function ControlRouter(baseUrl: string): {
3
3
  readonly fetchGctlBalance: (wallet: string) => Promise<string>;
4
- readonly fetchGctlPrice: () => Promise<number>;
5
- readonly fetchGlwPrice: () => Promise<number>;
4
+ readonly fetchGctlPrice: () => Promise<string>;
5
+ readonly fetchGlwPrice: () => Promise<string>;
6
6
  readonly fetchMintedEvents: (page?: number, limit?: number) => Promise<MintedEvent[]>;
7
7
  readonly fetchStakeEvents: (page?: number, limit?: number) => Promise<StakedEvent[]>;
8
8
  readonly fetchPendingTransfers: (page?: number, limit?: number) => Promise<PendingTransfer[]>;
@@ -57,10 +57,10 @@ export interface FailedOperation {
57
57
  updatedAt: string;
58
58
  }
59
59
  export interface GctlPrice {
60
- currentPriceUsdc: number;
60
+ currentPriceUsdc: string;
61
61
  }
62
62
  export interface GlwPrice {
63
- currentPriceUsdc: number;
63
+ currentPriceUsdc: string;
64
64
  }
65
65
  export interface StakeRequest {
66
66
  wallet: string;