@revibase/core 0.0.8 → 0.0.9
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -18
- package/dist/index.d.ts +4 -18
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -9,28 +9,24 @@ declare const DOMAIN_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
9
9
|
declare function getDomainConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
10
10
|
type DomainConfig = {
|
|
11
11
|
discriminator: ReadonlyUint8Array;
|
|
12
|
-
numOrigins: number;
|
|
13
12
|
authority: Address;
|
|
14
13
|
rpIdHash: ReadonlyUint8Array;
|
|
15
14
|
bump: number;
|
|
16
15
|
isDisabled: number;
|
|
17
16
|
rpIdLength: number;
|
|
17
|
+
numOrigins: number;
|
|
18
18
|
rpId: ReadonlyUint8Array;
|
|
19
19
|
origins: ReadonlyUint8Array;
|
|
20
|
-
metadataUrlLength: number;
|
|
21
|
-
metadataUrl: ReadonlyUint8Array;
|
|
22
20
|
};
|
|
23
21
|
type DomainConfigArgs = {
|
|
24
|
-
numOrigins: number;
|
|
25
22
|
authority: Address;
|
|
26
23
|
rpIdHash: ReadonlyUint8Array;
|
|
27
24
|
bump: number;
|
|
28
25
|
isDisabled: number;
|
|
29
26
|
rpIdLength: number;
|
|
27
|
+
numOrigins: number;
|
|
30
28
|
rpId: ReadonlyUint8Array;
|
|
31
29
|
origins: ReadonlyUint8Array;
|
|
32
|
-
metadataUrlLength: number;
|
|
33
|
-
metadataUrl: ReadonlyUint8Array;
|
|
34
30
|
};
|
|
35
31
|
declare function getDomainConfigEncoder(): FixedSizeEncoder<DomainConfigArgs>;
|
|
36
32
|
declare function getDomainConfigDecoder(): FixedSizeDecoder<DomainConfig>;
|
|
@@ -1104,14 +1100,12 @@ type CreateDomainConfigInstructionData = {
|
|
|
1104
1100
|
discriminator: ReadonlyUint8Array;
|
|
1105
1101
|
rpId: string;
|
|
1106
1102
|
origins: Array<string>;
|
|
1107
|
-
metadataUrl: string;
|
|
1108
1103
|
authorityCreationArgs: UserCreationArgs$2;
|
|
1109
1104
|
compressedProofArgs: ProofArgs;
|
|
1110
1105
|
};
|
|
1111
1106
|
type CreateDomainConfigInstructionDataArgs = {
|
|
1112
1107
|
rpId: string;
|
|
1113
1108
|
origins: Array<string>;
|
|
1114
|
-
metadataUrl: string;
|
|
1115
1109
|
authorityCreationArgs: UserCreationArgsArgs;
|
|
1116
1110
|
compressedProofArgs: ProofArgsArgs;
|
|
1117
1111
|
};
|
|
@@ -1132,7 +1126,6 @@ type CreateDomainConfigAsyncInput<TAccountDomainConfig extends string = string,
|
|
|
1132
1126
|
whitelistedAddressTrees?: Address<TAccountWhitelistedAddressTrees>;
|
|
1133
1127
|
rpId: CreateDomainConfigInstructionDataArgs["rpId"];
|
|
1134
1128
|
origins: CreateDomainConfigInstructionDataArgs["origins"];
|
|
1135
|
-
metadataUrl: CreateDomainConfigInstructionDataArgs["metadataUrl"];
|
|
1136
1129
|
authorityCreationArgs: CreateDomainConfigInstructionDataArgs["authorityCreationArgs"];
|
|
1137
1130
|
compressedProofArgs: CreateDomainConfigInstructionDataArgs["compressedProofArgs"];
|
|
1138
1131
|
remainingAccounts: CreateDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
@@ -1148,7 +1141,6 @@ type CreateDomainConfigInput<TAccountDomainConfig extends string = string, TAcco
|
|
|
1148
1141
|
whitelistedAddressTrees: Address<TAccountWhitelistedAddressTrees>;
|
|
1149
1142
|
rpId: CreateDomainConfigInstructionDataArgs["rpId"];
|
|
1150
1143
|
origins: CreateDomainConfigInstructionDataArgs["origins"];
|
|
1151
|
-
metadataUrl: CreateDomainConfigInstructionDataArgs["metadataUrl"];
|
|
1152
1144
|
authorityCreationArgs: CreateDomainConfigInstructionDataArgs["authorityCreationArgs"];
|
|
1153
1145
|
compressedProofArgs: CreateDomainConfigInstructionDataArgs["compressedProofArgs"];
|
|
1154
1146
|
remainingAccounts: CreateDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
@@ -1561,12 +1553,10 @@ type EditDomainConfigInstructionData = {
|
|
|
1561
1553
|
discriminator: ReadonlyUint8Array;
|
|
1562
1554
|
newOrigins: Option<Array<string>>;
|
|
1563
1555
|
newAuthorityArgs: Option<NewAuthorityArgs>;
|
|
1564
|
-
newMetadataUrl: Option<string>;
|
|
1565
1556
|
};
|
|
1566
1557
|
type EditDomainConfigInstructionDataArgs = {
|
|
1567
1558
|
newOrigins: OptionOrNullable<Array<string>>;
|
|
1568
1559
|
newAuthorityArgs: OptionOrNullable<NewAuthorityArgsArgs>;
|
|
1569
|
-
newMetadataUrl: OptionOrNullable<string>;
|
|
1570
1560
|
};
|
|
1571
1561
|
declare function getEditDomainConfigInstructionDataEncoder(): Encoder<EditDomainConfigInstructionDataArgs>;
|
|
1572
1562
|
declare function getEditDomainConfigInstructionDataDecoder(): Decoder<EditDomainConfigInstructionData>;
|
|
@@ -1585,7 +1575,6 @@ type EditDomainConfigAsyncInput<TAccountDomainConfig extends string = string, TA
|
|
|
1585
1575
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1586
1576
|
newOrigins: EditDomainConfigInstructionDataArgs["newOrigins"];
|
|
1587
1577
|
newAuthorityArgs: EditDomainConfigInstructionDataArgs["newAuthorityArgs"];
|
|
1588
|
-
newMetadataUrl: EditDomainConfigInstructionDataArgs["newMetadataUrl"];
|
|
1589
1578
|
remainingAccounts: EditDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
1590
1579
|
};
|
|
1591
1580
|
declare function getEditDomainConfigInstructionAsync<TAccountDomainConfig extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountWhitelistedAddressTrees extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MULTI_WALLET_PROGRAM_ADDRESS>(input: EditDomainConfigAsyncInput<TAccountDomainConfig, TAccountAuthority, TAccountNewAuthority, TAccountWhitelistedAddressTrees, TAccountSystemProgram>, config?: {
|
|
@@ -1599,7 +1588,6 @@ type EditDomainConfigInput<TAccountDomainConfig extends string = string, TAccoun
|
|
|
1599
1588
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1600
1589
|
newOrigins: EditDomainConfigInstructionDataArgs["newOrigins"];
|
|
1601
1590
|
newAuthorityArgs: EditDomainConfigInstructionDataArgs["newAuthorityArgs"];
|
|
1602
|
-
newMetadataUrl: EditDomainConfigInstructionDataArgs["newMetadataUrl"];
|
|
1603
1591
|
remainingAccounts: EditDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
1604
1592
|
};
|
|
1605
1593
|
declare function getEditDomainConfigInstruction<TAccountDomainConfig extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountWhitelistedAddressTrees extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MULTI_WALLET_PROGRAM_ADDRESS>(input: EditDomainConfigInput<TAccountDomainConfig, TAccountAuthority, TAccountNewAuthority, TAccountWhitelistedAddressTrees, TAccountSystemProgram>, config?: {
|
|
@@ -3047,8 +3035,7 @@ declare function addWhitelistedAddressTrees({ admin, addressTree, }: {
|
|
|
3047
3035
|
addressTree: Address;
|
|
3048
3036
|
}): Promise<AddWhitelistedAddressTreesInstruction<Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, string, []>>;
|
|
3049
3037
|
|
|
3050
|
-
declare function createDomainConfig({ payer, rpId, origins, authority,
|
|
3051
|
-
metadataUrl: string;
|
|
3038
|
+
declare function createDomainConfig({ payer, rpId, origins, authority, }: {
|
|
3052
3039
|
payer: TransactionSigner;
|
|
3053
3040
|
rpId: string;
|
|
3054
3041
|
origins: string[];
|
|
@@ -3096,12 +3083,11 @@ declare function disableDomainConfig({ admin, rpId, disable, }: {
|
|
|
3096
3083
|
rpId: string;
|
|
3097
3084
|
}): Promise<DisableDomainConfigInstruction<gill.Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, []>>;
|
|
3098
3085
|
|
|
3099
|
-
declare function editDomainConfig({ authority, domainConfig, newAuthority, newOrigins,
|
|
3086
|
+
declare function editDomainConfig({ authority, domainConfig, newAuthority, newOrigins, }: {
|
|
3100
3087
|
domainConfig: Address;
|
|
3101
3088
|
authority: TransactionSigner;
|
|
3102
3089
|
newAuthority?: TransactionSigner;
|
|
3103
3090
|
newOrigins?: string[];
|
|
3104
|
-
newMetadataUrl?: string;
|
|
3105
3091
|
}): Promise<EditDomainConfigInstruction<Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, string, string, string, []>>;
|
|
3106
3092
|
|
|
3107
3093
|
declare function editTransactionManagerUrl({ authority, userAddressTreeIndex, transactionManagerUrl, }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,28 +9,24 @@ declare const DOMAIN_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
|
9
9
|
declare function getDomainConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
10
10
|
type DomainConfig = {
|
|
11
11
|
discriminator: ReadonlyUint8Array;
|
|
12
|
-
numOrigins: number;
|
|
13
12
|
authority: Address;
|
|
14
13
|
rpIdHash: ReadonlyUint8Array;
|
|
15
14
|
bump: number;
|
|
16
15
|
isDisabled: number;
|
|
17
16
|
rpIdLength: number;
|
|
17
|
+
numOrigins: number;
|
|
18
18
|
rpId: ReadonlyUint8Array;
|
|
19
19
|
origins: ReadonlyUint8Array;
|
|
20
|
-
metadataUrlLength: number;
|
|
21
|
-
metadataUrl: ReadonlyUint8Array;
|
|
22
20
|
};
|
|
23
21
|
type DomainConfigArgs = {
|
|
24
|
-
numOrigins: number;
|
|
25
22
|
authority: Address;
|
|
26
23
|
rpIdHash: ReadonlyUint8Array;
|
|
27
24
|
bump: number;
|
|
28
25
|
isDisabled: number;
|
|
29
26
|
rpIdLength: number;
|
|
27
|
+
numOrigins: number;
|
|
30
28
|
rpId: ReadonlyUint8Array;
|
|
31
29
|
origins: ReadonlyUint8Array;
|
|
32
|
-
metadataUrlLength: number;
|
|
33
|
-
metadataUrl: ReadonlyUint8Array;
|
|
34
30
|
};
|
|
35
31
|
declare function getDomainConfigEncoder(): FixedSizeEncoder<DomainConfigArgs>;
|
|
36
32
|
declare function getDomainConfigDecoder(): FixedSizeDecoder<DomainConfig>;
|
|
@@ -1104,14 +1100,12 @@ type CreateDomainConfigInstructionData = {
|
|
|
1104
1100
|
discriminator: ReadonlyUint8Array;
|
|
1105
1101
|
rpId: string;
|
|
1106
1102
|
origins: Array<string>;
|
|
1107
|
-
metadataUrl: string;
|
|
1108
1103
|
authorityCreationArgs: UserCreationArgs$2;
|
|
1109
1104
|
compressedProofArgs: ProofArgs;
|
|
1110
1105
|
};
|
|
1111
1106
|
type CreateDomainConfigInstructionDataArgs = {
|
|
1112
1107
|
rpId: string;
|
|
1113
1108
|
origins: Array<string>;
|
|
1114
|
-
metadataUrl: string;
|
|
1115
1109
|
authorityCreationArgs: UserCreationArgsArgs;
|
|
1116
1110
|
compressedProofArgs: ProofArgsArgs;
|
|
1117
1111
|
};
|
|
@@ -1132,7 +1126,6 @@ type CreateDomainConfigAsyncInput<TAccountDomainConfig extends string = string,
|
|
|
1132
1126
|
whitelistedAddressTrees?: Address<TAccountWhitelistedAddressTrees>;
|
|
1133
1127
|
rpId: CreateDomainConfigInstructionDataArgs["rpId"];
|
|
1134
1128
|
origins: CreateDomainConfigInstructionDataArgs["origins"];
|
|
1135
|
-
metadataUrl: CreateDomainConfigInstructionDataArgs["metadataUrl"];
|
|
1136
1129
|
authorityCreationArgs: CreateDomainConfigInstructionDataArgs["authorityCreationArgs"];
|
|
1137
1130
|
compressedProofArgs: CreateDomainConfigInstructionDataArgs["compressedProofArgs"];
|
|
1138
1131
|
remainingAccounts: CreateDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
@@ -1148,7 +1141,6 @@ type CreateDomainConfigInput<TAccountDomainConfig extends string = string, TAcco
|
|
|
1148
1141
|
whitelistedAddressTrees: Address<TAccountWhitelistedAddressTrees>;
|
|
1149
1142
|
rpId: CreateDomainConfigInstructionDataArgs["rpId"];
|
|
1150
1143
|
origins: CreateDomainConfigInstructionDataArgs["origins"];
|
|
1151
|
-
metadataUrl: CreateDomainConfigInstructionDataArgs["metadataUrl"];
|
|
1152
1144
|
authorityCreationArgs: CreateDomainConfigInstructionDataArgs["authorityCreationArgs"];
|
|
1153
1145
|
compressedProofArgs: CreateDomainConfigInstructionDataArgs["compressedProofArgs"];
|
|
1154
1146
|
remainingAccounts: CreateDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
@@ -1561,12 +1553,10 @@ type EditDomainConfigInstructionData = {
|
|
|
1561
1553
|
discriminator: ReadonlyUint8Array;
|
|
1562
1554
|
newOrigins: Option<Array<string>>;
|
|
1563
1555
|
newAuthorityArgs: Option<NewAuthorityArgs>;
|
|
1564
|
-
newMetadataUrl: Option<string>;
|
|
1565
1556
|
};
|
|
1566
1557
|
type EditDomainConfigInstructionDataArgs = {
|
|
1567
1558
|
newOrigins: OptionOrNullable<Array<string>>;
|
|
1568
1559
|
newAuthorityArgs: OptionOrNullable<NewAuthorityArgsArgs>;
|
|
1569
|
-
newMetadataUrl: OptionOrNullable<string>;
|
|
1570
1560
|
};
|
|
1571
1561
|
declare function getEditDomainConfigInstructionDataEncoder(): Encoder<EditDomainConfigInstructionDataArgs>;
|
|
1572
1562
|
declare function getEditDomainConfigInstructionDataDecoder(): Decoder<EditDomainConfigInstructionData>;
|
|
@@ -1585,7 +1575,6 @@ type EditDomainConfigAsyncInput<TAccountDomainConfig extends string = string, TA
|
|
|
1585
1575
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1586
1576
|
newOrigins: EditDomainConfigInstructionDataArgs["newOrigins"];
|
|
1587
1577
|
newAuthorityArgs: EditDomainConfigInstructionDataArgs["newAuthorityArgs"];
|
|
1588
|
-
newMetadataUrl: EditDomainConfigInstructionDataArgs["newMetadataUrl"];
|
|
1589
1578
|
remainingAccounts: EditDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
1590
1579
|
};
|
|
1591
1580
|
declare function getEditDomainConfigInstructionAsync<TAccountDomainConfig extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountWhitelistedAddressTrees extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MULTI_WALLET_PROGRAM_ADDRESS>(input: EditDomainConfigAsyncInput<TAccountDomainConfig, TAccountAuthority, TAccountNewAuthority, TAccountWhitelistedAddressTrees, TAccountSystemProgram>, config?: {
|
|
@@ -1599,7 +1588,6 @@ type EditDomainConfigInput<TAccountDomainConfig extends string = string, TAccoun
|
|
|
1599
1588
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1600
1589
|
newOrigins: EditDomainConfigInstructionDataArgs["newOrigins"];
|
|
1601
1590
|
newAuthorityArgs: EditDomainConfigInstructionDataArgs["newAuthorityArgs"];
|
|
1602
|
-
newMetadataUrl: EditDomainConfigInstructionDataArgs["newMetadataUrl"];
|
|
1603
1591
|
remainingAccounts: EditDomainConfigInstructionExtraArgs["remainingAccounts"];
|
|
1604
1592
|
};
|
|
1605
1593
|
declare function getEditDomainConfigInstruction<TAccountDomainConfig extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountWhitelistedAddressTrees extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MULTI_WALLET_PROGRAM_ADDRESS>(input: EditDomainConfigInput<TAccountDomainConfig, TAccountAuthority, TAccountNewAuthority, TAccountWhitelistedAddressTrees, TAccountSystemProgram>, config?: {
|
|
@@ -3047,8 +3035,7 @@ declare function addWhitelistedAddressTrees({ admin, addressTree, }: {
|
|
|
3047
3035
|
addressTree: Address;
|
|
3048
3036
|
}): Promise<AddWhitelistedAddressTreesInstruction<Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, string, []>>;
|
|
3049
3037
|
|
|
3050
|
-
declare function createDomainConfig({ payer, rpId, origins, authority,
|
|
3051
|
-
metadataUrl: string;
|
|
3038
|
+
declare function createDomainConfig({ payer, rpId, origins, authority, }: {
|
|
3052
3039
|
payer: TransactionSigner;
|
|
3053
3040
|
rpId: string;
|
|
3054
3041
|
origins: string[];
|
|
@@ -3096,12 +3083,11 @@ declare function disableDomainConfig({ admin, rpId, disable, }: {
|
|
|
3096
3083
|
rpId: string;
|
|
3097
3084
|
}): Promise<DisableDomainConfigInstruction<gill.Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, []>>;
|
|
3098
3085
|
|
|
3099
|
-
declare function editDomainConfig({ authority, domainConfig, newAuthority, newOrigins,
|
|
3086
|
+
declare function editDomainConfig({ authority, domainConfig, newAuthority, newOrigins, }: {
|
|
3100
3087
|
domainConfig: Address;
|
|
3101
3088
|
authority: TransactionSigner;
|
|
3102
3089
|
newAuthority?: TransactionSigner;
|
|
3103
3090
|
newOrigins?: string[];
|
|
3104
|
-
newMetadataUrl?: string;
|
|
3105
3091
|
}): Promise<EditDomainConfigInstruction<Address<"reviR1xysEChySVSWGa43a6oJ2boJYTJhwRjo8KJhhT">, string, string, string, string, string, []>>;
|
|
3106
3092
|
|
|
3107
3093
|
declare function editTransactionManagerUrl({ authority, userAddressTreeIndex, transactionManagerUrl, }: {
|