@apibara/starknet 0.2.0 → 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/dist/filter.d.ts +40 -1
- package/dist/filter.js +67 -3
- package/dist/filter.js.map +1 -1
- package/dist/filter.test.js +49 -1
- package/dist/filter.test.js.map +1 -1
- package/dist/proto/filter.proto +22 -3
- package/dist/proto/generated.d.ts +472 -0
- package/dist/proto/generated.js +4527 -3287
- package/dist/proto/generated.js.map +1 -1
- package/dist/proto/starknet.proto +33 -3
- package/package.json +1 -1
- package/src/filter.test.ts +55 -1
- package/src/filter.ts +86 -2
- package/src/proto/filter.proto +22 -3
- package/src/proto/generated.d.ts +472 -0
- package/src/proto/generated.js +4609 -3297
- package/src/proto/starknet.proto +33 -3
|
@@ -132,6 +132,9 @@ export namespace apibara {
|
|
|
132
132
|
|
|
133
133
|
/** Properties of a HeaderFilter. */
|
|
134
134
|
interface IHeaderFilter {
|
|
135
|
+
|
|
136
|
+
/** HeaderFilter weak */
|
|
137
|
+
weak?: (boolean|null);
|
|
135
138
|
}
|
|
136
139
|
|
|
137
140
|
/** Represents a HeaderFilter. */
|
|
@@ -143,6 +146,9 @@ export namespace apibara {
|
|
|
143
146
|
*/
|
|
144
147
|
constructor(properties?: apibara.starknet.v1alpha2.IHeaderFilter);
|
|
145
148
|
|
|
149
|
+
/** HeaderFilter weak. */
|
|
150
|
+
public weak: boolean;
|
|
151
|
+
|
|
146
152
|
/**
|
|
147
153
|
* Creates a new HeaderFilter instance using the specified properties.
|
|
148
154
|
* @param [properties] Properties to set
|
|
@@ -1219,6 +1225,12 @@ export namespace apibara {
|
|
|
1219
1225
|
|
|
1220
1226
|
/** StateUpdateFilter nonces */
|
|
1221
1227
|
nonces?: (apibara.starknet.v1alpha2.INonceUpdateFilter[]|null);
|
|
1228
|
+
|
|
1229
|
+
/** StateUpdateFilter declaredClasses */
|
|
1230
|
+
declaredClasses?: (apibara.starknet.v1alpha2.IDeclaredClassFilter[]|null);
|
|
1231
|
+
|
|
1232
|
+
/** StateUpdateFilter replacedClasses */
|
|
1233
|
+
replacedClasses?: (apibara.starknet.v1alpha2.IReplacedClassFilter[]|null);
|
|
1222
1234
|
}
|
|
1223
1235
|
|
|
1224
1236
|
/** Represents a StateUpdateFilter. */
|
|
@@ -1242,6 +1254,12 @@ export namespace apibara {
|
|
|
1242
1254
|
/** StateUpdateFilter nonces. */
|
|
1243
1255
|
public nonces: apibara.starknet.v1alpha2.INonceUpdateFilter[];
|
|
1244
1256
|
|
|
1257
|
+
/** StateUpdateFilter declaredClasses. */
|
|
1258
|
+
public declaredClasses: apibara.starknet.v1alpha2.IDeclaredClassFilter[];
|
|
1259
|
+
|
|
1260
|
+
/** StateUpdateFilter replacedClasses. */
|
|
1261
|
+
public replacedClasses: apibara.starknet.v1alpha2.IReplacedClassFilter[];
|
|
1262
|
+
|
|
1245
1263
|
/**
|
|
1246
1264
|
* Creates a new StateUpdateFilter instance using the specified properties.
|
|
1247
1265
|
* @param [properties] Properties to set
|
|
@@ -1514,6 +1532,212 @@ export namespace apibara {
|
|
|
1514
1532
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1515
1533
|
}
|
|
1516
1534
|
|
|
1535
|
+
/** Properties of a DeclaredClassFilter. */
|
|
1536
|
+
interface IDeclaredClassFilter {
|
|
1537
|
+
|
|
1538
|
+
/** DeclaredClassFilter classHash */
|
|
1539
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1540
|
+
|
|
1541
|
+
/** DeclaredClassFilter compiledClassHash */
|
|
1542
|
+
compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/** Represents a DeclaredClassFilter. */
|
|
1546
|
+
class DeclaredClassFilter implements IDeclaredClassFilter {
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Constructs a new DeclaredClassFilter.
|
|
1550
|
+
* @param [properties] Properties to set
|
|
1551
|
+
*/
|
|
1552
|
+
constructor(properties?: apibara.starknet.v1alpha2.IDeclaredClassFilter);
|
|
1553
|
+
|
|
1554
|
+
/** DeclaredClassFilter classHash. */
|
|
1555
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1556
|
+
|
|
1557
|
+
/** DeclaredClassFilter compiledClassHash. */
|
|
1558
|
+
public compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Creates a new DeclaredClassFilter instance using the specified properties.
|
|
1562
|
+
* @param [properties] Properties to set
|
|
1563
|
+
* @returns DeclaredClassFilter instance
|
|
1564
|
+
*/
|
|
1565
|
+
public static create(properties?: apibara.starknet.v1alpha2.IDeclaredClassFilter): apibara.starknet.v1alpha2.DeclaredClassFilter;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Encodes the specified DeclaredClassFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredClassFilter.verify|verify} messages.
|
|
1569
|
+
* @param message DeclaredClassFilter message or plain object to encode
|
|
1570
|
+
* @param [writer] Writer to encode to
|
|
1571
|
+
* @returns Writer
|
|
1572
|
+
*/
|
|
1573
|
+
public static encode(message: apibara.starknet.v1alpha2.IDeclaredClassFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Encodes the specified DeclaredClassFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredClassFilter.verify|verify} messages.
|
|
1577
|
+
* @param message DeclaredClassFilter message or plain object to encode
|
|
1578
|
+
* @param [writer] Writer to encode to
|
|
1579
|
+
* @returns Writer
|
|
1580
|
+
*/
|
|
1581
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclaredClassFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Decodes a DeclaredClassFilter message from the specified reader or buffer.
|
|
1585
|
+
* @param reader Reader or buffer to decode from
|
|
1586
|
+
* @param [length] Message length if known beforehand
|
|
1587
|
+
* @returns DeclaredClassFilter
|
|
1588
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1589
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1590
|
+
*/
|
|
1591
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclaredClassFilter;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Decodes a DeclaredClassFilter message from the specified reader or buffer, length delimited.
|
|
1595
|
+
* @param reader Reader or buffer to decode from
|
|
1596
|
+
* @returns DeclaredClassFilter
|
|
1597
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1598
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1599
|
+
*/
|
|
1600
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclaredClassFilter;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Verifies a DeclaredClassFilter message.
|
|
1604
|
+
* @param message Plain object to verify
|
|
1605
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1606
|
+
*/
|
|
1607
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Creates a DeclaredClassFilter message from a plain object. Also converts values to their respective internal types.
|
|
1611
|
+
* @param object Plain object
|
|
1612
|
+
* @returns DeclaredClassFilter
|
|
1613
|
+
*/
|
|
1614
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclaredClassFilter;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Creates a plain object from a DeclaredClassFilter message. Also converts values to other types if specified.
|
|
1618
|
+
* @param message DeclaredClassFilter
|
|
1619
|
+
* @param [options] Conversion options
|
|
1620
|
+
* @returns Plain object
|
|
1621
|
+
*/
|
|
1622
|
+
public static toObject(message: apibara.starknet.v1alpha2.DeclaredClassFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* Converts this DeclaredClassFilter to JSON.
|
|
1626
|
+
* @returns JSON object
|
|
1627
|
+
*/
|
|
1628
|
+
public toJSON(): { [k: string]: any };
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* Gets the default type url for DeclaredClassFilter
|
|
1632
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1633
|
+
* @returns The default type url
|
|
1634
|
+
*/
|
|
1635
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/** Properties of a ReplacedClassFilter. */
|
|
1639
|
+
interface IReplacedClassFilter {
|
|
1640
|
+
|
|
1641
|
+
/** ReplacedClassFilter contractAddress */
|
|
1642
|
+
contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1643
|
+
|
|
1644
|
+
/** ReplacedClassFilter classHash */
|
|
1645
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
/** Represents a ReplacedClassFilter. */
|
|
1649
|
+
class ReplacedClassFilter implements IReplacedClassFilter {
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Constructs a new ReplacedClassFilter.
|
|
1653
|
+
* @param [properties] Properties to set
|
|
1654
|
+
*/
|
|
1655
|
+
constructor(properties?: apibara.starknet.v1alpha2.IReplacedClassFilter);
|
|
1656
|
+
|
|
1657
|
+
/** ReplacedClassFilter contractAddress. */
|
|
1658
|
+
public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1659
|
+
|
|
1660
|
+
/** ReplacedClassFilter classHash. */
|
|
1661
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Creates a new ReplacedClassFilter instance using the specified properties.
|
|
1665
|
+
* @param [properties] Properties to set
|
|
1666
|
+
* @returns ReplacedClassFilter instance
|
|
1667
|
+
*/
|
|
1668
|
+
public static create(properties?: apibara.starknet.v1alpha2.IReplacedClassFilter): apibara.starknet.v1alpha2.ReplacedClassFilter;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Encodes the specified ReplacedClassFilter message. Does not implicitly {@link apibara.starknet.v1alpha2.ReplacedClassFilter.verify|verify} messages.
|
|
1672
|
+
* @param message ReplacedClassFilter message or plain object to encode
|
|
1673
|
+
* @param [writer] Writer to encode to
|
|
1674
|
+
* @returns Writer
|
|
1675
|
+
*/
|
|
1676
|
+
public static encode(message: apibara.starknet.v1alpha2.IReplacedClassFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Encodes the specified ReplacedClassFilter message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ReplacedClassFilter.verify|verify} messages.
|
|
1680
|
+
* @param message ReplacedClassFilter message or plain object to encode
|
|
1681
|
+
* @param [writer] Writer to encode to
|
|
1682
|
+
* @returns Writer
|
|
1683
|
+
*/
|
|
1684
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IReplacedClassFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Decodes a ReplacedClassFilter message from the specified reader or buffer.
|
|
1688
|
+
* @param reader Reader or buffer to decode from
|
|
1689
|
+
* @param [length] Message length if known beforehand
|
|
1690
|
+
* @returns ReplacedClassFilter
|
|
1691
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1692
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1693
|
+
*/
|
|
1694
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ReplacedClassFilter;
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Decodes a ReplacedClassFilter message from the specified reader or buffer, length delimited.
|
|
1698
|
+
* @param reader Reader or buffer to decode from
|
|
1699
|
+
* @returns ReplacedClassFilter
|
|
1700
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1701
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1702
|
+
*/
|
|
1703
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ReplacedClassFilter;
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* Verifies a ReplacedClassFilter message.
|
|
1707
|
+
* @param message Plain object to verify
|
|
1708
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1709
|
+
*/
|
|
1710
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Creates a ReplacedClassFilter message from a plain object. Also converts values to their respective internal types.
|
|
1714
|
+
* @param object Plain object
|
|
1715
|
+
* @returns ReplacedClassFilter
|
|
1716
|
+
*/
|
|
1717
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ReplacedClassFilter;
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Creates a plain object from a ReplacedClassFilter message. Also converts values to other types if specified.
|
|
1721
|
+
* @param message ReplacedClassFilter
|
|
1722
|
+
* @param [options] Conversion options
|
|
1723
|
+
* @returns Plain object
|
|
1724
|
+
*/
|
|
1725
|
+
public static toObject(message: apibara.starknet.v1alpha2.ReplacedClassFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Converts this ReplacedClassFilter to JSON.
|
|
1729
|
+
* @returns JSON object
|
|
1730
|
+
*/
|
|
1731
|
+
public toJSON(): { [k: string]: any };
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Gets the default type url for ReplacedClassFilter
|
|
1735
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1736
|
+
* @returns The default type url
|
|
1737
|
+
*/
|
|
1738
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1517
1741
|
/** Properties of a DeployedContractFilter. */
|
|
1518
1742
|
interface IDeployedContractFilter {
|
|
1519
1743
|
|
|
@@ -2787,6 +3011,9 @@ export namespace apibara {
|
|
|
2787
3011
|
|
|
2788
3012
|
/** DeclareTransaction senderAddress */
|
|
2789
3013
|
senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3014
|
+
|
|
3015
|
+
/** DeclareTransaction compiledClassHash */
|
|
3016
|
+
compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
2790
3017
|
}
|
|
2791
3018
|
|
|
2792
3019
|
/** Represents a DeclareTransaction. */
|
|
@@ -2804,6 +3031,9 @@ export namespace apibara {
|
|
|
2804
3031
|
/** DeclareTransaction senderAddress. */
|
|
2805
3032
|
public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
2806
3033
|
|
|
3034
|
+
/** DeclareTransaction compiledClassHash. */
|
|
3035
|
+
public compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3036
|
+
|
|
2807
3037
|
/**
|
|
2808
3038
|
* Creates a new DeclareTransaction instance using the specified properties.
|
|
2809
3039
|
* @param [properties] Properties to set
|
|
@@ -3117,6 +3347,9 @@ export namespace apibara {
|
|
|
3117
3347
|
|
|
3118
3348
|
/** TransactionReceipt events */
|
|
3119
3349
|
events?: (apibara.starknet.v1alpha2.IEvent[]|null);
|
|
3350
|
+
|
|
3351
|
+
/** TransactionReceipt contractAddress */
|
|
3352
|
+
contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3120
3353
|
}
|
|
3121
3354
|
|
|
3122
3355
|
/** Represents a TransactionReceipt. */
|
|
@@ -3143,6 +3376,9 @@ export namespace apibara {
|
|
|
3143
3376
|
/** TransactionReceipt events. */
|
|
3144
3377
|
public events: apibara.starknet.v1alpha2.IEvent[];
|
|
3145
3378
|
|
|
3379
|
+
/** TransactionReceipt contractAddress. */
|
|
3380
|
+
public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3381
|
+
|
|
3146
3382
|
/**
|
|
3147
3383
|
* Creates a new TransactionReceipt instance using the specified properties.
|
|
3148
3384
|
* @param [properties] Properties to set
|
|
@@ -3338,6 +3574,12 @@ export namespace apibara {
|
|
|
3338
3574
|
|
|
3339
3575
|
/** L2ToL1Message payload */
|
|
3340
3576
|
payload?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3577
|
+
|
|
3578
|
+
/** L2ToL1Message index */
|
|
3579
|
+
index?: (number|Long|null);
|
|
3580
|
+
|
|
3581
|
+
/** L2ToL1Message fromAddress */
|
|
3582
|
+
fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3341
3583
|
}
|
|
3342
3584
|
|
|
3343
3585
|
/** Represents a L2ToL1Message. */
|
|
@@ -3355,6 +3597,12 @@ export namespace apibara {
|
|
|
3355
3597
|
/** L2ToL1Message payload. */
|
|
3356
3598
|
public payload: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3357
3599
|
|
|
3600
|
+
/** L2ToL1Message index. */
|
|
3601
|
+
public index: (number|Long);
|
|
3602
|
+
|
|
3603
|
+
/** L2ToL1Message fromAddress. */
|
|
3604
|
+
public fromAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3605
|
+
|
|
3358
3606
|
/**
|
|
3359
3607
|
* Creates a new L2ToL1Message instance using the specified properties.
|
|
3360
3608
|
* @param [properties] Properties to set
|
|
@@ -3553,6 +3801,9 @@ export namespace apibara {
|
|
|
3553
3801
|
|
|
3554
3802
|
/** Event data */
|
|
3555
3803
|
data?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3804
|
+
|
|
3805
|
+
/** Event index */
|
|
3806
|
+
index?: (number|Long|null);
|
|
3556
3807
|
}
|
|
3557
3808
|
|
|
3558
3809
|
/** Represents an Event. */
|
|
@@ -3573,6 +3824,9 @@ export namespace apibara {
|
|
|
3573
3824
|
/** Event data. */
|
|
3574
3825
|
public data: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3575
3826
|
|
|
3827
|
+
/** Event index. */
|
|
3828
|
+
public index: (number|Long);
|
|
3829
|
+
|
|
3576
3830
|
/**
|
|
3577
3831
|
* Creates a new Event instance using the specified properties.
|
|
3578
3832
|
* @param [properties] Properties to set
|
|
@@ -3774,6 +4028,12 @@ export namespace apibara {
|
|
|
3774
4028
|
|
|
3775
4029
|
/** StateDiff nonces */
|
|
3776
4030
|
nonces?: (apibara.starknet.v1alpha2.INonceUpdate[]|null);
|
|
4031
|
+
|
|
4032
|
+
/** StateDiff declaredClasses */
|
|
4033
|
+
declaredClasses?: (apibara.starknet.v1alpha2.IDeclaredClass[]|null);
|
|
4034
|
+
|
|
4035
|
+
/** StateDiff replacedClasses */
|
|
4036
|
+
replacedClasses?: (apibara.starknet.v1alpha2.IReplacedClass[]|null);
|
|
3777
4037
|
}
|
|
3778
4038
|
|
|
3779
4039
|
/** Represents a StateDiff. */
|
|
@@ -3797,6 +4057,12 @@ export namespace apibara {
|
|
|
3797
4057
|
/** StateDiff nonces. */
|
|
3798
4058
|
public nonces: apibara.starknet.v1alpha2.INonceUpdate[];
|
|
3799
4059
|
|
|
4060
|
+
/** StateDiff declaredClasses. */
|
|
4061
|
+
public declaredClasses: apibara.starknet.v1alpha2.IDeclaredClass[];
|
|
4062
|
+
|
|
4063
|
+
/** StateDiff replacedClasses. */
|
|
4064
|
+
public replacedClasses: apibara.starknet.v1alpha2.IReplacedClass[];
|
|
4065
|
+
|
|
3800
4066
|
/**
|
|
3801
4067
|
* Creates a new StateDiff instance using the specified properties.
|
|
3802
4068
|
* @param [properties] Properties to set
|
|
@@ -4178,6 +4444,212 @@ export namespace apibara {
|
|
|
4178
4444
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4179
4445
|
}
|
|
4180
4446
|
|
|
4447
|
+
/** Properties of a DeclaredClass. */
|
|
4448
|
+
interface IDeclaredClass {
|
|
4449
|
+
|
|
4450
|
+
/** DeclaredClass classHash */
|
|
4451
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4452
|
+
|
|
4453
|
+
/** DeclaredClass compiledClassHash */
|
|
4454
|
+
compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4457
|
+
/** Represents a DeclaredClass. */
|
|
4458
|
+
class DeclaredClass implements IDeclaredClass {
|
|
4459
|
+
|
|
4460
|
+
/**
|
|
4461
|
+
* Constructs a new DeclaredClass.
|
|
4462
|
+
* @param [properties] Properties to set
|
|
4463
|
+
*/
|
|
4464
|
+
constructor(properties?: apibara.starknet.v1alpha2.IDeclaredClass);
|
|
4465
|
+
|
|
4466
|
+
/** DeclaredClass classHash. */
|
|
4467
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4468
|
+
|
|
4469
|
+
/** DeclaredClass compiledClassHash. */
|
|
4470
|
+
public compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4471
|
+
|
|
4472
|
+
/**
|
|
4473
|
+
* Creates a new DeclaredClass instance using the specified properties.
|
|
4474
|
+
* @param [properties] Properties to set
|
|
4475
|
+
* @returns DeclaredClass instance
|
|
4476
|
+
*/
|
|
4477
|
+
public static create(properties?: apibara.starknet.v1alpha2.IDeclaredClass): apibara.starknet.v1alpha2.DeclaredClass;
|
|
4478
|
+
|
|
4479
|
+
/**
|
|
4480
|
+
* Encodes the specified DeclaredClass message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredClass.verify|verify} messages.
|
|
4481
|
+
* @param message DeclaredClass message or plain object to encode
|
|
4482
|
+
* @param [writer] Writer to encode to
|
|
4483
|
+
* @returns Writer
|
|
4484
|
+
*/
|
|
4485
|
+
public static encode(message: apibara.starknet.v1alpha2.IDeclaredClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* Encodes the specified DeclaredClass message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclaredClass.verify|verify} messages.
|
|
4489
|
+
* @param message DeclaredClass message or plain object to encode
|
|
4490
|
+
* @param [writer] Writer to encode to
|
|
4491
|
+
* @returns Writer
|
|
4492
|
+
*/
|
|
4493
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclaredClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4494
|
+
|
|
4495
|
+
/**
|
|
4496
|
+
* Decodes a DeclaredClass message from the specified reader or buffer.
|
|
4497
|
+
* @param reader Reader or buffer to decode from
|
|
4498
|
+
* @param [length] Message length if known beforehand
|
|
4499
|
+
* @returns DeclaredClass
|
|
4500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4502
|
+
*/
|
|
4503
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclaredClass;
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
* Decodes a DeclaredClass message from the specified reader or buffer, length delimited.
|
|
4507
|
+
* @param reader Reader or buffer to decode from
|
|
4508
|
+
* @returns DeclaredClass
|
|
4509
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4510
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4511
|
+
*/
|
|
4512
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclaredClass;
|
|
4513
|
+
|
|
4514
|
+
/**
|
|
4515
|
+
* Verifies a DeclaredClass message.
|
|
4516
|
+
* @param message Plain object to verify
|
|
4517
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4518
|
+
*/
|
|
4519
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4520
|
+
|
|
4521
|
+
/**
|
|
4522
|
+
* Creates a DeclaredClass message from a plain object. Also converts values to their respective internal types.
|
|
4523
|
+
* @param object Plain object
|
|
4524
|
+
* @returns DeclaredClass
|
|
4525
|
+
*/
|
|
4526
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclaredClass;
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* Creates a plain object from a DeclaredClass message. Also converts values to other types if specified.
|
|
4530
|
+
* @param message DeclaredClass
|
|
4531
|
+
* @param [options] Conversion options
|
|
4532
|
+
* @returns Plain object
|
|
4533
|
+
*/
|
|
4534
|
+
public static toObject(message: apibara.starknet.v1alpha2.DeclaredClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* Converts this DeclaredClass to JSON.
|
|
4538
|
+
* @returns JSON object
|
|
4539
|
+
*/
|
|
4540
|
+
public toJSON(): { [k: string]: any };
|
|
4541
|
+
|
|
4542
|
+
/**
|
|
4543
|
+
* Gets the default type url for DeclaredClass
|
|
4544
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4545
|
+
* @returns The default type url
|
|
4546
|
+
*/
|
|
4547
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
/** Properties of a ReplacedClass. */
|
|
4551
|
+
interface IReplacedClass {
|
|
4552
|
+
|
|
4553
|
+
/** ReplacedClass contractAddress */
|
|
4554
|
+
contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4555
|
+
|
|
4556
|
+
/** ReplacedClass classHash */
|
|
4557
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4560
|
+
/** Represents a ReplacedClass. */
|
|
4561
|
+
class ReplacedClass implements IReplacedClass {
|
|
4562
|
+
|
|
4563
|
+
/**
|
|
4564
|
+
* Constructs a new ReplacedClass.
|
|
4565
|
+
* @param [properties] Properties to set
|
|
4566
|
+
*/
|
|
4567
|
+
constructor(properties?: apibara.starknet.v1alpha2.IReplacedClass);
|
|
4568
|
+
|
|
4569
|
+
/** ReplacedClass contractAddress. */
|
|
4570
|
+
public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4571
|
+
|
|
4572
|
+
/** ReplacedClass classHash. */
|
|
4573
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
4574
|
+
|
|
4575
|
+
/**
|
|
4576
|
+
* Creates a new ReplacedClass instance using the specified properties.
|
|
4577
|
+
* @param [properties] Properties to set
|
|
4578
|
+
* @returns ReplacedClass instance
|
|
4579
|
+
*/
|
|
4580
|
+
public static create(properties?: apibara.starknet.v1alpha2.IReplacedClass): apibara.starknet.v1alpha2.ReplacedClass;
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* Encodes the specified ReplacedClass message. Does not implicitly {@link apibara.starknet.v1alpha2.ReplacedClass.verify|verify} messages.
|
|
4584
|
+
* @param message ReplacedClass message or plain object to encode
|
|
4585
|
+
* @param [writer] Writer to encode to
|
|
4586
|
+
* @returns Writer
|
|
4587
|
+
*/
|
|
4588
|
+
public static encode(message: apibara.starknet.v1alpha2.IReplacedClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4589
|
+
|
|
4590
|
+
/**
|
|
4591
|
+
* Encodes the specified ReplacedClass message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ReplacedClass.verify|verify} messages.
|
|
4592
|
+
* @param message ReplacedClass message or plain object to encode
|
|
4593
|
+
* @param [writer] Writer to encode to
|
|
4594
|
+
* @returns Writer
|
|
4595
|
+
*/
|
|
4596
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IReplacedClass, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Decodes a ReplacedClass message from the specified reader or buffer.
|
|
4600
|
+
* @param reader Reader or buffer to decode from
|
|
4601
|
+
* @param [length] Message length if known beforehand
|
|
4602
|
+
* @returns ReplacedClass
|
|
4603
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4604
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4605
|
+
*/
|
|
4606
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ReplacedClass;
|
|
4607
|
+
|
|
4608
|
+
/**
|
|
4609
|
+
* Decodes a ReplacedClass message from the specified reader or buffer, length delimited.
|
|
4610
|
+
* @param reader Reader or buffer to decode from
|
|
4611
|
+
* @returns ReplacedClass
|
|
4612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4614
|
+
*/
|
|
4615
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ReplacedClass;
|
|
4616
|
+
|
|
4617
|
+
/**
|
|
4618
|
+
* Verifies a ReplacedClass message.
|
|
4619
|
+
* @param message Plain object to verify
|
|
4620
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4621
|
+
*/
|
|
4622
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4623
|
+
|
|
4624
|
+
/**
|
|
4625
|
+
* Creates a ReplacedClass message from a plain object. Also converts values to their respective internal types.
|
|
4626
|
+
* @param object Plain object
|
|
4627
|
+
* @returns ReplacedClass
|
|
4628
|
+
*/
|
|
4629
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ReplacedClass;
|
|
4630
|
+
|
|
4631
|
+
/**
|
|
4632
|
+
* Creates a plain object from a ReplacedClass message. Also converts values to other types if specified.
|
|
4633
|
+
* @param message ReplacedClass
|
|
4634
|
+
* @param [options] Conversion options
|
|
4635
|
+
* @returns Plain object
|
|
4636
|
+
*/
|
|
4637
|
+
public static toObject(message: apibara.starknet.v1alpha2.ReplacedClass, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* Converts this ReplacedClass to JSON.
|
|
4641
|
+
* @returns JSON object
|
|
4642
|
+
*/
|
|
4643
|
+
public toJSON(): { [k: string]: any };
|
|
4644
|
+
|
|
4645
|
+
/**
|
|
4646
|
+
* Gets the default type url for ReplacedClass
|
|
4647
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4648
|
+
* @returns The default type url
|
|
4649
|
+
*/
|
|
4650
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4181
4653
|
/** Properties of a DeployedContract. */
|
|
4182
4654
|
interface IDeployedContract {
|
|
4183
4655
|
|